groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Why are pic pictures hanging at the TeX-baseline?


From: Hartmut Henkel
Subject: [Groff] Why are pic pictures hanging at the TeX-baseline?
Date: Fri, 29 Nov 2002 02:52:17 +0100 (CET)

Hi,

in the output from pic -t (TeX-Mode) the pictures are _hanging_ at the
text baseline, when included into a TeX document. I believe this is not
the usual way in TeX. E. g. pictures included in LaTeX by
\includegraphics{} are _standing_ on the baseline. Is there a rationale
behind the pic way of doing?

An example how to get standing pictures in comparison to the pic way you
find below.

And here is also a tiny announcement :-) I have been fiddling with an
awk script for converting of pic/tpic \specials into pdftex literals, so
that pic pictures can be easily included into pdftex. You find this on
my homepage www.circuitwizard.de. The idea behind this is to get pic
more accessible by the TeX-world.

This script also converts the hanging pictures into standing ones
on-the-fly.

The plain-TeX comparison of hanging/standing picture inclusion:

\expandafter\ifx\csname graph\endcsname\relax \csname newbox\endcsname\graph\fi
\expandafter\ifx\csname graphtemp\endcsname\relax \csname 
newdimen\endcsname\graphtemp\fi

As it is done in gpic (pictures hanging at the baseline):

\setbox\graph=\vtop{\vskip 0pt\hbox{%
    \hbox{\vrule depth0.500in width0pt height 0pt}%
    \kern 5.000in
  }%
}%

\def\vr{\smash{\vrule width 5mm depth 1pt height 1pt}}

\hrule
\centerline{Baseline \hbox{\vrule\box\graph\vrule}}
\hrule

Another way would be (pictures standing on the baseline):

\setbox\graph\vbox{\hbox{%
    \hbox{\vrule depth0.500in width0pt height 0pt}%
    \kern 5.000in
  }%
\kern 0pt
}%

\hrule
\centerline{Baseline \hbox{\vrule\box\graph\vrule}}
\hrule

\bye


Greetings Hartmut



reply via email to

[Prev in Thread] Current Thread [Next in Thread]