[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: |
Mon, 2 Dec 2002 21:03:50 +0100 (CET) |
Here is the diff, which puts \box\graph on the TeX baseline, plus
manpage change...
Greetings Hartmut
------------------------------------------------------------------------
--- ../../../../x/groff-1.18.1/src/preproc/pic/tex.cc Fri Oct 5 16:12:23 2001
+++ tex.cc Mon Dec 2 20:38:03 2002
@@ -116,7 +116,7 @@
idea of the bounding box of the picture. */
fputs("\\expandafter\\ifx\\csname graph\\endcsname\\relax \\csname
newbox\\endcsname\\graph\\fi\n"
"\\expandafter\\ifx\\csname graphtemp\\endcsname\\relax \\csname
newdimen\\endcsname\\graphtemp\\fi\n"
- "\\setbox\\graph=\\vtop{\\vskip 0pt\\hbox{%\n",
+ "\\setbox\\graph=\\vbox{\\hbox{%\n",
stdout);
pen_size = -2.0;
}
@@ -125,8 +125,7 @@
{
printf(" \\hbox{\\vrule depth%.3fin width0pt height 0pt}%%\n"
" \\kern %.3fin\n"
- " }%%\n"
- "}%%\n",
+ "}\\kern 0pt}%%\n",
height, width);
}
------------------------------------------------------------------------
--- ../../../../x/groff-1.18.1/src/preproc/pic/pic.man Fri Sep 20 07:46:52 2002
+++ pic.man Mon Dec 2 20:53:39 2002
@@ -240,16 +240,6 @@
\ecenterline{\ebox\egraph}
.RE
.LP
-Actually, since the vbox has a height of zero this will produce
-slightly more vertical space above the picture than below it;
-.RS
-.LP
-.B
-\ecenterline{\eraise 1em\ebox\egraph}
-.RE
-.LP
-would avoid this.
-.LP
You must use a \*(tx driver that supports the
.B tpic
specials, version 2.
------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Groff] Why are pic pictures hanging at the TeX-baseline?,
Hartmut Henkel <=