home *** CD-ROM | disk | FTP | other *** search
GNU Info File | 1994-02-20 | 29.6 KB | 671 lines |
- This is Info file Printing-HOWTO.info, produced by Makeinfo-1.55 from
- the input file printing.texinfo.
-
- A guide to printing and previewing files under the Linux operating
- system.
-
- Copyright (C) 1994 by Grant Taylor and Brian McCauley
-
- File: Printing-HOWTO.info, Node: Filters for given printers, Next: Programs that do not read STDIN, Prev: Output filters, Up: LPR
-
- Getting filters for given printers
- ==================================
-
- From: B.A.McCauley@bham.ac.uk (Brian McCauley)
-
- Because writing a filter usually takes about 10 minutes once you've
- found the right program (`gs', `dvilj' etc.) there's little call for
- ftp archives of printer filters but we are thinking of creating an
- extensive example file to go with this document.
-
- If you already have a program to print, say, DVI on your printer by
- some mechanism then making it into a filter is usually a matter of
- writting trivial shell script *Note Writing lpd filters::. If the
- program you are using insists on reading a names file as input see the
- next question. Text mode filters are trivial too (see this HOWTO)
- unless you want lpr to have a choice of fonts in which case they are
- slightly harder than trivial. You will probably want to insert and
- `echo -ne' command at the beginning and end of your filter to set up
- the font etc to your liking.
-
- File: Printing-HOWTO.info, Node: Programs that do not read STDIN, Next: Many filters, Prev: Filters for given printers, Up: LPR
-
- Filters from programs that won't read STDIN
- ===========================================
-
- Some of the programs that are used in writing `lpd' filters are not
- capable of taking their input from their standard input. For example
- `dvilj2p' insists on a named file as its input (and what's more expects
- one with a `.dvi' suffix) so do this:
-
- #!/bin/sh
- ln -s /proc/self/fd/0 /tmp/$$.dvi
- dvilj2p /tmp/$$
- rm /tmp/$$.dvi
-
- Note: If it wasn't for the fact that `dvilj2p' adds a `.dvi' suffix
- you wouldn't need the temporary symlink and could just specify
- `/proc/self/fd/0' directly. People who use this trick often usually
- permanently `ln -s /proc/self/fd/0 /dev/stdin'. If you're highly
- security concious and don't allow access to `/proc' you'll need to
- create a temporary file.
-
- File: Printing-HOWTO.info, Node: Many filters, Next: Magic Filters, Prev: Programs that do not read STDIN, Up: LPR
-
- Having many filters
- ===================
-
- Historically the `lpr' command was created to support a finite set
- of possible file types. You can, in fact, use any of the filters for any
- reason. If you're never going to use Benson Varian raster files you
- could use the `-v' switch for GIF files. You could even use `-d' for
- low res and `-v' for high res. Remember that if you create a filter for
- a file format that takes a long time to process then your printer may
- sit idle between print jobs even when there are things in the queue.
-
- If you are on a network remember that the filter setups go on the
- print server. One way to avoid running out of filter options is to
- define several logical printers in `/etc/printcap' that all point to the
- same physical one and put each filter in the `if' field of a different
- printcap entry. This has the advantage that you can set the `PRINTER'
- enviroment variable to choose your filter rather than having to specify
- it on the command line each time. One small problem with this is that
- you have no control over the order in which files from separate queues
- are printed.
-
- Another (and these days more common) way to avoid running out of
- possible types is to use magic filters.
-
- File: Printing-HOWTO.info, Node: Magic Filters, Next: Magic Filter Examples, Prev: Many filters, Up: LPR
-
- Magic Filters
- =============
-
- Magic filters deduce their input files' types from `magic numbers'
- (distictive byte patterns at particular offsets). Magic filters are
- usually perl scripts, shell scripts or C programs that simply identify
- the file type then call the appropriate non-magic filter. Blatent plug
- :-) Brian has a generic magic filter bash script that selects the right
- filter to use based on the output of the `file' command. With a
- suitable magic filter (and 3 associated non-magic filters) you can do
- things like:
-
- lpr -d file1.dvi file2.div.Z file3.ps file4.texinfo.gz
-
- (BTW confguring `lpr' to handle texinfo files is getting a bit
- silly).
-
- This is now on the mailserver or at:
- `tsx-11.mit.edu:pub/linux/sources/usr.bin/magic-filter-0.4.tar.gz'
- (Although the release number will possibly change in future).
-
- `apsfilter' is a rather easier to use shell script that requires no
- additional filters and which is pre-configured for HP compatible laser
- printers. This is also available on the mailserver.
-
- An example written in C, which may be easily adapted to most
- installations is available from the printing mail server as `lpr_if.c'.
-
- Magic filters should never specified as `of' as the output filter
- only gets called once if a number of files are printed without a gap.
- There are other more subtle problems too using `of'.
-
- IMHO (Brian) magic filters as `if' are inelegant as they may prevent
- you, say, listing a PostScript or nroff file. (Most people disagree
- with me on this point.)
-
- File: Printing-HOWTO.info, Node: Magic Filter Examples, Prev: Magic Filters, Up: LPR
-
- Magic Filter Examples
- =====================
-
- The following is an example of a magic shell script which should take
- either PostScript or text and deal with it:
-
- #!/bin/sh
- # This is based on a script I received from Scott Doty and which was
- # written by Keith Walker. Keith's script made use of the fact that
- # lpd passes options to if:
- #
- # <if> -w<width> -l<length> -i<indent> -n <user> -h <host> <accountingfile>
- #
- # to print text out well at any size. This one does not. These options
- # are also handy if you want to do your own snazzy header page, much
- # like NeWSPrint from Sun does (although running PostScript through
- # the display server to get it interpreted is a bit much :)
- #
- #
- # gs will reset the printer anyway, so the this text setup doesn't matter.
- # setup should include the escape code for \n conversion, if applicable.
- #
- printf "<printer setup for text printing (escape codes, etc)>"
-
- read first_line
- first_two_chars=`expr $first_line : '\(..\)'`
-
- if [ "$first_two_chars" = "%!" ]; then # it's PostScript
-
- /usr/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=??????? -sOutputFile=- -
-
- else # it's plain text
-
- echo -n $first_line
- cat
- printf "\014"
-
- fi
-
- Note that for the paranoid, shell scripts run as someone other than
- the user are sometimes a security hole, but this is not the case with
- lpd filters as the script's environment is not under the control of the
- potential cracker.
-
- File: Printing-HOWTO.info, Node: Previewing, Next: Ascii Translation, Prev: LPR, Up: Top
-
- Previewing
- **********
-
- These sections describe various ways to preview things under Linux -
- that is, how to view them in a way approximating their final form
- without printing them out.
-
- * Menu:
-
- * ghostview::
- * gspreview::
- * xdvi::
- * xtex::
- * gxditview::
- * non-X previewing::
-
- File: Printing-HOWTO.info, Node: ghostview, Next: gspreview, Prev: Previewing, Up: Previewing
-
- ghostview
- =========
-
- Ghostview, a companion program for `gs', previews PostScript on an X
- display. It also lets you select individual or ranges of pages from a
- PostScript document to print using `lpr'. The new version, 1.5, has
- fixed a few glitches which never bothered me but may make a difference
- to you. It also calls `gs' with the `-dSAFER' option and has a few
- more resource and command-line options relative to 1.4.1. The real
- installation is from:
- `prep.ai.mit.edu:/pub/gnu/ghostview-XXX.tar.gz'
-
- It builds out of the box. Ghostview requires `gs' to work. The new
- version of `gs', 2.6.x, will use X display fonts in an effort to
- improve legibility at the low resolutions of a video monitor (a
- previous failing of this pair relative to commercial display-PostScript
- based systems). This works very well for me at least, at the expense
- of exact character positioning (X fonts have different widths). In
- fact, I thought that Ghostview looks better than Sun's pageview the
- other day when I looked at the same page in oth programs side-by-side.
- Ghostview/Ghostscript also has much more intelligent color handling
- than pageview. You might wish to let `gs' render some Type 1 fonts you
- install instead of using platform fonts (or the awful fonts `gs' comes
- with. To do this while in Ghostview (or in any situation involving the
- X11 driver), place `ghostscript.useExternalFonts: false' in your
- `.Xdefaults' file, and the platform fonts will not be used.
-
- This is part of a message posted to gnu.ghostscript.bug by Tim
- Theisen <ghostview@cs.wisc.edu>:
- (note that the usual Linux X-server, XFree, is simply an enhanced
- version of MIT's effort at an i386 X-server (X386), and does
- contain the X11R5 Type 1 rasterizer which I beleive was
- contributed by IBM.)
-
- Ghostscript now uses the X Toolkit to pick up X Resources. Now
- ghostscript uses the standard X rules that allow more specific
- resources to override less specific ones giving users the full
- power of X resources to control the X11 driver. It also allows
- system administrators to establish an application defaults file
- with resources specific to their ghostscript installation.
-
- The customization choices mentioned in make.doc have been moved
- into X resources and are now configured at run time rather than
- compile time. Sorry, this section of make.doc did not get revised
- for the 2.6.1 release.
-
- If `useBackingPixmap' is set, ghostscript will attempt to allocate
- a backing pixmap. If one cannot be allocated, ghostscript will
- issue a warning and ask for backing store instead. (Since there
- were insufficient resources for a backing pixmap, the X server may
- not provide backing store either.)
-
- Color Handling was totally revamped for gs 2.6.
-
- Ghostscript first checks for a suitable standard colormap. If you
- have static colormap in your X server, it would be best to store a
- standard colormap property on the root window describing the color
- layout. Ghostscript will then be able to take full advantage of
- the device. If you have a standard colormap installed,
- ghostscript will start slightly faster since it does not have to
- allocate colors for a cube or ramp.
-
- If no standard colormap is available, ghostscript will allocate an
- RGB cube or gray ramp. Ghostscript tries for a 5x5x5 cube on a
- color device, and a 128 gray ramp on grayscale devices. It will
- never ask for more than 1/2 of the colors for a RGB cube or gray
- ramp. It also takes into account the number of significant bits
- per pixel. (i.e. It won't ask for 128 gray levels if you only
- have 16 available.)
-
- Ghostscript will attempt to allocate colors that are off the color
- cube/ramp as the picture is being rendered. Ghostscript will keep
- track of 256 dynamic colors. After all these are allocated,
- ghostscript asks the X server directly.
-
- The foreground and background color can be set explicitly. This
- is important for the visually impaired and when using the ghostview
- widget.
-
- Color Resources:
-
- 1. `palette'(`Palette'): Default value: `Color'. Other
- allowable settings: `Grayscale', `Monochrome'. The palette
- resource is used to restrict the palette used for display.
- One can set palette to `Grayscale' or `Monochrome' to see how
- a file would be rendered in grayscale or monochrome on a
- color display. I use it to avoid dithering of gray- scale
- figures on a color display with 4-bit DACs.
-
- 2. `maxGrayRamp'(`MaxGrayRamp'): Default value: 128. Maximum
- number of gray levels that ghostscript will attempt to
- allocate. (It won't try for more than this on an 8-bit
- pseudo color display even if you set it higher.) Set this
- lower if you want a smaller ramp and would prefer ghostscript
- to use dynamic colors.
-
- 3. `maxRGBCube'(`MaxRGBCube'): Default value: 5. Maximum number
- of colors levels that ghostscript will attempt to allocate.
- (It won't try for more than this on an 8-bit pseudo color
- display even if you set it higher.) Set this lower if you
- want a smaller ramp and would prefer ghostscript to use
- dynamic colors.
-
- I believe these values to be a good compromise between dynamic
- allocation and fall back onto a fairly good color cube for
- dithering.
-
- You can use the foreground and background colors to accomplish
- "reverse video". However, if you have a grayscale device, it may
- be better to reverse the gray ramp using the following PostScript
- code fragment:
-
- [{1 exch sub} /exec load currenttransfer /exec load] cvx settransfer
-
- The X11 driver now supports native X11 fonts. If you have
- installed the HP XLFD font extensions into your font or X server.
- Ghostscript will also be able to use platform fonts at rotations
- of 90 degrees, with mirroring, and anamorphic scaling.
-
- The X11 driver does most if its work silently. You can get it to
- report when it is using an X11 font by setting the logExternalFonts
- boolean in your X resources.
-
- The X11 driver is setup to use the standard fonts distributed with
- X11R5. We purchased the Adobe Type Manager and the Adobe Plus
- Pack. These font packages give all the fonts normally found in
- the Apple LaserWriter Plus. The X11 driver is setup to handle
- these fonts as well. (They are a superset of the bitmap fonts
- distributed with X11.)
-
- You may set the regularFonts, symbolFonts, or dinbatFonts resources
- if you have different fonts available. Each font name must have 7
- dashes or it will be ignored. Minimize the use of wildcards to
- promote faster matching. (I once encountered an X server that took
- many seconds to do a font lookup when wildcards were carelessly
- used.)
-
- There is a different list of fonts for each common encoding.
- Regular fonts may be accessed in standard or ISO Latin 1 encoding.
- The bdf files that are distributed with X11 are in the ISO Latin
- 1 encoding. This leaves out the ligatures. Luckily, the
- ligatures are present in the bdf files, but are not given an
- encoding, essentially commenting them out. You can use the
- `fixfont' program from the xproof distribution
- (`Ftp.Cs.Wisc.Edu:/Pub/X/Xproof.Tar.Z', or
- `Ftp.X.Org:/Contrib/Xproof.Tar.Z') to reencode the bdf files and
- build X11 fonts that contain the ligatures (i.e standard encoding).
-
- If you have the Type1 fonts mentioned above, and you installed the
- Type1 rasterizer into you font or X server, you can use the
- appended fonts.scale to name your fonts so that ghostscript can
- find them.
-
- Font resources:
-
- 1. `useExternalFonts'(`UseExternalFonts'): Default value: true.
- This resource controls whether X11 fonts will be used.
-
- 2. `useScalableFonts'(`UseScalableFonts'): Default value: true.
- This resource controls whether scalable fonts will be used.
- If you have an outline scaler in your X server, you should
- have this on. If you have an X terminal, you may get
- slightly better performance with this on. If you have to use
- the X11 bitmap scaler, turn this off. Fonts scaled by the
- bitmap scaler look worse than the default ghostscript fonts.
-
- 3. `logExternalFonts'(`LogExternalFonts'): Default value: false.
- Controls whether to report when X11 fonts are being used.
-
- The following fonts.scale makes all of the fonts of the Adobe Type
- Manager and Adobe Plus pack available in standard and ISO Latin 1
- encoding. (We were able to purchase the above two packages at an
- educational discount price of $150.)
-
- 70
- agw_____.pfb -Adobe-ITC Avant Garde Gothic-Book-r-normal--0-0-0-0-p-0-iso8859-1
- agwo____.pfb -Adobe-ITC Avant Garde Gothic-Book-o-normal--0-0-0-0-p-0-iso8859-1
- agd_____.pfb -Adobe-ITC Avant Garde Gothic-Demi-r-normal--0-0-0-0-p-0-iso8859-1
- agdo____.pfb -Adobe-ITC Avant Garde Gothic-Demi-o-normal--0-0-0-0-p-0-iso8859-1
- bkl_____.pfb -Adobe-ITC Bookman-Light-r-normal--0-0-0-0-p-0-iso8859-1
- bkli____.pfb -Adobe-ITC Bookman-Light-i-normal--0-0-0-0-p-0-iso8859-1
- bkd_____.pfb -Adobe-ITC Bookman-Demi-r-normal--0-0-0-0-p-0-iso8859-1
- bkdi____.pfb -Adobe-ITC Bookman-Demi-i-normal--0-0-0-0-p-0-iso8859-1
- com_____.pfb -Adobe-Courier-Medium-r-normal--0-0-0-0-m-0-iso8859-1
- coo_____.pfb -Adobe-Courier-Medium-o-normal--0-0-0-0-m-0-iso8859-1
- cob_____.pfb -Adobe-Courier-Bold-r-normal--0-0-0-0-m-0-iso8859-1
- cobo____.pfb -Adobe-Courier-Bold-o-normal--0-0-0-0-m-0-iso8859-1
- hv______.pfb -Adobe-Helvetica-Medium-r-normal--0-0-0-0-p-0-iso8859-1
- hvo_____.pfb -Adobe-Helvetica-Medium-o-normal--0-0-0-0-p-0-iso8859-1
- hvb_____.pfb -Adobe-Helvetica-Bold-r-normal--0-0-0-0-p-0-iso8859-1
- hvbo____.pfb -Adobe-Helvetica-Bold-o-normal--0-0-0-0-p-0-iso8859-1
- hvn_____.pfb -Adobe-Helvetica-Medium-r-Narrow--0-0-0-0-p-0-iso8859-1
- hvno____.pfb -Adobe-Helvetica-Medium-o-Narrow--0-0-0-0-p-0-iso8859-1
- hvnb____.pfb -Adobe-Helvetica-Bold-r-Narrow--0-0-0-0-p-0-iso8859-1
- hvnbo___.pfb -Adobe-Helvetica-Bold-o-Narrow--0-0-0-0-p-0-iso8859-1
- ncr_____.pfb -Adobe-New Century Schoolbook-Medium-r-normal--0-0-0-0-p-0-iso8859-1
- nci_____.pfb -Adobe-New Century Schoolbook-Medium-i-normal--0-0-0-0-p-0-iso8859-1
- ncb_____.pfb -Adobe-New Century Schoolbook-Bold-r-normal--0-0-0-0-p-0-iso8859-1
- ncbi____.pfb -Adobe-New Century Schoolbook-Bold-i-normal--0-0-0-0-p-0-iso8859-1
- por_____.pfb -Adobe-Palatino-Medium-r-normal--0-0-0-0-p-0-iso8859-1
- poi_____.pfb -Adobe-Palatino-Medium-i-normal--0-0-0-0-p-0-iso8859-1
- pob_____.pfb -Adobe-Palatino-Bold-r-normal--0-0-0-0-p-0-iso8859-1
- pobi____.pfb -Adobe-Palatino-Bold-i-normal--0-0-0-0-p-0-iso8859-1
- sy______.pfb -Adobe-Symbol-Medium-r-normal--0-0-0-0-p-0-iso8859-1
- tir_____.pfb -Adobe-Times-Medium-r-normal--0-0-0-0-p-0-iso8859-1
- tii_____.pfb -Adobe-Times-Medium-i-normal--0-0-0-0-p-0-iso8859-1
- tib_____.pfb -Adobe-Times-Bold-r-normal--0-0-0-0-p-0-iso8859-1
- tibi____.pfb -Adobe-Times-Bold-i-normal--0-0-0-0-p-0-iso8859-1
- zcmi____.pfb -Adobe-ITC Zapf Chancery-Medium-i-normal--0-0-0-0-p-0-iso8859-1
- zd______.pfb -Adobe-ITC Zapf Dingbats-Medium-r-normal--0-0-0-0-p-0-iso8859-1
- agw_____.pfb -Adobe-ITC Avant Garde Gothic-Book-r-normal--0-0-0-0-p-0-adobe-fontspecific
- agwo____.pfb -Adobe-ITC Avant Garde Gothic-Book-o-normal--0-0-0-0-p-0-adobe-fontspecific
- agd_____.pfb -Adobe-ITC Avant Garde Gothic-Demi-r-normal--0-0-0-0-p-0-adobe-fontspecific
- agdo____.pfb -Adobe-ITC Avant Garde Gothic-Demi-o-normal--0-0-0-0-p-0-adobe-fontspecific
- bkl_____.pfb -Adobe-ITC Bookman-Light-r-normal--0-0-0-0-p-0-adobe-fontspecific
- bkli____.pfb -Adobe-ITC Bookman-Light-i-normal--0-0-0-0-p-0-adobe-fontspecific
- bkd_____.pfb -Adobe-ITC Bookman-Demi-r-normal--0-0-0-0-p-0-adobe-fontspecific
- bkdi____.pfb -Adobe-ITC Bookman-Demi-i-normal--0-0-0-0-p-0-adobe-fontspecific
- com_____.pfb -Adobe-Courier-Medium-r-normal--0-0-0-0-m-0-adobe-fontspecific
- coo_____.pfb -Adobe-Courier-Medium-o-normal--0-0-0-0-m-0-adobe-fontspecific
- cob_____.pfb -Adobe-Courier-Bold-r-normal--0-0-0-0-m-0-adobe-fontspecific
- cobo____.pfb -Adobe-Courier-Bold-o-normal--0-0-0-0-m-0-adobe-fontspecific
- hv______.pfb -Adobe-Helvetica-Medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
- hvo_____.pfb -Adobe-Helvetica-Medium-o-normal--0-0-0-0-p-0-adobe-fontspecific
- hvb_____.pfb -Adobe-Helvetica-Bold-r-normal--0-0-0-0-p-0-adobe-fontspecific
- hvbo____.pfb -Adobe-Helvetica-Bold-o-normal--0-0-0-0-p-0-adobe-fontspecific
- hvn_____.pfb -Adobe-Helvetica-Medium-r-Narrow--0-0-0-0-p-0-adobe-fontspecific
- hvno____.pfb -Adobe-Helvetica-Medium-o-Narrow--0-0-0-0-p-0-adobe-fontspecific
- hvnb____.pfb -Adobe-Helvetica-Bold-r-Narrow--0-0-0-0-p-0-adobe-fontspecific
- hvnbo___.pfb -Adobe-Helvetica-Bold-o-Narrow--0-0-0-0-p-0-adobe-fontspecific
- ncr_____.pfb -Adobe-New Century Schoolbook-Medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
- nci_____.pfb -Adobe-New Century Schoolbook-Medium-i-normal--0-0-0-0-p-0-adobe-fontspecific
- ncb_____.pfb -Adobe-New Century Schoolbook-Bold-r-normal--0-0-0-0-p-0-adobe-fontspecific
- ncbi____.pfb -Adobe-New Century Schoolbook-Bold-i-normal--0-0-0-0-p-0-adobe-fontspecific
- por_____.pfb -Adobe-Palatino-Medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
- poi_____.pfb -Adobe-Palatino-Medium-i-normal--0-0-0-0-p-0-adobe-fontspecific
- pob_____.pfb -Adobe-Palatino-Bold-r-normal--0-0-0-0-p-0-adobe-fontspecific
- pobi____.pfb -Adobe-Palatino-Bold-i-normal--0-0-0-0-p-0-adobe-fontspecific
- sy______.pfb -Adobe-Symbol-Medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
- tir_____.pfb -Adobe-Times-Medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
- tii_____.pfb -Adobe-Times-Medium-i-normal--0-0-0-0-p-0-adobe-fontspecific
- tib_____.pfb -Adobe-Times-Bold-r-normal--0-0-0-0-p-0-adobe-fontspecific
- tibi____.pfb -Adobe-Times-Bold-i-normal--0-0-0-0-p-0-adobe-fontspecific
- zcmi____.pfb -Adobe-ITC Zapf Chancery-Medium-i-normal--0-0-0-0-p-0-adobe-fontspecific
- zd______.pfb -Adobe-ITC Zapf Dingbats-Medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
-
- File: Printing-HOWTO.info, Node: gspreview, Next: xdvi, Prev: ghostview, Up: Previewing
-
- gspreview
- =========
-
- This is another front-end for Ghostscript. I have gotten and built
- it, and actually preferred the user interface, but it had a few bugs.
- It didn't seem as full-featured as ghostview, though. (Not that there
- are all *that* many features in ghostview, but it does its job well).
- `ftp.x.org:/contrib/gspreview...'
-
- File: Printing-HOWTO.info, Node: xdvi, Next: xtex, Prev: gspreview, Up: Previewing
-
- xdvi
- ====
-
- A beautifully legible previewing program for dvi with a handy
- zoom+pan feature. Will not interpret PostScript specials, which are
- understood only by `dvips' (back to the compiler, object file, and now
- linker analogy :-) To view a file, do `xdvi file.dvi'. This comes
- with either TeX or X in most distributions. Either way, you've
- probably got one. If not, look in `ftp.x.org:/contrib/'.
-
- File: Printing-HOWTO.info, Node: xtex, Next: gxditview, Prev: xdvi, Up: Previewing
-
- xtex
- ====
-
- Xtex is similar in purpose to xdvi. I have tried to build it under
- Linux and failed. It is available as:
- `ftp.x.org:/contrib/xtex-2.18.5.tar.z'
-
- File: Printing-HOWTO.info, Node: gxditview, Next: non-X previewing, Prev: xtex, Up: Previewing
-
- gxditview
- =========
-
- Ditview produces a preview version of `troff' source using X fonts.
- `groff -TX100 -mandoc MAN PAGE' will run gxditview to show you a
- typeset version of the man page. `-TX75' is the same thing, but tiny.
- Most distributions don't have a working one at all. A good one comes
- with the source to `groff', which you might want to get anyway for the
- additional drivers (some distributions are missing some, including
- PostScript).
- `prep.ai.mit.edu:/pub/gnu/groff-XXXX.tar.z'
-
- File: Printing-HOWTO.info, Node: non-X previewing, Prev: gxditview, Up: Previewing
-
- non-X previewing
- ================
-
- Ghostscript comes with pc video hardware drivers, but under un*x
- these are not a good thing. However, there are `gs' binaries around
- which will use the Linux VGA library (`svgalib'). The Ghostscript
- device for this is called linux, thus `gs -sDEVICE=linux file.ps' will
- show you an image of the PostScript. The environment variable
- `GSVGAMODE' is important for this. Set it to the nuber of the video
- mode you want, taken from the vga.h which comes with vgalib.
-
- If you need this driver, a patch to put in Linux svgalib is available
- from the printing mail server or as:
- ws105.zfn.uni-bremen.de:/pub/gs261-linuxdriver.sh
- ws105.zfn.uni-bremen.de:/pub/gs261-svgalib.tar.gz
-
- Another possibly different svgalib patch is found in:
- `ftp.cdrom.com:/pub/linux/misc'
-
- The plain vgalib driver is available on Sunsite.
-
- Texmgr is a program which will preview dvi under MGR. I don't
- beleive that it currently works under Linux MGR, but if it does, MGR
- uses sufficiently less memory and disk that this might be an attractive
- option for some.
-
- dvgt is a program which will preview dvi with Linux svgalib, or on
- one of several types of graphics terminals including vt, tek, or a PC
- with MS-Kermit. It is available on sunsite.
-
- File: Printing-HOWTO.info, Node: Ascii Translation, Next: Concept Index, Prev: Previewing, Up: Top
-
- Ascii Translation
- *****************
-
- These sections describe various programs which can generate plain
- ascii from some file formats.
-
- * Menu:
-
- * from TeX::
- * from dvi::
- * from PostScript::
- * from troff::
- * from ascii/latin1::
-
- File: Printing-HOWTO.info, Node: from TeX, Next: from dvi, Prev: Ascii Translation, Up: Ascii Translation
-
- from TeX
- ========
-
- Lametex will generate ascii from TeX source. It is available as:
- `sunsite.unc.edu:/pub/Linux/apps/tex/lametex.tar.z'
-
- LaTeX is used by the Linux Doc Projext to generate text versions of
- their manuals. I don't know where to find it.
-
- File: Printing-HOWTO.info, Node: from dvi, Next: from PostScript, Prev: from TeX, Up: Ascii Translation
-
- from dvi
- ========
-
- `dvi2tty' is a program which will process dvi into text. Aparently,
- it will also make an effort at reproducing graphics as well. I do not
- know where to find it.
-
- File: Printing-HOWTO.info, Node: from PostScript, Next: from troff, Prev: from dvi, Up: Ascii Translation
-
- from PostScript
- ===============
-
- Ghostscript 2.6.1 comes with a script file which will use `gs' to
- extract just the text from a ps file, called `ps2ascii'. (*note
- PostScript::., for information above for where it can be found).
- Further documentation is in the Ghostscript 2.6.1 distribution files
- `gs_2asc.ps' and `use.doc'
-
- File: Printing-HOWTO.info, Node: from troff, Next: from ascii/latin1, Prev: from PostScript, Up: Ascii Translation
-
- from troff
- ==========
-
- groff -Tascii or -Tlatin1 ...
-
- File: Printing-HOWTO.info, Node: from ascii/latin1, Prev: from troff, Up: Ascii Translation
-
- from ascii/latin1
- =================
-
- The GNU program `recode' handles conversion between various forms of
- straight text encoding, ie from Latin-1 to ASCII. This is available on
- prep.ai.mit.edu.
-
- File: Printing-HOWTO.info, Node: Concept Index, Next: Program Index, Prev: Ascii Translation, Up: Top
-
- Concept Index
- *************
-
- * Menu:
-
- * Ascii Translation: Ascii Translation.
- * Authors addresses: Intro.
- * dvi: TeX/dvi.
- * dvi to ascii translation: from dvi.
- * FAX: faxing.
- * fonts: fonts.
- * formatting text: pr.
- * GhostScript device codes: PostScript.
- * hardware and drivers: hardware and drivers.
- * History of the HOWTOs: Intro.
- * latin1 to ascii translation: from ascii/latin1.
- * lpd: LPR.
- * lpr: LPR.
- * PostScript: PostScript.
- * PostScript to ascii translation: from PostScript.
- * PostScript utilities: PostScript utilities.
- * Previewing: Previewing.
- * Previewing PostScript: ghostview.
- * printcap: The important files.
- * printing man pages: *roff.
- * printing text: text.
- * remote printing: lpr over a network.
- * remote printing: Remote Printing Vs. Local Printing.
- * roff: *roff.
- * roff to ascii translation: from troff.
- * Setting up print services: Setting up print services.
- * TeX to ascii translation: from TeX.
- * Text to postscript: Printing text via PostScript.
- * Troubleshooting: Troubleshooting.
-
- File: Printing-HOWTO.info, Node: Program Index, Prev: Concept Index, Up: Top
-
- Program Index
- *************
-
- * Menu:
-
- * a2ps: a2ps.
- * cat: text.
- * dvi2tty: from dvi.
- * dvilj: dvilj.
- * dvips: dvips.
- * efax: faxing.
- * enscript: enscript.
- * eps: eps.
- * flexfax: faxing.
- * ghostscript: PostScript.
- * ghoutview: ghostview.
- * groff: from troff.
- * groff: *roff.
- * gs: PostScript.
- * gslp: gslp.
- * gspreview: gspreview.
- * gxditview: gxditview.
- * Lametex: from TeX.
- * lpc: The lpc command.
- * lpq: The lpq command.
- * lpr: The lpr command.
- * lprm: The lprm command.
- * man-pl: *roff.
- * mgetty: faxing.
- * mpage: mpage.
- * nenscript: enscript.
- * netfax: faxing.
- * pr: pr.
- * ps2ascii: from PostScript.
- * recode: from ascii/latin1.
- * sendfax: faxing.
- * tkinfo: Intro.
- * tunelp: hardware and drivers.
- * xdvi: xdvi.
- * xtex: xtex.
-
-
-