home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Edition 1: Linux / CD1.iso / doc / HOWTO / TeTeX-HOWTO < prev    next >
Text File  |  1998-10-14  |  87KB  |  2,179 lines

  1.   The teTeX HOWTO: The Linux-teTeX Local Guide
  2.   Robert Kiesling
  3.   v2.9.1, 21 August 1997
  4.  
  5.   This document covers the basic installation and usage of the teTeX TeX
  6.   and LaTeX implementation under the major U.S. Linux distributions, and
  7.   auxiliary packages like Ghostscript.  Contents of the teTeX HOWTO: The
  8.   Linux-teTeX Local Guide are Copyright (c) 1997 by Robert A. Kiesling.
  9.   Permission is granted to copy this document, in whole or in part, pro-
  10.   vided that credit is given to the author and the Linux Documentation
  11.   Project. Registered trademarks are the property of their respective
  12.   holders.  Please send all complaints, suggestions, errata, and any
  13.   miscellany to kiesling@terracom.net, so I can keep this document as
  14.   complete and up to date as possible.
  15.   ______________________________________________________________________
  16.  
  17.   Table of Contents
  18.  
  19.  
  20.   1. Introduction.
  21.  
  22.   2. What is TeX?  What is LaTeX?  What is teTeX?
  23.  
  24.      2.1 Resources for further information.
  25.  
  26.   3. Installation notes.
  27.  
  28.      3.1 Generic CTAN distribution, V. 0.4.
  29.         3.1.1 Installing the binary distribution.
  30.            3.1.1.1 Minimal installation.
  31.            3.1.1.2 Complete installation.
  32.            3.1.1.3 Base system configuration.
  33.         3.1.2 Installing the source distribution.
  34.      3.2 Linux packages.
  35.         3.2.1 Slackware 3.2.
  36.            3.2.1.1 Manual Slackware install.
  37.         3.2.2 Debian GNU/Linux, V. 1.3.
  38.         3.2.3 RedHat V. 4.2.
  39.      3.3 Ghostscript V. 5.03.
  40.      3.4 APSFILTER.
  41.      3.5 The
  42.  
  43.   4. Post-installation configuration details.
  44.  
  45.      4.1 What if my printer isn't included?
  46.  
  47.   5. Using teTeX.
  48.  
  49.      5.1 Printing the documentation.
  50.      5.2 TeX and LaTeX commands.
  51.         5.2.1 Document structure.
  52.         5.2.2 Characters and type styles.
  53.         5.2.3 Margins and line spacing.
  54.         5.2.4 Document classes.
  55.            5.2.4.1 Articles and reports.
  56.            5.2.4.2 Letters.
  57.      5.3 LaTeX extension packages and other resources.
  58.  
  59.   6. Mixing text and graphics with
  60.  
  61.   7. Using PostScript fonts.
  62.  
  63.   8. Appendix: CTAN Site Listing
  64.  
  65.  
  66.  
  67.   ______________________________________________________________________
  68.  
  69.   1.  Introduction.
  70.  
  71.   FAQ No. 1.  My computer just ate NINE high density diskettes' worth of
  72.   data.  WHAT HAPPENED?
  73.  
  74.   Answer: Installing teTeX on Chanel3, my Compaq laptop, was like
  75.   dropping a 20-foot concrete bridge section exactly into place from a
  76.   height of 50 feet.  teTeX is a big package. Even so, it is a
  77.   moderately complete implementation of TeX 3.1415 and LaTeX 2e for
  78.   Linux systems.  TeX is a big subject anyway, so you can expect to
  79.   spend the rest of your computing career keeping up-to-date on the
  80.   latest in the world of TeX.  That is to say, installing and using
  81.   teTeX is not for the faint of heart.  Nor is it for day trippers.
  82.   This package requires serious quality time.
  83.  
  84.   Thomas Esser, the author of teTeX, has gone to great lengths to make
  85.   the package fast, complete, and easy to use.  Because TeX is
  86.   implemented for practically every serious computer system in the
  87.   world---and quite a few ``non-serious'' ones---implementors must
  88.   provide the installation facilities for all of them.  This accounts in
  89.   part for teTeX's size.  It also accounts for the fact that the pieces
  90.   necessary to make a workable teTeX installation are spread all over
  91.   your friendly neighborhood CTAN archive.
  92.  
  93.   CTAN is the Comprehensive TeX Archive Network, a series of anonymous
  94.   FTP sites which archive TeX programs, macros, fonts, and
  95.   documentation.  You'll probably become familiar with at least one CTAN
  96.   site.  In this document, a pathname like ~CTAN/contrib/pstricks means
  97.   ``look in the directory contrib/pstricks of your nearest CTAN site.''
  98.   See section ``Appendix A'' for a current list of CTAN sites and their
  99.   mirror sites.
  100.  
  101.   Fortunately, some considerate Linux Distribution implementors have
  102.   assembled the necessary pieces for us.  teTeX comes with all the major
  103.   Linux distributions.
  104.  
  105.   However, if you don't have the Slackware, RedHat, or Debian GNU/Linux
  106.   distribution, you can install teTeX from its official CTAN
  107.   distribution.  In some cases this may be more desirable.  See Section
  108.   3 for details.
  109.  
  110.   If you already have teTeX installed on your system and want to jump
  111.   directly into figuring out how to use it, skip this section and the
  112.   next, and go directly to section ``Using teTeX''.
  113.  
  114.  
  115.   2.  What is TeX?  What is LaTeX?  What is teTeX?
  116.  
  117.  
  118.  
  119.   teTeX is an implementation of TeX for UNIX systems.  It is the work of
  120.   Thomas Esser, te@informatik.uni-hannover.de.  In the Linux versions of
  121.   teTeX, the executable programs themselves run under Linux and the
  122.   fonts are provided in form usable by the Linux-teTeX system.  (The
  123.   sections covering teTeX installation concentrate on the i386 versions
  124.   of Linux.  Installing teTeX for MkLinux or Linux for the Alpha should
  125.   require only substituting the appropriate binary-program archive in
  126.   the installation process.)  The rest of the code, TeX and LaTeX
  127.   itself, is portable across various machines.
  128.  
  129.   In addition to the executable programs, the distribution includes all
  130.   of the TeX and LaTeX package, metafont and its sources, bibtex(1),
  131.   makeindex(1), and all of the documentation... more than 4 megabytes'
  132.   worth.  The documentation covers everything you will forseeably need
  133.   to know to get started.  So, you should install all of the documents.
  134.   Not only will you eventually read them, the documents themselves
  135.   provide many examples of ``live'' TeX and LaTeX code.
  136.  
  137.   In comparison with other implementations of TeX, the installation of
  138.   teTeX is almost trivial, even without the Linux distribution packages,
  139.   if you don't count the effort necessary acquire the distributions via
  140.   anonymous FTP or insert and remove several dozen distribution
  141.   diskettes by hand.  If your teTeX distribution arrived on a CD-ROM,
  142.   even less effort is required to install it.
  143.  
  144.   TeX is a typesetting system developed by Professor Donald Knuth of
  145.   Stanford University.  It is a lower-level typesetting language that
  146.   powers all of the higher-level packages like LaTeX.  Essentially,
  147.   LaTeX is a set of TeX macros which provide convenient, predefined
  148.   document formats for end users.  If you like the formats provided by
  149.   LaTeX, you may never need to learn bare-bones TeX programming.  The
  150.   difference between the two languages is like the difference between
  151.   assembly language and C.  You can have the speed and flexibility of
  152.   TeX, or the convenience of LaTeX.  Which brings us to the next answer,
  153.  
  154.   Answer: You have it backwards! I want to know what exactly I need to
  155.   get before I can have TeX on my system!
  156.  
  157.   It's important to remember that TeX only handles the typesetting part
  158.   of the document preparation.  Generating output with TeX is like
  159.   compiling source code into object code, which still needs to be
  160.   linked.  You prepare an input file with a text editor -- what most
  161.   people think of as ``word processing'' -- and typeset the input file
  162.   document with TeX to produce a device-independent output file, called
  163.   a .dvi file.
  164.  
  165.   You also need output drivers for your printer and video display.
  166.   These output drivers translate TeX's .dvi output to display your
  167.   typeset document on the screen or on paper.  This software is
  168.   collectively known as ``dviware.''  For example, TeX itself only makes
  169.   requests for fonts.  It is up to the .dvi output translator to provide
  170.   the actual font to the display device if necessary, regardless of
  171.   whether it is the screen or a printer.  This extra step may seem
  172.   overly complicated, but the abstraction allows documents to display
  173.   the same on different devices with no change to the original document.
  174.  
  175.   In fact, much of TeX's, and therefore LaTeX's, complexity, arises from
  176.   its implementation of various font systems, and the way these fonts
  177.   are specified.  A major improvement of LaTeX 2e over its predecessor
  178.   was the way users specify fonts, the former New Font Selection Scheme.
  179.   (See the sections ``Characters and type styles'' and ``Using
  180.   PostScript Fonts''.)
  181.  
  182.   teTeX comes distributed with about a dozen standard fonts preloaded,
  183.   which is enough to get you started.  Also provided are the font
  184.   metrics descriptions, in .tfm (TeX font metric) files.  To generate
  185.   the other fonts you will need, it is simply a matter of installing the
  186.   metafont sources.  teTeX's .dvi utilities will invoke metafont
  187.   automatically and generate the Computer Modern fonts you need, on-the-
  188.   fly.
  189.  
  190.   By the way, the letters of the word ``TeX'' are Greek, tau-epsilon-
  191.   chi.  This is not a fraternity.  Instead, it is the root of the Greek
  192.   word, techne, which means art and/or science.  ``TeX'' is not
  193.   pronounced like the first syllable in "Texas."  The chi has no English
  194.   equivalent, but TeX is generally pronounced so that it rhymes with
  195.   ``yecch,'' to use Professor Knuth's example from The TeXBook (see
  196.   below).  When writing, "TeX," on character devices, always use the
  197.   standard capitalization, or the \TeX{} macro in typesetting.  This is
  198.   how TeX is distinguished from other typesetting systems.
  199.   Speaking of typing, any of the editors which work under Linux---
  200.   nvi(1), jed(1), joe(1), jove(1), vi(1), vim(1), stevie(1), emacs(1),
  201.   microemacs---will work to prepare a TeX input file, as long as the
  202.   editor reads and writes plain-vanilla ASCII text.  My preference is
  203.   emacs(1), the GNU version.  There are several reasons for this:
  204.  
  205.   o  Emacs' TeX and LaTeX modes obviate the need for a stand-alone TeX
  206.      shell.
  207.  
  208.   o  Emacs can automatically insert TeX-style, ``curly quotes,'' as you
  209.      type, rather than the "ASCII-vanilla" kind.
  210.  
  211.   o  Emacs has integrated support for texinfo and makeinfo, a hypertext
  212.      documentation system.
  213.  
  214.   o  Emacs is widely supported.  Version 19.34, for example, is included
  215.      in the major U.S. Linux distributions.
  216.  
  217.   o  Emacs does everything except butter the toast in the morning.
  218.  
  219.   o  Emacs is free.
  220.  
  221.   There's a lot of software to assemble.  In the meantime, you can start
  222.   in ``learning'' TeX and LaTeX.  Remember that teTeX and the font
  223.   packages have been designed as two separate entities: The teTeX
  224.   executable programs and shell scripts, as distributed with Linux, have
  225.   been built specifically for the system, but the CM, DC, American
  226.   Mathematical Society, or other font distributions work on many
  227.   different platforms.  While you are working on assembling the files,
  228.   you can take a few breaks to locate some of the documentation you will
  229.   need.
  230.  
  231.  
  232.   2.1.  Resources for further information.
  233.  
  234.   There are user manuals available both commercially and via the
  235.   Internet.  Judging by the number of mentions they receive in the
  236.   Usenet comp.text.tex newsgroup, the most useful---and
  237.   definitive---commercially available texts for beginners are:
  238.  
  239.   LaTeX: A Document Preparation System, by Leslie Lamport, 272 pp.  If
  240.   you're using LaTeX instead of plain TeX (highly recommended), this is
  241.   the definitive reference.
  242.  
  243.   If you must use plain TeX, The TeXBook by Donald Knuth, 483 pp., is
  244.   the definitive reference.  It is also necessary if you plan to do any
  245.   serious class, package, or macro writing for LaTeX.
  246.  
  247.   The LaTeX Companion, by Michel Goosens, Frank Mittelbach, and
  248.   Alexander Samarin, 530 pp., is more advanced than the Lamport, above.
  249.   If you are approaching TeX or LaTeX for the first time, you may feel
  250.   lost reading this.  (I was.)  However, when you need to add extension
  251.   packages, like PSNFSS (See the section titled, ``Using PostScript
  252.   fonts''.), or bibtex(1), a bibliography indexing program, this book is
  253.   one of the most highly regarded on the market.
  254.  
  255.   At your nearest CTAN site you can retrieve these documents for free:
  256.  
  257.   The Not So Short Introduction to LaTeX2e, by Tobias Oetiker, Hubert
  258.   Partl, Irene Hyna, and Elisabeth Schlegl, 69 pp.  This wonderful
  259.   document is located at ~CTAN/packages/TeX/info/lshort/*.
  260.  
  261.   You can get a PostScript or .dvi version of the document ready for
  262.   printing, or the native LaTeX document.  There is also a version
  263.   available in German: lkurz.*. Make sure to read the README file before
  264.   assembling!
  265.   A Gentle Introduction to TeX: A Manual for Self-Study, by Michael
  266.   Doob, 91 pp.  You can find this document at:
  267.   ~CTAN:packages/TeX/info/gentle.tex. Almost of necessity, this document
  268.   covers less ground than its LaTeX counterpart, above.  However, it
  269.   will get you to the same place as the LaTeX manuals. If you must use
  270.   plain TeX for your documents, this document clarifies many of the
  271.   complexities of plain TeX and makes its use almost easy.
  272.  
  273.   ``IMPRINT: The Newsletter of Digital Typography,'' edited by Robert
  274.   Kiesling.  I realize that this is BLATANT and SHAMELESS self-
  275.   promotion.  But, you should know anyway, that IMPRINT is a free,
  276.   ASCII-text newsletter which is available via e-mail.  IMPRINT appears
  277.   approximately monthly and covers a broad range of text processing and
  278.   digital imaging topics, both beginning and advanced.  Many of the
  279.   items covered apply directly or indirectly to TeX'ing.  The emphasis
  280.   is on production of industry-standard typeset and printed material.
  281.   To subscribe to IMPRINT, send a brief, human-readable message to me at
  282.   imprint@macline.com.
  283.  
  284.   The LaTeX Catalogue is a bibtex(1) database of available LaTeX
  285.   packages, compiled and maintained by Graham Williams.  It's included
  286.   with teTeX, and the most recent version is available on the World Wide
  287.   Web.  Do you need a package that prints borders, or makes margin
  288.   notes?  You'll find that the package you need is listed here.  The
  289.   LaTeX Catalogue is located in your local teTeX library in the
  290.   directory teTeX/texmf/doc/Catalog, and on the Web at
  291.   http://cbr.dit.csiro.au/~gjw.  See section ``LaTeX extension packages
  292.   and other resources'' for further details about LaTeX packages.
  293.  
  294.   Thomas Merz's Ghostscript Manual, which is the Ghostscript appendix of
  295.   his book, PostScript \& Acrobat/PDF: Applications, Troubleshooting,
  296.   and Cross-Platform Publishing. It is available from the Ghostscript
  297.   Home Page (see the section ``Ghosctscript V. 5.03''), or from Merz's
  298.   home page, http://www.muc.de/~tm/.
  299.  
  300.   There are, of course, other guides available to using TeX and LaTeX.
  301.   They cover different aspects of these systems to varying degrees.  The
  302.   reference documents cited above, however, are the most comprehensive
  303.   in scope that I have seen and are aimed at beginners (or near-
  304.   beginners).
  305.  
  306.  
  307.   If the going gets especially tough, you can probably do a little extra
  308.   shopping at Office Max, Office Depot, Staples, or your local
  309.   stationer, and pick up several reams of three-hole punched, photocopy
  310.   paper, two or three, three-inch binders, and some index tabs.  When it
  311.   comes time to print the documents, you'll need a place to keep them,
  312.   and they seem to be more useful if they are kept on paper.  This must
  313.   be one of the stranger phenomena of technical documentation.
  314.  
  315.   You will note, however, that the references mentioned above are
  316.   hardware-independent.  They won't tell you a thing about running teTeX
  317.   specifically.  Many of them, in fact, refer to some mythical ``Local
  318.   Guide.''  This, and several of the documents that come bundled with
  319.   teTeX, comprise the less-than-mythical Local Guide to installing and
  320.   operating teTeX with Linux.
  321.  
  322.  
  323.   3.  Installation notes.
  324.  
  325.   All of the major Linux distributions include packaged versions of
  326.   teTeX, and each distribution has its own idiosyncrasies.  The
  327.   packaging methods of each distribution are, for the most part,
  328.   incompatible.  If you try to install teTeX from another distribution,
  329.   you may succeed in installing the package, but you're certain to mess
  330.   up the package-management database on your system.  When installing
  331.   teTeX, please consult the section below that corresponds to your Linux
  332.   distribution.
  333.  
  334.   Installing teTeX is surprisingly easy for a package of this magnitude.
  335.   This document covers only the major free U.S. Linux distributions,
  336.   because I haven't had time to obtain or install European Linux
  337.   distributions like S.u.S.E.
  338.  
  339.   However, the generic, teTeX distribution isn't any harder to install
  340.   than the Linux packages.  See section ``Generic CTAN distribution'',
  341.   below.
  342.  
  343.   You should consider installing the generic teTeX distribution from the
  344.   CTAN archives if:
  345.  
  346.   o  Your system isn't based on one of the standard Linux distributions.
  347.  
  348.   o  You don't have root privileges on your system.
  349.  
  350.   o  You want or need to have the very latest version of teTeX, or
  351.      LaTeX.
  352.  
  353.   o  You don't have enough disk space available for a full installation.
  354.  
  355.   o  You want to install teTeX somewhere instead of the /usr file
  356.      system.
  357.  
  358.   o  You would like to share your teTeX installation with other UNIX
  359.      variants or platforms on a network.  In this case, you should
  360.      strongly consider installing from the source distribution.  See
  361.      section ``Installing the source distribution'', below.
  362.  
  363.   o  You want the latest versions of teTeX's public domain Type 1 fonts,
  364.      which are significantly better than the fonts included in earlier
  365.      releases.
  366.  
  367.   A complete installation of the binary distribution requires 40-50 Mb
  368.   of disk space, and building the distribution from the source code
  369.   takes about 75 Mb, so you should make sure that the disk space is
  370.   available before you start.  You don't need to have the gcc(1)
  371.   compiler or the X Windows System installed (although X certainly helps
  372.   because it is much easier to preview documents on-screen).  All you
  373.   need is an editor that is capable of producing plain ASCII, text (see
  374.   section 2).  What could be simpler?
  375.  
  376.   Ghostscript V. 5.03 allows printing of PostScript documents on non-
  377.   PostScript printers, and allows previewing of PostScript documents on
  378.   VGA monitors and X Window System displays.  If you already have a
  379.   PostScript printer, you won't need Ghostscript simply to print
  380.   PostScript documents.  Ghostscript has many other capabilities,
  381.   however, which are beyond the scope of this HOWTO.
  382.  
  383.   APSFILTER can automate document post processing and printing, and make
  384.   life with your printer a lot easier.  See the section titled
  385.   ``APSFILTER''.
  386.  
  387.   For information on how to install a printer daemon and generally
  388.   configure printers for Linux, see the section titled ``The lpd(8)
  389.   daemon'', and consult the Printing-HOWTO.
  390.  
  391.  
  392.   3.1.  Generic CTAN distribution, V. 0.4.
  393.  
  394.   You can retrieve the files from one of the CTAN archives listed in
  395.   section ``Appendix A''.  In the examples below, the files were
  396.   retrieved from the CTAN archive at ftp.tex.ac.uk.
  397.   3.1.1.  Installing the binary distribution.
  398.  
  399.  
  400.   3.1.1.1.  Minimal installation.
  401.  
  402.   First, FTP to ftp.tex.ac.uk and cd to the directory
  403.  
  404.   ctan/tex-archive/systems/unix/teTeX/distrib/
  405.  
  406.  
  407.   Retrieve the files
  408.  
  409.   INSTALL.bin
  410.   install.sh
  411.  
  412.  
  413.   and place them in the top-level directory where you want to install
  414.   teTeX, for example, /var/teTeX if you plan to install teTeX in the
  415.   /var file system.
  416.  
  417.   Print out the INSTALL.bin file.  Keep this file handy, because it
  418.   describes how to install a minimal teTeX installation.  The minimal
  419.   installation requires only 10-15 MB of disk space, but it is
  420.   recommended that you install the complete teTeX package if at all
  421.   possible.  For a minimum installation, you'll need the files
  422.  
  423.   ctan/tex-archive/systems/unix/teTeX/distrib/base/latex-base.tar.gz
  424.   ctan/tex-archive/systems/unix/teTeX/distrib/base/tetex-base.tar.gz
  425.  
  426.  
  427.   You'll also need one of two archives which contain the executable
  428.   teTeX programs.  Retrieve the archive file
  429.  
  430.   ctan/tex-archive/systems/unix/teTeX/distrib/binaries/i386-linux.tar.gz
  431.  
  432.  
  433.   if your system uses the Linux ELF shared libraries, ld.so(1) of at
  434.   least version 1.73, and clibs of at least version 5.09.  If it
  435.   doesn't, retrieve the archive
  436.  
  437.   ctan/tex-archive/systems/unix/teTeX/distrib/binaries/i386-linuxaout.tar.gz
  438.  
  439.  
  440.   which is compiled for systems that use the older, a.out-format static
  441.   libraries.
  442.  
  443.   Then, following the instructions in the file INSTALL.bin, execute the
  444.   command
  445.  
  446.   sh ./install.sh
  447.  
  448.  
  449.   while in the top-level teTeX installation directory. (Make sure that
  450.   the teTeX archives are located there, too.)  After a few moments, the
  451.   installation program will warn you that you are missing some of the
  452.   teTeX packages.  However, if you're planning only a minimal teTeX
  453.   installation, you should ignore the warnings and proceed.  To config-
  454.   ure the basic teTeX system, see section ``Base system configuration'',
  455.   below.
  456.  
  457.   To install the remaining packages, see the next section.
  458.  
  459.  
  460.  
  461.  
  462.  
  463.   3.1.1.2.  Complete installation.
  464.  
  465.   To perform a complete teTeX installation, retrieve the archive files
  466.   listed in the previous section, as well as the following files:
  467.  
  468.   ctan/tex-archive/systems/unix/teTeX/distrib/doc/ams-doc.tar.gz
  469.   ctan/tex-archive/systems/unix/teTeX/distrib/doc/bibtex-doc.tar.gz
  470.   ctan/tex-archive/systems/unix/teTeX/distrib/doc/eplain-doc.tar.gz
  471.   ctan/tex-archive/systems/unix/teTeX/distrib/doc/fonts-doc.tar.gz
  472.   ctan/tex-archive/systems/unix/teTeX/distrib/doc/general-doc.tar.gz
  473.   ctan/tex-archive/systems/unix/teTeX/distrib/doc/generic-doc.tar.gz
  474.   ctan/tex-archive/systems/unix/teTeX/distrib/doc/latex-doc.tar.gz
  475.   ctan/tex-archive/systems/unix/teTeX/distrib/doc/makeindex-doc.tar.gz
  476.   ctan/tex-archive/systems/unix/teTeX/distrib/doc/metapost-doc.tar.gz
  477.   ctan/tex-archive/systems/unix/teTeX/distrib/doc/programs-doc.tar.gz
  478.   ctan/tex-archive/systems/unix/teTeX/distrib/fonts/ams-fonts.tar.gz
  479.   ctan/tex-archive/systems/unix/teTeX/distrib/fonts/dc-fonts.tar.gz
  480.   ctan/tex-archive/systems/unix/teTeX/distrib/fonts/ec-fonts.tar.gz
  481.   ctan/tex-archive/systems/unix/teTeX/distrib/fonts/misc-fonts.tar.gz
  482.   ctan/tex-archive/systems/unix/teTeX/distrib/fonts/postscript-fonts.tar.gz
  483.   ctan/tex-archive/systems/unix/teTeX/distrib/fonts/sauter-fonts.tar.gz
  484.   ctan/tex-archive/systems/unix/teTeX/distrib/goodies/amstex.tar.gz
  485.   ctan/tex-archive/systems/unix/teTeX/distrib/goodies/bibtex.tar.gz
  486.   ctan/tex-archive/systems/unix/teTeX/distrib/goodies/eplain.tar.gz
  487.   ctan/tex-archive/systems/unix/teTeX/distrib/goodies/latex-extra.tar.gz
  488.   ctan/tex-archive/systems/unix/teTeX/distrib/goodies/metapost.tar.gz
  489.   ctan/tex-archive/systems/unix/teTeX/distrib/goodies/pictex.tar.gz
  490.   ctan/tex-archive/systems/unix/teTeX/distrib/goodies/pstricks.tar.gz
  491.   ctan/tex-archive/systems/unix/teTeX/distrib/goodies/texdraw.tar.gz
  492.   ctan/tex-archive/systems/unix/teTeX/distrib/goodies/xypic.tar.gz
  493.  
  494.  
  495.   All of these files should be placed in the top-level directory where
  496.   you want teTeX to reside.  As with the minimal installation, execute
  497.   the command
  498.  
  499.   sh ./install.sh
  500.  
  501.  
  502.  
  503.   3.1.1.3.  Base system configuration.
  504.  
  505.   The install.sh script, after determining which teTeX archive series
  506.   are present, will present you with a menu of options.  The only
  507.   setting you need to make at this point is to set the top-level
  508.   directory where you want teTeX installed, by selecting the ``D''
  509.   option.  You must, of course, choose a directory in whose parent
  510.   directory you have write permissions.  For example, if you are
  511.   installing teTeX in your home directory, you would specify the teTeX
  512.   installation directory as
  513.  
  514.   /home/john.q.public/teTeX
  515.  
  516.  
  517.   and, after returning to the main menu, select ``I'' to proceed with
  518.   the installation.  Note that the directory must not exist already: the
  519.   install.sh script must be able to create it.
  520.  
  521.   An option which you should consider enabling, is setting an
  522.   alternative directory for generated fonts.  Even if you plan to use
  523.   only PostScript-format, Type 1 scalable fonts, occasionally you'll
  524.   process a file that requires the Computer Modern fonts.  Enabling this
  525.   option requires that you enter the directory to use.  You must have
  526.   write permissions for the parent directory.  Following the example
  527.   above, you could specify
  528.  
  529.   /home/john.q.public/texfonts
  530.  
  531.  
  532.   or, if you want the generated fonts to be accessible by all users on
  533.   the system, specify a directory like
  534.  
  535.   /var/texfonts
  536.  
  537.  
  538.   I would recommend that you not, however, use the default /var/tmp/tex-
  539.   fonts directory for this option, because the generated fonts could be
  540.   deleted after the next reboot, and the fonts will need to be generated
  541.   again the next time they're needed.
  542.  
  543.   After you've selected the option ``I'', and install.sh has installed
  544.   the archives, set various permissions, and generated its links and
  545.   format files, the program will exit with a message telling you to add
  546.   the teTeX binary directory to your $PATH environment variable, and the
  547.   directories where the man pages and info files reside to your $MANPATH
  548.   and $INFOPATH environment variables.  For example, add the statements
  549.  
  550.   export PATH=$PATH:"/home/john.q.public/teTeX/bin"
  551.   export MANPATH=$MANPATH":/home/john.q.public/teTeX/man"
  552.   export INFOPATH$=INFOPATH":/home/john.q.public/teTeX/info"
  553.  
  554.  
  555.   to your ~/.bash_profile if you use bash(1) as your shell, or to your
  556.   ~/.profile if you use another shell for logins.
  557.  
  558.   Log out, and then log in again, so the environment variables are
  559.   registered.  Then, run the command
  560.  
  561.   texconfig confall
  562.  
  563.  
  564.   to insure that the installation is correct.
  565.  
  566.   Next, you can configure teTeX for you specific hardware.  See section
  567.   ``Post-installation configuration details'', below.
  568.  
  569.  
  570.   3.1.2.  Installing the source distribution.
  571.  
  572.   To install teTeX V. 0.4 from the source code, ftp to a CTAN site like
  573.   ftp://ftp.tex.ac.uk and retrieve the files
  574.  
  575.   ctan/tex-archive/systems/unix/teTeX/distrib/INSTALL.src
  576.   ctan/tex-archive/systems/unix/teTeX/distrib/sources/README.texmf-src
  577.   ctan/tex-archive/systems/unix/teTeX/distrib/sources/teTeX-lib-0.4pl8.tar.gz
  578.   ctan/tex-archive/systems/unix/teTeX/distrib/sources/teTeX-src-0.4pl7.tar.gz
  579.  
  580.  
  581.  
  582.   Read over the instructions in INSTALL.src, then su to root and unpack
  583.   the files in a directory for which you have read-write-execute
  584.   permissions.
  585.  
  586.   Remember to use the p argument to tar(1), and also remember to unset
  587.   the noclobber option of bash(1).  You can do this with the
  588.   counterintuitive command
  589.  
  590.   set +o noclobber
  591.  
  592.  
  593.   Note that the argument +o to set unsets a variable, just exactly back-
  594.   wards from what you might expect.
  595.   The file teTeX-lib-0.4pl8.tar.gz will create the directory ./teTeX.
  596.   The file teTeX-src-0.4pl7.tar.gz will create the directory teTeX-
  597.   src-0.4 Print out the file INSTALL.src and keep it nearby for the
  598.   following steps. cd to the ./teTeX-src-0.4 directory, and, per the
  599.   instructions in the INSTALL.src file, edit ./Makefile.  You need to
  600.   set the TETEXDIR variable to the absolute path of the parent teTeX
  601.   directory.  This will be the subdirectory teTeX of the directory where
  602.   you unpacked the source and library archives.  For example, if you
  603.   unpacked the archives in your home directory, you would set TETEXDIR
  604.   to
  605.  
  606.   /home/john.q.public/teTeX
  607.  
  608.  
  609.   The rest of the Makefile options are pretty generic.  With gcc(1) ver-
  610.   sion 2.7.2 and later, you should not need to make any further adjust-
  611.   ments unless you have a non-standard compiler and library setup, or
  612.   want the compiler to perform some further optimizations, or for some
  613.   other reason.  Check that the USE_DIALOG, USE_NCURSES, and
  614.   HAVE_NCURSES variables are set correctly for your system, because the
  615.   dialog program needs the ncurses library to be installed.  A
  616.   ncurses(3x) library is included in the source distribution, so the
  617.   default values in the Makefile should work fine.  If you can't get
  618.   ncurses(3x) to compile or link, texconfig(1) can also be run from the
  619.   command line.
  620.  
  621.   If you've done everything correctly up to this point, you should be
  622.   able to type make world in the top-level source directory, and relax
  623.   until the teTeX executables are built.  This can take a few hours.
  624.  
  625.   After the build has completed, set the environment variables $PATH,
  626.   $MANPATH, and $INFOPATH to include the teTeX directories.  The
  627.   statements which would be added to the file ~/.bash_profile, in the
  628.   example, above, would be
  629.  
  630.   export PATH=$PATH":/home/john.q.public/teTeX/bin/i386-linux"
  631.   export MANPATH=$MANPATH":/home/john.q.public/teTeX/man"
  632.   export INFOPATH=$INFOPATH":/home/john.q.public/teTeX/info"
  633.  
  634.  
  635.   The $PATH variable is different in the source distribution than in the
  636.   binary distribution.  Note that here the path to the binaries is
  637.   teTeX/bin/i386-linux instead of simply teTeX/bin as in the binary dis-
  638.   tribution.
  639.  
  640.   At this point you can run texconfig confall to ensure that the paths
  641.   have been set correctly, and then proceed to configure teTeX as in the
  642.   binary distribution.  See the section ``Post-installation
  643.   configuration details'', below.
  644.  
  645.  
  646.  
  647.   3.2.  Linux packages.
  648.  
  649.  
  650.   3.2.1.  Slackware 3.2.
  651.  
  652.   First, ftp to your nearest Linux archive site.  Mine is
  653.   wuarchive.wustl.edu. Then find the directory with the Slackware
  654.   distribution diskettes.  On wuarchive.wustl.edu, this is
  655.  
  656.   systems/linux/sunsite/distributions/Slackware/slakware/.
  657.  
  658.  
  659.   Linux sites which mirror sunsite.unc.edu will store these diskettes in
  660.   the directory distributions/Slackware/slakware/.  teTeX, the full
  661.   package, is contained on the Slackware disk series t. So, grab all
  662.   nine disks' worth of the t series, disks t1 - t9. Be sure to keep them
  663.   in order, too.  Either store the files in separate subdirectories
  664.   labeled t1 - t9 on a hard drive partition, or on diskettes, and label
  665.   the diskettes t1 through t9. We're going to install them by hand.
  666.  
  667.   This isn't difficult.  The Slackware installer creates the directories
  668.   and unpacks the files.  It also provides descriptions of each module
  669.   in the distribution, which allows you to decide whether you want to
  670.   install it or not.  In the case of teTeX, however, you are simply
  671.   going to install everything, because that's what you should do anyway.
  672.  
  673.   Let's assume that you have all nine diskettes' worth of the Slackware
  674.   teTeX distribution ready at hand, organized as described above.
  675.   You'll have a lot of files which have the extension .tgz.  This is
  676.   shorthand for a tar(1) archive compressed with gzip(1). The names all
  677.   fit the 8+3 filename limitations of MS-DOG.  Aren't you glad you
  678.   decided to scrap your DOG partitions and install Linux instead?  You
  679.   can use a MS-DOG hard disk partition or DOG-format diskettes to store
  680.   the files.  The archives also begin with the letters tb, td, or tm,
  681.   and so on, which is the implementors' shorthand for TeX binary, TeX
  682.   documentation, TeX macro, and so on.  The difference to you is
  683.   academic, because you'll be installing everything anyway.
  684.  
  685.   Simply fire up the Slackware install utility.  You needn't concern
  686.   yourself with reconfiguring the system, so select the option to add
  687.   new software.  Select the appropriate source media (diskettes, HD
  688.   partition, or CD-ROM), specify that you want to install the Slackware
  689.   t series, and that you do not want to be prompted -- simply install
  690.   all the archives on the Slackware t series diskettes.  You'll be
  691.   prompted to insert each diskette in the floppy drive if you're
  692.   installing from diskettes.  If you're installing from a hard drive or
  693.   CD-ROM, no more intervention is required by you.
  694.  
  695.  
  696.   3.2.1.1.  Manual Slackware install.
  697.  
  698.   This section is for people who, for one reason or another, would like
  699.   to install teTeX manually from a Linux package.
  700.  
  701.   Let's assume that you've assembled the Slackware teTeX distribution on
  702.   floppy diskettes labelled t1 thru t9. Mount the t1 diskette like this
  703.  
  704.   mount /dev/fd0 /mnt
  705.  
  706.  
  707.   if your Linux configuration is a standard configuration.  Actually,
  708.   any mount point will do.  You'll simply need to substitute the appro-
  709.   priate path spec in the next few steps.
  710.  
  711.   The next thing you want to do is create the teTeX top-level directory.
  712.   teTeX's internal paths are specified relative to its binary program
  713.   files, but the Slackware distribution is archived relative to the root
  714.   directory.  So the top-level teTeX directory is:
  715.  
  716.   /usr/lib/teTeX
  717.  
  718.  
  719.   For each of the .tgz archive files in the distribution, copy the
  720.   archive file to the /usr/lib/teTeX directory and repeat the following
  721.   commands:
  722.  
  723.   You should be logged in as root and in the top-level directory, /, for
  724.   these steps.  I've used the tb-xfig.tgz archive for demonstration
  725.   purposes.  Of course, you'll want to substitute the name of whichever
  726.   archive you're unpacking.
  727.   cp /mnt/tb-xfig.tgz /usr/lib/teTeX
  728.   tar -zxvf /usr/lib/teTeX/tb-xfig.tar  # v to see what's going on!
  729.   rm /usr/lib/teTeX/tb-xfig.tgz
  730.  
  731.  
  732.  
  733.   Most Slackware packages that I've seen also include an install script,
  734.   which the Slackware installer executes after unpacking the files.
  735.   Look in the directory /install after you've unpacked the files.  If
  736.   there's a script there called doinst.sh, execute that, as root, by
  737.   typing
  738.  
  739.   sh < /install/doinst.sh
  740.  
  741.  
  742.   It may be alarming to watch all those filenames scrolling of the top
  743.   of the screen as the archives are unpacked.  Relax!  Take a break, and
  744.   freshen up your coffee (or grab another JOLT from the refrigerator, or
  745.   otherwise replenish whatever you're drinking).  There's only a few
  746.   more steps you need to perform to install teTeX.  They're covered in
  747.   Section 4.
  748.  
  749.  
  750.   3.2.2.  Debian GNU/Linux, V. 1.3.
  751.  
  752.   Installing teTeX from Debian packages is truly trivial.  ftp the most
  753.   recent stable versions of the teTeX archive files from ftp.debian.org.
  754.   The teTeX distribution is located in the directory
  755.  
  756.   pub/debian/bo/binary-i386/tex
  757.  
  758.  
  759.   Retrieve the following Debian archive files via anonymous FTP (remem-
  760.   bering to set binary mode for the transfers).
  761.  
  762.   tetex-base_0.4pl6-5.deb
  763.   tetex-bin_0.4pl6-8.deb
  764.   tetex-dev_0.4pl6-8.deb
  765.   tetex-doc_0.4pl6-1.deb
  766.   tetex-extra_0.4pl6-4.deb
  767.  
  768.  
  769.   Once the files are safely transferred to your local hard disk, su to
  770.   root, and install them using the dpkg(1) utility:
  771.  
  772.   dpkg -i tetex-base_0.4pl6-5.deb
  773.   dpkg -i tetex-bin_0.4pl6-8.deb
  774.   dpkg -i tetex-dev_0.4pl6-8.deb
  775.   dpkg -i tetex-doc_0.4pl6-1.deb
  776.   dpkg -i tetex-extra_0.4pl6-4.deb
  777.  
  778.  
  779.   Installation will take some time, because the Debian archives contain
  780.   the shell scripts necessary to check for old TeX installations, build
  781.   the TeX and LaTeX .fmt files, build the path-searching database, and
  782.   see to other configuration details.  However, once they are finished,
  783.   you should have an operational teTeX installation that needs only to
  784.   be configured for the details of your local system; see section
  785.   ``Post-installation configuration details''.
  786.  
  787.  
  788.   3.2.3.  RedHat V. 4.2.
  789.  
  790.   Presumably, you could install only selected portions of the teTeX
  791.   RedHat distribution, but consistent with the philosophy of the other
  792.   sections, it is assumed that you will eventually need all of the
  793.   facilities provided by teTeX, and so you should install the complete
  794.   distribution.
  795.  
  796.   To install teTeX from RedHat Linux RPM packages, under RedHat Linux v.
  797.   4.2, ftpto sunsite.unc.edu and cd to the directory
  798.  
  799.   pub/Linux/distributions/redhat/current/i386/RedHat/RPMS/
  800.  
  801.  
  802.   Set binary mode for the transfers and retrieve the following files:
  803.  
  804.   tetex-0.4pl8-5.i386.rpm
  805.   tetex-latex-0.4pl8-5.i386.rpm
  806.   tetex-afm-0.4pl8-5.i38 6.rpm
  807.   tetex-dvilj-0.4pl8-5.i386.rpm
  808.   tetex-dvips-0.4pl8-5.i386.rpm
  809.   tetex-xdvi-0.4pl8-5.i386.rpm
  810.   tetex-texmf-src-0.4pl8-5.i386.rpm
  811.  
  812.  
  813.   This last file may not be strictly necessary.  It contains the LaTeX
  814.   sources, if you want to install LaTeX yourself.  If you're thinking of
  815.   upgrading LaTeX independently of the binaries in the future, this
  816.   archive could be useful to have around:
  817.  
  818.   Simply install the files above in the order given, using the rpm -i
  819.   command, and proceed to the section, ``Post-installation configuration
  820.   details''.
  821.  
  822.  
  823.   3.3.  Ghostscript V. 5.03.
  824.  
  825.   Ghostscript development is rapid, and the changes which are
  826.   incorporated into every new version are significant.  Therefore, it's
  827.   worth the effort to install the version of Ghostscript that is
  828.   available on its home page, http://www.cs.wisc.edu/~ghost.
  829.  
  830.   At the time of this writing, the current version is 5.03.  The
  831.   Ghostscript archive for Linux is composed of the following files:
  832.  
  833.   ghostscript-5.03gnu.tar.gz
  834.   ghostscript-5.03jpeg.tar.gz
  835.   ghostscript-5.03libpng.tar.gz
  836.   ghostscript-5.03zlib.tar.gz
  837.   ghostscript-fonts-std-5.03.tar.gz
  838.   ghostscript-fonts-other-5.03.tar.gz
  839.  
  840.  
  841.   What is Ghostscript, and why do you need it?  Technically, Ghostscript
  842.   is a Raster Image Processor.  It translates PostScript code into many
  843.   common, bit-mapped formats, like those understood by your printer or
  844.   screen, whether or not they are equipped with PostScript.  In practi-
  845.   cal terms, Ghostscript allows you to use Type 1 fonts, and mix text
  846.   and graphics on any printer or video display that Ghostscript knows
  847.   about.
  848.  
  849.   The quality of the fonts which come with the program have improved
  850.   steadily in the last several versions as well.  Or maybe it's that
  851.   more recent versions of Ghostscript have improved font rendering.  In
  852.   either case, this is of real benefit for Linux users, who may not be
  853.   able to spend hundreds of dollars on commercial fonts.  Because
  854.   Ghostscript is able to read the font requests made by dvips(1),
  855.   Ghostscript's font library provides the fonts, not teTeX.  But the
  856.   font metrics files for Ghostscript's font library, which have the
  857.   extension .afm, are already included in the teTeX distribution.
  858.  
  859.   For information about using Ghostscript, see the file use.txt in the
  860.   Ghostscript distribution, and the Linux Documentation Project's
  861.   Printing-HOWTO.  There's also a Ghostscript manual available from the
  862.   Internet.  See section ``Resources for further information''
  863.  
  864.   Or, install APSFILTER and let that run Ghostscript automatically.
  865.   (See section ``APSFILTER'').
  866.  
  867.   A final, significant note: I would recommend that you compile
  868.   Ghostscript for your own system, if possible.  Combining different
  869.   versions of Ghostscript and svgalib can quickly become confusing.  The
  870.   version of Ghostscript which is included in the Slackware AP set is
  871.   version 2.6.2 and does not have X support compiled in.  You might also
  872.   have trouble finding the correct svgalib versions for it.  There is
  873.   supposedly a version of Ghostscript with X11 support in the Slackware
  874.   XAP distribution series, and presumably in the other Linux
  875.   distributions, though I haven't tried them.  Compiling Ghostscript for
  876.   your own system is far easier, it seems to me.
  877.  
  878.   It's also important to remember that there are two Ghostscript
  879.   releases in distribution: the commercial, Aladdin Ghostscript, and GNU
  880.   Ghostscript, which lags behind Aladdin Ghostscript by several years.
  881.   This is due to Ghostscript's unique licensing arrangement.  See the
  882.   Printing-HOWTO for more information about Ghostscript licensing.
  883.  
  884.   svgalib support for GNU Ghostscript 3.33 is included in a small
  885.   archive which contains a .diff file.  Ghostscript 3.33 for X is also
  886.   configured for JPEG support, so you should include the JPEG library
  887.   sources as well.  The relevant archives can be found at any GNU
  888.   distribution site, like ftp://prep.ai.mit.edu/pub/gnu.
  889.  
  890.  
  891.   3.4.  APSFILTER.
  892.  
  893.   There are software packages which will simplify your life, and
  894.   APSFILTER is one of them.  Written by Andreas Klemm, APSFILTER works
  895.   with any BSD-compatible printer daemon (which means that you have the
  896.   lpd(8) program and an /etc/printcap file; see below), and provides
  897.   transparent printer support for ASCII, DVI, and PostScript files, as
  898.   well as files compressed by gzip(1), compress(1), and other data
  899.   compression software.
  900.  
  901.   Once you have successfully installed APSFILTER, you can print a
  902.   PostScript file to whatever printer you have, by typing
  903.  
  904.   lpr file.ps
  905.  
  906.  
  907.   Or, to print an ASCII file without PostScript translation, you can
  908.   type
  909.  
  910.   lpr -Praw file.asc
  911.  
  912.  
  913.   Amazing.
  914.  
  915.   APSFILTER is surprisingly easy to install, considering that it works
  916.   with many disparate elements of your system.  Installing the generic
  917.   APSFILTER distribution, however, does require that you have a current
  918.   gcc(1) compiler on hand, because APSFILTER builds some of its filters
  919.   during installation.  Some distributions of Linux, however, provide a
  920.   pre-built version, so check your specific distribution first.
  921.  
  922.   In any event, you will need a correctly installed Ghostscript and
  923.   lpd(8) installation for APSFILTER to work.  The most recent APSFILTER
  924.   is located in the Linux Archives at
  925.   ftp://sunsite.unc.edu/pub/Linux/system/printing/.
  926.  
  927.  
  928.  
  929.   3.5.  The lpd(8)  daemon.
  930.  
  931.   There are wide variations in printers and configurations.  Setting up
  932.   a working printer daemon is no mean feat.  If you're using teTeX on an
  933.   individual system, you could simply dump the output to the printer
  934.   device driver file, but this is less than desirable.  You lose the
  935.   filtering capabilities of the printer daemon.  If you're printing on a
  936.   network, having a working printer daemon is a must.
  937.  
  938.   The basic UNIX program for printer management on BSD-style systems is
  939.   lpd(8).  When you print a file with lpr(1) you are really sending the
  940.   file to a print queue.  lpd(8) prints files in the order they're
  941.   queued.  Other printer utilities include lpq(1), which displays the
  942.   contents of the print queue, and lprm(1), which removes (dequeues)
  943.   files from the print queue.
  944.  
  945.   The printer daemon can perform other tasks, like transparently
  946.   filtering output from various programs (using filter programs like
  947.   APSFILTER, above), accept print jobs from other machines on a network,
  948.   send print jobs to various printers if you have more than one
  949.   connected, and hold print output until you've refilled the paper feed
  950.   tray.
  951.  
  952.   The Printing-HOWTO explains the process of setting up a working
  953.   printer daemon in detail.  Many Linux distributions already have
  954.   configured lpd(8) suites.  Check there first, because it will save you
  955.   considerable work.  They're usually archived, strangely enough, using
  956.   the name lpr, so search for that program.  There is also a printer
  957.   daemon suite available from the Linux archives, at
  958.   ftp://sunsite.unc.edu/pub/Linux/system/printing.
  959.  
  960.  
  961.   4.  Post-installation configuration details.
  962.  
  963.   The first thing you'll want to do is look at Thomas Esser's README
  964.   file.  It contains a lot of hints on how to configure teTeX for your
  965.   output device (i.e., printer).  The README file is located in the
  966.   directory
  967.  
  968.   /usr/lib/teTeX/texmf/doc/tetex
  969.  
  970.  
  971.   Read the file over with the command (the path in the following exam-
  972.   ples is that of the Slackware distribution):
  973.  
  974.   less /usr/lib/teTeX/texmf/doc/tetex/README
  975.  
  976.  
  977.   or, print it out with the command
  978.  
  979.   cat /usr/lib/teTeX/texmf/doc/tetex/README >/dev/lp0
  980.  
  981.  
  982.   assuming that your printer is connected to /dev/lp0.  Substitute the
  983.   device driver file that your printer is connected to, as appropriate.
  984.  
  985.   Or, better still, print it using the lpr(1) command:
  986.  
  987.   lpr /usr/lib/teTeX/texmf/doc/tetex/README
  988.  
  989.  
  990.  
  991.   You should have installed the printer daemon that is included with
  992.   your distribution of Linux.  If not, do that now, per the instructions
  993.   that come with the package.  If you don't have one of the packages, or
  994.   want to install a printer daemon yourself, see section ``The lpd(8)
  995.   daemon''
  996.  
  997.   Print out the teTeX-FAQ. Keep the FAQ handy because it contains useful
  998.   hints for configuring teTeX's output drivers for your printer.  We'll
  999.   get to that in a moment.  In more recent releases of teTeX, the teTeX-
  1000.   FAQ is viewable via the texconfig utility.
  1001.  
  1002.   Next, you want to define a directory to store your own TeX format
  1003.   files.  teTeX searches the directories listed by the $TEXINPUTS
  1004.   environment variable for local TeX input files.  On Chanel3, I added
  1005.   the line
  1006.  
  1007.   export TEXINPUTS=".:~/texinputs:"
  1008.  
  1009.  
  1010.   to the system-wide /etc/profile file.  Individual users can set their
  1011.   own local $TEXINPUTS directory, by adding the line in their ~/.profile
  1012.   or ~/.bash_profile if bash(1) is the default shell.  The $TEXINPUTS
  1013.   environment variable tells teTeX to look for users' individual TeX
  1014.   style files in the ~/texinputs directories under each user's home
  1015.   directory.  It is critical that a colon appear before and after this
  1016.   directory.  teTeX is going to append its own directory searches to
  1017.   your own.  You want to have teTeX search the local format files first,
  1018.   so it uses the local versions of any of the standard files you have
  1019.   edited.
  1020.  
  1021.   Add the /usr/lib/teTeX/bin directory to the system-wide path if you're
  1022.   installing teTeX as root.  Again, if you're installing a personal copy
  1023.   of teTeX, add the directory where the teTeX binaries are located to
  1024.   the front your $PATH with the following line in your ~/.profile or
  1025.   ~/.bash_profile:
  1026.  
  1027.   export PATH="~/tetex/bin:"$PATH
  1028.  
  1029.  
  1030.   Now, log in as root and run texconfig per the instructions in the
  1031.   teTeX-FAQ and choose the printer that is attached to your system.
  1032.   Make sure that you configure teTeX for both the correct printer and
  1033.   printer resolution.
  1034.  
  1035.   Finally, run the texhash program.  This ensures that teTeX's internal
  1036.   database is up to date.  The database is actually a ls-lR file.  You
  1037.   must run texhash every time you change the system configuration, or
  1038.   teTeX will not be able to locate your changes.
  1039.  
  1040.  
  1041.   4.1.  What if my printer isn't included?
  1042.  
  1043.   The teTeX distribution comes with only a limited selection of DVI
  1044.   output drivers: dvips(1), drivers for Hewlett Packard LaserJets, and
  1045.   nothing else.  You have two options if you have a printer which isn't
  1046.   LaserJet-compatible: You can use dvips(1) and Ghostscript, which I
  1047.   would recommend anyway, for reasons already mentioned, or you can
  1048.   investigate other dviware sources.
  1049.  
  1050.   A limited number of DVI drivers have been ported to Linux and are
  1051.   available as pre-built binaries.  They are located in the Linux
  1052.   archives at ftp://sunsite.unc.edu/pub/Linux/apps/tex/dvi/.
  1053.  
  1054.   The master dviware libraries are maintained at the University of Utah
  1055.   archives.  If you can't find a DVI driver there that supports your
  1056.   printer, chances are that it doesn't exist.  You can also write your
  1057.   own DVI driver using the templates available there.  The library's URL
  1058.   is ftp://ftp.math.utah.edu/pub/tex/dvi/.
  1059.  
  1060.  
  1061.   5.  Using teTeX.
  1062.  
  1063.   Theoretically, at least, everything is installed correctly and is
  1064.   ready to run.  teTeX is a very large software package.  As with any
  1065.   complex software package, you'll want to start by learning teTeX
  1066.   slowly, instead of being overwhelmed by its complexity.
  1067.  
  1068.   At the same time, we want the software to do something useful.  So
  1069.   instead of watching TeX typeset
  1070.  
  1071.   ``Hello, World!''
  1072.  
  1073.  
  1074.   as Professor Knuth suggests in the The TeXBook, we'll produce a couple
  1075.   of teTeX's own documents in order to test it.
  1076.  
  1077.   The next section, ``Printing the documentation'', is really a tutorial
  1078.   for operating teTeX.  It covers printing the documentation included
  1079.   with teTeX (which is in LaTeX and .dvi format, of course).  The
  1080.   following section, ``TeX and LaTeX commands'', is more of a
  1081.   ``cookbook'' than a tutorial.  It discusses how to format LaTeX
  1082.   documents, and covers a few of the commands and environments of the
  1083.   more commonly used document classes.
  1084.  
  1085.   The section ``LaTeX extension packages and other resources'' tells how
  1086.   to use the many pre-existing LaTeX packages to customize documents to
  1087.   your specifications.
  1088.  
  1089.  
  1090.   5.1.  Printing the documentation.
  1091.  
  1092.   You should be logged in as root the first few times you run teTeX.  If
  1093.   you aren't, metafont may not be able to create the necessary
  1094.   directories for its fonts.  The texconfig program includes an option
  1095.   to make the font directories world-writable, but if you're working on
  1096.   a multi-user system, security considerations may make this option
  1097.   impractical or undesirable.
  1098.  
  1099.   In either instance, if you don't have the appropriate permissions to
  1100.   write to the directories where the fonts are stored, metafont will
  1101.   complain loudly because it can't make the directories.  You won't see
  1102.   any output because you have a bunch of zero-length font characters.
  1103.   This is no problem.  Simply log out, re-login as root, and repeat the
  1104.   offending operation.
  1105.  
  1106.   The nice thing about teTeX is that, if you blow it, no real harm is
  1107.   done.  It's not like a compiler, where, say, you will trash the root
  1108.   partition if a pointer goes astray.  What, you haven't read the teTeX
  1109.   manual yet?  Of course you haven't.  It's still in the distribution,
  1110.   in source code form, waiting to be output.
  1111.  
  1112.   So, without further delay, you will want to read the teTeX manual.
  1113.   It's located in the directory
  1114.  
  1115.   /usr/lib/teTeX/texmf/doc/tetex.
  1116.  
  1117.  
  1118.  
  1119.   The LaTeX source for the manual is called TETEXDOC.tex.  (The .tex
  1120.   extension is used for both TeX and LaTeX files.  Some editors, like
  1121.   emacs(1), can tell the difference.)  There is also a file TETEXDOC.dvi
  1122.   included with the distribution, which you might want to keep in a safe
  1123.   place---say, another directory ---in case you want to test your .dvi
  1124.   drivers later.  With that out of the way, type
  1125.  
  1126.   latex TETEXDOC.tex
  1127.  
  1128.  
  1129.   LaTeX will print several warnings.  The first,
  1130.  
  1131.   LaTeX Warning: Label(s) may have changed. Rerun to get the
  1132.   cross-references right.
  1133.  
  1134.  
  1135.   is standard.  It's common to build a document's Table of Contents by
  1136.   LaTeXing the document twice.  So, repeat the command.  The other warn-
  1137.   ings can be safely ignored.  They simply are informing you that some
  1138.   of the FTP paths mentioned in the documentation are too wide for their
  1139.   alloted spaces.  (If you're really inquisitive, look at one of the TeX
  1140.   references for a discussion of \hbox and \vbox.)
  1141.  
  1142.   teTeX will have generated several files from TETEXDOC.tex.  The one
  1143.   that we're interested in is TETEXDOC.dvi. This is the device-
  1144.   independent output which you can send either to the screen or the
  1145.   printer.  If you're running teTeX under the X Windows System, you can
  1146.   preview the document with xdvi(1).
  1147.  
  1148.   For the present, let's assume that you have a HP LaserJet II.  You
  1149.   would give the command
  1150.  
  1151.   dvilj2 TETEXDOC.dvi
  1152.  
  1153.  
  1154.   which will write a PCL output file from TETEXDOC.dvi, including soft
  1155.   fonts which will be downloaded to the LaserJet.  This is not a feature
  1156.   of TeX or LaTeX, but a feature provided by dvilj2(1). Other .dvi
  1157.   drivers provide features which are relevant to the devices they sup-
  1158.   port.  dvilj2(1) will fill the font requests which were made in the
  1159.   original LaTeX document with the the closest equivalents available on
  1160.   the system.  In the case of a plain-text document like TETEXDOC.tex,
  1161.   there isn't much difficulty.  All of the fonts requested by TETEX-
  1162.   DOC.tex will be generated by metafont, which is automatically invoked
  1163.   by dvilj2(1) and generates the fonts if they aren't already present.
  1164.   (If you're running dvilj2(1) for the first time, the program needs to
  1165.   generate all of the fonts, which could take up to several days if
  1166.   you're using a really slow machine.)  There are several options which
  1167.   control font generation via dvilj2(1); they're outlined in the manual
  1168.   page.  At this point, you shouldn't need to operate metafont directly.
  1169.   If you do, then something has gone awry with your installation.  All
  1170.   of the .dvi drivers will invoke metafont directly via the kpathsea
  1171.   path-searching library---also beyond the scope of this document---and
  1172.   you don't need to do any more work with metafont for the present---all
  1173.   of the metafont sources for the Computer Modern font library are pro-
  1174.   vided.
  1175.  
  1176.   You can print TETEXDOC.lj with the command
  1177.  
  1178.   lpr TETEXDOC.lj
  1179.  
  1180.  
  1181.   You may need to install a printer filter that understands PCL.  Look
  1182.   at the Printing-HOWTO for details.
  1183.  
  1184.   The nine-page teTeX Guide provides some useful information for further
  1185.   configuring your system, some of which I have mentioned, much which
  1186.   this document doesn't cover.
  1187.  
  1188.  
  1189.   Some of the information in the next section I haven't been able to
  1190.   test, because I have a non-PostScript HP Deskjet 400 color ink jet
  1191.   printer connected to Chanel3's parallel port.  However, not owning a
  1192.   PostScript printer is no barrier to printing text and graphics from
  1193.   your text documents.  See the section ``Ghostscript'' to install
  1194.   Ghostscript, if it isn't already installed on your system.
  1195.  
  1196.  
  1197.   5.2.  TeX and LaTeX commands.
  1198.  
  1199.  
  1200.   5.2.1.  Document structure.
  1201.  
  1202.   Preparing documents for TeX typesetting is easy.  Make sure there's a
  1203.   blank line between the paragraphs of a plain text file, and run file
  1204.   through the TeX program with the command
  1205.  
  1206.   TeX your_text_file
  1207.  
  1208.  
  1209.   The result will be a file of the same base name and the extension
  1210.   .dvi.  The text is set in 10-point, Computer Modern Roman, single-
  1211.   spaced, with justified left and right margins.  If you receive error
  1212.   messages from special characters like dollar signs, escape them with a
  1213.   backslash character, \, and run TeX on the file again.  You should be
  1214.   able to process the resulting file with the .dvi file translator of
  1215.   your choice (see above) to get printed output.
  1216.  
  1217.   The only other peculiarity of TeX input files is to make sure that you
  1218.   use opening and closing quotes, which are denoted in the input file
  1219.   with the grave accent and single quote characters.  Emacs' TeX mode
  1220.   will do this for you automatically.
  1221.  
  1222.   "These are ascii-type quotes."
  1223.   ``These are `TeX-style' quotes.''
  1224.  
  1225.  
  1226.   You can consult a guide like A Gentle Introduction to TeX, described
  1227.   above, for hints on how to make modifications to the default TeX page
  1228.   format.
  1229.  
  1230.   Documents formatted for LaTeX have a few more rules, but with complex
  1231.   documents, LaTeX can greatly simplify the formatting process.
  1232.  
  1233.   Essentially, LaTeX is a document markup language which tries to
  1234.   separate the output style from the document's logical content.  For
  1235.   example, formatting a section heading with TeX would require
  1236.   specifying 36 points of white space above the heading, then the
  1237.   heading itself set in bold, 24-point type, then copying the heading
  1238.   text and page number to the Table of Contents, then leaving 24 points
  1239.   of white space after the heading.  By contrast, LaTeX has the
  1240.   \section{} command, which does all of the work for you.  If you need
  1241.   to change the format of the section headings throughout your document,
  1242.   you can change the definition of \section{} instead of the text in the
  1243.   document.  You can see where this would save hours of reformatting for
  1244.   documents of more than a dozen pages in length.
  1245.  
  1246.   All LaTeX documents have three sections: a preamble, the body text,
  1247.   and a postamble.  These terms are standard jargon and are widely used
  1248.   by TeXperts.
  1249.  
  1250.   The preamble, at a minimum, specifies the type of document to be
  1251.   produced---the document class---and a statement which signals the
  1252.   beginning of the document's body text.  For example:
  1253.  
  1254.  
  1255.   \documentclass{article}
  1256.   \begin{document}
  1257.  
  1258.  
  1259.   The document's postamble is usually very simple.  Except in special-
  1260.   ized cases, it contains only the statement:
  1261.  
  1262.   \end{document}
  1263.  
  1264.  
  1265.   Note the \begin{document} and \end{document} pairing.  In LaTeX, this
  1266.   is called an environment.  All text must appear within an environment,
  1267.   and many commands are effective only in the environments in which
  1268.   they're called.  The document environment is the only instance where
  1269.   LaTeX enforces this convention, however.  That is, it's the only envi-
  1270.   ronment that is required in a document.  (An exception is letter
  1271.   class, which also requires you to declare \begin{letter} and
  1272.   \end{letter}.  See the section ``Letters''.)  However, many formatting
  1273.   features are specified as environments.  They're described in the fol-
  1274.   lowing sections.
  1275.  
  1276.   The document classes can be called with arguments.  For example,
  1277.   instead of the default, 10-point type used as the base point size, as
  1278.   in the previous example, we could have specified
  1279.  
  1280.   \documentclass[12pt]{article}
  1281.  
  1282.  
  1283.   to produce the document using 12 points as the base point size.  The
  1284.   document class, article, makes the necessary adjustments.
  1285.  
  1286.   There are a few document classes which are commonly used.  They're
  1287.   described below.  The report class is similar to article class, but
  1288.   produces a title page and starts each section on a new page.  The
  1289.   letter class includes special definitions for addresses, salutations,
  1290.   and closings, a few of which are described below.
  1291.  
  1292.   You can include canned LaTeX code, commonly known as a package, with
  1293.   the \usepackage{} command.
  1294.  
  1295.   \usepackage{fancyhdr}
  1296.  
  1297.  
  1298.   The command above would include the LaTeX style file fancyhdr.sty from
  1299.   one of the TEXINPUTS directories, which you and teTeX specified during
  1300.   installation and setup processes.
  1301.  
  1302.  
  1303.   \documentclass{article}
  1304.   \usepackage{fancyhdr}
  1305.   \begin{document}
  1306.  
  1307.  
  1308.  
  1309.   Note that the \usepackage{} declarations are given before the
  1310.   \begin{document} statement; that is, in the document preamble.
  1311.  
  1312.   fancyhdr.sty extends the \pagestyle{} command so that you can create
  1313.   custom headers and footers.  Most LaTeX document classes provide
  1314.   headers and footers of the following standard page styles:
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.   \pagestyle{plain}       % default pages style -- page number centered at
  1322.                           % the bottom of the page.
  1323.   \pagestyle{empty}       % no headers or footers
  1324.   \pagestyle{headings}    % print section number and page number at the
  1325.                           % top of the page.
  1326.   \pagestyle{myheadings}  % print custom information in the page heading.
  1327.  
  1328.  
  1329.   Everything on a line to the right of the percent sign is a comment.
  1330.  
  1331.   The \pagestyle{} command doesn't take effect until the following page.
  1332.   To change the headers and footers on the current page, use the command
  1333.  
  1334.   \thispagestyle{the_pagestyle}
  1335.  
  1336.  
  1337.  
  1338.   5.2.2.  Characters and type styles.
  1339.  
  1340.   Character styles are partially a function of the fonts specified in
  1341.   the document.  However, bold and italic character emphasis should be
  1342.   available for every font present on the system.  Underlining, too, can
  1343.   be used, though its formatting presents special problems.  See section
  1344.   ``LaTeX extension packages and other resources'', below.
  1345.  
  1346.   You can specify text to be emphasized in several ways.  The most
  1347.   portable is the \em command.  All text within its scope is italicized
  1348.   by default.  For example:
  1349.  
  1350.   This word will be {\em emphasized.}
  1351.  
  1352.  
  1353.   If you have italicized text that runs into text which is not itali-
  1354.   cized, you can specify an italic correction factor to be used.  The
  1355.   command for this is \/; that is, a backslash and a forward slash.
  1356.  
  1357.   This example {\em will\/} print correctly.
  1358.  
  1359.   This example will {\em not} print correctly.
  1360.  
  1361.  
  1362.   Slightly less portable, but still acceptable in situations where
  1363.   they're used singly, are the commands \it, \bf, and \tt, which specify
  1364.   that the characters within their scope be printed using italic, bold,
  1365.   and monospaced (teletype) typefaces, respectively.
  1366.  
  1367.   {\tt This text will be printed monospaced,}
  1368.   {\it this text will be italic,} and
  1369.   {\bf this text will be bold\dots} all in one paragraph.
  1370.  
  1371.  
  1372.   The command \dots prints a series of three periods for ellipses, which
  1373.   will not break across a line.
  1374.  
  1375.   The most recent version of LaTeX, which is what you have, includes
  1376.   commands which account for instances where one emphasis command would
  1377.   supersede another.
  1378.  
  1379.   This is {\it not {\bf bold italic!}}
  1380.  
  1381.  
  1382.   What happens is that teTeX formats the text with the italic typeface
  1383.   until it encounters the \bf command, at which point it switches to
  1384.   boldface type.
  1385.  
  1386.  
  1387.   To get around this, the NFSS scheme of selecting font shapes requires
  1388.   three parameters for each typeface: shape, series, and family.  Not
  1389.   all font sets will include all of these styles.  LaTeX will print a
  1390.   warning, however, if it needs to substitute another font.
  1391.  
  1392.   You can specify the following font shapes:
  1393.  
  1394.   \textup{text}          % upright shape (the default)
  1395.   \textit{text}          % italic
  1396.   \textsl{text}          % slanted
  1397.   \textsc{text}          % small caps
  1398.  
  1399.  
  1400.   These are the two series that most fonts have:
  1401.  
  1402.   \textmd{text}          % medium series (the default)
  1403.   \textbf{text}          % boldface series.
  1404.  
  1405.  
  1406.   There are generally three families of type available.
  1407.  
  1408.   \textrm{text}          % roman (the default)
  1409.   \textsf{text}          % sans serif
  1410.   \texttt{text}          % typewriter (monospaced, Courier-like)
  1411.  
  1412.  
  1413.   Setting font styles using these parameters, you can combine effects.
  1414.  
  1415.   \texttt{\textit{This example likely will result in a font
  1416.   substitution, because many fonts don't include a typewriter italic
  1417.   typeface.}}
  1418.  
  1419.  
  1420.   The font family defaults to Computer Modern, which is a bit-mapped
  1421.   font.  Other font families are usually PostScript-format Type 1 fonts.
  1422.   See section ``Using PostScript fonts'' for details on how to specify
  1423.   them.
  1424.  
  1425.   There are also many forms of accents and special characters which are
  1426.   available for typesetting.  This is only a few of them.  (Try
  1427.   typesetting these on your own printer.)
  1428.  
  1429.   \'{o}  \`{e}  \^{o}  \"{u}        \={o}  \c{c}  `? `!
  1430.   \copyright     \pounds                \dag
  1431.  
  1432.  
  1433.   Finally, there are characters which are used as meta- or escape char-
  1434.   acters in TeX and LaTeX.  One of them, the dollar sign, is mentioned
  1435.   above.  The complete set of metacharacters, which need to be escaped
  1436.   with a backslash to be used literally, is:
  1437.  
  1438.   # $ % & _ { }
  1439.  
  1440.  
  1441.  
  1442.   There are also different alphabets available, like Greek and Cyrillic.
  1443.   LaTeX provides many facilities for setting non-English text, which are
  1444.   covered by some of the other references mentioned here
  1445.  
  1446.  
  1447.   5.2.3.  Margins and line spacing.
  1448.  
  1449.  
  1450.   Changing margins in a TeX or LaTeX document is not a straightforward
  1451.   task.  A lot depends on the relative indent of the text you're trying
  1452.   to adjust the margin for.  The placement of the margin-changing
  1453.   command is also significant.
  1454.  
  1455.   For document-wide changes to LaTeX documents, the \evensidemargin and
  1456.   \oddsidemargin commands are available.  They affect the left-hand
  1457.   margins of the even-numbered and odd-numbered pages, respectively.
  1458.   For example,
  1459.  
  1460.   \evensidemargin=1in
  1461.   \oddsidemargin=1in
  1462.  
  1463.  
  1464.   adds on inch to the left-hand margin of the even and odd pages in
  1465.   addition to the standard one-inch, left-hand margin.  These commands
  1466.   affect the entire document and will shift the entire body of the text
  1467.   right and left across a page, regardless of any local indent, so
  1468.   they're safe to use with LaTeX environments like verse and list.
  1469.  
  1470.   Below is a set of margin-changing macros which I wrote.  They have a
  1471.   different effect than the commands mentioned above.  Because they use
  1472.   plain TeX commands, they're not guaranteed to honor the margins of any
  1473.   LaTeX environments which may be in effect, but you can place them
  1474.   anywhere in a document and change the margins from that point on.
  1475.  
  1476.   %%  margins.sty -- v. 0.1   by Robert Kiesling
  1477.   %%  Copies of this code may be freely distributed in verbatim form.
  1478.   %%
  1479.   %%  Some elementary plain TeX margin-changing commands. Lengths are
  1480.   %%  in inches:
  1481.   %%  \leftmargin{1}   %% sets the document's left margin in 1 inch.
  1482.   %%  \leftindent{1}   %% sets the following paragraphs' indent in
  1483.   %%                     1 inch.
  1484.   %%  \rightindent{1}  %% sets the following paragraphs' right margins
  1485.   %%                   %% in 1 inch.
  1486.   %%  \llength{3}      %% sets the following lines' lengths to 3 inches.
  1487.   %%
  1488.   \message{Margins macros...}
  1489.   \def\lmargin#1{\hoffset = #1 in}
  1490.   \def\lindent#1{\leftskip = #1 in}
  1491.   \def\rindent#1{\rightskip = #1 in}
  1492.   \def\llength#1{\hsize = #1 in}
  1493.   %%
  1494.   %% (End of margins macros.}
  1495.  
  1496.  
  1497.   Place this code in a file called margins.sty in your local $TEXINPUTS
  1498.   directory.  The commands are explained in the commented section of the
  1499.   file.  To include them in a document, use the command
  1500.  
  1501.   \usepackage{margins}
  1502.  
  1503.  
  1504.   in the document preamble.
  1505.  
  1506.   While we're on the subject, if you don't want the right margin to be
  1507.   justified, which is the default, you can tell LaTeX to use ragged
  1508.   right margins by giving the command:
  1509.  
  1510.   \raggedright
  1511.  
  1512.  
  1513.  
  1514.   Setting line spacing also has its complexities.
  1515.  
  1516.   The baselineskip measurement is the distance between lines of text.
  1517.   It is given as an absolute measurement.  For example,
  1518.  
  1519.   \baselineskip=24pt
  1520.  
  1521.  
  1522.   or even better:
  1523.  
  1524.   \setlength{\baselineskip}{24pt}
  1525.  
  1526.  
  1527.   The difference between the two forms is that setlength will respect
  1528.   any scoping rules that may be in effect when you use the command.
  1529.  
  1530.   The problem with using baselineskip is that it also affects the
  1531.   distance between section headings, footnotes, and the like.  You need
  1532.   to take care that baselineskip is correct for whatever text elements
  1533.   you're formatting.  There are, however, LaTeX macro packages, like
  1534.   setspace.sty, which will help you in these circumstances.  See section
  1535.   ``LaTeX extension packages and other resources''.
  1536.  
  1537.  
  1538.   5.2.4.  Document classes.
  1539.  
  1540.   LaTeX provides document classes which provide standardized formats for
  1541.   documents.  They provide environments to format lists, quotations,
  1542.   footnotes, and other text elements.  Commonly used document classes
  1543.   are covered in the following sections.
  1544.  
  1545.  
  1546.   5.2.4.1.  Articles and reports.
  1547.  
  1548.   As mentioned above, the article class and the report class are
  1549.   similar.  The main differences are that the report class creates a
  1550.   title page by default and begins each section on a new page.  Mostly,
  1551.   though, the two document classes are similar.
  1552.  
  1553.   To create titles, abstracts, and bylines in these document classes,
  1554.   you can type, for example,
  1555.  
  1556.   \title{The Breeding Habits of Cacti}
  1557.   \author{John Q. Public}
  1558.   \abstract{Description of how common desert cacti search
  1559.   for appropriate watering holes to perform their breeding
  1560.   rituals.}
  1561.  
  1562.  
  1563.   in the document preamble.  Then, the command
  1564.  
  1565.   \maketitle
  1566.  
  1567.  
  1568.   given at the start of the text, will generate either a title page in
  1569.   the report class, or the title and abstract at the top of the first
  1570.   page, in the article class.
  1571.  
  1572.   Sections can be defined with commands that include the following:
  1573.  
  1574.   \section
  1575.   \subsection
  1576.   \subsubsection
  1577.  
  1578.  
  1579.   These commands will produce the standard, numbered sections used in
  1580.   technical documents.  For unnumbered sections, use
  1581.  
  1582.  
  1583.  
  1584.  
  1585.   \section*
  1586.   \subsection*
  1587.   \subsubsection*
  1588.  
  1589.  
  1590.   and so on.
  1591.  
  1592.   LaTeX provides many environments for formatting displayed material.
  1593.   You can include quoted text with the quotation environment.
  1594.  
  1595.   \begin{quotation}
  1596.   Start of paragraph to be quoted...
  1597.  
  1598.   ... end of paragraph.
  1599.   \end{quotation}
  1600.  
  1601.  
  1602.   For shorter quotes, you can use the quote environment.
  1603.  
  1604.   To format verse, use the verse environment.
  1605.  
  1606.   \begin{verse}
  1607.   Because I could not stop for death\\
  1608.   He kindly stopped for me
  1609.   \end{verse}
  1610.  
  1611.  
  1612.   Notice that you must use the double backslashes to break lines in the
  1613.   correct places.  Otherwise, LaTeX fills the lines in a verse environ-
  1614.   ment, just like any other environment.
  1615.  
  1616.   Lists come in several flavors.  To format a bulleted list, the list
  1617.   environment is used:
  1618.  
  1619.   \begin{list}
  1620.   \item
  1621.   This is the first item of the list.
  1622.   \item
  1623.   This is the second item of the list...
  1624.   \item
  1625.   ... and so on.
  1626.   \end{list}
  1627.  
  1628.  
  1629.  
  1630.   A numbered list uses the enumerate environment:
  1631.  
  1632.   \begin{enumerate}
  1633.   \item
  1634.   Item No. 1.
  1635.   \item
  1636.   Item No. 2.
  1637.   \item
  1638.   \dots
  1639.   \end{enumerate}
  1640.  
  1641.  
  1642.  
  1643.   A descriptive list uses the description environment.
  1644.  
  1645.   \begin{description}
  1646.   \item{Oven} Dirty, needs new burner.
  1647.   \item{Refrigerator}  Dirty.  Sorry.
  1648.   \item{Sink and drainboard}  Stained, drippy, cold water faucet.
  1649.   \end{description}
  1650.  
  1651.   5.2.4.2.  Letters.
  1652.  
  1653.   The letter class uses special definitions to format business letters.
  1654.  
  1655.   The letter environment takes one argument, the address of the letter's
  1656.   addressee.  The address command, which must appear in the document
  1657.   preamble, defines the return address.  The signature command defines
  1658.   the sender's name as it appears after the closing.
  1659.  
  1660.   The LaTeX source of a simple business letter might look like this.
  1661.  
  1662.   \documentclass[12pt]{letter}
  1663.   \signature{John Q. Public}
  1664.   \address{123 Main St.\\Los Angeles, CA.  96005\\Tel: 123/456-7890}
  1665.   \begin{document}
  1666.   \begin{letter}{ACME Brick Co.\\100 Ash St.\\San Diego, CA 96403}
  1667.   \opening{Dear Sir/Madam:}
  1668.  
  1669.   With regard to one of your bricks that I found on my living room
  1670.   carpet surrounded by shards of my broken front window...
  1671.  
  1672.   (Remainder of the body of the letter.)
  1673.  
  1674.   \closing{Sincerely,}
  1675.  
  1676.   \end{letter}
  1677.   \end{document}
  1678.  
  1679.  
  1680.   Note that the addresses include double backslashes, which specify
  1681.   where the line breaks should occur.
  1682.  
  1683.  
  1684.   5.3.  LaTeX extension packages and other resources.
  1685.  
  1686.   We mentioned above that using underlining as a form of text emphasis
  1687.   presents special problems.  Actually, TeX has no problem underlining
  1688.   text, because it is a convention of mathematical typesetting.  In
  1689.   LaTeX, you can underline words with the command:
  1690.  
  1691.   \underline{text to be underlined}
  1692.  
  1693.  
  1694.   The problem is that underlining will not break across lines, and, in
  1695.   some circumstances, underlining can be uneven.  However, there is a
  1696.   LaTeX macro packagem, ready-made, that makes underlining the default
  1697.   mode of text emphasis.  It's called ulem.sty, and is one of the many
  1698.   contributed LaTeX packages that are freely available via the Internet.
  1699.  
  1700.   To use ulem.sty, include the command
  1701.  
  1702.   \usepackage{ulem}
  1703.  
  1704.  
  1705.   in the document preamble.
  1706.  
  1707.   The LaTeX Catalogue provides one-line descriptions of every LaTeX
  1708.   package available, their names and CTAN paths.  For the URL of the
  1709.   most current edition of the Catalogue, see the section ``Resources for
  1710.   further information''.
  1711.  
  1712.   The packages which are available for LaTeX include:
  1713.  
  1714.      ifthen
  1715.         Include conditional statements in your documents.
  1716.  
  1717.      initials
  1718.         Defines a font for initial dropped capitals.
  1719.  
  1720.      sanskrit
  1721.         Font and preprocessor for producing documents in Sanskrit.
  1722.  
  1723.      recipe
  1724.         A LaTeX2e class to typeset recipes.
  1725.  
  1726.      refman
  1727.         Variant report and article styles.
  1728.  
  1729.   To make the path given in the Catalogue into a fully-qualified URL,
  1730.   concatenate the path to the hostname URL and top-level path of the
  1731.   CTAN archive you wish to contact.  For example, the top-level CTAN
  1732.   directory of the site ftp.tex.ac.uk is ctan/tex-archive.  The complete
  1733.   URL of the directory of the refman package would be:
  1734.  
  1735.   ftp://ftp.tex.ac.uk/ctan/tex-archive/   +
  1736.   macros/latex/contrib/supported/refman   =
  1737.  
  1738.   ftp://ftp.tex.ac.uk/ctan/tex-archive/macros/latex/contrib/supported/refman/
  1739.  
  1740.  
  1741.   Some packages have more than one file, so only the path to the pack-
  1742.   age's directory is given.
  1743.  
  1744.   When you have the URL in hand, you can retrieve the package from one
  1745.   of the CTAN archive sites listed in section ``Appendix A''.  You can
  1746.   download a complete list of the archive's contents as the file
  1747.   FILES.byname, in the archive's top-level directory.  You can also
  1748.   search the archive on line for a keyword with the ftp(1) command
  1749.  
  1750.   quote site index <keyword>
  1751.  
  1752.  
  1753.  
  1754.  
  1755.  
  1756.   6.  Mixing text and graphics with dvips(1) .
  1757.  
  1758.   In general, this section applies to any TeX or LaTeX document which
  1759.   mixes text and graphics.  teTeX, like most other TeX distributions, is
  1760.   configured to request Computer Modern fonts by default.  When printing
  1761.   documents with Type 1 scalable fonts or graphics, font and graphics
  1762.   imaging is the job of dvips(1). dvips(1) can use either Computer
  1763.   Modern bit mapped fonts or Type 1 scalable fonts, or any combination
  1764.   of the two.  First, let's concentrate on printing and previewing some
  1765.   graphics.
  1766.  
  1767.   In general, you will want to follow this procedure any time a LaTeX
  1768.   source document has the statement
  1769.  
  1770.  
  1771.   \includepackage{graphics}
  1772.  
  1773.  
  1774.   in the document preamble.  This statement tells LaTeX to include the
  1775.   text of the graphics.sty package in the source document.  There are
  1776.   other commands to perform graphics operations, and the statements in
  1777.   plain-TeX documents may not clue you in whether you need to use
  1778.   dvips(1). The difference will be apparent in the output, though, when
  1779.   the document is printed with missing figures and other graphics.
  1780.  
  1781.   So, for now, we'll concentrate on printing documents which use the
  1782.   LaTeX graphics.sty package.  You might want to take a look at the
  1783.   original TeX input.  It isn't included in the teTeX distribution, but
  1784.   it is available at
  1785.  
  1786.   ~CTAN/macros/latex/packages/graphics/grfguide.tex.
  1787.  
  1788.  
  1789.   What the teTeX distribution does include is the .dvi output file, and
  1790.   it is already TeXed for you.  There is a reason for this, and it has
  1791.   to do with the necessity of including Type 1 fonts in the output in
  1792.   order for the document to print properly.  If you want to LaTeX
  1793.   grfguide.tex, see the next section.  For now, however, we'll work on
  1794.   getting usable output using dvips(1).
  1795.  
  1796.   The file grfguide.dvi is located in the directory
  1797.  
  1798.   texmf/doc/latex/graphics
  1799.  
  1800.  
  1801.   The first step in outputting grfguide.dvi is to translate it to
  1802.   PostScript.  The program dvips(1) is used for this.  It does just
  1803.   exactly what its name implies.  There are many options available for
  1804.   invoking dvips(1), but the simplest (nearly) form is
  1805.  
  1806.   dvips -f -r <grfguide.dvi >grfguide.ps
  1807.  
  1808.  
  1809.   The -f command switch tells dvips(1) to operate as a filter, reading
  1810.   from standard input and writing to standard output.  dvips(1) output
  1811.   can be configured so its output defaults to lpr(1). (Mine does, which
  1812.   allows me to print directly from dvips(1).)  Post processors like
  1813.   Ghostscript and printing filters like APSFILTER (see section ``''
  1814.   name="APSFILTER"), can be configured for your own needs.  If you need
  1815.   to feed the output manually to a post-processor, the -f option is gen-
  1816.   erally the first you should include in the dvips(1) command line.
  1817.   This form also seems to be easier to use in shell scripts.
  1818.  
  1819.   If you can print PostScript directly to your printer via lpr(1), you
  1820.   can simply type
  1821.  
  1822.   dvips -r grfguide.dvi
  1823.  
  1824.  
  1825.   The -r option tells dvips to output the pages in reverse order so they
  1826.   stack correctly when they exit a printer.  Use it or not, as appropri-
  1827.   ate for your output device.
  1828.  
  1829.   Depending on whether you still have the fonts that dvilj2(1) generated
  1830.   from the last document, dvips(1) and metafont may or may not need to
  1831.   create new fonts needed by grfguide.dvi.  Eventually, though, dvips(1)
  1832.   will output a list of the pages translated to PostScript, and you will
  1833.   have your PostScript output ready to be rendered on whatever output
  1834.   device you have available.
  1835.  
  1836.   If you're lucky (and rich), then you have a PostScript-capable printer
  1837.   already and will be able to print grfguide.ps directly.  You can
  1838.   either spool the output to the printer using lpr(1).  If for some
  1839.   reason your printer software doesn't work right with PostScript files,
  1840.   you can, in a pinch, simply dump the file to printer, with
  1841.  
  1842.   cat grfguide.ps >/dev/lp0
  1843.  
  1844.  
  1845.   or whichever port your printer is attached to, though this is not rec-
  1846.   ommended for everyday use.
  1847.  
  1848.  
  1849.   If you want or need to invoke Ghostscript manually, this is the
  1850.   standard procedure for its operation.  The first thing you want to do
  1851.   is invoke Ghostscript to view its command line arguments, like this:
  1852.  
  1853.   gs -help | less
  1854.  
  1855.  
  1856.   You'll see a list of supported output devices and sundry other com-
  1857.   mands.  Pick the output device which most nearly matches your printer.
  1858.   On Chanel3, because I generally produce black-and-white text, I use
  1859.   the cdjmono driver, which drives a color Deskjet in monochrome (black
  1860.   and white) mode.
  1861.  
  1862.   The command line I would use is:
  1863.  
  1864.   gs -dNOPAUSE -sDEVICE=cdjmono -sOutputFile=/tmp/gs.out grfguide.ps -c quit
  1865.  
  1866.  
  1867.   This will produce my HP-compatible output in the /tmp directory.  It's
  1868.   a good idea to use a directory like /tmp, because gs(1) can be partic-
  1869.   ular about access permissions, and you can't (and shouldn't) always
  1870.   count on being logged in as root to perform these steps.  Now you can
  1871.   print the file:
  1872.  
  1873.   lpr /tmp/gs.out
  1874.  
  1875.  
  1876.   Obviously, this can all go into a shell script.  On my system, I have
  1877.   two simple scripts written, pv and pr, which simply outputs the
  1878.   PostScript file either to the display or the printer.  Screen preview-
  1879.   ing is possible without X, but it's far from ideal.  So, it's defi-
  1880.   nitely worth the effort to install XFree86, or TinyX (which is what I
  1881.   did) to view the output on the screen.
  1882.  
  1883.   The order of commands in a gs(1) command line is significant, because
  1884.   some of the options tell Ghostscript to look for pieces of PostScript
  1885.   code from its library.
  1886.  
  1887.   The important thing to remember is that grfguide.dvi makes requests
  1888.   for both Computer Modern bit mapped and Type 1 scaled fonts.  If you
  1889.   can mix scalable and bit mapped fonts in a document, you're well on
  1890.   the way to becoming a TeXpert.
  1891.  
  1892.  
  1893.   7.  Using PostScript fonts.
  1894.  
  1895.  
  1896.   It used to be that public domain, Type 1 fonts were much poorer
  1897.   quality than Computer Modern bit mapped fonts.  This situation has
  1898.   improved in the last several years, though, but matching the fonts is
  1899.   up to you.  Having several different font systems on one machine can
  1900.   seem redundant and an unnecessary waste of disk space.  And the
  1901.   Computer Modern fonts can seem, well, a little too formal to be
  1902.   suitable for everyday use.  It reminds me sometimes of bringing out
  1903.   the good China to feed the dog.  At least you don't need to spend a
  1904.   bundle on professional quality fonts any longer.
  1905.  
  1906.   One of the major improvements of LaTeX2e over its predecessor was the
  1907.   inclusion of the New Font Selection Scheme.  (It's now called PSNFSS.)
  1908.   Formerly, TeX authors would specify fonts with commands like
  1909.  
  1910.   \font=bodyroman = cmr10 scaled \magstep 1
  1911.  
  1912.  
  1913.  
  1914.  
  1915.   which provides precision but requires the skills of a type designer
  1916.   and mathematician to make good use of.  Also, it's not very portable.
  1917.   If another system didn't have the font cmr10 (this is TeX nomenclature
  1918.   for Computer Modern Roman, 10 point, with the default medium stroke
  1919.   weight), somebody would have to re-code the fonts specifications for
  1920.   the entire document.  PSNFSS, however, allows you specify fonts by
  1921.   family (Computer Modern, URW Nimbus, Helvetica, Utopia, and so forth),
  1922.   weight (light, medium, bold), orientation (upright or oblique), face
  1923.   (Roman, Italic), and base point size.  (See the section ``Characters
  1924.   and type styles'' for a description of the commands to specify
  1925.   typefaces.)  Many fonts are packaged as families.  For example, a
  1926.   Roman-type font may come packaged with a sans serif font, like
  1927.   Helvetica, and a monospaced font, like Courier.  You, as the author of
  1928.   a LaTeX document, can specify an entire font family with one command.
  1929.  
  1930.   There are, as I said, several high-quality font sets available in the
  1931.   public domain.  One of them is Adobe Utopia.  Another is Bitstream
  1932.   Charter.  Both are commercial quality fonts which have been donated to
  1933.   the public domain.
  1934.  
  1935.   These happen to be two of my favorites.  If you look around one of the
  1936.   CTAN sites, you will find these and other fonts archived there. There
  1937.   are enough fonts around that you'll be able to design documents the
  1938.   way you want them to look, and not just English text, either.  TeX was
  1939.   originally designed for mathematical typesetting, so there is a full
  1940.   range of mathematical fonts available, as well as Cyrillic, Greek,
  1941.   Kana, and other alphabets too numerous to mention.
  1942.  
  1943.   The important thing to look for is files which have either the .pfa or
  1944.   .pfb extension.  They indicate that these are the scalable fonts
  1945.   themselves, not simply the metrics files.  Type 1 fonts use .pfm
  1946.   metric files, as opposed to the .tfm metric files which bit mapped
  1947.   fonts use.  The two font sets I mentioned above are included in teTeX
  1948.   distributions, as well as separately.
  1949.  
  1950.   What I said above, concerning the ease of font selection under PSNFSS,
  1951.   is true in this instance.  If we want to use the Charter fonts in our
  1952.   document instead of Computer Modern bit mapped, all that is necessary
  1953.   is include the LaTeX statement
  1954.  
  1955.   \renewcommand{\familydefault}{bch}
  1956.  
  1957.  
  1958.   in the document preamble, where ``bch'' is the common designation for
  1959.   Bitstream Charter.  The Charter fonts reside in the directory
  1960.  
  1961.   /usr/lib/teTeX/texmf/fonts/type1/bitstrea/charter
  1962.  
  1963.  
  1964.  
  1965.   There you'll see the .pfb files of the Charter fonts: bchb8a.pfb for
  1966.   Charter Bold, bchr8a.pfb for Charter Roman, bchbi8a.pfb for Charter
  1967.   Bold Italic.  The ``8a'' in the font names indicates the character
  1968.   encoding.  At this point you shouldn't need to worry much about them,
  1969.   because the encodings mostly differ for 8-bit characters, which have
  1970.   numeric values above 128 decimal.  They mostly define accents and non-
  1971.   English characters.  The Type 1 font encodings generally work well for
  1972.   Western alphabets because they conform to the ISO 8859 standards for
  1973.   international character sets, so this is an added benefit of using
  1974.   them.
  1975.  
  1976.   To typeset a document which has Charter fonts selected, you would give
  1977.   the command
  1978.  
  1979.   pslatex document.tex
  1980.  
  1981.   pslatex is a variant of teTeX's standard latex(1) command which
  1982.   defines the directories where the Type 1 fonts are, as well as some
  1983.   additional LaTeX code to load.  You'll see the notice screen for psla-
  1984.   tex followed by the status output of the TeX job itself.  In a moment,
  1985.   you'll have a .dvi file which includes the Charter font requests.  You
  1986.   can then print the file with dvips(1), and gs(1) if necessary.
  1987.  
  1988.   Installing a Type 1 font set is not difficult, as long as you follow a
  1989.   few basic steps.  You should unpack the fonts in a subdirectory of the
  1990.   /usr/lib/teTeX/texmf/fonts/type1 directory, where your other Type 1
  1991.   fonts are located, and then run texhash to let the directory search
  1992.   routines know that the fonts have been added.  Then you need to add
  1993.   the font descriptions to the file psfonts.map so dvips(1) knows
  1994.   they're on the system.  The format of the psfonts.map file is covered
  1995.   in a couple different places in the references mentioned above.
  1996.   Again, remember to run the texhash program to update the teTeX
  1997.   directory database.
  1998.  
  1999.   It is definitely an advantage to use the X Windows System with teTeX--
  2000.   XFree86 under Linux -- because it allows for superior document
  2001.   previewing.  It's not required, but in general, anything that allows
  2002.   for easier screen previewing is going to benefit your work, in terms
  2003.   of the quality of the output.  However, there is a tradeoff with speed
  2004.   of editing, which is much quicker on character-mode displays.  Having
  2005.   an editor which is slower than molasses in Minnesota can definitely
  2006.   hinder your work.
  2007.  
  2008.   Anyway, whether or not you are able to view documents easily on-
  2009.   screen, please recycle your paper, and use both sides of each sheet.
  2010.   If possible, purchase recycled photocopy paper to print on.  You don't
  2011.   want your workplace to look like a branch office of a paper company.
  2012.  
  2013.   Remember:  Save a tree... kill an editor.
  2014.  
  2015.   Robert Kiesling
  2016.  
  2017.   kiesling@terracom.net
  2018.  
  2019.  
  2020.   8.  Appendix: CTAN Site Listing
  2021.  
  2022.   This is the text of the file CTAN.sites, which is available in the
  2023.   top-level directory of each CTAN archive or mirror site.
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.  
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.   In order to reduce network load, it is recommended that you use the
  2048.   Comprehensive TeX Archive Network (CTAN) host which is located in the
  2049.   closest network proximity to your site.  Alternatively, you may wish to
  2050.   obtain a copy of the CTAN via CD-ROM (see help/CTAN.cdrom for details).
  2051.  
  2052.   Known mirrors of the CTAN reside on (alphabetically):
  2053.     cis.utovrm.it (Italia)                /TeX
  2054.     ctan.unsw.edu.au (NSW, Australia)     /tex-archive
  2055.     dongpo.math.ncu.edu.tw (Taiwan)       /tex-archive
  2056.     ftp.belnet.be (Belgium)               /packages/TeX
  2057.     ftp.ccu.edu.tw (Taiwan)               /pub/tex
  2058.     ftp.cdrom.com (West coast, USA)       /pub/tex/ctan
  2059.     ftp.comp.hkbu.edu.hk (Hong Kong)      /pub/TeX/CTAN
  2060.     ftp.cs.rmit.edu.au  (Australia)       /tex-archive
  2061.     ftp.cs.ruu.nl (The Netherlands)       /pub/tex-archive
  2062.     ftp.cstug.cz (The Czech Republic)     /pub/tex/CTAN
  2063.     ftp.duke.edu (North Carolina, USA)    /tex-archive
  2064.     ftp.funet.fi (Finland)                /pub/TeX/CTAN
  2065.     ftp.gwdg.de (Deutschland)             /pub/dante
  2066.     ftp.jussieu.fr (France)               /pub4/TeX/CTAN
  2067.     ftp.kreonet.re.kr (Korea)             /pub/CTAN
  2068.     ftp.loria.fr (France)                 /pub/unix/tex/ctan
  2069.     ftp.mpi-sb.mpg.de (Deutschland)       /pub/tex/mirror/ftp.dante.de
  2070.     ftp.nada.kth.se (Sweden)              /pub/tex/ctan-mirror
  2071.     ftp.oleane.net (France)               /pub/mirrors/CTAN/
  2072.     ftp.rediris.es (Espa\~na)             /mirror/tex-archive
  2073.     ftp.rge.com (New York, USA)           /pub/tex
  2074.     ftp.riken.go.jp (Japan)               /pub/tex-archive
  2075.     ftp.tu-chemnitz.de (Deutschland)      /pub/tex
  2076.     ftp.u-aizu.ac.jp (Japan)              /pub/tex/CTAN
  2077.     ftp.uni-augsburg.de (Deutschland)     /tex-archive
  2078.     ftp.uni-bielefeld.de (Deutschland)    /pub/tex
  2079.     ftp.unina.it (Italia)                 /pub/TeX
  2080.     ftp.uni-stuttgart.de (Deutschland)    /tex-archive (/pub/tex)
  2081.     ftp.univie.ac.at (\"Osterreich)       /packages/tex
  2082.     ftp.ut.ee (Estonia)                   /tex-archive
  2083.     ftpserver.nus.sg (Singapore)          /pub/zi/TeX
  2084.     src.doc.ic.ac.uk (England)            /packages/tex/uk-tex
  2085.     sunsite.auc.dk (Denmark)              /pub/tex/ctan
  2086.     sunsite.cnlab-switch.ch (Switzerland) /mirror/tex
  2087.     sunsite.icm.edu.pl (Poland)           /pub/CTAN
  2088.     sunsite.unc.edu (North Carolina, USA) /pub/packages/TeX
  2089.     wuarchive.wustl.edu (Missouri, USA)   /packages/TeX
  2090.  
  2091.   Known partial mirrors of the CTAN reside on (alphabetically):
  2092.     ftp.adfa.oz.au (Australia)            /pub/tex/ctan
  2093.     ftp.fcu.edu.tw (Taiwan)               /pub2/tex
  2094.     ftp.germany.eu.net (Deutschland)      /pub/packages/TeX
  2095.     ftp.gust.org.pl (Poland)              /pub/TeX
  2096.     ftp.jaist.ac.jp (Japan)               /pub/TeX/tex-archive
  2097.     ftp.uu.net (Virginia, USA)            /pub/text-processing/TeX
  2098.     nic.switch.ch (Switzerland)           /mirror/tex
  2099.     sunsite.dsi.unimi.it (Italia)         /pub/TeX
  2100.     sunsite.snu.ac.kr (Korea)             /shortcut/CTAN
  2101.  
  2102.   Please send updates to this list to <ctan@urz.uni-heidelberg.de>.
  2103.  
  2104.   The participating hosts in the Comprehensive TeX Archive Network are:
  2105.     ftp.dante.de  (Deutschland)
  2106.          -- anonymous ftp                 /tex-archive (/pub/tex /pub/archive)
  2107.          -- gopher on node gopher.dante.de
  2108.          -- e-mail via ftpmail@dante.de
  2109.          -- World Wide Web access on www.dante.de
  2110.          -- Administrator: <ftpmaint@dante.de>
  2111.  
  2112.     ftp.tex.ac.uk (England)
  2113.          -- anonymous ftp                 /tex-archive (/pub/tex /pub/archive)
  2114.          -- gopher on node gopher.tex.ac.uk
  2115.          -- NFS mountable from nfs.tex.ac.uk:/public/ctan/tex-archive
  2116.          -- World Wide Web access on www.tex.ac.uk
  2117.          -- Administrator: <ctan-uk@tex.ac.uk>
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.  
  2147.  
  2148.  
  2149.  
  2150.  
  2151.  
  2152.  
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.