[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Why are pic pictures hanging at the TeX-baseline?
From: |
Hartmut Henkel |
Subject: |
Re: [Groff] Why are pic pictures hanging at the TeX-baseline? |
Date: |
Thu, 24 Apr 2003 23:32:16 +0200 (CEST) |
Hi,
there is still/yet another TeX issue with pic -t: Inline pictures like
A\hbox{\box\graph}B are not _standing_ on the baseline of the letters,
as it is standard in TeX (with \epsbox} or LaTeX (with
\includegraphics). Instead pic -t pictures are _hanging_ down from the
baseline: Their \ht = 0, and they have nonzero \dp (see my former
E-Mails end of 2002 with the same topic). This causes also vertical
spacing changes (e. g. towards captions) within the figure
float-environment.
I tried the old patch with the fresh tex.cpp, it is simply:
--- tex.cpp.orig Thu Apr 24 23:03:44 2003
+++ tex.cpp Thu Apr 24 23:13:31 2003
@@ -121,7 +121,7 @@
" \\newdimen\\graphtemp\n"
"\\fi\n"
"\\expandafter\\setbox\\csname %s\\endcsname\n"
- " =\\vtop{\\vskip 0pt\\hbox{%%\n",
+ " =\\vbox{\\hbox{%%\n",
graphname, graphname, graphname);
pen_size = -2.0;
}
@@ -130,8 +130,7 @@
{
printf(" \\hbox{\\vrule depth%.3fin width0pt height 0pt}%%\n"
" \\kern %.3fin\n"
- " }%%\n"
- "}%%\n",
+ " }\\kern 0pt}%%\n",
height, width);
}
I believe this should help for increased compatibility of pic within the
TeX environment, and would be glad to see it implemented.
Best Regards
Hartmut
------------------------------------------------------------------------
Dr.-Ing. Hartmut Henkel
Oftersheim, Germany
E-Mail: address@hidden
http://www.circuitwizard.de
------------------------------------------------------------------------
- Re: [Groff] Why are pic pictures hanging at the TeX-baseline?,
Hartmut Henkel <=