Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.text Frequently Asked Questions
Section - TR7. How do I embed PostScript in troff?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Forum ]


Top Document: comp.text Frequently Asked Questions
Previous Document: TR6. None of the mentioned packages support *my* printer. Help?
Next Document: TR8. What are fonts? How do I add fonts?
See reader questions & answers on this topic! - Help others by sharing your knowledge

There are two methods:

    - including "absolute" PostScript.  PostScript that knows where
      it goes on the page, and decides its own scaling.
      All versions of ditroff support this one way or another.
      CAT troff does as well when coupled with psroff.  This is
      most often supported by some permutation of \! or \X'...'
      directives.

    - including PostScript, automatically scaling and placing the
      image.  This requires that the PostScript be EPS (so that the
      size and origin of the image is accessible).  Groff and
      DWB 3.3 have facilities for including EPS files and automatically
      placing/scaling them on the page, including leaving space in the
      troff text for the image.  See if your documentation includes
      remarks about "PSPIC", "PS" or other similar macros.

      Psfig (comp.sources.unix archives) is a troff preprocessor which
      will permit this sort of automatic placement/scaling with an
      older version of ditroff (such as DWB 2.1) as long as the backend
      printer driver understands it.  Psroff 3.0 and Adobe Transcript
      support psfig with ditroff, but only Psroff 3.0 will support
      psfig with CAT troff.

Caution: many PC and MAC graphics packages generate sloppy PostScript which
cannot be gracefully included in other documents.

User Contributions:

Comment about this article, ask questions, or add new information about this topic:




Top Document: comp.text Frequently Asked Questions
Previous Document: TR6. None of the mentioned packages support *my* printer. Help?
Next Document: TR8. What are fonts? How do I add fonts?

Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
textfaq@ferret.ocunix.on.ca (Text FAQ commentary reception)





Last Update March 27 2014 @ 02:12 PM