. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I M P R I N T The Newsletter of Digital Typography Volume 1 Number 6 Contents copyright (c) 1997 by Robert A. Kiesling and the contributors of IMPRINT. All rights reserved. To subscribe, send news, or comment, email to: imprint@macline.com In this issue: How to arrange book pages in signatures and quires with PSUtils. Installing Type 1 fonts under MikTeX, by John H. Steele. TeX and troff underlining -- more than possible, it's easy. HTML 4.0 to provide JAVA objects, international character sets. Excalibur 2.5 supports AppleEvents, adds Catalan dictionary. ImageMagick, the workstation graphics system, available for Linux. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . From the editor -- playing catch-up. One project begets another, it seems. I didn't mention Thomas Merz' Ghostscript manual in my review of Ghostscript 5.0 (IMPRINT Vol. 1 No. 5). The omission had nothing to do with the manual itself. I simply wanted to print the PDF, two-up document to test of Ghostscript's abilities.. Per Merz' instructions, I translated the file into PostScript with pdf2ps. Then, its orientation was incorrect. The pages were in portrait orientation, which meant that only the left-hand pages would fit on letter-size paper. This led me to the PSUtils package, but pstops had trouble manipulating the PostScript output of pdf2ps. Ghostscript 5.0 has no difficulty reading PDF files directly. It was simply a matter of converting the PDF file into printer-ready Hewlett Packard PCL. Add one more item to the list of things which Ghostscript does well. Merz's Ghostscript manual is actually an appendix of his "PostScript & Acrobat/PDF: Applications, Troubleshooting, and Cross-Platform Publishing." The manual is worth looking at, if only to study the design. It's free, at the following URLs: http://www.cs.wisc.edu/~ghost/ http://www.muc.de/~tm/. And I wrote the PSUtils story, too. To help MS Windows users get out of the office this summer, John H. Steele, jsteele@coco.ece.cmu.edu, has contributed his tutorial/ reference for installing Computer Modern and Euler Type 1 fonts under MiKTeX. The tutorial is a must-read for all MS Windows users trying to decide whether to spend their time outside working on their tans, or in the office trying to achieve professional output. A more concise description of the installation process would be hard to find. The usual disclaimers apply. Use the code presented here at your own risk, please dress appropriately, and use a sun block rated SPF 5 or greater. Robert Kiesling Editor, IMPRINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How to arrange book pages in signatures and quires with PSUtils. The advantages of using PSUtils to post-process PostScript files is that the UNIX package, written by Angus J. C. Duggan, is compatible with most common variations of standard PostScript and has the ability to perform athletic formatting feats on PostScript files which could otherwise be accomplished only with expensive, proprietary, or specialized software. PSUtils includes these programs: psbook: Arrange pages into signatures. psselect: Select pages from a file. pstops: Select and arrange pages in a file. psnup: Print multiple pages per sheet. epsffit: Fit Encapsulated PostScript files into constrained size. psresize: Scale documents for differently-sized sheets. psmerge: Merge several files into one. fixscribeps: Filter Scribe documents for psutils. getafm: Create an AFM file of a font. fixdlsrps: Filter DVILaser/PS files for psutils. fixfmps: Filter FrameMaker documents for psutils. fixmacps: Filter Mac files with "saner" version of PS prologue. fixditsps: Filter Transcript's psdit program for psutils. fixpspps: Filter PSPrint output. fixwfwps: Filter Word For Windows output. fixwpps: Filter WordPerfect output. fixwwps: Filter Windows Write output. extractres: Extract a file's resources. includeres: Include resources in a file. psselect selects odd, even, or an arbitrary list of pages from a PostScript file. For example: $ psselect -o term_paper.ps odd_pages.ps exports the odd pages of the file term_paper.ps to the file odd_pages.ps, and $ psselect -e term_paper.ps even_pages.ps selects the even pages. For two-sided printing of term_paper.ps, first print odd_pages.ps. Then, if your printer outputs sheets in reverse order, re-collate the pages so that they are in the correct order. Re-insert the signature with the odd-numbered pages face-up in the printer's in tray, with the top of the pages toward the print head, and print even_pages.ps. To avoid re-collating pages which are stacked in reverse order, use a program like, dvips with the -r command-line switch. A UNIX shell script which automates two-sided printing might look like: $ dvips -f -r term_paper.ps $ psselect -o term_paper.ps odd_pages.ps $ dvips -f term_paper.ps $ psselect -e term_paper.ps even_pages.ps After printing odd_pages.ps, take the signature of odd pages, rotate it 180 degrees with the printed side still facing upward, and re-insert the signature in the printer's input tray. Then, print even_pages.ps. Books are commonly printed two-up or four-up -- two or four pages per side of the paper, respectively. Printing book signatures requires two steps. First, psbook arranges pages into signatures before the quires can be printed. psbook also takes partial signatures into account. That is, psbook will insert blank pages if NUMBER_OF_PAGES mod 4 > 0. psbook defaults to four-page quires, so it requires no special parameters for two-sided, two-up printing, only the input and output filenames. $ psbook term_paper.ps signature.ps The next step depends on the type of PostScript output you began with, and whether you want the printed signatures to emerge from the printer with printing on both sides. Two programs of the PSUtils package can print quires: psnup and pstops. psnup is the simpler of the two to use: it prints the number of pages you specify per sheet. $ psnup -2 signature.ps four-up.ps This will print two pages per sheet, one-sided. Incidentally, if you want to print a folded 'zine, you might use the command $ psnup -4 signature.ps eight-up.ps which will print four pages per side. To print quires on both sides of the sheet, pstops can be used. However, pstops seems to have trouble with dvips output. You can use groff, or just about any word processing or DTP program that outputs PostScript as an alternative. [If you must use TeX DVI output, try dvidvi, by Tomas Rokicki, rokicki@cs.stanford.edu, the author of dvips. dvidvi is available at ftp://ftp.tex.ac.uk/ctan/tex-archive/dviware/dvidvi/.] The arguments to pstops are terse and complex, reflecting the flexibility of the program. Essentially, you specify the modulo for the page blocks, and then the shift, rotation, and scaling of the blocks' pages. You also specify a starting page number for each page. Specifying a negative starting page number tells pstops to print the pages in reverse order. For example, to arrange the quires of a two-up booklet, with two U.S. Letter-sized pages scaled and rotated to fit side-by-side on a single, U.S. Letter sheet, on both sides, you would issue the commands $ pstops 4:-3L@.7+0L@.7 signature.ps front_side.ps for the front side, and $ pstops 4:1L@.7+-2L@.7 signature.ps front_side.ps for the back side. Note that, for two-sided printing, half the pages must be printed in reverse order. The psutils package, in source code form, is available at ftp://ftp.tex.ac.uk/ctan/tex-archive/support/psutils/ and its mirror sites, or the PSUtils Home Page: http://www.tardis.ed.ac.uk/~ajcd/psutils/ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing Type 1 fonts under MikTeX, by John H. Steele. by John H. Steele, jsteele@coco.ece.cmu.edu In March, a consortium of scientific publishers and commercial TeX developers released PostScript Type 1 versions of the Computer Modern fonts. Although the fonts are freely distributable, the American Mathematical Society maintains a copyright to insure that the fonts are not altered. While TeX and DVI do not deal directly with PostScript, these fonts can be included in final PostScript or PDF versions of documents. Without PostScript Type 1 fonts, these final documents include embedded PostScript bitmapped fonts, which results in much larger output file sizes. MiKTeX is a popular freeware distribution of TeX for Windows 95 and NT. It is available from the MiKTeX Home Page (see the end of the article for the URL). Unfortunately, configuring MiKTeX v1.07 to recognize and embed Type 1 fonts into final PostScript is not well documented. Most of the procedure involves configuring DVIPS, the utility MiKTeX uses to produce PostScript output. The instructions below assume that you have installed MiKTeX in the default directory c:\texmf. Appendix A explains how to supplement the AMS CM fonts with PS Type 1 versions of the AMS Euler math fonts. After obtaining these additional Type 1 fonts, the installation instructions can be followed with slight modifications to install these fonts. Appendix B enumerates a few other issues concerning MiKTeX v1.07 that may be of interest to users. ============================================================================= Installing AMS Computer Modern (CM) PostScript (PS) Fonts into the MiKTeX v 1.07 TeX distribution: ============================================================================= 0. Obtain BSR PS CM fonts from CTAN * The AMS versions of PS Type 1 Computer Modern are available from CTAN at http://tug2.cs.umb.edu/ctan/tex-archive/fonts/cm/ps-type1/bluesky/index.html The set is also available from the AMS at ftp://e-math.ams.org/pub/tex/cmfonts/ps. 1. Choose a location to install your fonts. * (e.g.: c:\texmf\fonts\cmtype1) 2. Copy the pfb and pfm directories of the AMS PS CM font distribution to the path you chose in step 1. 3. Create a MAP file which tells DVIPS where to find PS versions of the CM fonts. * Each line of this file refers to one font. The format is: TeX_font_name PostScript_font_name ") * You should also check the PostScript file for PS fonts instead of bitmapped fonts. Somewhere in the PS file should be a line like: %%BeginFont: CMMI10 %!PS-AdobeFont-1.1: CMMI10 1.100 %%CreationDate: 1996 Jul 23 07:53:57 you should NOT see a line like: %DVIPSBitmapFont: Fb cmmi10 10 2 That's all. Good luck. And happy TeX-ing! =========================================================================== Appendix A: Supplementing the AMS CM fonts. Unfortunately, the AMS Computer Modern font set does not include the commonly used Euler AMS font family. These fonts, along with a few additional CM sizes, can be obtained from the BaKoMa font collection at http://tug2.cs.umb.edu/ctan/tex-archive/fonts/cm/ps-type1/bakoma/index.html. The supplemental fonts available from the BaKoMa collection are: CM fonts: cmbsy6 cmbsy7 cmbsy8 cmbsy9 cmcsc8 cmcsc9 cmex7 cmex8 cmex9 cmmib6 cmmib7 cmmib8 cmmib9 msam10 msam5 msam6 msam7 msam8 msam9 msbm10 msbm5 msbm6 msbm7 msbm8 msbm9 AMS Euler font family: euex10 euex7 euex8 euex9 eufb10 eufb5 eufb6 eufb7 eufb8 eufb9 eufm10 eufm5 eufm6 eufm7 eufm8 eufm9 eurb10 eurb5 eurb6 eurb7 eurb8 eurb9 eurm10 eurm5 eurm6 eurm7 eurm8 eurm9 eusb10 eusb5 eusb6 eusb7 eusb8 eusb9 eusm10 eusm5 eusm6 eusm7 eusm8 eusm9 You will need the PFB (outline) and PFM (font metrics) files for PC-compatible use. The TeX font metric (TFM) files are included in the MiKTeX package. I would suggest that you add only the Euler font family. Additional BaKoMa CM symbol fonts have a known problem with square root symbols. (For details, see the README file in the BaKoMa patched-pfb directory). =========================================================================== Appendix B: MiKTeX v 1.07 issues. Christian Schenk is planning to release an update to MiKTeX. I have not seen version 1.08, so I can only say that I hope that these installation instructions will not change under the new version. Christian has indicated he will put a GUI interface on configure.exe, so step 7 may change. Please note that a few bugs in MiKTeX 1.07 are listed on the MiKTeX Home Page. These include the release of a new version of DVIPS (v5.72) and typos in the configuration information for DVIWin. Users of U.S. Letter-size paper may want to change to paper size setting in the DVIPS config.ps file as explained in the HTML MiKTeX help file under DVIPS configuration. =========================================================================== Appendix C: Sample cmfonts.map file This sample file is for the AMS CM font distribution only. -----begin cmfonts.map----- cmb10 CMB10