> When I try to use the image environment etc to turn a latex structure
> into a png image, I find that I am losing the bottom third (or so) of
> the image. (This does not appear to happen when converting an inserted
> .eps file.) I have attached the stripped down tex file, the resulting
> .makeimage file and .ps file. The conversion from the .ps file to the
> .png file is perfect. I am also attaching the "correct" .png file that I
> have created by editing the .makeimage file on the fly by increasing the
> y-coordinate of the -T option to dvips.
>
> Can anyone help, please?
I think the part of the image you lose is the part below the baseline.
I think (someone feel free to correct me) the problem is that when
hyperlatex computes the image dimensions, it doesn't include the
depth. The relevant part of hyperlatex.sty is
[EMAIL PROTECTED]
\typeout{******************************************}
\typeout{* Making bitmaps from Hyperlatex source! *}
\typeout{******************************************}
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@imagecount=10000
\def\@@@@[EMAIL PROTECTED]
\def\endimage{\egroup
[EMAIL PROTECTED] by [EMAIL PROTECTED]
[EMAIL PROTECTED] -f\space -p\space
[EMAIL PROTECTED] -n\space 1\space -D\space [EMAIL PROTECTED]
[EMAIL PROTECTED],[EMAIL PROTECTED],-72bp\space
\jobname.dvi\space>[EMAIL PROTECTED]
ps2image\space -res\space [EMAIL PROTECTED] [EMAIL PROTECTED]
\space [EMAIL PROTECTED]/[EMAIL PROTECTED]@imagetype^^J}
[EMAIL PROTECTED]@imagebox}
\else
\def\@@@@image{\tex}
\def\endimage{}
\fi
One quick way to fix this is to add a blank line at the bottom of the
image enviroment when \makeimage is defined:
Change the
\def\endimage{\egroup
to
\def\endimage{\par~\egroup
Another (more proper?) way would be to put in the correct total height
to begin with. I don't know if there's a total height function
corresponding to the \ht height function, but the height and depth
could be added in a new register. Add the line
[EMAIL PROTECTED]
right after the
[EMAIL PROTECTED]@imagecount=10000
line. Then replace the definition of \endimage with
\def\endimage{\egroup
[EMAIL PROTECTED] by [EMAIL PROTECTED]
[EMAIL PROTECTED]@imagebox
[EMAIL PROTECTED] by [EMAIL PROTECTED]
[EMAIL PROTECTED] -f\space -p\space
[EMAIL PROTECTED] -n\space 1\space -D\space [EMAIL PROTECTED]
[EMAIL PROTECTED],[EMAIL PROTECTED],-72bp\space
\jobname.dvi\space>[EMAIL PROTECTED]
ps2image\space -res\space [EMAIL PROTECTED] [EMAIL PROTECTED]
\space [EMAIL PROTECTED]/[EMAIL PROTECTED]@imagetype^^J}
[EMAIL PROTECTED]@imagebox}
Jay
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
Hyperlatex-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hyperlatex-users