*BSD News Article 8470


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!news.cs.indiana.edu!umn.edu!csus.edu!netcom.com!alm
From: alm@netcom.com (Andrew Moore)
Subject: Printing TeX output: use dvips + Ghostscript
Message-ID: <1992Dec3.040342.21270@netcom.com>
Summary: use dvips + Ghostscript
Keywords: 24-wire-printers TeX dvips Ghostscript
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Thu, 3 Dec 1992 04:03:42 GMT
Lines: 46

QUESTION: How to print TeX output with a 24-wire printer?

ANSWER: Convert the TeX .dvi file to Postscript format with dvips and
print the resulting .ps file with Ghostscript.

One trick in using dvips is that the TeX fonts must have the same the
horizontal and vertical resolutions (i.e., build either 180x180 or
360x360 dpi TeX fonts).  Converting 360x180 dpi fonts with dvips, for
instance, results in squashed characters since dvips doesn't support
differing horizontal and vertical resolutions.  (The gs directive
-r360x180 can still be used to advantage, though).

TeX/LaTeX/MetaFont for 386BSD is available on agate.berkeley.edu.

Ghostscript 2.5.2 is available from any GNU site (e.g.,
wuarchive.wustl.edu:mirrors4/gnu).  For 386BSD, it requires only
that line 36 in malloc_.h read:

#if defined(_HPUX_SOURCE) || defined(__CONVEX__) || defined(__convex__) \
|| defined(__OSF__) || defined(__386BSD__)

dvips is available from labrea.stanford.edu in ./pub.  For 386BSD,
texc.script needs to be  modified to work with ex (unless you have a
functional ed), e.g.,

--------------
#! /bin/csh
# A shell script to convert tex.lpro to texc.lpro
#
# To use it, say
#       texc.script tex.lpro texc.lpro
#
ex - $1 <<edscriptend
/% begin code for uncompressed fonts only/d
..,/% end code for uncompressed fonts only/d
..,/% end of code for unpacking compressed fonts/s/% //
w! $2
q
edscriptend
--------------

Finally, the GNU texinfo package has a texi2dvi script that converts
GNU texinfo documents to TeX (.dvi) format.
-Andrew Moore <alm@netcom.com>