groff
[Top][All Lists]
Advanced

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

Re: Usage of .PSPIC inside tbl


From: Oliver Corff
Subject: Re: Usage of .PSPIC inside tbl
Date: Thu, 26 Nov 2020 20:59:33 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

Hi Tadziu,

Thank you for the information on spacing. I noticed that my own example
appeared a bit odd, but now I know how and where to tweak the code.

You all helped me solve the two very last typesetting issues I had with
my current material. Thank you again!

Oliver.


On 26/11/2020 13:56, Tadziu Hoffmann wrote:

.TS
tab(@);
l c l.
A cell @.PSPIC mypic.ps @Another cell
.TE
tbl runs first and processes its data as words of text --
it has no concept of macros.  One way to achieve what you
want is to pass this on to the general troff machinery,
which happens in paragraph mode of tbl:

   .TS
   allbox tab(@);
   c c c.
   Foo@T{
   \h'1c'
   .sp -1
   .PSPIC -L image.ps 1c
   T}@bar
   .TE

Note that PSPIC is intended to include graphics between lines
of text, so it will leave some vertical space above and below,
and it also does not have any intrinsic width, so you must
put in some dummy material that has the desired extent
(in the example, horizontal motion)

However, PSPIC is built around the "ps: import" device escape,
which you can use directly.  This also has no concept of
width and height with regard to troff's text formatting (and
will happily overwrite anything on the page), so you need to
supply some dummy material for tbl to leave appropriate space.
But it has the advantage that you can tweak the vertical
positioning simply by lying about the bounding box, like in
the attached example.





reply via email to

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