home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / HOWTO / OTHER-FO / PRINTING.INF / PRINTING / Printing-HOWTO.info-3 < prev    next >
Encoding:
GNU Info File  |  1994-02-20  |  29.6 KB  |  671 lines

  1. This is Info file Printing-HOWTO.info, produced by Makeinfo-1.55 from
  2. the input file printing.texinfo.
  3.  
  4.    A guide to printing and previewing files under the Linux operating
  5. system.
  6.  
  7.    Copyright (C) 1994 by Grant Taylor and Brian McCauley
  8.  
  9. 
  10. File: Printing-HOWTO.info,  Node: Filters for given printers,  Next: Programs that do not read STDIN,  Prev: Output filters,  Up: LPR
  11.  
  12. Getting filters for given printers
  13. ==================================
  14.  
  15.    From: B.A.McCauley@bham.ac.uk (Brian McCauley)
  16.  
  17.    Because writing a filter usually takes about 10 minutes once you've
  18. found the right program (`gs', `dvilj' etc.) there's little call for
  19. ftp archives of printer filters but we are thinking of creating an
  20. extensive example file to go with this document.
  21.  
  22.    If you already have a program to print, say, DVI on your printer by
  23. some mechanism then making it into a filter is usually a matter of
  24. writting trivial shell script *Note Writing lpd filters::. If the
  25. program you are using insists on reading a names file as input see the
  26. next question. Text mode filters are trivial too (see this HOWTO)
  27. unless you want lpr to have a choice of fonts in which case they are
  28. slightly harder than trivial.  You will probably want to insert and
  29. `echo -ne' command at the beginning and end of your filter to set up
  30. the font etc to your liking.
  31.  
  32. 
  33. File: Printing-HOWTO.info,  Node: Programs that do not read STDIN,  Next: Many filters,  Prev: Filters for given printers,  Up: LPR
  34.  
  35. Filters from programs that won't read STDIN
  36. ===========================================
  37.  
  38.    Some of the programs that are used in writing `lpd' filters are not
  39. capable of taking their input from their standard input. For example
  40. `dvilj2p' insists on a named file as its input (and what's more expects
  41. one with a `.dvi' suffix) so do this:
  42.  
  43.      #!/bin/sh
  44.      ln -s /proc/self/fd/0 /tmp/$$.dvi
  45.      dvilj2p /tmp/$$
  46.      rm /tmp/$$.dvi
  47.  
  48.    Note: If it wasn't for the fact that `dvilj2p' adds a `.dvi' suffix
  49. you wouldn't need the temporary symlink and could just specify
  50. `/proc/self/fd/0' directly. People who use this trick often usually
  51. permanently `ln -s /proc/self/fd/0 /dev/stdin'. If you're highly
  52. security concious and don't allow access to `/proc' you'll need to
  53. create a temporary file.
  54.  
  55. 
  56. File: Printing-HOWTO.info,  Node: Many filters,  Next: Magic Filters,  Prev: Programs that do not read STDIN,  Up: LPR
  57.  
  58. Having many filters
  59. ===================
  60.  
  61.    Historically the `lpr' command was created to support a finite set
  62. of possible file types. You can, in fact, use any of the filters for any
  63. reason. If you're never going to use Benson Varian raster files you
  64. could use the `-v' switch for GIF files. You could even use `-d' for
  65. low res and `-v' for high res. Remember that if you create a filter for
  66. a file format that takes a long time to process then your printer may
  67. sit idle between print jobs even when there are things in the queue.
  68.  
  69.    If you are on a network remember that the filter setups go on the
  70. print server.  One way to avoid running out of filter options is to
  71. define several logical printers in `/etc/printcap' that all point to the
  72. same physical one and put each filter in the `if' field of a different
  73. printcap entry. This has the advantage that you can set the `PRINTER'
  74. enviroment variable to choose your filter rather than having to specify
  75. it on the command line each time. One small problem with this is that
  76. you have no control over the order in which files from separate queues
  77. are printed.
  78.  
  79.    Another (and these days more common) way to avoid running out of
  80. possible types is to use magic filters.
  81.  
  82. 
  83. File: Printing-HOWTO.info,  Node: Magic Filters,  Next: Magic Filter Examples,  Prev: Many filters,  Up: LPR
  84.  
  85. Magic Filters
  86. =============
  87.  
  88.    Magic filters deduce their input files' types from `magic numbers'
  89. (distictive byte patterns at particular offsets).  Magic filters are
  90. usually perl scripts, shell scripts or C programs that simply identify
  91. the file type then call the appropriate non-magic filter. Blatent plug
  92. :-) Brian has a generic magic filter bash script that selects the right
  93. filter to use based on the output of the `file' command. With a
  94. suitable magic filter (and 3 associated non-magic filters) you can do
  95. things like:
  96.  
  97.      lpr -d file1.dvi file2.div.Z file3.ps file4.texinfo.gz
  98.  
  99.    (BTW confguring `lpr' to handle texinfo files is getting a bit
  100. silly).
  101.  
  102.    This is now on the mailserver or at:
  103. `tsx-11.mit.edu:pub/linux/sources/usr.bin/magic-filter-0.4.tar.gz'
  104. (Although the release number will possibly change in future).
  105.  
  106.    `apsfilter' is a rather easier to use shell script that requires no
  107. additional filters and which is pre-configured for HP compatible laser
  108. printers. This is also available on the mailserver.
  109.  
  110.    An example written in C, which may be easily adapted to most
  111. installations is available from the printing mail server as `lpr_if.c'.
  112.  
  113.    Magic filters should never specified as `of' as the output filter
  114. only gets called once if a number of files are printed without a gap.
  115. There are other more subtle problems too using `of'.
  116.  
  117.    IMHO (Brian) magic filters as `if' are inelegant as they may prevent
  118. you, say, listing a PostScript or nroff file. (Most people disagree
  119. with me on this point.)
  120.  
  121. 
  122. File: Printing-HOWTO.info,  Node: Magic Filter Examples,  Prev: Magic Filters,  Up: LPR
  123.  
  124. Magic Filter Examples
  125. =====================
  126.  
  127.    The following is an example of a magic shell script which should take
  128. either PostScript or text and deal with it:
  129.  
  130.      #!/bin/sh
  131.      # This is based on a script I received from Scott Doty and which was
  132.      # written by Keith Walker.  Keith's script made use of the fact that
  133.      # lpd passes options to if:
  134.      #
  135.      #  <if> -w<width> -l<length> -i<indent> -n <user> -h <host> <accountingfile>
  136.      #
  137.      # to print text out well at any size.  This one does not.  These options
  138.      # are also handy if you want to do your own snazzy header page, much
  139.      # like NeWSPrint from Sun does (although running PostScript through
  140.      # the display server to get it interpreted is a bit much :)
  141.      #
  142.      #
  143.      # gs will reset the printer anyway, so the this text setup doesn't matter.
  144.      # setup should include the escape code for \n conversion, if applicable.
  145.      #
  146.      printf "<printer setup for text printing (escape codes, etc)>"
  147.      
  148.      read first_line
  149.      first_two_chars=`expr $first_line : '\(..\)'`
  150.      
  151.      if [ "$first_two_chars" = "%!" ]; then # it's PostScript
  152.      
  153.              /usr/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=??????? -sOutputFile=- -
  154.      
  155.      else # it's plain text
  156.      
  157.              echo -n $first_line
  158.              cat
  159.              printf "\014"
  160.      
  161.      fi
  162.  
  163.    Note that for the paranoid, shell scripts run as someone other than
  164. the user are sometimes a security hole, but this is not the case with
  165. lpd filters as the script's environment is not under the control of the
  166. potential cracker.
  167.  
  168. 
  169. File: Printing-HOWTO.info,  Node: Previewing,  Next: Ascii Translation,  Prev: LPR,  Up: Top
  170.  
  171. Previewing
  172. **********
  173.  
  174.    These sections describe various ways to preview things under Linux -
  175. that is, how to view them in a way approximating their final form
  176. without printing them out.
  177.  
  178. * Menu:
  179.  
  180. * ghostview::
  181. * gspreview::
  182. * xdvi::
  183. * xtex::
  184. * gxditview::
  185. * non-X previewing::
  186.  
  187. 
  188. File: Printing-HOWTO.info,  Node: ghostview,  Next: gspreview,  Prev: Previewing,  Up: Previewing
  189.  
  190. ghostview
  191. =========
  192.  
  193.    Ghostview, a companion program for `gs', previews PostScript on an X
  194. display.  It also lets you select individual or ranges of pages from a
  195. PostScript document to print using `lpr'.  The new version, 1.5, has
  196. fixed a few glitches which never bothered me but may make a difference
  197. to you.  It also calls `gs' with the `-dSAFER' option and has a few
  198. more resource and command-line options relative to 1.4.1.  The real
  199. installation is from:
  200. `prep.ai.mit.edu:/pub/gnu/ghostview-XXX.tar.gz'
  201.  
  202.    It builds out of the box.  Ghostview requires `gs' to work.  The new
  203. version of `gs', 2.6.x, will use X display fonts in an effort to
  204. improve legibility at the low resolutions of a video monitor (a
  205. previous failing of this pair relative to commercial display-PostScript
  206. based systems).  This works very well for me at least, at the expense
  207. of exact character positioning (X fonts have different widths).  In
  208. fact, I thought that Ghostview looks better than Sun's pageview the
  209. other day when I looked at the same page in oth programs side-by-side.
  210. Ghostview/Ghostscript also has much more intelligent color handling
  211. than pageview.  You might wish to let `gs' render some Type 1 fonts you
  212. install instead of using platform fonts (or the awful fonts `gs' comes
  213. with.  To do this while in Ghostview (or in any situation involving the
  214. X11 driver), place `ghostscript.useExternalFonts: false' in your
  215. `.Xdefaults' file, and the platform fonts will not be used.
  216.  
  217.    This is part of a message posted to gnu.ghostscript.bug by Tim
  218. Theisen <ghostview@cs.wisc.edu>:
  219.      (note that the usual Linux X-server, XFree, is simply an enhanced
  220.      version of MIT's effort at an i386 X-server (X386), and does
  221.      contain the X11R5 Type 1 rasterizer which I beleive was
  222.      contributed by IBM.)
  223.  
  224.      Ghostscript now uses the X Toolkit to pick up X Resources.  Now
  225.      ghostscript uses the standard X rules that allow more specific
  226.      resources to override less specific ones giving users the full
  227.      power of X resources to control the X11 driver.  It also allows
  228.      system administrators to establish an application defaults file
  229.      with resources specific to their ghostscript installation.
  230.  
  231.      The customization choices mentioned in make.doc have been moved
  232.      into X resources and are now configured at run time rather than
  233.      compile time.  Sorry, this section of make.doc did not get revised
  234.      for the 2.6.1 release.
  235.  
  236.      If `useBackingPixmap' is set, ghostscript will attempt to allocate
  237.      a backing pixmap.  If one cannot be allocated, ghostscript will
  238.      issue a warning and ask for backing store instead.  (Since there
  239.      were insufficient resources for a backing pixmap, the X server may
  240.      not provide backing store either.)
  241.  
  242.      Color Handling was totally revamped for gs 2.6.
  243.  
  244.      Ghostscript first checks for a suitable standard colormap.  If you
  245.      have static colormap in your X server, it would be best to store a
  246.      standard colormap property on the root window describing the color
  247.      layout.  Ghostscript will then be able to take full advantage of
  248.      the device.  If you have a standard colormap installed,
  249.      ghostscript will start slightly faster since it does not have to
  250.      allocate colors for a cube or ramp.
  251.  
  252.      If no standard colormap is available, ghostscript will allocate an
  253.      RGB cube or gray ramp.  Ghostscript tries for a 5x5x5 cube on a
  254.      color device, and a 128 gray ramp on grayscale devices.  It will
  255.      never ask for more than 1/2 of the colors for a RGB cube or gray
  256.      ramp.  It also takes into account the number of significant bits
  257.      per pixel.  (i.e.  It won't ask for 128 gray levels if you only
  258.      have 16 available.)
  259.  
  260.      Ghostscript will attempt to allocate colors that are off the color
  261.      cube/ramp as the picture is being rendered.  Ghostscript will keep
  262.      track of 256 dynamic colors.  After all these are allocated,
  263.      ghostscript asks the X server directly.
  264.  
  265.      The foreground and background color can be set explicitly.  This
  266.      is important for the visually impaired and when using the ghostview
  267.      widget.
  268.  
  269.      Color Resources:
  270.  
  271.        1. `palette'(`Palette'): Default value: `Color'.  Other
  272.           allowable settings: `Grayscale', `Monochrome'.  The palette
  273.           resource is used to restrict the palette used for display.
  274.           One can set palette to `Grayscale' or `Monochrome' to see how
  275.           a file would be rendered in grayscale or monochrome on a
  276.           color display.  I use it to avoid dithering of gray- scale
  277.           figures on a color display with 4-bit DACs.
  278.  
  279.        2. `maxGrayRamp'(`MaxGrayRamp'): Default value: 128.  Maximum
  280.           number of gray levels that ghostscript will attempt to
  281.           allocate.  (It won't try for more than this on an 8-bit
  282.           pseudo color display even if you set it higher.)  Set this
  283.           lower if you want a smaller ramp and would prefer ghostscript
  284.           to use dynamic colors.
  285.  
  286.        3. `maxRGBCube'(`MaxRGBCube'): Default value: 5.  Maximum number
  287.           of colors levels that ghostscript will attempt to allocate.
  288.           (It won't try for more than this on an 8-bit pseudo color
  289.           display even if you set it higher.)  Set this lower if you
  290.           want a smaller ramp and would prefer ghostscript to use
  291.           dynamic colors.
  292.  
  293.      I believe these values to be a good compromise between dynamic
  294.      allocation and fall back onto a fairly good color cube for
  295.      dithering.
  296.  
  297.      You can use the foreground and background colors to accomplish
  298.      "reverse video".  However, if you have a grayscale device, it may
  299.      be better to reverse the gray ramp using the following PostScript
  300.      code fragment:
  301.  
  302.           [{1 exch sub} /exec load currenttransfer /exec load] cvx settransfer
  303.  
  304.      The X11 driver now supports native X11 fonts.  If you have
  305.      installed the HP XLFD font extensions into your font or X server.
  306.      Ghostscript will also be able to use platform fonts at rotations
  307.      of 90 degrees, with mirroring, and anamorphic scaling.
  308.  
  309.      The X11 driver does most if its work silently.  You can get it to
  310.      report when it is using an X11 font by setting the logExternalFonts
  311.      boolean in your X resources.
  312.  
  313.      The X11 driver is setup to use the standard fonts distributed with
  314.      X11R5.  We purchased the Adobe Type Manager and the Adobe Plus
  315.      Pack.  These font packages give all the fonts normally found in
  316.      the Apple LaserWriter Plus.  The X11 driver is setup to handle
  317.      these fonts as well.  (They are a superset of the bitmap fonts
  318.      distributed with X11.)
  319.  
  320.      You may set the regularFonts, symbolFonts, or dinbatFonts resources
  321.      if you have different fonts available.  Each font name must have 7
  322.      dashes or it will be ignored.  Minimize the use of wildcards to
  323.      promote faster matching.  (I once encountered an X server that took
  324.      many seconds to do a font lookup when wildcards were carelessly
  325.      used.)
  326.  
  327.      There is a different list of fonts for each common encoding.
  328.      Regular fonts may be accessed in standard or ISO Latin 1 encoding.
  329.      The bdf files that are distributed with X11 are in the ISO Latin
  330.      1 encoding.  This leaves out the ligatures.  Luckily, the
  331.      ligatures are present in the bdf files, but are not given an
  332.      encoding, essentially commenting them out.  You can use the
  333.      `fixfont' program from the xproof distribution
  334.      (`Ftp.Cs.Wisc.Edu:/Pub/X/Xproof.Tar.Z', or
  335.      `Ftp.X.Org:/Contrib/Xproof.Tar.Z') to reencode the bdf files and
  336.      build X11 fonts that contain the ligatures (i.e standard encoding).
  337.  
  338.      If you have the Type1 fonts mentioned above, and you installed the
  339.      Type1 rasterizer into you font or X server, you can use the
  340.      appended fonts.scale to name your fonts so that ghostscript can
  341.      find them.
  342.  
  343.      Font resources:
  344.  
  345.        1. `useExternalFonts'(`UseExternalFonts'): Default value: true.
  346.           This resource controls whether X11 fonts will be used.
  347.  
  348.        2. `useScalableFonts'(`UseScalableFonts'): Default value: true.
  349.           This resource controls whether scalable fonts will be used.
  350.           If you have an outline scaler in your X server, you should
  351.           have this on.  If you have an X terminal, you may get
  352.           slightly better performance with this on.  If you have to use
  353.           the X11 bitmap scaler, turn this off.  Fonts scaled by the
  354.           bitmap scaler look worse than the default ghostscript fonts.
  355.  
  356.        3. `logExternalFonts'(`LogExternalFonts'): Default value: false.
  357.           Controls whether to report when X11 fonts are being used.
  358.  
  359.      The following fonts.scale makes all of the fonts of the Adobe Type
  360.      Manager and Adobe Plus pack available in standard and ISO Latin 1
  361.      encoding.  (We were able to purchase the above two packages at an
  362.      educational discount price of $150.)
  363.  
  364. 70
  365. agw_____.pfb -Adobe-ITC Avant Garde Gothic-Book-r-normal--0-0-0-0-p-0-iso8859-1
  366. agwo____.pfb -Adobe-ITC Avant Garde Gothic-Book-o-normal--0-0-0-0-p-0-iso8859-1
  367. agd_____.pfb -Adobe-ITC Avant Garde Gothic-Demi-r-normal--0-0-0-0-p-0-iso8859-1
  368. agdo____.pfb -Adobe-ITC Avant Garde Gothic-Demi-o-normal--0-0-0-0-p-0-iso8859-1
  369. bkl_____.pfb -Adobe-ITC Bookman-Light-r-normal--0-0-0-0-p-0-iso8859-1
  370. bkli____.pfb -Adobe-ITC Bookman-Light-i-normal--0-0-0-0-p-0-iso8859-1
  371. bkd_____.pfb -Adobe-ITC Bookman-Demi-r-normal--0-0-0-0-p-0-iso8859-1
  372. bkdi____.pfb -Adobe-ITC Bookman-Demi-i-normal--0-0-0-0-p-0-iso8859-1
  373. com_____.pfb -Adobe-Courier-Medium-r-normal--0-0-0-0-m-0-iso8859-1
  374. coo_____.pfb -Adobe-Courier-Medium-o-normal--0-0-0-0-m-0-iso8859-1
  375. cob_____.pfb -Adobe-Courier-Bold-r-normal--0-0-0-0-m-0-iso8859-1
  376. cobo____.pfb -Adobe-Courier-Bold-o-normal--0-0-0-0-m-0-iso8859-1
  377. hv______.pfb -Adobe-Helvetica-Medium-r-normal--0-0-0-0-p-0-iso8859-1
  378. hvo_____.pfb -Adobe-Helvetica-Medium-o-normal--0-0-0-0-p-0-iso8859-1
  379. hvb_____.pfb -Adobe-Helvetica-Bold-r-normal--0-0-0-0-p-0-iso8859-1
  380. hvbo____.pfb -Adobe-Helvetica-Bold-o-normal--0-0-0-0-p-0-iso8859-1
  381. hvn_____.pfb -Adobe-Helvetica-Medium-r-Narrow--0-0-0-0-p-0-iso8859-1
  382. hvno____.pfb -Adobe-Helvetica-Medium-o-Narrow--0-0-0-0-p-0-iso8859-1
  383. hvnb____.pfb -Adobe-Helvetica-Bold-r-Narrow--0-0-0-0-p-0-iso8859-1
  384. hvnbo___.pfb -Adobe-Helvetica-Bold-o-Narrow--0-0-0-0-p-0-iso8859-1
  385. ncr_____.pfb -Adobe-New Century Schoolbook-Medium-r-normal--0-0-0-0-p-0-iso8859-1
  386. nci_____.pfb -Adobe-New Century Schoolbook-Medium-i-normal--0-0-0-0-p-0-iso8859-1
  387. ncb_____.pfb -Adobe-New Century Schoolbook-Bold-r-normal--0-0-0-0-p-0-iso8859-1
  388. ncbi____.pfb -Adobe-New Century Schoolbook-Bold-i-normal--0-0-0-0-p-0-iso8859-1
  389. por_____.pfb -Adobe-Palatino-Medium-r-normal--0-0-0-0-p-0-iso8859-1
  390. poi_____.pfb -Adobe-Palatino-Medium-i-normal--0-0-0-0-p-0-iso8859-1
  391. pob_____.pfb -Adobe-Palatino-Bold-r-normal--0-0-0-0-p-0-iso8859-1
  392. pobi____.pfb -Adobe-Palatino-Bold-i-normal--0-0-0-0-p-0-iso8859-1
  393. sy______.pfb -Adobe-Symbol-Medium-r-normal--0-0-0-0-p-0-iso8859-1
  394. tir_____.pfb -Adobe-Times-Medium-r-normal--0-0-0-0-p-0-iso8859-1
  395. tii_____.pfb -Adobe-Times-Medium-i-normal--0-0-0-0-p-0-iso8859-1
  396. tib_____.pfb -Adobe-Times-Bold-r-normal--0-0-0-0-p-0-iso8859-1
  397. tibi____.pfb -Adobe-Times-Bold-i-normal--0-0-0-0-p-0-iso8859-1
  398. zcmi____.pfb -Adobe-ITC Zapf Chancery-Medium-i-normal--0-0-0-0-p-0-iso8859-1
  399. zd______.pfb -Adobe-ITC Zapf Dingbats-Medium-r-normal--0-0-0-0-p-0-iso8859-1
  400. agw_____.pfb -Adobe-ITC Avant Garde Gothic-Book-r-normal--0-0-0-0-p-0-adobe-fontspecific
  401. agwo____.pfb -Adobe-ITC Avant Garde Gothic-Book-o-normal--0-0-0-0-p-0-adobe-fontspecific
  402. agd_____.pfb -Adobe-ITC Avant Garde Gothic-Demi-r-normal--0-0-0-0-p-0-adobe-fontspecific
  403. agdo____.pfb -Adobe-ITC Avant Garde Gothic-Demi-o-normal--0-0-0-0-p-0-adobe-fontspecific
  404. bkl_____.pfb -Adobe-ITC Bookman-Light-r-normal--0-0-0-0-p-0-adobe-fontspecific
  405. bkli____.pfb -Adobe-ITC Bookman-Light-i-normal--0-0-0-0-p-0-adobe-fontspecific
  406. bkd_____.pfb -Adobe-ITC Bookman-Demi-r-normal--0-0-0-0-p-0-adobe-fontspecific
  407. bkdi____.pfb -Adobe-ITC Bookman-Demi-i-normal--0-0-0-0-p-0-adobe-fontspecific
  408. com_____.pfb -Adobe-Courier-Medium-r-normal--0-0-0-0-m-0-adobe-fontspecific
  409. coo_____.pfb -Adobe-Courier-Medium-o-normal--0-0-0-0-m-0-adobe-fontspecific
  410. cob_____.pfb -Adobe-Courier-Bold-r-normal--0-0-0-0-m-0-adobe-fontspecific
  411. cobo____.pfb -Adobe-Courier-Bold-o-normal--0-0-0-0-m-0-adobe-fontspecific
  412. hv______.pfb -Adobe-Helvetica-Medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
  413. hvo_____.pfb -Adobe-Helvetica-Medium-o-normal--0-0-0-0-p-0-adobe-fontspecific
  414. hvb_____.pfb -Adobe-Helvetica-Bold-r-normal--0-0-0-0-p-0-adobe-fontspecific
  415. hvbo____.pfb -Adobe-Helvetica-Bold-o-normal--0-0-0-0-p-0-adobe-fontspecific
  416. hvn_____.pfb -Adobe-Helvetica-Medium-r-Narrow--0-0-0-0-p-0-adobe-fontspecific
  417. hvno____.pfb -Adobe-Helvetica-Medium-o-Narrow--0-0-0-0-p-0-adobe-fontspecific
  418. hvnb____.pfb -Adobe-Helvetica-Bold-r-Narrow--0-0-0-0-p-0-adobe-fontspecific
  419. hvnbo___.pfb -Adobe-Helvetica-Bold-o-Narrow--0-0-0-0-p-0-adobe-fontspecific
  420. ncr_____.pfb -Adobe-New Century Schoolbook-Medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
  421. nci_____.pfb -Adobe-New Century Schoolbook-Medium-i-normal--0-0-0-0-p-0-adobe-fontspecific
  422. ncb_____.pfb -Adobe-New Century Schoolbook-Bold-r-normal--0-0-0-0-p-0-adobe-fontspecific
  423. ncbi____.pfb -Adobe-New Century Schoolbook-Bold-i-normal--0-0-0-0-p-0-adobe-fontspecific
  424. por_____.pfb -Adobe-Palatino-Medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
  425. poi_____.pfb -Adobe-Palatino-Medium-i-normal--0-0-0-0-p-0-adobe-fontspecific
  426. pob_____.pfb -Adobe-Palatino-Bold-r-normal--0-0-0-0-p-0-adobe-fontspecific
  427. pobi____.pfb -Adobe-Palatino-Bold-i-normal--0-0-0-0-p-0-adobe-fontspecific
  428. sy______.pfb -Adobe-Symbol-Medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
  429. tir_____.pfb -Adobe-Times-Medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
  430. tii_____.pfb -Adobe-Times-Medium-i-normal--0-0-0-0-p-0-adobe-fontspecific
  431. tib_____.pfb -Adobe-Times-Bold-r-normal--0-0-0-0-p-0-adobe-fontspecific
  432. tibi____.pfb -Adobe-Times-Bold-i-normal--0-0-0-0-p-0-adobe-fontspecific
  433. zcmi____.pfb -Adobe-ITC Zapf Chancery-Medium-i-normal--0-0-0-0-p-0-adobe-fontspecific
  434. zd______.pfb -Adobe-ITC Zapf Dingbats-Medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
  435.  
  436. 
  437. File: Printing-HOWTO.info,  Node: gspreview,  Next: xdvi,  Prev: ghostview,  Up: Previewing
  438.  
  439. gspreview
  440. =========
  441.  
  442.    This is another front-end for Ghostscript.  I have gotten and built
  443. it, and actually preferred the user interface, but it had a few bugs.
  444. It didn't seem as full-featured as ghostview, though.  (Not that there
  445. are all *that* many features in ghostview, but it does its job well).
  446. `ftp.x.org:/contrib/gspreview...'
  447.  
  448. 
  449. File: Printing-HOWTO.info,  Node: xdvi,  Next: xtex,  Prev: gspreview,  Up: Previewing
  450.  
  451. xdvi
  452. ====
  453.  
  454.    A beautifully legible previewing program for dvi with a handy
  455. zoom+pan feature.  Will not interpret PostScript specials, which are
  456. understood only by `dvips' (back to the compiler, object file, and now
  457. linker analogy :-)  To view a file, do `xdvi file.dvi'.  This comes
  458. with either TeX or X in most distributions.  Either way, you've
  459. probably got one.  If not, look in `ftp.x.org:/contrib/'.
  460.  
  461. 
  462. File: Printing-HOWTO.info,  Node: xtex,  Next: gxditview,  Prev: xdvi,  Up: Previewing
  463.  
  464. xtex
  465. ====
  466.  
  467.    Xtex is similar in purpose to xdvi.  I have tried to build it under
  468. Linux and failed.  It is available as:
  469. `ftp.x.org:/contrib/xtex-2.18.5.tar.z'
  470.  
  471. 
  472. File: Printing-HOWTO.info,  Node: gxditview,  Next: non-X previewing,  Prev: xtex,  Up: Previewing
  473.  
  474. gxditview
  475. =========
  476.  
  477.    Ditview produces a preview version of `troff' source using X fonts.
  478. `groff -TX100 -mandoc MAN PAGE' will run gxditview to show you a
  479. typeset version of the man page.  `-TX75' is the same thing, but tiny.
  480. Most distributions don't have a working one at all.  A good one comes
  481. with the source to `groff', which you might want to get anyway for the
  482. additional drivers (some distributions are missing some, including
  483. PostScript).
  484. `prep.ai.mit.edu:/pub/gnu/groff-XXXX.tar.z'
  485.  
  486. 
  487. File: Printing-HOWTO.info,  Node: non-X previewing,  Prev: gxditview,  Up: Previewing
  488.  
  489. non-X previewing
  490. ================
  491.  
  492.    Ghostscript comes with pc video hardware drivers, but under un*x
  493. these are not a good thing.  However, there are `gs' binaries around
  494. which will use the Linux VGA library (`svgalib').  The Ghostscript
  495. device for this is called linux, thus `gs -sDEVICE=linux file.ps' will
  496. show you an image of the PostScript.  The environment variable
  497. `GSVGAMODE' is important for this.  Set it to the nuber of the video
  498. mode you want, taken from the vga.h which comes with vgalib.
  499.  
  500.    If you need this driver, a patch to put in Linux svgalib is available
  501. from the printing mail server or as:
  502.      ws105.zfn.uni-bremen.de:/pub/gs261-linuxdriver.sh
  503.      ws105.zfn.uni-bremen.de:/pub/gs261-svgalib.tar.gz
  504.  
  505.    Another possibly different svgalib patch is found in:
  506. `ftp.cdrom.com:/pub/linux/misc'
  507.  
  508.    The plain vgalib driver is available on Sunsite.
  509.  
  510.    Texmgr is a program which will preview dvi under MGR.  I don't
  511. beleive that it currently works under Linux MGR, but if it does, MGR
  512. uses sufficiently less memory and disk that this might be an attractive
  513. option for some.
  514.  
  515.    dvgt is a program which will preview dvi with Linux svgalib, or on
  516. one of several types of graphics terminals including vt, tek, or a PC
  517. with MS-Kermit.  It is available on sunsite.
  518.  
  519. 
  520. File: Printing-HOWTO.info,  Node: Ascii Translation,  Next: Concept Index,  Prev: Previewing,  Up: Top
  521.  
  522. Ascii Translation
  523. *****************
  524.  
  525.    These sections describe various programs which can generate plain
  526. ascii from some file formats.
  527.  
  528. * Menu:
  529.  
  530. * from TeX::
  531. * from dvi::
  532. * from PostScript::
  533. * from troff::
  534. * from ascii/latin1::
  535.  
  536. 
  537. File: Printing-HOWTO.info,  Node: from TeX,  Next: from dvi,  Prev: Ascii Translation,  Up: Ascii Translation
  538.  
  539. from TeX
  540. ========
  541.  
  542.    Lametex will generate ascii from TeX source.  It is available as:
  543. `sunsite.unc.edu:/pub/Linux/apps/tex/lametex.tar.z'
  544.  
  545.    LaTeX is used by the Linux Doc Projext to generate text versions of
  546. their manuals.  I don't know where to find it.
  547.  
  548. 
  549. File: Printing-HOWTO.info,  Node: from dvi,  Next: from PostScript,  Prev: from TeX,  Up: Ascii Translation
  550.  
  551. from dvi
  552. ========
  553.  
  554.    `dvi2tty' is a program which will process dvi into text.  Aparently,
  555. it will also make an effort at reproducing graphics as well.  I do not
  556. know where to find it.
  557.  
  558. 
  559. File: Printing-HOWTO.info,  Node: from PostScript,  Next: from troff,  Prev: from dvi,  Up: Ascii Translation
  560.  
  561. from PostScript
  562. ===============
  563.  
  564.    Ghostscript 2.6.1 comes with a script file which will use `gs' to
  565. extract just the text from a ps file, called `ps2ascii'.  (*note
  566. PostScript::., for information above for where it can be found).
  567. Further documentation is in the Ghostscript 2.6.1 distribution files
  568. `gs_2asc.ps' and `use.doc'
  569.  
  570. 
  571. File: Printing-HOWTO.info,  Node: from troff,  Next: from ascii/latin1,  Prev: from PostScript,  Up: Ascii Translation
  572.  
  573. from troff
  574. ==========
  575.  
  576.      groff -Tascii or -Tlatin1 ...
  577.  
  578. 
  579. File: Printing-HOWTO.info,  Node: from ascii/latin1,  Prev: from troff,  Up: Ascii Translation
  580.  
  581. from ascii/latin1
  582. =================
  583.  
  584.    The GNU program `recode' handles conversion between various forms of
  585. straight text encoding, ie from Latin-1 to ASCII.  This is available on
  586. prep.ai.mit.edu.
  587.  
  588. 
  589. File: Printing-HOWTO.info,  Node: Concept Index,  Next: Program Index,  Prev: Ascii Translation,  Up: Top
  590.  
  591. Concept Index
  592. *************
  593.  
  594. * Menu:
  595.  
  596. * Ascii Translation:                    Ascii Translation.
  597. * Authors addresses:                    Intro.
  598. * dvi:                                  TeX/dvi.
  599. * dvi to ascii translation:             from dvi.
  600. * FAX:                                  faxing.
  601. * fonts:                                fonts.
  602. * formatting text:                      pr.
  603. * GhostScript device codes:             PostScript.
  604. * hardware and drivers:                 hardware and drivers.
  605. * History of the HOWTOs:                Intro.
  606. * latin1 to ascii translation:          from ascii/latin1.
  607. * lpd:                                  LPR.
  608. * lpr:                                  LPR.
  609. * PostScript:                           PostScript.
  610. * PostScript to ascii translation:      from PostScript.
  611. * PostScript utilities:                 PostScript utilities.
  612. * Previewing:                           Previewing.
  613. * Previewing PostScript:                ghostview.
  614. * printcap:                             The important files.
  615. * printing man pages:                   *roff.
  616. * printing text:                        text.
  617. * remote printing:                      lpr over a network.
  618. * remote printing:                      Remote Printing Vs. Local Printing.
  619. * roff:                                 *roff.
  620. * roff to ascii translation:            from troff.
  621. * Setting up print services:            Setting up print services.
  622. * TeX to ascii translation:             from TeX.
  623. * Text to postscript:                   Printing text via PostScript.
  624. * Troubleshooting:                      Troubleshooting.
  625.  
  626. 
  627. File: Printing-HOWTO.info,  Node: Program Index,  Prev: Concept Index,  Up: Top
  628.  
  629. Program Index
  630. *************
  631.  
  632. * Menu:
  633.  
  634. * a2ps:                                 a2ps.
  635. * cat:                                  text.
  636. * dvi2tty:                              from dvi.
  637. * dvilj:                                dvilj.
  638. * dvips:                                dvips.
  639. * efax:                                 faxing.
  640. * enscript:                             enscript.
  641. * eps:                                  eps.
  642. * flexfax:                              faxing.
  643. * ghostscript:                          PostScript.
  644. * ghoutview:                            ghostview.
  645. * groff:                                from troff.
  646. * groff:                                *roff.
  647. * gs:                                   PostScript.
  648. * gslp:                                 gslp.
  649. * gspreview:                            gspreview.
  650. * gxditview:                            gxditview.
  651. * Lametex:                              from TeX.
  652. * lpc:                                  The lpc command.
  653. * lpq:                                  The lpq command.
  654. * lpr:                                  The lpr command.
  655. * lprm:                                 The lprm command.
  656. * man-pl:                               *roff.
  657. * mgetty:                               faxing.
  658. * mpage:                                mpage.
  659. * nenscript:                            enscript.
  660. * netfax:                               faxing.
  661. * pr:                                   pr.
  662. * ps2ascii:                             from PostScript.
  663. * recode:                               from ascii/latin1.
  664. * sendfax:                              faxing.
  665. * tkinfo:                               Intro.
  666. * tunelp:                               hardware and drivers.
  667. * xdvi:                                 xdvi.
  668. * xtex:                                 xtex.
  669.  
  670.  
  671.