groff
[Top][All Lists]
Advanced

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

Re: [Groff] EPS from PIC?


From: Werner LEMBERG
Subject: Re: [Groff] EPS from PIC?
Date: Fri, 31 Oct 2003 20:24:12 +0100 (CET)

> What pic version is this? My pic (from groff 1.17.2) does not
> generate code that can be fed to LaTeX (or TeX) directly.

???  Of course you can!

Anyway, try 1.19, or the current CVS (if you need dashed or dotted
ellipses).  Until those files are on ftp.gnu.org again, please
download from

   http://ftp.ffii.org/pub/groff

> For example, 
> 
>     .PS
>     right; box "one"; arrow ->; box "two"; arrow ->; box "three"
>     .PE
> 
> generates something like:
> 
>     \expandafter\ifx\csname graph\endcsname\relax 
>         \csname newbox\endcsname\graph\fi
>     \expandafter\ifx\csname graphtemp\endcsname\relax 
>         \csname newdimen\endcsname\graphtemp\fi
>     \setbox\graph=\vtop{\vskip 0pt\hbox{%
>         \special{pn 8}%
> 
>     ...
> 
> Clearly, this is no LaTeX document.

But the \graph box can be used in a normal LaTeX document also.  The
updated pic manual page suggests to use this:

>From the (updated) pic manual page:

  To make the vbox having a positive height and a depth of zero (as
  used e.g. by LaTeX's graphics.sty), define the following macro in
  your document:

    \def\gpicbox#1{%
      \vbox{\unvbox\csname #1\endcsname\kern 0pt}}

  Now you can simply say \gpicbox{graph} instead of \box\graph.


    Werner

reply via email to

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