Angus Leeming wrote: > First, the preamble. I invoked dvipng so: > dvipng -bg 'rgb 0.980 0.941 0.902' -depth <dvifile>
OK, you do want the --height too, I guess? > [1 depth=13/home/angus/preview-latex/devel/dvipng/dvipng warning: at > (-155,18) unimplemented \special{ps::-32891 -32891 32891 32891 957561 > 564346 22609920}. <snip> > 1. Here I had colour specials in the latex file. In future I will not > need them, right? Instead I'll pass them direct to dvipng, as above. Yes. You can do either. > 2. I should prefer your -depth and -height flags, extracting the > metrics info from the output above, rather than extracting it from > the latex log file? Reason: the log file info is going to be wrong if > I invoke dvipng with the '-T tight' option, right? (and I would like > to do so so that I can strip off the front margin of a displaystyle > equation). There are actually three ways to determine the boundingboxes. 1) "-T tight" which would make "-depth -height" necessary. You'd get the boundingbox determined from the ink of the image. 2) From the output I see you have used the "tightpage" option to preview, I have code lying around that will take the boundingboxes from the specials instead, do you want that? 3) "dvipng <dvifile> -" will fire up the stdin interface where you could input the dimensions yourself per page, as obtained from the latex run. Once the stdin interface is up you give "-T 1in,1in -O 40sp,30sp -pp1" and then "-T 3cm,3cm -O 3pt,5pt -pp2" and so on. /JÅ -- Death before dishonor. Nothing before coffee!