dvips foo.dvi | lprIn creating PDF files, however, we are not concerned solely with sending information to a PostScript printer. The PostScript files we create must have certain qualities in order to be made into PDFs compatible with FastLane's software.
dvips -P xx foo.dviIn the above example, xx is the extension of the config file we wish to use, config.xx
[melmoth@bettie melmoth]$ whereis texmf texmf: /usr/share/texmf [melmoth@cc456701-a melmoth]$ find /usr/share/texmf -name config.pdf /usr/share/texmf/dvips/config/config.pdf [melmoth@bettie melmoth]$If you don't have the file, don't worry, you can construct one of your own fairly simply by consulting the section "Creating Your Own config.pdf File''.
p +bsr.map p +bsr-interpolated.map p +hoekwater.mapThese are the fontmaps for the Bluesky and Hoekwater Type 1 fonts. You may add other fontmaps if you wish, but only Type 1 fonts should be used. If you're not sure of which fontmaps refer to Type 1 fonts, leave these lines alone6.
The character shifting option (G) is compatible with the Bluesky fonts. If no changes are made to the above fontmap lines, it should not cause problems. If you wish use the BaKoMa fonts, comment it out by changing
Gto
%GThere are two sections of the config.pdf file which deal with the resolution of the PostScript file as a whole and of embedded bitmaps. The first section looks like this:
% Default resolution. Attempt to make `resolution independent'. % Resolution set to 8000dpi (could be as high as 10000). D 8000You should not need to make adjustments to this entry as 8000dpi is approximately 111 times finer than screen resolution, and about 13 times greater than the highest resolution at which the document is likely to be printed.
The other section dealing with resolution, looks like this:
% Last resort sizes. % If you accidentally include a bitmapped pk font, it will probably go % at 600dpi. R 300 600This section controls the resolution with which fonts (such as the occasional type 3 font which finds its way into your document as part of an EPS image) will be rendered. You should not need to change this either, as your documents are unlikely to be printed at a resolution higher than 600dpi. If you have legibility problems with your EPS graphics, try raising this to:
R 600 1200
Start by opening a document called config.pdf in your favorite text editor7. To that file, add the following lines8:
m 6000000 o D 8000 p +bsr.map p +bsr-interpolated.map p +hoekwater.map R 300 600 G h tex.pro h alt-rule.proNow save the file in your home directory. Provided that your system has the appropriate fonts9 installed, this configuration file should work fine.
Converting your PostScript document to PDF with Distiller is relatively simple. If your postscript file was called foo.ps you would use the following command line:
distill --embedallfonts on --maxsubsetpct<99>[foo.ps]This should produce a PDF file compatible with FastLane.
[melmoth@bettie melmoth]$ pdftex --version pdfTeX (Web2C 7.3.1) 3.14159-0.13d kpathsea version 3.3.1 Copyright (C) 1999 Han The Thanh, Petr Sojka, and Jiri Zlatuska. Kpathsea is copyright (C) 1999 Free Software Foundation, Inc. There is NO warranty. Redistribution of this software is covered by the terms of both the pdfTeX copyright and the GNU General Public License. For more information about these matters, see the files named COPYING and the pdfTeX source. Primary author of pdfTeX: Han The Thanh, Petr Sojka, and Jiri Zlatuska. Kpathsea written by Karl Berry and others. [melmoth@bettie melmoth]$If the Web2C11 and kpathsea12 versions you see are lower than the ones in the above example, you should either upgrade your version of TEX13, or use pdftex at your own risk14.
[melmoth@bettie melmoth]$ pdflatex foo.texIf you get errors, try switching to scroll mode. If that works, be sure to check your PDF carefully to make sure it looks ok. If you get fatal errors, check your TEX source. pdfTEX is rather precise about what errors in your source it is willing to accept. The PDF you get from this process should be compatible with FastLane (the fonts are embedded and subsetted by default, and type 1 fonts are used exclusively if possible).
Figure
An example of a document with type 3 fonts.
Figure
An example of a document with type 1 fonts.
It is left to the user to decide which of these documents he or she would rather a reviewer saw16.
2 Similar to the function of the groff/troff utility.
3 TEXMF is an environment variable which contains the path of the "texmf'' directory.
4 Examples in this document are from a Red Hat Linux 6.1 system. Your own system may vary considerably, particularly if you use a non-TDS (TEX Directory Structure. See http://www.tug.org/tds/) compliant distribution.
5 The fontmap (*.map) files for dvips are also stored in .../dvips/config.
6 It is worth noting here that wise old hackers make backups of system files before they start fooling around with them.
7 I used pico for the examples, but that doesn't mean you have to.
8 Yes, some of these weren't discussed above. The reason that they were not discussed above is that you shouldn't mess with them unless you know exactly what you're doing. If you know exactly what you're doing, this document is basically useless to you after the first section anyway.
9 If you have the Bluesky fonts, but not the Hoekwater ones, just comment out the appropriate line.
10 This is expected to be fixed in the next Aladdin Ghostscript release.
11 Web2C is the GNU/FSF TEX implementation. See http://www.tug.org/web2c/
12 kpathsea is an extremely useful library for path searching by K. Berry.
13 Web2C distributions of TEX are available at http://www.tug.org/web2c
14 Yes, 3.14159 is an approximation of pi. See http://www.tex.ac.uk/
15 If you are reading the PDF version of this document, it was generated with pdfLATEX
16 The difference is not so dramatic in these images (because they have lost a fair amount of definition thanks to JPEG compression), but is quite noticeable in a PDF.
17 http://www.ctan.org is the Comprehensive TEX Archive Network and is mirrored all over the place. It is one of the best resources for TEX related files, fonts, document classes, etc.