Help with DruTex

huayen - January 31, 2009 - 17:07

Hello,

I installed DruTex module following the install documents, but it does not work, always give me error of TeX Embedding failed!

In DruTex configuration page, I got following information:

The temporary directory is writable.
The image directory is writable.
Executing "latex" failed. Either LaTeX isn't installed or the "latex" executable is not in one of the search paths.
You cannot render high-quality images without LaTeX.
Mimetex maybe an alternative for you. Consult the documentation on how to use Mimetex.
Executing "dvipng" failed. Either dvipng isn't installed or the "dvipng" executable is not in one of the search paths.
You cannot use dvipng for rendering images (check the conversion method above).
Executing "convert" (ImageMagick) was successful: Version: ImageMagick 6.0.7 07/25/08 Q16 http://www.imagemagick.org

I remember one year ago I ever used some kind of Tex filter for Drupal (I am not sure whether it is DruTex or not). At that time, I nee to install some kind of Tex executives in a hosting server folder, and at that time the filter worked. Now why DruTex does not require install that kind of stuff?

DO I miss something?
If I need to install something, how shall I do now?
Or, How can I check whether my hosting server support Tex?

Thanks a lot for any suggestions.

-Regards,
Derek

=-=

VeryMisunderstood - January 31, 2009 - 17:15

http://groups.drupal.org/node/1263

Tex in some for will have to be installed on your server = http://en.wikipedia.org/wiki/LaTeX

Thanks a lot for replying. I

huayen - January 31, 2009 - 17:20

Thanks a lot for replying.

I have been using Latex for a long time, on my computers, never on server. How shall I make it on my remote hosting server?

====================================
blog.jingpro.com
baby.jingpro.com

=-=

VeryMisunderstood - January 31, 2009 - 17:24

I don't use it so I can't answer the question. I only did a small bit of research for you with this regard. You will have to contine the research. May also want to create an issue in the projects issue queue where those that use the module and are subscribed to the issue queue can provide more specific help.

Shard host or vps?

stattalk - April 23, 2009 - 00:11

If you are hosted on a shared host, then it is likely that they (hosting company) will not allow you to install latex or they will not install it for you. The reason that they will show is that it takes so much space (about 200MB) and it may consume a big amount of CPU processing time when latex will render the equations and produce the graphics for display on the website.

However, if you have a vps, or dedicated server where you have complete control of the server, you can install latex and dvipng. There are precompiled binary packages available for different distribution of nix based system. My vps is based on Debian so I can use apt-get style installer..

On a Debian box, install texlive (the latex package that are being used mostly) using

apt-get install texlive

Then you have to install dvipng. Use

apt-get install dvipng

Then you have to install the drutex module and following the instructions given in the help file will give you a working setup to enter equations on your website.

I wrote a text at http://www.stattalk.org/content/latex-equation-drupal-blog long time ago, which you might find useful. There are many such resources available on the Internet.

_________________________________
Let's talk statistics at www.stattalk.org

 
 

Drupal is a registered trademark of Dries Buytaert.