Jan-Åke Larsson wrote:
> (You _can_ get a --height switch too, such that depth+height would
> be the total image height)

Ok, Jan-Åke, some questions.

First, the preamble. I invoked dvipng so:
dvipng -bg 'rgb 0.980 0.941 0.902' -depth <dvifile>

to give:

[1 depth=13/home/angus/preview-latex/devel/dvipng/dvipng warning: at 
(-155,18) unimplemented \special{ps::-32891 -32891 32891 32891 957561 
564346 22609920}.
/home/angus/preview-latex/devel/dvipng/dvipng warning: at (-155,-2) 
unimplemented \special{!userdict begin/bop-hook{/isls false def/vsize 
792 def/hsize 612 def}def end}.
/home/angus/preview-latex/devel/dvipng/dvipng warning: at (-155,-2) 
unimplemented \special{!userdict begin/bop-hook{7{currentfile token 
not{stop}if 65781.76 div DVImag mul}repeat 72 add 72 2 copy 
gt{exch}if 4 2 roll neg 2 copy lt{exch}if dup 0 gt{pop 0 exch}{exch 
dup 0 lt{pop 0}if}ifelse 720 add exch 720 add 3 1 roll 4{5 -1 roll 
add 4 1 roll}repeat <</PageSize[5 -1 roll 6 index sub 5 -1 roll 5 
index sub]/PageOffset[7 -2 roll [1 1 dtransform exch]{0 ge{neg}if 
exch}forall]>>setpagedevice//bop-hook exec}bind def end}.
/home/angus/preview-latex/devel/dvipng/dvipng warning: at (-155,-2) 
unimplemented \special{!userdict begin/bop-hook{//bop-hook exec 
<000000faf0e6>{255 div}forall setrgbcolor clippath fill 
setrgbcolor}bind def end}.
] [2 depth=10/home/angus/preview-latex/devel/dvipng/dvipng warning: at 
(-113,15) unimplemented \special{ps::-32891 -32891 32891 32891 786432 
449545 22609920}.
] [3 depth=6/home/angus/preview-latex/devel/dvipng/dvipng warning: at 
(0,10) unimplemented \special{ps::-32891 -32891 32891 32891 491524 
225995 10566263}.
]

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.

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).

Have a good weekend,
Angus


Reply via email to