help with drutex

kenjil - August 31, 2009 - 22:56
Project:DruTeX
Version:6.x-1.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hello,
I try to make drutex working but i just get 'TeX Embedding failed!'.
Drutex toolbox isn't displaying anything under page admin/settings/drutex
I have tex and co installed on my computer.
Even if i give the custom command with the correct path

cd [TMP_DIR]; TEXINPUTS="[DRUTEX_DIR]//:" /usr/texbin/latex -interaction=batchmode [HASH].tex /usr/texbin/dvipng -o [IMG_FILE] -D [DPI] -T tight [TMP_DIR]/[HASH].dvi

this doesn't change anything.
Any idea ?
Thanks a lot. I need to make this work.

#1

oz_an - August 31, 2009 - 23:43

What is your directory structure: Please note any character especially leftmost slashes
For instance:
I set my directory structure like this after gettin a lot of texEmbed failed errors
Drutex Base TMP_DIR= tmp
IMG_DIR = files/tex
IMG_URL = files/tex

Also you need to look under these directories, is there a tex file (set drutex to debug mode so it doesn't delete the temp files it creates), is there a
dvi file and of course is there a png file.
Which one isn't there gives a lot of clue about what is wrong with your settings

#2

kenjil - September 1, 2009 - 00:52

Ok. Strange things occurs.
It seems that whatever value i enter for TMP_DIR, it is overidden by /tmp since i always end up with the drutex-somehash directory in tmp.
I guess the same happens with my custom command. It's overidden somewhere.
I tested with

cd /tmp; touch testfile;

but testfile isn't created as drutex-somehash is.
What's wrong in my configuration ?

#3

kenjil - September 1, 2009 - 01:24

Ok. Fixed.
The error was coming from the fact that i had set a wrong url path for the image directory. I though of the image URL field as a kind of url alias that would point to the images directory. But i was wrong ! It's the path to images directory with respect to drupal directory. Sorry for all this and thanks !

#4

kenjil - September 1, 2009 - 01:24
Status:active» fixed

#5

System Message - September 15, 2009 - 01:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.