home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / tex-faq < prev    next >
Internet Message Format  |  1996-02-09  |  67KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!news.kei.com!newsfeed.internetmci.com!vixen.cso.uiuc.edu!uwm.edu!fnnews.fnal.gov!nntp-server.caltech.edu!hot.caltech.edu!bobby
  2. From: bobby@hot.caltech.edu (Bobby Bodenheimer)
  3. Newsgroups: comp.text.tex,fr.comp.text.tex,comp.answers,news.answers
  4. Subject: TeX, LaTeX, etc.: Frequently Asked Questions with Answers [Monthly]
  5. Supersedes: <tex-faq_815032218@hot.caltech.edu>
  6. Followup-To: comp.text.tex
  7. Date: 8 Feb 1996 19:41:35 GMT
  8. Organization: California Institute of Technology, Pasadena, CA.
  9. Lines: 1305
  10. Approved: news-answers-request@MIT.Edu
  11. Expires: 7 Apr 1996 19:41:13 GMT
  12. Message-ID: <tex-faq_823808473@hot.caltech.edu>
  13. Reply-To: bobby@hot.caltech.edu
  14. NNTP-Posting-Host: hot.caltech.edu
  15. Keywords: monthly faq
  16. Originator: bobby@hot.caltech.edu
  17. Xref: senator-bedfellow.mit.edu comp.text.tex:87791 fr.comp.text.tex:1221 comp.answers:16919 news.answers:64183
  18.  
  19. Archive-name: tex-faq
  20.  
  21. Comp.text.tex is a forum for the discussion of TeX, LaTeX and other
  22. related things. TeX is a software system written by Donald Knuth to
  23. typeset text, especially text containing mathematics. LaTeX is a set
  24. of macros written in TeX, designed to simplify the the typesetting of
  25. a document by allowing the user to concentrate on the content and
  26. structure of the document rather than the exact appearance of the
  27. finished product. METAFONT, also discussed here, is a program which
  28. allows the user to design their own fonts. The definitive reference
  29. for TeX is _The TeXbook_, by Donald Knuth (Addison Wesley, 1984, ISBN
  30. 0-201-13447-0, paperback 0-201-13448-9). For LaTeX, see _LaTeX, a
  31. Document Preparation System_ by Leslie Lamport (Addison Wesley, 1986,
  32. ISBN 0-201-15790-X); the second edition of this book covers LaTeX2e.
  33. Full documentation for LaTeX2e can be found in _The LaTeX Companion_
  34. by Michael Goossens, Frank Mittelbach, and Alexander Samarin (Addison
  35. Wesley, 1994, ISBN 0-201-54199-8). For METAFONT, see _The
  36. METAFONTbook_ by Donald Knuth (Addison Wesley, 1984, ISBN
  37. 0-201-13445-4). The American Mathematical Society has two macro
  38. packages which are also popular, called AMS-TeX and AMS-LaTeX.
  39.  
  40. This article contains answers to some frequently asked questions on
  41. comp.text.tex. Please don't ask these questions again, as they've been
  42. answered many times before.
  43.  
  44. Malencontreusement, je n'ai ni le temps ni la comp\'etence pour
  45. traduire cet article en fran\c{c}ais. Je prie donc, le lecteur
  46. interess\'e par fr.comp.text.tex d'avoir l'indulgence d'accepter la
  47. version anglaise.
  48.  
  49. This is version 1.53 for February, last changed 2/8/96.
  50.  
  51. This article includes answers to:
  52.  
  53.   1) How can I get a copy of this article?
  54.   2) Where can I get a DVI to PostScript conversion program?
  55.   3) How can I include a PostScript figure in LaTeX?
  56.   4) Where can I find a DVI previewer for machine Y running Q?
  57.   5) Where can I get the manual for PiCTeX?
  58.   6) In LaTeX, I put some definitions in my document, but I get the error
  59.      ``Use of \@ doesn't match its definition'' or ``You can't use 
  60.      \spacefactor in vertical (or math) mode.'' What's wrong?
  61.   7) What is OzTeX and where can I get it (TeX for the Mac)?
  62.   8) What is Fig and where can I get it?
  63.   9) How do I get WEB for C, FORTRAN, or some other language?
  64.   10) How can I typeset music in TeX?
  65.   11) What is TUG and TUGboat?
  66.   12) How do I convert Adobe's afm files to tfm format?
  67.   13) In LaTeX, how do I get a double-spaced document?
  68.   14) In LaTeX, how do I include a file in the verbatim environment?
  69.   15) In LaTeX, how do I do Y?
  70.   16) Where can I find a TeX macro or LaTeX style file for doing Y?
  71.   17) How do I generate an index in TeX/LaTeX?
  72.   18) How do I get METAFONT to do what I want it to do?
  73.   19) Where do I get TeX/LaTeX for machine Y running Q?
  74.   20) Where can I get a thesis style for LaTeX?
  75.   21) How do I get symbols for ``the real numbers'', ``the complex numbers'',
  76.       and so on?
  77.   22) What repositories of TeX material are available, and how can I
  78.       access them?
  79.   23) How do I use PostScript fonts with LaTeX?
  80.   24) How can I convert from format Y to TeX or LaTeX, and vice-versa?
  81.   25) How do I get a file into the major style repositories?
  82.   26) Where can I get font Y?
  83.   27) Where can I get a dvi driver for the HP LaserJet?
  84.   28) TeX and LaTeX are hyphenating words weirdly. What can I do?
  85.   29) How can I convert a TeX or LaTeX file into a plain ASCII file,
  86.       with all the formatting intact, a la nroff?
  87.   30) How do I enlarge TeX? I keep getting ``memory capacity exceeded''
  88.       errors.
  89.   31) In LaTeX, I used \pagestyle{empty}, but the first page is still 
  90.       numbered. What do I do?
  91.   32) Where do I find documentation about BibTeX?
  92.   33) How do I use BibTeX with plain TeX?
  93.   34) How do I draw Feynman diagrams in LaTeX?
  94.   35) What is the New Font Selection Scheme (NFSS)?
  95.   36) In LaTeX, my cross-references for floats (figures and tables) are
  96.       incorrect. What's wrong?
  97.   37) I want to change the margins in LaTeX. What can I do?
  98.   38) How do I find the width of a letter, word, or phrase in TeX?
  99.   39) In LaTeX, is there a comment or ``ignore'' environment with which
  100.       I can exclude blocks of text from the .dvi file?
  101.   40) Where can I find a spelling checker for my TeX file?
  102.   41) What is LaTeX2e?
  103.   42) In LaTeX, how can I define a new log-like function?
  104.   43) In LaTeX, how do I put a \sqrt in my \caption statement?
  105.   44) In LaTeX, how do I get thin and thick \hlines in a table?
  106.   45) In LaTeX, how do I number the bibliography using Arabic numbers without
  107.       square brackets or using superscripts?
  108.   46) In LaTeX, why are my cites all numbered zero?
  109.   47) In LaTeX, my figures get put on a page by themselves with too much
  110.       whitespace, but when I tried \begin{figure}[t] they get printed at
  111.       the end. Why?
  112.   48) In LaTeX, how do I make a line break in a section title?
  113.   49) In LaTeX, how do I number equations by section?
  114.   50) What is the fontinst package?
  115.  
  116. If you are looking, for instance, for the answer to question 17, and wish
  117. to skip everything else, you can search ahead for the regular expression
  118. ``^17)''.
  119.  
  120. These are all legitimate questions, but they seem to appear too 
  121. frequently for long-time readers of the list. 
  122.  
  123. Many of the answers below tell you that you can obtain something
  124. through anonymous ftp. ``Ftp'' stands for file transfer protocol, and
  125. is also the name of a program implementing the protocol. The program
  126. allows users to transfer files to and from remote sites, if the sites
  127. are connected via a network such as the Internet. ``Anonymous ftp'' 
  128. indicates a user may connect to a remote site as the user 
  129. ``anonymous'' with a password consisting of their email address, and
  130. thus be able to retrieve files from that site. Remember, anonymous
  131. ftp is a privilege and the system administrators for these sites 
  132. have made these files available out of their own generosity. Therefore
  133. please restrict your ftp'ing to non-prime hours at the various sites.
  134.  
  135. I would like to acknowledge Don Hosek, Ken Yap, Tomas Rokicki, Micah
  136. Beck, David Carlisle, and Donald Arseneau who provided many of the
  137. answers.  Joe Weening, Hal Perkins, Walter Carlip, Max Hailpern, Tad
  138. Guy, Raymond Chen, Henning Schulzrinne, Sebastian Rahtz, Mark James,
  139. Peter Galko, Mike Ernst, Rainer Sch\"opf, Oren Patashnik, Philippe
  140. Louarn, Rafal Zbikowski, Anita Marie Hoover, David Rhead, Darrell
  141. McCauley, Cameron Smith, Emma Pease, Patrick McPhee, Karl Berry, Robin
  142. Fairbairns, Joohee Jeong, Sam Steingold, J\"org Knappen, Barbara
  143. Beeton, Norman Ramsay, Richard Mathar, and Juergen Schlegelmilch
  144. provided additional material and criticisms. The format of this
  145. document is based on the Frequently Asked Questions written by Steve
  146. Hayman which formerly appeared in comp.unix.wizards. Any mistakes are
  147. mine. Send corrections, suggestions, and additions to
  148. bobby@hot.caltech.edu.
  149.  
  150. 1) How can I get a copy of this article?
  151.  
  152.    You're reading it aren't you? SAVE it :-). This article is posted
  153.    monthly to comp.text.tex and cross-posted to news.answers. It is
  154.    therefore archived at any site that archives news.answers.
  155.    News.answers is archived on rtfm.mit.edu, and this article is
  156.    available there via anonymous ftp in the directory
  157.    ./pub/usenet/news.answers/tex-faq. If you do not have anonymous
  158.    ftp, send an e-mail message containing the lines ``SENDME FAQ.'' to
  159.    fileserv@shsu.edu (fileserv@shsu.bitnet).  Another way to retrieve
  160.    it via email is through the mailserver at rtfm: send a message
  161.    containing the lines ``help'' and ``index'' to
  162.    mail-server@rtfm.mit.edu for information on how to obtain it.
  163.  
  164.    Other news.answers/FAQ archives are: cnam.cnam.fr (163.173.128.6)
  165.    in the anonymous ftp directory /pub/FAQ; ftp.uu.net (192.48.96.2)
  166.    in the anonymous ftp directory /pub/usenet (also available via mail
  167.    server requests to netlib@uunet.uu.net, or via uunet's 1-900
  168.    anonymous UUCP phone number); and ftp.cs.ruu.nl (131.211.80.17) in
  169.    the anonymous ftp directory NEWS.ANSWERS (also accessible via mail
  170.    server requests to mail-server@cs.ruu.nl). Many of the archives
  171.    mentioned in question 22 also maintain current versions of this
  172.    document.
  173.  
  174.    The UK TeX Users Group wrote an expanded version of this article
  175.    for their annals, Baskerville (vol. 4, no. 6, Dec. 1994). It is
  176.    available as a very nice Web page from the URL
  177.    http://www.cogs.susx.ac.uk/cgi-bin/texfaq2html?introduction=yes.
  178.  
  179. 2) Where can I get a DVI to PostScript conversion program?
  180.  
  181.    Two good DVI to PostScript conversion programs that run under
  182.    Unix are:
  183.      dvips - by Tomas Rokicki. This driver is very nice and has the
  184.        ability to deal with virtual fonts. Available via anonymous ftp
  185.        from labrea.stanford.edu (36.8.0.112) in ./pub. Dvips is
  186.        written in C and ports easily to other operating systems.  It
  187.        is available for VMS via anonymous ftp from any CTAN site (see
  188.        question 22) and also through the DECUS library (see question
  189.        22). A precompiled version for MSDOS is available from
  190.        monu1.cc.monash.edu.au (130.194.1.101) in ./pub/dvips54.zip,
  191.        from shape.mps.ohio-state.edu (128.146.110.30) in
  192.        ./pub/msdos/dvips/dvips54.zip, or from any CTAN site (see
  193.        question 22) in ./systems/msdos/drivers/dvips.  If you wish to
  194.        use postscript fonts, get dvipslib.zip as well.  Documentation
  195.        is available in dvips.ps.Z. Karl Berry has a version of dvips
  196.        called dvipsk which has a configure script and path searching
  197.        code similar to that in his other programs (e.g., web2c).  It
  198.        is available via anonymous ftp from ftp.cs.umb.edu
  199.        (158.121.104.33) in ./pub/tex/.
  200.  
  201.      dvitops - by James Clark. Available via anonymous ftp from any CTAN site
  202.        (see question 22, e.g., pip.shsu.edu (192.92.115.10)), in 
  203.        ./tex-archive/dviware/dvitops. Dvitops is written in C and will 
  204.        compile under Unix, MSDOS, VMS, and Primos.
  205.  
  206. 3) How can I include a PostScript figure in LaTeX?
  207.  
  208.    LaTeX has a standard package providing graphics inclusion, scaling,
  209.    rotation, and color, the graphics package. Keith Reckdahl has
  210.    written a primer for using this package which describes the
  211.    inclusion of Encapsulate PostScript (EPS) files, and covers such
  212.    additional issues as converting PostScript to EPS, figures and
  213.    subfigures, using compressed or non-EPS files (TIFF, GIF, etc.),
  214.    and putting LaTeX text or equations into EPS graphics using
  215.    PSfrag. This document is available from any CTAN site (see question
  216.    22) in ./tex-archive/info/epslatex.ps.
  217.  
  218.    Anil K. Goel has written a long document describing in detail how
  219.    to include figures, pictures, and images in LaTeX 2.09
  220.    documents. It is available via anonymous ftp from math.uwaterloo.ca
  221.    (129.97.140.144) in ./pub/figsInLatex.ps.Z. A dvi file with the
  222.    included PostScript files is also available.
  223.  
  224.    Also, one can use the older the epsfig macros written by Sebastian
  225.    Rahtz based on the psfig macros of Trevor Darrell used in LaTeX
  226.    2.09.  They are available via anonymous ftp from any CTAN site (see
  227.    question 22) in graphics/psfig. You will also need a dvi to
  228.    PostScript conversion program that supports \specials. The ones
  229.    mentioned in question 2 do, and come with a version of psfig ready
  230.    to use with them. The psfig macros work best with EPS Files. In
  231.    particular, psfig will need the file to have a BoundingBox (see
  232.    Appendix C of the _PostScript Language Reference Manual_). If you
  233.    don't have an EPS file, life can be difficult.
  234.  
  235.    To allow resizing by dvips (see question 2) with PostScript files
  236.    that are not EPS files, add the one line 
  237.    %%BoundingBox: llx lly urx ury
  238.    prior to any non-comment line in the PostScript
  239.    file. The four ``lower left'' and ``upper right'' arguments must be
  240.    numbers to indicate the lower left and upper right corner in units
  241.    of 1/72 of an inch. Otherwise, dvips assumes the PostScript file
  242.    fills a whole page.
  243.  
  244.    One further note about including PostScript figures is that they
  245.    are not part of the dvi file, but are included when you use a dvi
  246.    to PostScript conversion program. As a result, most dvi previewers
  247.    will simply show the blank space TeX has reserved for your figure,
  248.    not the figure itself.
  249.  
  250. 4) Where can I find a DVI previewer for machine Y running Q?
  251.  
  252.    This briefly lists some previewers available via anonymous ftp. All
  253.    are available from any CTAN site (see question 22) in addition to the
  254.    sites listed below:
  255.       dvipage - For SunView. This was published in volume 15 of 
  256.         comp.sources.unix and is available at sites that archive
  257.         this. One such source is archive.cis.ohio-state.edu 
  258.         (128.146.8.52).
  259.       xtex - For the X Window System. Available via anonymous ftp 
  260.         from ftp.cs.colorado.edu (128.138.243.151) in 
  261.         ./pub/cs/misc/SeeTeX/SeeTeX/SeeTeX-*.tar.Z.
  262.       dviapollo- for Apollo Domain. Available via anonymous ftp from
  263.         labrea.stanford.edu (36.8.0.112) in ./pub/dviapollo.tar.Z.
  264.       dvidis - For VAXstation VWS. Available via anonymous ftp from
  265.         src.doc.ic.ac.uk (146.169.2.1) in /packages/tex/dviware/dvidis.
  266.       xdvi - Also for the X Window System. Available via anonymous ftp
  267.         from ftp.x.org (192.112.44.100) in ./contrib/xdvi.tar.Z. Karl
  268.         Berry has a version of called xdvik with features analogous
  269.         to his dvipsk (see question 2) available via anonymous ftp from
  270.         ftp.cs.umb.edu (158.121.104.33) in ./pub/tex.
  271.       dvitovdu - for Tektronix 4010 and other terminals under Unix.
  272.         Available via anonymous ftp from any CTAN site (see question 22)
  273.         in the directory ./dviware/dvitovdu.
  274.       dvi2tty - A dvi to ASCII conversion program, for normal terminals.
  275.         Available from ftp.cs.ruu.nl (131.211.80.17) in 
  276.         ./pub/TEX/DVI/dvi2tty.shar. A VMS version is available from
  277.         fileserv@shsu.edu (see question 22).
  278.       texsgi - For SGI under Irix. Available via anonymous ftp from 
  279.         ftp.brl.mil (128.63.16.158) in ./info-iris/tex. Both a binary 
  280.         and source are available, but be sure to get the fonts as well.
  281.    
  282. 5) Where can I get the manual for PiCTeX?
  283.  
  284.    The PiCTeX manual is not free. It is available for $30 ($35 with the
  285.    disk) from the TeX Users Group:
  286.                      TeX Users Group
  287.                      P. O. Box 869
  288.                      Santa Barbara, CA 93102-0869 (USA)
  289.                      805-963-1338
  290.                      FAX: 805-963-8358
  291.                      tug@tug.org
  292.  
  293.    The proceeds from this sale go to Michael Wichura, the author of PiCTeX,
  294.    and TUG.
  295.  
  296. 6) In LaTeX, I put some definitions in my document, but I get the error
  297.    ``Use of \@ doesn't match its definition'' or ``You can't use 
  298.    \spacefactor in vertical (or math) mode.'' What's wrong?
  299.  
  300.    Definitions should be be in a style file, and if you move them there,
  301.    you should have no problem.
  302.  
  303.    If you don't want to do that, you need to include \makeatletter
  304.    before the definitions to allow the ``internal'' LaTeX commands to
  305.    be accessed.  These commands are normally protected from change by
  306.    having @ in them.  Since @ is not a letter, it is normally not
  307.    allowed as part of a multi-letter command name. To access internal
  308.    commands you need to tell LaTeX to pretend that @ is a letter.
  309.    This happens automatically when LaTeX reads a style file, but in
  310.    your main document you need to surround the offending commands with
  311.    \makeatletter ... \makeatother.
  312.  
  313. 7) What is OzTeX and where can I get it (TeX for the Mac)?
  314.  
  315.    OzTeX is a version of TeX for the Macintosh. An older version of
  316.    OzTeX (1.42) is public domain, but newer versions are shareware. A
  317.    DVI Previewer and PostScript driver are also included. It should
  318.    run on any Macintosh Plus, SE, II, or newer model, but will not
  319.    work on a 128K or 512K Mac. It was written by Andrew Trevorrow, and
  320.    is available via anonymous ftp from from midway.uchicago.edu
  321.    (128.135.12.73) in ./pub/OzTeX, which contains other public domain
  322.    TeX-related software for the Mac as well, or on a floppy disk from
  323.    TUG (see question 11).  Questions about OzTeX may be directed to
  324.    oztex@midway.uchicago.edu.
  325.    
  326. 8) What is Fig and where can I get it?
  327.  
  328.    Fig is a menu driven tool similar to MacDraw that allows you to
  329.    draw objects on the screen of a Sun Workstation running SunView.
  330.    TransFig is a set of tools which translate the code fig produces to
  331.    other graphics languages including PostScript and the LaTeX picture
  332.    environment. Both are available via anonymous ftp from any CTAN
  333.    archive (see question 22) or from ftp.cs.cornell.edu
  334.    (128.84.218.75) in ./pub/fig.  Fig is supported by Micah Beck
  335.    (beck@cs.cornell.edu) and Transfig is maintained by Brian Smith
  336.    (bvsmith@lbl.gov). Another tool for fig conversion is fig2MF which
  337.    generates METAFONT code from fig input, also available from CTAN
  338.  
  339.    XFig is essentially the same program except it runs under the X
  340.    Window System. It is available via anonymous ftp from ftp.x.org
  341.    (192.112.44.100) in ./contrib/applications/drawing_tools/xfig. It
  342.    was written by Brian Smith.
  343.  
  344. 9) How do I get WEB for C, FORTRAN, or some other language?
  345.  
  346.    TeX is written in the programming language WEB; WEB is a tool to
  347.    implement the concept of ``literate programming.'' For more information
  348.    on literate programming, see the newsgroup comp.programming.literate.
  349.  
  350.    There is a version of WEB for C called CWEB written by Silvio Levy. It
  351.    is available via anonymous ftp from princeton.edu (128.112.128.1) in 
  352.    the directory ./pub/cweb.
  353.  
  354.    There is a version of WEB called Spidery WEB which supports many 
  355.    languages including ADA, awk, and C. It was written by Norman Ramsey 
  356.    and, while not in the public domain, is usable free. It is available 
  357.    via anonymous ftp from pip.shsu.edu (192.92.115.10) in 
  358.    tex-archive/web/spiderweb.
  359.  
  360.    FWEB is a version of WEB for Fortran, Ratfor, and C written by John
  361.    Krommes (krommes@lyman.pppl.gov). Version 1.13 is available via
  362.    anonymous ftp from ftp.pppl.gov (192.55.106.129) in ./pub/fweb.
  363.  
  364.    SchemeWEB is a Unix filter that translates SchemeWEB into LaTeX source
  365.    or Scheme source. It was written by John Ramsdell and is available from
  366.    sun.soe.clarkson.edu (128.153.12.3) in ./pub/tex/tex-programs/schemeweb.
  367.  
  368.    APLWEB is a version of WEB for APL and is available from
  369.    watserv1.waterloo.edu (129.97.129.140) in ./languages/apl.
  370.  
  371.    There are three flavors of WEB that are language-independent and
  372.    have substantial user communities: funnelweb, noweb, and nuweb.
  373.    NoWeb and NuWeb both emphasize simplicity; NoWeb is a bit simpler
  374.    and more flexible, but NuWeb is more portable and easier to
  375.    install.  FunnelWeb is more complex, but is routinely used on a
  376.    wide variety of machines.  All three systems are available from any
  377.    CTAN site (see question 22) in directory
  378.    /tex-archive/web/{funnelweb,noweb,nuweb}.  An introduction to NoWeb
  379.    appeared in the September 1994 IEEE Software, page 97.  Funnelweb
  380.    also appeared in comp.sources.unix volume 26 issue 121, posted 11
  381.    April 1993.
  382.  
  383.    Most of the above are also available from your nearest CTAN site
  384.    (see question 22).
  385.  
  386. 10) How can I typeset music in TeX?
  387.  
  388.     A package called MuTeX, written by Andrea Steinbach and Angelika
  389.     Schofer, aids in doing this. It is available via anonymous ftp
  390.     from ftp.cs.ruu.nl (131.211.80.17) in pub/TEX/MuTeX.tar.Z.  This
  391.     package allows you to typeset single-staff music and lyrics.
  392.  
  393.     A more powerful package which allows the typesetting of orchestral
  394.     and polyphonic music is MusicTeX, written by Daniel Taupin 
  395.     (taupin@frups51.bitnet). It is available via anonymous ftp from
  396.     rsovax.ups.circe.fr (130.84.128.100) [.musictex]. It should also
  397.     be available from the archive sites detailed in question 22.
  398.  
  399.     There is a mailing list for discussion of typesetting music in TeX.
  400.     To subscribe, send a request to mutex-request@stolaf.edu.
  401.  
  402. 11) What is TUG and TUGboat?
  403.  
  404.     TUG is the TeX Users Group. TUGboat is their newsletter, containing
  405.     useful articles about TeX and METAFONT. TUG also distributes
  406.     TeX-related microcomputer software on disks. Inquiries should be 
  407.     directed to:
  408.                      TeX Users Group
  409.                      P. O. Box 869
  410.                      Santa Barbara, CA 93102-0869 (USA)
  411.                      805-963-1338
  412.                      FAX: 805-963-8358
  413.                      tug@tug.org
  414.  
  415.     TUGboat is not archived electronically, although some authors choose
  416.     to make their articles available through CTAN (see question 22). The
  417.     TUG newsletter, TeX and TUG News, is archived electronically on CTAN
  418.     sites in ./tex-archive/digests/ttn. TUG does offer a duplication 
  419.     service.
  420.  
  421. 12) How do I convert Adobe's afm files to tfm format?
  422.  
  423.     An afm2tfm program is distributed with dvips, available via
  424.     anonymous ftp from labrea.stanford.edu (36.8.0.112) in ./pub. Alan
  425.     Jeffrey's fontinst package is an afm2tfm converter written in TeX 
  426.     and will be used to support the PostScript tfm files for LaTeX2e
  427.     (see question 41). It is available from any CTAN site (see question
  428.     22).
  429.  
  430.     For the Macintosh, there is a program called EdMetrics which does
  431.     the job (and more). It is available free from:
  432.               Blue Sky Research
  433.               534 Southwest Third Avenue
  434.               Portland, Oregon 97204 (USA)
  435.               800-622-8398 or 503-222-9571
  436.  
  437. 13) In LaTeX, how do I get a double-spaced document?
  438.  
  439.     Are you producing a thesis, and trying to obey regulations that were
  440.     drafted in the typewriter era?  LaTeX is a typesetting system, so the
  441.     appropriate design conventions are for ``real books''.  Find whoever
  442.     is responsible for the regulations, and try to get the wording changed
  443.     to cater for typeset theses (e.g., to say ``if using a typesetting 
  444.     system, aim to make your thesis look like a well-designed book'').
  445.  
  446.     If you fail to convince your officials, or want some inter-line 
  447.     space for copy-editing:
  448.      - In LaTeX2e, use \linespread. For double-spaced output, use
  449.        \linespread{1.6}.
  450.      - Try changing \baselinestretch: \renewcommand{\baselinestretch}{1.2}
  451.        may be enough to give officials the impression you've kept
  452.        to their regulations.  Don't try changing \baselineskip: its
  453.        value is reset at any size-changing command.
  454.      - Alternatively, get doublespace.sty from any CTAN site (see question 22,
  455.        e.g., pip.shsu.edu (192.92.115.10)) in 
  456.        ./tex-archive/macros/latex/contrib/misc. There's also a setspace.sty
  457.        in the same directory which is more flexible, and consistent with the
  458.        latest release of LaTeX.
  459.  
  460.     It's not worth going to a lot of trouble.  (If officials won't allow
  461.     standard typographic conventions, you won't be able to produce an
  462.     aesthetically pleasing document anyway!)
  463.  
  464. 14) In LaTeX, how do I include a file in the verbatim environment?
  465.  
  466.     A good way to do this is to use Rainer Sch\"opf's verbatim.sty,
  467.     which provides the command \verbatiminput that takes a file
  468.     as an argument. This package is available from any CTAN site (see 
  469.     question 22) in ./tex-archive/macros/latex/distribs. Several
  470.     files are needed.
  471.  
  472.     Another way to do this is to use the alltt environment defined in
  473.     the style file alltt.sty available from the CTAN archives in 
  474.     ./tex-archive/macros/latex/contrib/misc/alltt.sty.
  475.  
  476. 15) In LaTeX, how do I do Y?
  477.  
  478.     If you can't figure out how to do something in LaTeX after you
  479.     have read the manual very carefully, asked your local LaTeX
  480.     guru, and thought about it, there is a LaTeX help service 
  481.     available. Please note that the way to accomplish something 
  482.     in LaTeX is often by using an appropriate style file, so please
  483.     check this also (see question 16). If none of this works, send mail 
  484.     in English describing your problem to latex-help@cs.stanford.edu. 
  485.     If you haven't gotten a reply to your problem within about a week, 
  486.     send mail to latex-help-coordinator@cs.stanford.edu.
  487.  
  488. 16) Where can I find a TeX macro or LaTeX style file for doing Y?
  489.  
  490.     Before you ask for a TeX macro or LaTeX style file to do something, 
  491.     please search the TeX macro index written by David M. Jones
  492.     (dmjones@theory.lcs.mit.edu) and available via anonymous ftp
  493.     from theory.lcs.mit.edu (18.52.0.92) in ./pub/tex/TeX-index. Those 
  494.     without access to anonymous ftp can send a message containing the
  495.     line ``send tex TeX-index'' to archive-server@theory.lcs.mit.edu.
  496.     The index is an excellent reference document with plenty of 
  497.     cross-references. Unfortunately, it is also very dated. For packages
  498.     listed in _The LaTeX Companion_, consult the file ./info/companion.ctan
  499.     on any CTAN site (see question 22).
  500.  
  501.     Another possibility is to use the searching features of the CTAN
  502.     archives. Once you have an anonymous ftp connection established to
  503.     a CTAN site, you can type the command `quote site index <term>'
  504.     and it will provide a list of files with the string <term> in
  505.     their names.
  506.  
  507. 17) How do I generate an index in TeX/LaTeX?
  508.  
  509.     Making an index is not trivial. There are several indexing programs
  510.     which aid in doing this. The following are available from any CTAN
  511.     site (see question 22):
  512.       makeindex - for LaTeX under Unix (but runs under other OS's
  513.          without changes). A version for the Macintosh is available from
  514.          Johnny Tolliver at tolliver%atf.mfenet@nmfecc.llnl.gov. The 
  515.          Makeindex documentation is a good source of information on how 
  516.          to create your own index. Makeindex can be used with some TeX macro
  517.          packages other than LaTeX, such as Eplain.
  518.       idxtex - for LaTeX under VMS.
  519.       texix - for TeX on CMS and Macintosh machines.
  520.       texindex - for LaTeX under Unix. Available from
  521.          comp.sources.misc archives in Volume 23.
  522.  
  523. 18) How do I get METAFONT to do what I want it to do?
  524.  
  525.     METAFONT allows you to create your own fonts, and ordinary TeX users
  526.     will never need to use it. METAFONT, unlike TeX, requires some 
  527.     customization. Each output device for which you will be generating 
  528.     fonts needs a mode associated with it. Modes are defined using the 
  529.     mode_def convention described on page 94 of _The METAFONTbook_. So 
  530.     first create a file, which we will call local.mf, containing all the 
  531.     mode_defs you will be using. The file modes.mf by Karl Berry,
  532.     available via anonymous ftp from ftp.cs.umb.edu (158.121.104.33) in
  533.     ./pub/tex is a good starting point for this. Listings of settings for 
  534.     various output devices are also published periodically in TUGboat 
  535.     (see question 11). Now create a plain base file using inimf, plain.mf, 
  536.     and local.mf:
  537.        % inimf
  538.        This is METAFONT....
  539.        **plain                 # you type plain
  540.        (output)
  541.        *input local            # you type this
  542.        (output)
  543.        *dump                   # you type this
  544.        Beginning to dump on file plain....
  545.        (output)
  546.        %
  547.     This should create a base file named plain.base (or something close)
  548.     and should be moved to the directory containing the base files on
  549.     your system.
  550.  
  551.     Now you need to make sure METAFONT loads this base when it starts
  552.     up. If METAFONT loads the plain base by default on your system, then
  553.     you're ready to go. Under Unix, we might, for instance define a 
  554.     command mf which executes ``virmf &plain,'' loading the plain base
  555.     file.
  556.  
  557.     The usual way to create a font with plain METAFONT is to then start 
  558.     it with the line
  559.        \mode=<mode name>; mag=<magnification>; input <font file name>
  560.     in response to the * prompt or on the METAFONT command line. If 
  561.     <mode name> is unknown or omitted, then the mode defaults to proof 
  562.     mode. If this has happened METAFONT will produce an output file
  563.     called <font file name>.2602gf. The <magnification> is a floating 
  564.     point number or magstep (magsteps are defined in _The METAFONTbook_ 
  565.     and _The TeXbook_). If mag=<magnification> is omitted, then the 
  566.     default is 1. For example, to generate cmr10 at 12pt for an epson 
  567.     printer you would type
  568.        mf \mode=epson; mag=1.2; input cmr10
  569.     Note that under Unix the '\' and ';' characters must usually be 
  570.     escaped, so this would typically look something like
  571.        mf \\mode=epson\; mag=1.2\; input cmr10
  572.  
  573.     If you don't have inimf or need a special mode that isn't in the
  574.     base, you can put its commands in a file (e.g., ln03.mf) and invoke
  575.     it on the fly with the \smode command. For example, to create 
  576.     ln03.300gf for an LN03 printer, using the file
  577.     % This is ln03.mf as of 2/27/90
  578.     % mode_def courtesy of John Sauter
  579.     proofing:=0;
  580.     fontmaking:=1;
  581.     tracingtitles:=0;
  582.     pixels_per_inch:=300;
  583.     blacker:=0.65;
  584.     fillin:=-0.1;
  585.     o_correction:=.5;
  586.     (note the absence of the mode_def and enddef commands), you would type
  587.        mf \smode="ln03"; input cmr10
  588.     
  589. 19) Where do I get TeX/LaTeX for machine Y running Q?
  590.  
  591.     Unix - The Unix TeX distribution is available via anonymous ftp from any 
  592.        CTAN archive (see question 22). The Northwest Computing Support Center
  593.        was ordered closed by the University of Washington, thus Unix TeX
  594.        can no longer be ordered.
  595.  
  596.        Instructions for retrieving TeX via anonymous ftp are available
  597.        in the document FTP.nwc, itself available via anonymous ftp from
  598.        ftp.cs.umb.edu (158.21.104.33) in ./pub/tex.
  599.  
  600.        Note: The Unix version of TeX allows your ``macros'' or ``inputs''
  601.        and ``fonts'' directories to be hierarchically organized with
  602.        further subdirectories, rather than dumping everything into one
  603.        directory. This can cause TeX to start very slowly. The cure
  604.        for this problem is to insure each subdirectory contains either
  605.        only directories or only files.
  606.  
  607.     AIX - TeX for the IBM RS6000 running AIX can be found on
  608.        ftp.dante.de (129.206.100.192) in ./tex-archive/systems/unix/aix3.2.
  609.  
  610.     PC - A TeX package for the PC, including LaTeX, BibTeX, previewers,
  611.        and drivers is available via anonymous ftp from 
  612.        vax.eedsp.gatech.edu (130.207.226.24) in ./pub/TeX. The variety here
  613.        is sbtex version 30 by Wayne Sullivan. EmTeX, another TeX package 
  614.        for the PC by Eberhard Mattes, is available via anonymous ftp from 
  615.        ftp.dante.de (129.206.100.192) in 
  616.        ./tex-archive/systems/msdos/emtex and also from niord.shsu.edu
  617.        (192.92.115.8) in [.emtex]. This package includes LaTeX, METAFONT,
  618.        BibTeX, etc., as well. Documentation is available in both German 
  619.        and English. The EmTeX user's mailing list is 
  620.        emtex-user@methan.chemie.fu-berlin.de.
  621.  
  622.     Mac - see question 7 for a public domain version (OzTeX). Another version
  623.        is CMacTeX, which has TeX 3.14, METAFONT 2.7, a screen previewer,
  624.        dvips, a PostScript printing utility for the LaserWriter, and some font
  625.        managing utilities. It is available from the CTAN archives discussed
  626.        in question 22. 
  627.  
  628.     TOPS-20 - TeX was originally written on a DEC-10 under WAITS, and so
  629.        was easily ported to TOPS-20. A Distribution that runs on TOPS-20 
  630.        is available via anonymous ftp from ftp.math.utah.edu 
  631.        (128.110.198.34) in ./pub/tex/pub/web.
  632.  
  633.     VAX/VMS - TeX for VMS is available from any CTAN site (see question 22)
  634.        in the directory ./systems/vms. Standard tape distribution is 
  635.        through DECUS.
  636.  
  637.     Atari - TeX is available for the Atari ST from atari.archive.umich.edu
  638.        (141.211.165.41) in ./atari/tex. If anonymous ftp is not available
  639.        to you, send a message containing the line ``help'' to
  640.        atari@atari.archive.umich.edu. The mail server can uuencode
  641.        binary files. Another version can be obtained via anonymous
  642.        ftp from ifi.informatik.uni-stuttgart.de (129.69.211.1) in
  643.        ./pub/atari.st/tex. There is also lots of TeX stuff for the
  644.        Atari on the CTAN and ftp.cs.ruu.nl archives mentioned in
  645.        question 22.
  646.  
  647.     Amiga - A full implementation of TeX 3.1 call PasTeX and METAFONT 2.7
  648.         are available via anonymous ftp from merlin.etsu.edu (192.43.199.20)
  649.         in ./ab20/AMIGA. It is also available via anonymous ftp from
  650.         forwiss.uni-passau.de (132.231.20.10) in ./pub/amiga/tex. 
  651.         You can also order a CDROM containing this and other amiga software
  652.         from Walnut Creek CDROM, (510) 947-5997.
  653.  
  654.     Tandy 6000 - If you are interested in building TeX on this machine
  655.         contact Ken Yap (ken@syd.dit.csiro.au), and he'll help you.
  656.  
  657. 20) Where can I get a thesis style for LaTeX?
  658.  
  659.     Thesis styles are usually very specific to your University, so it's
  660.     usually not profitable to ask the whole newsgroup for one. If you
  661.     want to write your own, a good place to start is the ucthesis style
  662.     available from any CTAN archive in macros/latex/contrib/ucthesis
  663.     (see question 22).
  664.  
  665. 21) How do I get symbols for ``the real numbers'', ``the complex numbers'',
  666.     and so on?
  667.  
  668.     These symbols are known as ``blackboard bold'' and are available
  669.     in the AMS fonts ``msam'' (e.g., ``msam10'' for 10pt) and
  670.     ``msbm''.  They replace the older ``msxm'' and ``msym''. The fonts
  671.     have a large number of mathematical symbols to supplement the ones
  672.     provided by TeX. The fonts are available via anonymous ftp from
  673.     e-math.ams.org (130.44.1.100) in the directory ./ams/amsfonts.
  674.     Two files which load the fonts and define the symbols are
  675.     provided, and both work with either TeX or LaTeX. Questions or
  676.     suggestions regarding these fonts should be directed to
  677.     tech-support@math.ams.org.
  678.  
  679.     A geometric sans serif blackboard bold font by Alan Jeffrey is
  680.     available from any CTAN archive (see question 22) in
  681.     ./tex-archive/fonts/bbold.  Another set of blackboard bold fonts
  682.     which may fit better with computer modern fonts are the BBM* fonts
  683.     available from any CTAN site (see question 22) in
  684.     ./tex-archive/fonts/cm/bbm.
  685.  
  686.     A set of LaTeX macros for a ``lazy person's'' blackboard bold are:
  687.        \newcommand{\R}{{\sf R\hspace*{-0.9ex}\rule{0.15ex}%
  688.        {1.5ex}\hspace*{0.9ex}}}
  689.        \newcommand{\N}{{\sf N\hspace*{-1.0ex}\rule{0.15ex}%
  690.        {1.3ex}\hspace*{1.0ex}}}
  691.        \newcommand{\Q}{{\sf Q\hspace*{-1.1ex}\rule{0.15ex}%
  692.        {1.5ex}\hspace*{1.1ex}}}
  693.        \newcommand{\C}{{\sf C\hspace*{-0.9ex}\rule{0.15ex}%
  694.        {1.3ex}\hspace*{0.9ex}}}
  695.  
  696. 22) What repositories of TeX material are available, and how can I access
  697.     them?
  698.  
  699.     To aid the archiving and retrieval of of TeX-related files, a TUG
  700.     working group developed the Comprehensive TeX Archive Network
  701.     (CTAN).  Each CTAN site has identical material, and maintains
  702.     authoritative versions of its material.  These collections are
  703.     extensive; in particular, almost everything mentioned in this
  704.     document is archived at the CTAN sites, even if not explicitly
  705.     stated.
  706.  
  707.     The CTAN sites are currently ftp.dante.de (129.206.100.192)
  708.     ftp.tex.ac.uk (128.232.1.87), and pip.shsu.edu (192.92.115.10). 
  709.     The organization of TeX files on all these sites is identical and
  710.     starts at ./tex-archive. To reduce network load, please use the
  711.     CTAN site or mirror closest to you. A complete and current list
  712.     of CTAN sites and mirrors can be obtained by using the finger
  713.     utility to finger ctan_us@ftp.SHSU.edu.
  714.  
  715.     To find software at a CTAN site, use anonymous ftp to the host,
  716.     and then execute the command `quote site index <search-term>'.
  717.  
  718.     An extremely nice interface to CTAN is provided by the CTAN-Web Home
  719.     Page maintained by Norman Walsh (norm@ora.com). It is found at
  720.     http://jasper.ora.com/ctan.html. If your network connection to this
  721.     host is fast enough, it should be the method of choice for accessing
  722.     the archive.
  723.  
  724.     The mail servers of the CTAN sites are not yet identical, but this is
  725.     planned. Here are the current methods of access via electronic mail:
  726.       - For the UK site, send a message to texserver@tex.ac.uk. The
  727.         first non-blank line of the message must contain a valid
  728.         TeXserver command (help, directory, files, whereis, search,
  729.         or path). The program will then mail you a response notifying
  730.         you that your request has been received. If you fail to get a
  731.         response from the TeXserver, you may need to use the ``path''
  732.         command to help the program out. For Internet users the
  733.         return address is of the form name%site@nsfnet-relay, while
  734.         for Bitnet and EARN it is name%site@earn-relay (i.e., include
  735.         a line that says ``path name%site@nsfnet-relay'' along with a
  736.         line containing ``help''). 
  737.       - For ftp.dante.de, send a message containing the line
  738.         ``help'' to mail-server@ftp.dante.de.
  739.       - For the SHSU site, send a message with the line "help" to
  740.         ftpmail@ftp.shsu.edu. This provides an ftp-like interface
  741.         through mail.
  742.  
  743.     There are several other repositories of TeX material available:
  744.       - ftp.cs.ruu.nl (131.211.80.17) also contains a substantial TeX
  745.         archive with ftp access. To use it via email, send a message
  746.         containing the line ``help'' to mail-server@cs.ruu.nl. This mail 
  747.         server can send binary files in a variety of different formats.
  748.       - There are LISTSERV facilities for TeX at LISTSERV@DHDURZ1.BITNET. 
  749.         Send a message containing the line ``help'' to this address.
  750.       - For users on BITNET, access to anonymous ftp for some files can
  751.         be obtained indirectly by sending mail to BITFTP@PUCC.BITNET.
  752.         Send a message containing the line ``help'' to this address for
  753.         more information.
  754.      
  755.     There is also the DECUS TeX collection, a collection of TeX material
  756.     for VMS, Unix, MS-DOS, and the Macintosh. It is available via 
  757.     anonymous ftp from wuarchive.wustl.edu (128.252.135.4) in ./decus/tex.
  758.     It can also be obtained from the DECUS Library (reference number 
  759.     VS0058) in the US, or through your DECUS office outside of the US. To 
  760.     contact the DECUS Library, send mail or call:
  761.                  The DECUS Program Library
  762.                  334 South Street SHR3-1/T25
  763.                  Shrewsbury, MA 01545-4195
  764.                  (800)332-3755
  765.     The last update to this collection was in February 1991, so it is old.
  766.      
  767.     Another good source of information is NETWORK SOURCES OF TeX WARE by
  768.     Peter Flynn which appeared in TeXhax, volume 90, issues 45-47 (in
  769.     May 1990).      
  770.  
  771. 23) How do I use PostScript fonts with LaTeX?
  772.  
  773.     The best way to do this is to install LaTeX2e (see question 41)
  774.     and use the PSNFSS2e package written by Sebastian Rahtz. It is
  775.     available from all the major archives mentioned in question
  776.     22. Some vendors who supply particular PostScript fonts may have
  777.     packages which simplify this even further. Note that you will
  778.     need tfm files for the PostScript fonts. They can be found on any
  779.     CTAN archive (see question 22) or they can be generated from afm
  780.     files using afm2tfm (see question 12).
  781.  
  782.     Alan Jeffrey's fontinst package allows you to handle PostScript
  783.     fonts in ways not dealt with by PSNFSS. See question 50 for more
  784.     details.
  785.  
  786. 24) How can I convert from format Y to TeX or LaTeX, and vice-versa?
  787.  
  788.     troff - troff-to-latex is available from any CTAN site (see
  789.       question 22) in the directory ./support/troff-to-latex. This
  790.       program, written by Kamal Al-Yahya at Stanford, assists in the
  791.       translation of a troff document into LaTeX format. It recognizes
  792.       most -ms and -man macros, plus most eqn and some tbl
  793.       preprocessor commands. Anything fancier needs to be done by
  794.       hand. Two style files are provided. There is also a man page
  795.       (which converts very well to LaTeX :-). The program is
  796.       copyrighted but free. An enhanced version of this program,
  797.       tr2latex, is available from ftp.informatik.rwth-aachen.de
  798.       (137.226.112.172) in ./pub/TeX.  The DECUS TeX distribution (see
  799.       question 22) also contains a program which converts troff to
  800.       TeX. If you are interested in obtaining a copy of this program
  801.       without getting the entire DECUS TeX distribution, send the
  802.       command: SENDME TROFFTOTEX in the body of a mail message to
  803.       FILESERV@SHSU.BITNET (FILESERV@SHSU.edu), or use anonymous ftp
  804.       to the directory [.TROFFTOTEX] on Niord.SHSU.edu (192.92.115.8).
  805.       The GNU version of troff, groff, can also convert to a .dvi file.
  806.  
  807.     scribe - Mark James has a copy of scribe2latex he has been
  808.       unable to test but which he will let anyone interested have.
  809.       Send email to jamesm@procor.dialogic.com. The program was written
  810.       by Van Jacobson of Lawrence Berkeley Laboratory.
  811.  
  812.     wordperfect -  wp2latex is available on wuarchive.wustl.edu
  813.       (128.252.135.4) in the directory ./mirrors/msdos/tex and from
  814.       any CTAN site (see question 22) in ./support/wp2latex. This is
  815.       a PC program written in Turbo Pascal by R. C. Houtepen at the
  816.       Eindhoven University in the Netherlands. It converts
  817.       WordPerfect 5.0 documents to LaTeX. Pascal source is included.
  818.       Users find it ``helpful'' and ``decent'' in spite of some
  819.       limitations. It gets high marks for handling font changes.
  820.       Limitations include no indices, table of contents, margins or
  821.       graphics.  It also won't handle the new features of WordPerfect
  822.       5.1, in particular the equation formatter. The program is
  823.       copyrighted but free.
  824.  
  825.       Glenn Geers of the University of Sydney(glenn@qed.physics.su.oz.au)
  826.       is translating wp2latex into C and adding some WordPerfect 5.1
  827.       features, in particular its equation handling. This is an
  828.       ongoing project; the most recent version can be retrieved via
  829.       anonymous ftp from suphys.physics.su.oz.au (129.78.129.1) in
  830.       ./wp2latex. It was posted to alt.sources on 8 August 1990.
  831.  
  832.       Commercial packages are available for DOS which convert from
  833.       WordPerfect to LaTeX, and from TeX and LaTeX to WordPerfect, but
  834.       I am unaware of any free products which do this.
  835.  
  836.     PC-Write - pcwritex.arc is available on wuarchive.wustl.edu
  837.       (128.252.135.4) in directory mirrors/msdos/tex and in zoo format
  838.       from any CTAN site (see question 22) in ./support/pcwritex.
  839.       This is a print driver for PC-Write that ``prints'' a PC-Write
  840.       V2.71 document to a TeX-compatible disk file. It was written by
  841.       Peter Flynn at University College, Cork, Ireland. It is public
  842.       domain.
  843.  
  844.     runoff - Peter Vanroose (vanroose@esat.kuleuven.ac.be) has 
  845.       written a RUNOFF-to-TeX conversion program in VMS Pascal.  It is 
  846.       available from comp.text archives (they do exist, don't they?  The 
  847.       program was submitted in December 1987) or from the author 
  848.       (peter@dit.lth.se) or from Mark James (jamesm@procor.dialogic.com).
  849.  
  850.     refer/Tib - There are a few programs for converting bibliographic data 
  851.       between BibTeX and refer/Tib formats. Up to date information is 
  852.       contained on the web page 
  853.       http://www.ecst.csuchico.edu/~jacobsd/bib/tools/index.html. Some
  854.       tools are also available via anonymous ftp from ftp.ai.mit.edu
  855.       (128.52.32.11) in the directory ./pub/refer-to-bibtex.  In spite
  856.       of the directory name, it also contains a shell script to
  857.       convert BibTeX to REFER as well. Unfortunately, this collection
  858.       is not maintained, and was last updated in 1990.
  859.  
  860.     RTF - A program for converting Microsoft's Rich Text Format to TeX
  861.       is available via anonymous ftp from astro.princeton.edu
  862.       (128.112.128.131) in ./pub/rtf2TeX.tar.Z. It was written and is
  863.       maintained by Robert Lupton (rhl@astro.princeton.edu). There is
  864.       also an rtf2LateX written by Erwin Wechtl available from 
  865.       ftp.vmars.tuwien.ac.at (128.130.39.16) in ./pub/misc.
  866.  
  867.     Microsoft Word - A rudimentary program for converting MS-Word
  868.       to LaTeX is wd2latex, for MS-DOS, available via anonymous ftp
  869.       from any CTAN site (see question 22). A better idea, however, 
  870.       is to convert the document to RTF format and use the RTF 
  871.       converter mentioned above.
  872.     
  873.     In addition, a group at Ohio State University is working on a common
  874.     document format based on SGML.  In theory any format could be
  875.     translated to or from this one.  Also, Framemaker supposedly has
  876.     ``import filters'' to aid in the translation from alien formats
  877.     (presumably including TeX) to Framemaker; perhaps other desktop
  878.     publishing programs have similar things.
  879.       
  880. 25) How do I get a file into the major style repositories?
  881.     
  882.     Use anonymous ftp to any CTAN archive (see question 22) and
  883.     retrieve the file README.uploads in the root directory. It contains
  884.     instructions for uploading files and notifying the appropriate
  885.     people for that site.
  886.  
  887.     If you cannot use ftp, mail your contribution to sty-mgr@shsu.edu
  888.     and it will be passed along. You will make everyone's life easier
  889.     if you choose a descriptive and unique name for your submission, so
  890.     it's probably good idea to browse through some of the styles
  891.     already available to insure your style file's name is not already
  892.     in use.
  893.  
  894. 26) Where can I get font Y?
  895.  
  896.     A comprehensive list of METAFONT fonts is posted to Comp.fonts
  897.     about once every six weeks by Lee Quin (lee@sq.sq.com). It contains
  898.     both commercial fonts and fonts available via anonymous ftp. Most
  899.     of the fonts available via anonymous ftp are available from
  900.     the CTAN archives (see question 22). Also, the file wujastyk.txh
  901.     ./tex-archive/digests/texhax/txh/wujastyk.txh is a copy of
  902.     Dominik Wujastyk's font article, and contains information on
  903.     METAFONT fonts as well.
  904.  
  905. 27) Where can I get a dvi driver for the HP LaserJet?
  906.  
  907.     PC - The emtex package mentioned in question 19 contains a driver for
  908.        the LaserJet, dvihplj. 
  909.  
  910.     Version 2.10 of the Beebe drivers support the LaserJet. These drivers
  911.     will compile under Unix, VMS, and on the Atari ST and DEC-20's. They
  912.     are available from ftp.math.utah.edu (128.110.198.34) in ./pub/tex/dvi.
  913.  
  914. 28) TeX and LaTeX are hyphenating words weirdly. What can I do?
  915.  
  916.     You have a version mismatch problem. The hyphenation algorithm changed
  917.     between version 2.9 and 3.0. If you are using TeX version 3.0 or
  918.     later, make sure you have plain.tex and lplain.tex files with a
  919.     version number of at least 3.0.
  920.  
  921.     For those of you curious about the change, here's what happened:
  922.     in versions of TeX before 3.0 the hyphenation algorithm would not
  923.     break a word if the part before the break was not at least two
  924.     characters long, and the part after the break at least three 
  925.     characters long. Starting with version 3.0 two integer parameters,
  926.     \lefthyphenmin and \righthyphenmin, control the length of these
  927.     fragments. These are set to 2 and 3, respectively, in the new
  928.     plain and lplain formats. They can be set to any value, of course,
  929.     but if \lefthyphenmin + \righthyphenmin is greater than 62, all
  930.     hyphenation is suppressed.
  931.  
  932. 29) How can I convert a TeX or LaTeX file into a plain ASCII file,
  933.     with all the formatting intact, a la nroff?
  934.  
  935.     Ralph Droms (droms@bucknell.edu) has a style file and a C program
  936.     that provide the LaTeX equivalent of nroff. Although it doesn't do
  937.     a good job with tables and math, it's the best way to convert that
  938.     I've seen. The software is available for anonymous ftp from
  939.     sol.cs.bucknell.edu (134.82.1.8) in ./droms/txt-dist.tar. This is a
  940.     modification of the dvi2tty program; the original often does an
  941.     acceptable job and can be gotten from any CTAN site (see question 22).
  942.  
  943.     Another possibility is to use screen.sty, available from all the
  944.     major archives. However you need a program called crudetype to
  945.     process the resulting dvi file. It is available from any CTAN site
  946.     in ./tex-archive/dviware/crudetype and from 
  947.     ftp.uni-stuttgart.de (129.69.8.13) in
  948.     ./tex-archive/dviware/screenview. Another possibility is to use
  949.     the LaTeX-to-ASCII conversion program, l2a, available from
  950.     comp.sources.misc archives (one archive site is ftp.uu.net
  951.     (192.48.96.9)), although this is really more of a de-TeXing
  952.     program. If you are running under Unix and have C++ and perl, you
  953.     might try Jonathan Monsarrat's LameTeX package (which actually
  954.     does much more than this), available from wilma.cs.brown.edu
  955.     (128.148.33.66) in ./pub/lametex.tar.Z.
  956.  
  957. 30) How do I enlarge TeX? I keep getting `memory capacity exceeded'
  958.     errors.
  959.  
  960.     Most of the time, a ``memory capacity exceeded'' error can be fixed
  961.     without enlarging TeX.  The most common causes are unmatched braces,
  962.     extra-long lines, and poorly-written macros.  Extra-long lines
  963.     are often introduced when files are transferred incorrectly between
  964.     operating systems.  (The tell-tale sign of an extra-long line error
  965.     is when the complaint is that the `buf_size' has overflowed.)
  966.  
  967.     If you really need to extend your TeX's capacity, the proper method
  968.     varies depending on your installation.  In the purest form, you
  969.     change the parameters in module 11 (``The following parameters can
  970.     be changed...'')  In less pure forms, you might need to modify a
  971.     change file, or perhaps change some environment variables.  Consult
  972.     the documentation that came with your particular implementation.
  973.  
  974. 31) In LaTeX, I used \pagestyle{empty}, but the first page is still 
  975.     numbered. What do I do?
  976.  
  977.     If you see this, you are using the \maketitle command too. This is
  978.     not a bug but a feature! The standard LaTeX styles are written so
  979.     that initial pages (pages containing a \maketitle, \part, or \chapter)
  980.     have a different page style than the rest of the document. Hence, the
  981.     above commands internally issue a \thispagestyle{plain}. This is
  982.     usually not acceptable behavior if the page style is `empty'.
  983.  
  984.     Possible workarounds include:   
  985.      - Put \thispagestyle{empty} immediately after the \maketitle command, 
  986.        with no blank line between them.
  987.      - Use fancyheadings.sty, available from any CTAN (see question 22).
  988.        In this style, the style for initial pages can be customized as well.
  989.  
  990. 32) Where do I find documentation about BibTeX?
  991.  
  992.     BibTeX, a program originally designed to produce bibliographies in
  993.     conjunction with LaTeX, is explained in Section 4.3 and Appendix B 
  994.     of Leslie Lamport's LaTeX manual.  The ``BibTeXing'' document, 
  995.     contained in the file btxdoc.tex, gives a more complete description.
  996.     _The LaTeX Companion_ also has information on BibTeX and writing 
  997.     BibTeX style files.
  998.  
  999.     The ``Designing BibTeX Styles'' document, contained in the file 
  1000.     btxhak.tex, explains the postfix stack-based language used to
  1001.     write BibTeX styles (.bst files).  The file btxbst.doc is the template
  1002.     file for the four standard styles (plain, abbrv, alpha, unsrt). It
  1003.     also contains the documentation for them.
  1004.  
  1005.     The current Unix-BibTeX man page, contained in the file
  1006.     bibtex.1, was updated in January 1992 and is about one page long.
  1007.     There's an old and obsolete version floating around, written in 1985
  1008.     before ``BibTeXing'' and ``Designing BibTeX Styles'' appeared, that is
  1009.     several pages long.  You should ignore it (or throw it away), since it
  1010.     describes BibTeX version 0.98, style files of which are incompatible 
  1011.     with the current version, 0.99 (to be precise, 0.99c).
  1012.  
  1013.     All files mentioned in this answer are available via anonymous ftp
  1014.     from labrea.stanford.edu (36.8.0.112) in the BibTeX ftp area, 
  1015.     tex/bibtex. All the non-Unix files should be available on any system 
  1016.     that runs BibTeX; if they're not on your system, please complain to 
  1017.     your BibTeX installer or to your distribution source.
  1018.  
  1019. 33) How do I use BibTeX with plain TeX?
  1020.  
  1021.     The file btxmac.tex contains TeX macros and documentation for using
  1022.     BibTeX with plain TeX, either directly or with Karl Berry's Eplain
  1023.     package. It is available via anonymous ftp from labrea.stanford.edu
  1024.     (36.8.0.112) in tex/bibtex (see question 32 for more information 
  1025.     about BibTeX).
  1026.  
  1027. 34) How do I draw Feynman diagrams in LaTeX?
  1028.  
  1029.     Michael Levine's macro package for drawing Feynman diagrams in LaTeX
  1030.     is available via mail-server from physics.utoronto.ca. Send a message
  1031.     containing the line ``send INDEX'' to mail-server@physics.utoronto.ca
  1032.     for information on how to retrieve it. It is also available from any
  1033.     CTAN site or mirror (see question 22).
  1034.  
  1035.     Jos Vermaseren's ``axodraw'' package, uses PostScript \specials
  1036.     and is thus slightly less portable but much more powerful. Also,
  1037.     there is Thorsten Ohl's ``feynmf'' package for LaTeX2e which uses
  1038.     METAFONT (or MetaPost) to combine flexibility and portability.
  1039.     Both are available from any CTAN site (see question 22).
  1040.  
  1041. 35) What is the New Font Selection Scheme (NFSS)?
  1042.  
  1043.     NFSS is an extension to LaTeX written by Frank Mittelbach and Rainer
  1044.     Sch\"opf. It is described in TUGboat, volume 10 (1989), No. 2.
  1045.     In traditional typesetting, fonts are described by four parameters:
  1046.     the family (e.g., computer modern), the series (i.e., the weight and
  1047.     width of the font, like light or bold), the shape (e.g., italic), and
  1048.     the size. NFSS is a mechanism allowing the user to change any of these
  1049.     independently. NFSS makes it relatively easy to use nonstandard fonts
  1050.     such as the PostScript ones with LaTeX, and easy to change math fonts.
  1051.     It also allows dynamic loading of fonts at runtime (not when the
  1052.     format file is created).
  1053.  
  1054.     NFSS is no longer supported for LaTeX version 2.09, but is standard
  1055.     with LaTeX2e (see question 41).
  1056.  
  1057.     There is one caveat that applies to LaTeX documents written for
  1058.     the OLD scheme: some of them use special styles for special fonts
  1059.     which will not work under the NFSS.
  1060.  
  1061. 36) In LaTeX, my cross-references for floats (figures and tables) are
  1062.     incorrect. What's wrong?
  1063.  
  1064.     The \label command must come after the \caption command, or
  1065.     be part of it. For example,
  1066.        \begin{figure}               \begin{figure}
  1067.        \caption{A Figure}    or     \caption{A Figure\label{fig}}
  1068.        \label{fig}                  \end{figure}
  1069.        \end{figure}
  1070.     The \label command should in fact come immediately after the \caption
  1071.     command, as closing an environment will also cause problems:
  1072.           WON'T WORK                  WILL WORK
  1073.         \begin{figure}              \begin{figure}
  1074.         \begin{center}              \begin{center}
  1075.         \caption{A Figure}          \end{center}
  1076.         \end{center}                \caption{A Figure}
  1077.         \label{fig}                 \label{fig}
  1078.         \end{figure}                \end{figure}
  1079.  
  1080. 37) I want to change the margins in LaTeX. What can I do?
  1081.  
  1082.     This answer first helps you change the margins throughout a
  1083.     document, then tells you how to change the margins in a portion
  1084.     of the document.
  1085.  
  1086.     Perhaps the easiest way to get more out of a page in LaTeX is to
  1087.     get fullpage.sty, available from all the major archive servers
  1088.     mentioned in question 22. This sets the margins of the page identical
  1089.     to those of Plain TeX, i.e., 1-inch margins at all four sides of the
  1090.     paper. It also contains an adjustment for A4 paper.
  1091.  
  1092.     Here is a brief explanation of what's going on with the page
  1093.     parameters in LaTeX. They are explained in section C.5.3 of the
  1094.     LaTeX manual (pp. 181--182). A more complete explanation can be
  1095.     found Chapter 4 of _The LaTeX Companion_.  The margin parameters
  1096.     represent measurements made to the DVI file. The origin in DVI
  1097.     coordinates is one inch from the top of the paper and one inch
  1098.     from the left side. This explains the ``one inch less than''
  1099.     terminology used in the LaTeX manual. In DVI coordinates, positive
  1100.     horizontal measurements extend right across the page, and positive
  1101.     vertical measurements extend down the page. Thus, for margins
  1102.     closer to the left and top edges of the page than 1 inch, the
  1103.     corresponding parameters, e.g., \evensidemargin, \oddsidemargin,
  1104.     \topmargin, can be set to negative values.
  1105.  
  1106.     Finally, to change the margins of a document within the document,
  1107.     modifying the parameters listed in Figure C.3 will not work. They
  1108.     can only be changed in the preamble of the document, i.e, before
  1109.     the \begin{document} statement. To adjust the margins within a
  1110.     document we define an environment which does it:
  1111.       \newenvironment{changemargin}[2]{\begin{list}{}{
  1112.          \setlength{\topsep}{0pt}\setlength{\leftmargin}{0pt}
  1113.          \setlength{\rightmargin}{0pt}
  1114.          \setlength{\listparindent}{\parindent}
  1115.          \setlength{\itemindent}{\parindent}
  1116.          \setlength{\parsep}{0pt plus 1pt}
  1117.          \addtolength{\leftmargin}{#1}\addtolength{\rightmargin}{#2}
  1118.          }\item }{\end{list}}
  1119.     This environment takes two arguments, and will indent the left
  1120.     and right margins by their values, respectively. Negative values
  1121.     will cause the margins to be widened, so
  1122.     \begin{changemargin}{-1cm}{-1cm} widens the left and right margins
  1123.     by 1cm.
  1124.  
  1125. 38) How do I find the width of a letter, word, or phrase in TeX?
  1126.  
  1127.     Put the word in a box, and measure the width of the box. For example,
  1128.         \setbox0=\hbox{hi}
  1129.         width=\wd0
  1130.     Note that if the quantity in the hbox is a phrase, the actual 
  1131.     measurement only approximates this width, since the interword glue
  1132.     can be adjusted in paragraph mode.
  1133.  
  1134.     In LaTeX, the following works (taken from the manual):
  1135.         \newlength{\gnat}
  1136.         \settowidth{\gnat}{\em small}
  1137.     This sets the value of the length command \gnat to the width of ``small''
  1138.     in emphasized text.
  1139.  
  1140. 39) In LaTeX, is there a comment or ``ignore'' environment with which
  1141.     I can exclude blocks of text from the .dvi file?
  1142.  
  1143.     Rainer Sch\"opf's verbatim.sty provides a comment environment which
  1144.     excludes everything between \begin{comment} and \end{comment}. It is
  1145.     available via anonymous ftp from any CTAN site (see question 22) in
  1146.     ./tex-archive/macros/latex/distribs. Several files are needed to
  1147.     install the package. A more general environment for doing this is
  1148.     comment.sty, also available from the CTAN sites in
  1149.     ./tex-archive/macros/latex/contrib/misc.
  1150.  
  1151. 40) Where can I find a spelling checker for my TeX file?
  1152.  
  1153.     For Unix, ispell is probably the program of choice. It is available
  1154.     from any CTAN site (see question 22) in ./systems/gnu/ispell*.
  1155.  
  1156.     For DOS, jspell is an extended version of ispell, and is available via
  1157.     anonymous ftp from any CTAN site.
  1158.  
  1159.     For VMS, a spell checker can be found via anonymous ftp from ftp.spc.edu
  1160.     in  [.MACRO32.SAVESETS]. Retrieve SPELL.ZIP and SPELL_DICTIONARY.ZIP. 
  1161.  
  1162.     For the Macintosh, a very nice spell checker called Excalibur is
  1163.     available from any CTAN site (see question 22) in
  1164.     ./tex-archive/support/mac/excalibur.
  1165.  
  1166. 41) What is LaTeX2e?
  1167.  
  1168.     LaTeX2e is the new standard version of LaTeX, prepared and
  1169.     supported by the LaTeX3 project team. It is the current version of
  1170.     LaTeX and is available from any CTAN site (see question 22) in
  1171.     ./tex-archive/macros/latex. LaTeX 2.09 is no longer supported.
  1172.  
  1173.     LaTeX2e is upwardly compatible with LaTeX 2.09, but supports many new
  1174.     features, including:
  1175.      - NFSS (see question 35) is now standard.
  1176.      - SliTeX is consolidated into it, and there is no longer a need for
  1177.        a separate program.
  1178.      - The output routine gives better control of floating environments,
  1179.        such as figures.
  1180.      - There is a documented interface to style files.
  1181.      - Enhanced box commands, e.g., options to specify the height of a 
  1182.        minipage.
  1183.      - \ref is now robust and can be used in \caption.
  1184.      - \newcommand can define commands with optional arguments.
  1185.      - A standard package for color and graphics inclusion.
  1186.  
  1187.     Since LaTeX2e is supported, you can report bugs or problems with it by
  1188.     typing `latex latexbug' and sending the report it generates to 
  1189.     latex-bugs@rus.uni-stuttgart.de.
  1190.  
  1191. 42) In LaTeX, how can I define a new log-like function?
  1192.  
  1193.     Use the \mathop command, as in:
  1194.          \newcommand{\diag}{\mathop{\mathrm{diag}}}
  1195.  
  1196.     Subscripts and superscripts to \diag will be done identically to \lim.
  1197.     If you want your subscripts and superscripts placed to the right, do:
  1198.          \newcommand{\diag}{\mathop{\mathrm{diag}}\nolimits}
  1199.  
  1200.     Older versions of LaTeX may not define \mathrm; alternatively, use
  1201.     {\rm diag}.
  1202.  
  1203. 43) In LaTeX, how do I put a \sqrt in my \caption statement?
  1204.  
  1205.     \sqrt is a fragile command and the argument to \caption is ordinarily
  1206.     a moving argument. Therefore \sqrt needs to be preceded with a \protect
  1207.     command.
  1208.  
  1209. 44) In LaTeX, how do I get thin and thick \hlines in a table?
  1210.  
  1211.     In the preamble, do: 
  1212.          \setlength{\doublerulesep}{\arrayrulewidth}.
  1213.     Then in a table or array, do:
  1214.          <stuff in the table>  \\\hline         %thin hline
  1215.          <more stuff in table> \\\hline\hline   %thick hline
  1216.  
  1217. 45) In LaTeX, how do I number the bibliography using Arabic numbers without
  1218.     square brackets or using superscripts?
  1219.  
  1220.     In a style file (or between \makeatletter ... \makeatother, see
  1221.     question 6), put:
  1222.          \renewcommand\@biblabel[1]{#1.}     % Arabic numbers, no brackets
  1223.          \renewcommand\@biblabel[1]{$^{#1}$} % Superscripts
  1224.  
  1225. 46) In LaTeX, why are my cites all numbered zero?
  1226.  
  1227.     Your document style and your version of LaTeX are incompatible.
  1228.     Since this may reflect an incomplete update done at some point,
  1229.     you should probably get the complete distribution (see question
  1230.     22).
  1231.  
  1232.     This problem usually occurs using an old university style file
  1233.     which is not maintained. If you are going to correct the style
  1234.     file, the definition of \thebibliography needs to be updated from
  1235.     article.cls (or article.sty).
  1236.  
  1237. 47) In LaTeX, my figures get put on a page by themselves with too much
  1238.     whitespace, but when I tried \begin{figure}[t] they get printed at
  1239.     the end. Why?
  1240.  
  1241.     Your figures are bigger than \floatpagefraction, but you are
  1242.     willing to accept pages with less text than the default.  Use:
  1243.          \renewcommand\floatpagefraction{.9}
  1244.          \renewcommand\topfraction{.9}
  1245.          \renewcommand\bottomfraction{.9}
  1246.          \renewcommand\textfraction{.1}
  1247.  
  1248.     You can adjust the cut-off value if you like, but it makes no
  1249.     sense to go higher than .95 (LaTeX's default value is only .5).
  1250.     Also, the first 3 values should be equal, and the last should be
  1251.     1 - \floatpagefraction.  Otherwise, you are likely to get floats
  1252.     flushed to the end.
  1253.  
  1254. 48) In LaTeX, how do I make a line break in a section title?
  1255.  
  1256.     It is better to try to prevent bad breaks by using ~ than to force
  1257.     good breaks. Unfortunately, LaTeX's default styles make titles with
  1258.     flush margins and most other styles have followed, so this may not
  1259.     work in many cases. You should definitely avoid hyphenation in titles.
  1260.  
  1261.     To force line breaks in a title, but not in the table of contents,
  1262.     use the optional argument for \section:
  1263.          \section[This is the Title]{This is\\ the Title}
  1264.  
  1265.     One benefit of this is that \\ is safe and no \protect is needed.
  1266.  
  1267. 49) In LaTeX, how do I number equations by section?
  1268.  
  1269.     In a style file (or between \makeatletter ... \makeatother, see
  1270.     question 6), put:
  1271.          \renewcommand\theequation{\thesection.\arabic{equation}}
  1272.          \@addtoreset{equation}{section}
  1273.  
  1274.     If you have chapters with a preamble that comes before the first
  1275.     section, you should not put equations there, as you will get funny
  1276.     numbers like 3.0.1. There are also two style files available from
  1277.     any CTAN site called seceqn.sty and apeqnum.sty. The first numbers
  1278.     equations by section, and the second gives individual equation
  1279.     numbers to equations in the appendix.
  1280.  
  1281. 50) What is the fontinst package?
  1282.  
  1283.     Fontinst is a package written and supported by Alan Jeffrey. It
  1284.     makes the inclusion of PostScript fonts in LaTeX very easy by
  1285.     providing a set TeX macros which allows users to install virtual
  1286.     fonts. It can convert fonts from Adobe Font Metric (afm) or TeX
  1287.     Property List (pl) format into Virtual Property List (vpl)
  1288.     format. These Virtual Fonts (vfs) can then be used by your
  1289.     favorite device driver, such as dvips. Fontinst is available from
  1290.     any CTAN archive (see question 22) in ./fonts/utilities/fontinst.
  1291.     
  1292.     The package is written in TeX, for maximum portability at the cost
  1293.     of speed. It supports the OT1 (Computer Modern) and T1 (Cork)
  1294.     encodings, and allows fonts to be generated in an arbitrary
  1295.     encoding, with arbitrary `fake' characters---for example the `ij'
  1296.     character can be faked if necessary by putting an `i' next to a
  1297.     `j'. In addition, it can be customized by the user to deal with
  1298.     arbitrary font encodings.
  1299.     
  1300.     The package allows kerning to be shared between characters, for
  1301.     example `ij' can be kerned on the left as if it were an `i' and on
  1302.     the right as if it were a `j'. This is useful, since many
  1303.     PostScript fonts only include kerning information for characters
  1304.     without diacriticals.  Fontinst allows more than one PostScript
  1305.     font to contribute to a TeX font, for example the `ffi' ligatures
  1306.     for a font can be taken from the Expert encoding, if you have it,
  1307.     and it automatically generates an fd file for use with LaTeX. You
  1308.     can generate math fonts with nextlarger, varchar, and arbitrary
  1309.     font dimensions. Caps and small caps fonts can be generated with
  1310.     letter spacing and kerning.
  1311.      
  1312.     You use fontinst by writing a short LaTeX source file describing
  1313.     which fonts you want to combine, which transformations are
  1314.     necessary and what fonts you want to have finally. There are many
  1315.     contributions that can serve as a base for you to get started with
  1316.     fontinst. Running LaTeX on this source file will then produce the
  1317.     desired font definition and property files.
  1318.  
  1319. -- 
  1320. Bobby Bodenheimer                @hot.caltech.edu
  1321. // ARPA  : bobby@hot.caltech.edu                |
  1322. // BITNET: bobby@caltech.bitnet                 | Woof!
  1323. // UUCP  : {amdahl,ames!elroy}!cit-vax!bobby    | 
  1324.