[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Three topics related to images
From: |
Tadziu Hoffmann |
Subject: |
Re: [Groff] Three topics related to images |
Date: |
Thu, 19 Jun 2014 16:38:41 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
> To place two images side by side.
> How to place to two or more images side by side. HTML treateds
> a little picture almost as if it were a text item. If you put
> two pictures in the code after each other then they appear
> side by side (if there is space for that on the line). Can you
> do something similar in groff or what does it take to put two
> pictures up next to each other?
In the groff world, the mechanics of inserting a picture
(not drawn by troff itself) into the generated output is done
by the postprocessor via a "device special", which in the
case of grops is "ps: import". Troff does not need to know
anything about the picture except to reserve a little space
for it, so it does not overwrite other parts of the output.
This is preferably done with a macro to simplify the markup,
but the included picture can be treated as an inline item
just like a normal piece of text, as the attached example
shows (deliberately left simple to better understand the
way it works).
inlinepic.ro
Description: Text document
f.ps
Description: PostScript document
Re: [Groff] Three topics related to images, Peter Schaffter, 2014/06/20