I am trying to test DruTeX, but it is difficult to install. It would be easier if DruTeX would tell me why it is failing.
Looking through the code, I learned that DruTeX depends on a files/tex folder, which did not exist. Also, DruTeX said nothing about missing LaTeX on the server.
Comments
Comment #1
Andrupal commentedI am having the same installation difficulties, I think. Can someone clarify how I know if LaTex is installed on the server? The screen currently says "Tex Embedding Failed," but not why...
Comment #2
dbarnes commentedI found that I needed to edit the drutex_render.inc file to provide full paths to the latex, dvipng and convert binaries.
I also needed to create files/tex in the top of the drupal directory tree and make it world writeable.
Finally, I needed to enable DruTex in the input formats.
Maybe this will help.
- David.
Comment #3
Andrupal commentedHow could I find these paths on a shared server? I've submitted a support request with my host, but perhaps there's an easy way that I'm missing.
Comment #4
dbarnes commentedG'day. If you are able to obtain "ssh" login to your hosting provider, then you can login in a Unix account environment and try to find the latex binaries. However if you don't have interactive shell access it's tricky. It's actually pretty likely that the average linux web host doesn't have LaTeX installed anyway, but if it does, the binaries are *very* likely to be in /usr/bin.
- David.
Comment #5
dfg commentedThe conversion commands now can be changed on the input filter settings page. Also the paths where DruTeX has to place the images and so on.
On almost all Linux servers, if you are allowed to execute LaTeX, ImageMagick, dvipng and so on, they can be executed from everywhere just by invoking "latex", "convert" and "dvipng". This is therefore the default setting.
On windows machines, you may always have to provide full paths. Searching the whole hard disk for the LaTeX binary from whithin Drupal is mad and won't be implemented.