From: L. <ja...@ma...> - 2004-04-21 13:52:49
|
(I've sent an answer already I believe but somehow it has gotten lost) Buchbinder, Adam wrote: > I downloaded dvipng-1.0 from sourceforge.net. I'm running a somewhat > archaic copy of Mandrake 7.2 (Odyssey) for i586. Relevant packages > include: >=20 > tetex-1.0.7-11mdk > gd-1.8.1-4mdk This _is_ old, I used gd1.8.3 when I started coding dvipng two years ago. > gd-devel-1.8.1-4mdk > libpng-1.0.8-2mdk > Changing line 2470 from >=20 > LIBS=3D"-lgd -lm $LIBS" >=20 > to >=20 > LIBS=3D"-lgd -lm -lpng $LIBS" >=20 > seemed to fix the problem Ok, good. The binary needs to be linked against libpng anyway, so there already is a -lpng test in the autoconf stuff. The problem is that it is after the -lgd test. Newer versions of gd doesn't need to be linked against libpng in the testing phase so I haven't noticed the order. I'll change the order in the next version of dvipng. > (They seem awfully full of whitespace, but I suppose that's some > sort of default I need to poke at.) The default is to produce a PNG which includes all ink put on the 'paper' and in addition the DVI origin, located 1in from the top and 1in from the left edge of the paper. This usually gives whitespece above and to the left of the produced text/math/.... If you add -Ttight the origin will not necessarily be included, producing neat images. Thanks, Jan-=C5ke --=20 UNIX _is_ user friendly. It's just selective about who its friends are. |