[Top][All Lists]

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

Re: Usage of .PSPIC inside tbl

From: Tadziu Hoffmann
Subject: Re: Usage of .PSPIC inside tbl
Date: Thu, 26 Nov 2020 13:56:38 +0100
User-agent: Mutt/1.11.4 (2019-03-13)

> .TS
> tab(@);
> l c l.
> A cell @.PSPIC @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:

  allbox tab(@);
  c c c.
  .sp -1
  .PSPIC -L 1c

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.

Description: Text document

Attachment: tblimg.pdf
Description: Adobe PDF document

Description: PostScript document

reply via email to

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