[xwiki-users] Formula rendering problem [native]
Hello! I've just upgraded both operating system (Fedora 17) and Xwiki to 4.0 RC-1 and got an issue with the formula macro. Whenever I use it, the resulting image created is 1020x1320 pixels big, mostly empty except for the (correctly sized) formula placed in the bottom left corner of the .png image. Does anyone have an idea what might cause this? Kind regards, and thanks. Joel
On 04/19/2012 12:34 PM, Joel Forsberg wrote:
Hello! I've just upgraded both operating system (Fedora 17) and Xwiki to 4.0 RC-1 and got an issue with the formula macro. Whenever I use it, the resulting image created is 1020x1320 pixels big, mostly empty except for the (correctly sized) formula placed in the bottom left corner of the .png image.
Does anyone have an idea what might cause this?
Kind regards, and thanks. Joel
Hi Joel, It works fine for me, so let's try and see where the problem occurs. Start by putting this into a tex file called a.tex: http://pastebin.com/8Tx92S5L The renderer uses a three-step process, tex->dvi, dvi->ps, ps->png. Let's try them out in order: latex --interaction=nonstopmode a.tex This should produce a.dvi, which should be a very big page with only the formula in the center, no other text. Check if there are any errors displayed there. Try without --interaction to make latex stop at errors. dvips -E a.dvi -o a.ps This should produce a.ps, which should be tightly cropped around the formula. If it isn't then there's a problem, maybe dvips doesn't support the -E parameter. convert -density 120 a.ps a.png This should produce a.png, having the same size as the ps. For reference, here's what I have locally (texlive installation): $ latex --version pdfTeX 3.1415926-2.3-1.40.12 (TeX Live 2011) kpathsea version 6.0.1 $ dvips --version This is dvips(k) 5.991 Copyright 2011 Radical Eye Software -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (2)
-
Joel Forsberg -
Sergiu Dumitriu