Question
I have got through installing the
LatexModePlugin and solved a bunch of path issues. It nolonger produces errors but the final png image that is produce is empty.
Any ideas what I'm doing wrong? I just upgraded to the latest version and its still doing it.
Environment
--
TWikiGuest - 26 Mar 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
My best advice is to turn the debug mode on, and try to track down the failure in the image generation chain:
- tmp directory created?
- twiki_math.tex created?
- twiki_math.tex file processed successfully?
- output images found in tmp dir?
If the twiki_math.tex file is created, one should be able to perform
latex twiki_math.tex,
dvips twiki_math.dvi, and
convert -trim ps:twiki_math.ps image.png, outside of twiki. This way, you can confirm that the back end rendering is functioning properly.
--
ScottHoge - 27 Mar 2006
The images do get created so everything else seems ok. I'd like to look at the tex and do what you suggest but I can't find it. Where do the plugin save the .tex file and won't it be deleted?
--
TWikiGuest - 28 Mar 2006
On solaris, the twiki_math.tex file should be created in a subdirectory of
/tmp/. You can over-ride this by hard coding a directory for
LATEXWDIR in the
LatexModePlugin.pm file. If debug mode is set on, the temporary files will not be deleted at the end of the script-run.
You say that images are created, but they are blank? Would you be willing to post one here?
Also, what version of the
convert are you using?
--
ScottHoge - 28 Mar 2006
--
TWikiGuest - 28 Mar 2006
Thanks for the advice, I don't have system control over
the machines this is running on, but the tech people who
set up the twiki didn't install this plugin.
So it could be thats part of the problem. there are no tex files
created in the /tmp directory. I tried setting it to
another one but it couldn't write there even with chmod777. We have
ImageMagick 5.4.7.4
I can't upload the image since they are zero size. If you're interested here is the url of the page
http://uai.cs.ubc.ca/cgi-bin/twiki/view/Main/MarkCrowley?latex=rerender
--
TWikiGuest - 28 Mar 2006
I took a look at the link, and the images are definitely
not created. With the error messages only reported on
preview, it's tough on this end to say what is incorrect in the setup.
--
ScottHoge - 30 Mar 2006