bug-groff
[Top][All Lists]
Advanced

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

Re: A few newb questions about Troff typesetting


From: glu
Subject: Re: A few newb questions about Troff typesetting
Date: Sat, 16 Dec 2017 22:42:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

You asked:
2) How do I include pictures in my documents?  Pictures in this sense mean 
real-life pictures, like the ones in JPG or PNG.

In the mid-1990's I did something like the following:

1) Convert the image to Encapsulated PostScript format.
   I used ImageMagick for this:
   \# Note the space at the end of the following line.
   .ds img*convCmd convert \\*[img*geom] \\*[img*convOpts] 
   .as img*convCmd -verbose "\\*[img*file]" "\\*[img*epsf]"
   .sy \\*[img*convCmd]
2) Then insert the EPS-file into the output via transparent throughput:
  \X'ps: import \\*[img*epsf] \\n[ps-llx] \\n[ps-lly] \\n[ps-urx] \\n[ps-ury] 
\\n[ps-deswid] \\*[ps-desht]'

Your are responsible to compute the necessary parameters (ps-llx,
and so forth) in advance, according to your image's dimensions.

Regards
LVG


reply via email to

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