🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #232

Re: printing graphics files with emTeX

#232
From: Jonathan M. Gilligan
Date: Wed, 28 Oct 1992 18:36
48 lines
2814 bytes
You write to Info-TeX:

   Could someone give me some pointers on the technique needed to
   insert a graphic file into tex.  Specifically I want to insert a
   graph made by quattro into emtex.  Quattro can output .PCX, .PIC,
   and .EPS formats.  I have been able to import the .PCX and print it
   using \picture, however the graph is only about 1 1/2 by 2 inches.
   I would like to scale the graph to a larger figure.

The .pcx file is an encoding of a bitmap. The pixels specified by the
bitmap go on the page, so the physical size of the graphic depends on
the resolution of your printer. Most programs that generate .pcx files
assume that they're for screen display and generate them at about 72
pixels per inch, so they're small when you print them at 150 or 300
DPI. If you can tell the program to generate the .pcx file at 300 dpi
(or whatever your printer uses) this would solve the problem.
Alternatively, you could tell the program generating the .pcx file to
make it N times larger than you really want, where N = (resolution of
your printer)/72.

An alternative is to have quattro print the graph to a disk file,
choosing an HP LaserJet as the printer type. Then use pcltomsp (a
program that's part of emtex) to turn that file into a .pcx of the
appropriate size for a 300 dpi printer (or 150dpi, if you told quattro
to use a LaserJet at 150 dpi).

You could also output HPGL (i.e., output for a Hewlett Packard pen
plotter) and use the free hp2xx program to generate a .pcx file (ask
an archie server for the location of hp2xx).

   I also have a rather basic question.  Do I need a postscript
   printer to utilize the .EPS (encapulated PostScript) files?

You can use a PostScript printer or the free ghostscript interpreter.
Ghostscript will translate postscript files to printer, screen, and
graphic file representations such as .pcx. However, on MSDOS,
ghostscript needs so much memory to deal with 300 DPI bitmaps that you
will need the 386 version.  Again, ask archie for the location of
ghostscript-2.5.2msdos.tar.Z, which contains the precompiled msdos
versions for plain '86, for '386, and for Windows. The source is in
ghostscript-2.5.2.tar.Z.

You will need the UNIX uncompress and tar utilities to unpack these
files.

---Jon

Disclaimer --- The government probably disagrees with my opinions.
Technical Details
Message-ID: <9210281836.AA27198@central.bldrdoc.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!usc!news.service.uci.edu!unogate!mvb.saic.com!info-tex

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!usc!news.service.uci.edu!unogate!mvb.saic.com!info-tex
From: gilligan@central (Jonathan M. Gilligan)
Newsgroups: comp.text.tex
Subject: Re: printing graphics files with emTeX
Message-ID: <9210281836.AA27198@central.bldrdoc.gov>
Date: Wed, 28 Oct 92 11:36:00 MST
Organization: Info-Tex<==>Comp.Text.Tex Gateway
X-Gateway-Source-Info: Mailing List
Lines: 48