Usr Guide
Usr Guide
Usr Guide
31 July 2001
Contents
1 Introduction
Welcome to LATEX 2 , the new standard version of the LATEX Document Prepa-
ration System.
This document describes how to take advantage of the new features of LATEX,
and how to process your old LATEX documents with LATEX 2 . However, this
document is only a brief introduction to the new facilities and is intended for
authors who are already familiar with the old version of LATEX. It is not a
reference manual for LATEX 2 nor is it a complete introduction to LATEX.
1
The introduction of a new release also made it possible to add a small number
of often-requested features and to make the task of writing packages and classes
simpler.
TEX Users Group, P.O. Box 1239, Three Rivers, CA 93271-1239, USA
Fax: +1 209 561 4584 Email: tug@mail.tug.org
UK TUG, 1 Eymore Close, Selly Oak, Birmingham B29 4LB, UK
Fax: +44 121 476 2159 Email: uktug-enquiries@tex.ac.uk
The LATEX3 project has its home page on the World Wide Web at:
http://www.latex-project.org/
This page describes LATEX and the LATEX3 project, and contains pointers to other
LATEX resources, such as the user guides, the TEX Frequently Asked Questions,
and the LATEX bugs database.
Older articles covering aspects of the LATEX3 project are also available for anony-
mous ftp from the Comprehensive TEX Archive, in the directory:
tex-archive/info/ltx3pub
The file ltx3pub.bib in that directory contains an abstract of each of the files.
2
1.3 Overview
This document contains an overview of the new structure and features of LATEX.
It is not a self-contained document, as it contains only the features of LATEX
which have changed since version 2.09. You should read this document in con-
junction with an introduction to LATEX.
3
We are gradually turning the source code for LATEX into a LATEX document
LATEX: the program. This document includes an index of LATEX commands and
can be typeset from source2e.tex.
For more information about TEX and LATEX, please contact your local TEX Users
Group, or the international TEX Users Group (see page ??).
The main difference between LATEX 2.09 and LATEX 2 is in the commands before
\begin{document}.
In LATEX 2.09, documents had styles, such as article or book, and options, such
as twoside or epsfig. These were indicated by the \documentstyle command:
\documentstyle[hoptionsi]{hstylei}
\documentstyle[twoside,epsfig]{article}
However, there were two different types of document style option: built-in op-
tions such as twoside; and packages such as epsfig.sty. These were very
different, since any LATEX document style could use the epsfig package but only
document styles which declared the twoside option could use that option.
To avoid this confusion, LATEX 2 differentiates between built-in options and
packages. These are given by the new \documentclass and \usepackage com-
mands:
\documentclass[hoptionsi]{hclassi}
\usepackage[hoptionsi]{hpackagesi}
\documentclass[twoside]{article}
\usepackage{epsfig}
4
You can load more than one package with a single \usepackage command; for
example, rather than writing:
\usepackage{epsfig}
\usepackage{multicol}
\usepackage{epsfig,multicol}
Note that LATEX 2 still understands the LATEX 2.09 \documentstyle command.
This command causes LATEX 2 to enter LATEX 2.09 compatibility mode, which
is described in Section ??.
You should not, however, use the \documentstyle command for new documents
because this compatibility mode is very slow and the new features of LATEX 2
are not available in this mode.
To help differentiate between classes and packages, document classes now end
with .cls rather than .sty. Packages still end with .sty, since most LATEX 2.09
packages work well with LATEX 2 .
In LATEX 2.09, only document styles could have options such as twoside or
draft. In LATEX 2 , both classes and packages are allowed to have options. For
example, to specify a two-sided article with graphics using the dvips driver,
you write:
\documentclass[twoside]{article}
\usepackage[dvips]{graphics}
It is possible for packages to share common options. For example, you could, in
addition, load the color package by specifying:
\documentclass[twoside]{article}
\usepackage[dvips]{graphics}
\usepackage[dvips]{color}
But because \usepackage allows more than one package to be listed, this can
be shortened to:
\documentclass[twoside]{article}
\usepackage[dvips]{graphics,color}
5
In addition, packages will also use each option given to the \documentclass
command (if they know what to do with it), so you could also write:
\documentclass[twoside,dvips]{article}
\usepackage{graphics,color}
Class and package options are covered in more detail in The LATEX Companion
and in LATEX 2 for Class and Package Writers.
6
2.4 Standard packages
alltt This package provides the alltt environment, which is like the verbatim New feature
environment except that \, {, and } have their usual meanings. It is 1994/12/01
described in alltt.dtx and LATEX: A Document Preparation System.
doc This is the basic package for typesetting the documentation of LATEX pro-
grams. It is described in doc.dtx and in The LATEX Companion.
exscale This provides scaled versions of the math extension font. It is described
in exscale.dtx and The LATEX Companion.
fontenc This is used to specify which font encoding LATEX should use. It is
described in ltoutenc.dtx.
graphpap This package defines the \graphpaper command; this can be used New feature
in a picture environment. 1994/12/01
ifthen Provides commands of the form if. . . then do. . . otherwise do. . . . It is
described in ifthen.dtx and The LATEX Companion.
inputenc This is used to specify which input encoding LATEX should use. It is New feature
described in inputenc.dtx. 1994/12/01
latexsym LATEX 2 no longer loads the LATEX symbol font by default. To access
it, you should use the latexsym package. It is described in latexsym.dtx
and in The LATEX Companion; see also Section ??.
oldlfont This is used to emulate the font commands of LATEX 2.09. It is de-
scribed in The LATEX Companion.
showidx This causes the argument of each \index command to be printed on
the page where it occurs. It is described in LATEX: A Document Prepara-
tion System.
7
2.5 Related software
The following software should be available from the same distributor as your New description
copy of LATEX 2 . You should obtain at least the graphics and tools collections in 1998/12/01
order to have all the files described in LATEX: A Document Preparation System.
The amsmath package (part of amslatex and formerly known as amstex) and
babel are also mentioned in the list of standard packages in section C.5.2 of
that book.
babel This package and related files support typesetting in many languages.
It is described in The LATEX Companion.
cyrillic Everything you need (except the fonts themselves) for typesetting with New feature
Cyrillic fonts. 1998/12/01
graphics This includes the graphics package which provides support for the
inclusion and transformation of graphics, including files produced by other
software. Also included, is the color package which provides support for
typesetting in colour. Both these packages are described in LATEX: A
Document Preparation System.
psnfss Everything you need (except the fonts themselves) for typesetting with
a large range of Type 1 (PostScript) fonts.
tools Miscellaneous packages written by the LATEX3 project team.
These packages come with documentation and each of them is also described
in at least one of the books The LATEX Companion and LATEX: A Document
Preparation System.
2.5.1 Tools
This collection of packages includes, at least, the following (some files may have
slightly different names on certain systems):
calc Enables the use of certain algebraic notation when specifying values for New feature
lengths and counters. 1996/12/01
8
dcolumn Alignment on decimal points in tabular entries. Requires the array
package.
delarray Adds large delimiters around arrays. Requires array.
layout Show the page layout defined by the current document class.
multicol Typeset text in columns, with the length of the columns balanced.
rawfonts Preload fonts using the old internal font names of LATEX 2.09. See
Section ??.
xspace Smart space command that helps you to avoid the common mistake
of missing spaces after command names.
9
3 Commands
This section describes the new commands available in LATEX 2 . They are cov-
ered in more detail in LATEX: A Document Preparation System and in The LATEX
Companion.
\begin{filecontents} {hfile-namei}
hfile-contentsi
\end{filecontents}
10
There must be exactly one \documentclass command in a document; and it
must come after the filecontents environments, if any, but before any other
commands.
The hoption-listi is a list of options, each of which may modify the formatting
of elements which are defined in the hclass-namei file, as well as those in all
following \usepackage commands (see below).
The optional argument hrelease-datei can be used to specify the earliest de-
sired release date of the class file; it should contain a date in the format
yyyy/mm/dd. If a version of the class older than this date is found, a warning
is issued.
For example, to specify a two-column article, using a version of article.cls
released after June 1994, you specify:
\documentclass[twocolumn]{article}[1994/06/01]
This command is still supported for compatibility with old files. It is essentially
the same as \documentclass except that it invokes LATEX 2.09 compatibility
mode. It also causes any options in the hoption-listi that are not processed
by the class file to be loaded as packages after the class has been loaded. See
Section ?? for more details on LATEX 2.09 compatibility mode.
Any number of \usepackage commands is allowed. Each package file (as de-
noted by hpackage-namei) defines new elements (or modifies those defined in
the class file loaded by the hclass-namei argument of the \documentclass com-
mand). A package file thus extends the range of documents which can be pro-
cessed.
The hoption-listi argument can contain a list of options, each of which can
modify the formatting of elements which are defined in this hpackage-namei
file.
As above, hrelease-datei can contain the earliest desired release date of the
package file in the format yyyy/mm/dd; if an older version of the package is
found, a warning is issued.
For example, to load the graphics package for the dvips driver, using a version
of graphics.sty released after June 1994, you write:
\usepackage[dvips]{graphics}[1994/06/01]
Each package is loaded only once. If the same package is requested more than
once, nothing happens in the second or following attempt unless the package has
11
been requested with options that were not given in the original \usepackage.
If such extra options are specified then an error message is produced. See
Section ?? how to resolve this problem.
As well as processing the options given in the hoption-listi of the \usepackage
command, each package processes the hoption-listi of the \documentclass com-
mand as well. This means that any option which should be processed by every
package (to be precise, by every package that specifies an action for it) can
be specified just once, in the \documentclass command, rather than being
repeated for each package that needs it.
\listfiles
If this command is placed in the preamble then a list of the files read in (as a
result of processing the document) will be displayed on the terminal (and in the
log file) at the end of the run. Where possible, a short description will also be
produced.
Warning: this command will list only files which were read using LATEX com- New description
mands such as \input{hfilei} or \include{hfilei}. If the file was read using the 1995/12/01
primitive TEX syntax \input file (without { } braces around the file name)
then it will not be listed; failure to use the LATEX form with the braces can
cause more severe problems, possibly leading to overwriting important files, so
always put in the braces.
\setcounter{errorcontextlines} {hnumi}
The book document class introduces new commands to indicate document struc-
ture.
\frontmatter
\mainmatter
\backmatter
These commands indicate the beginning of the front matter (title page, table of
contents and prefaces), main matter (main text) and back matter (bibliography,
indexes and colophon).
12
3.4 Definitions
In LATEX, commands can have both mandatory and optional arguments, for
example in:
\documentclass[11pt]{article}
the 11pt argument is optional, whereas the article class name is mandatory.
In LATEX 2.09 users could define commands with arguments, but these had to
be mandatory arguments. With LATEX 2 , users can now define commands and
environments which also have one optional argument.
These commands have a new, second, optional argument; this is used for defining
commands which themselves take one optional argument. This new argument
is best introduced by means of a simple (and hence not very practical) example:
\example{BBB}
which prints:
or:
\example[XXX]{AAA}
which prints:
13
Mandatory arg: AAA; Optional arg: XXX.
The default value of the optional argument is YYY. This value is specified as the
[hdefaulti] argument of the \newcommand that created \example.
As another more useful example, the definition:
means that the input $\seq{a}$ produces the formula {a0 , . . . , an }, whereas
the input $\seq[k]{x}$ produces the formula {x0 , . . . , xk }.
In summary, the command:
LATEX 2 also supports the creation of environments that have one optional
argument. Thus the syntax of these two commands has been extended in the
same way as that of \newcommand.
14
3.5 Boxes
These next three commands for making LR-boxes all existed in LATEX 2.09.
They have been enhanced in two ways.
One small but far-reaching change for LATEX 2 is that, within the hwidthi ar-
gument only, four special lengths can be used. These are all dimensions of the
box that would be produced by using simply \mbox{htexti}:
Thus, to put hello in the centre of a box of twice its natural width, you would
use:
\makebox[2\width]{hello}
\framebox{\makebox[\totalheight]{\itshape f\/}}
Note that it is the total width of the framed box, including the frame, which is
set to \totalheight.
The other change is a new possibility for hposi: s has been added to l and r.
If hposi is s then the text is stretched the full length of the box, making use
of any rubber lengths (including any inter-word spaces) in the contents of the
box. If no such rubber length is present, an underfull box will probably be
produced.
As for the box commands above, \height, \width, etc. may be used in the
[hheighti] argument to denote the natural dimensions of the box.
15
The hinner-posi argument is new in LATEX 2 . It is the vertical equivalent to
the hposi argument for \makebox, etc, determining the position of htexti within
the box. The hinner-posi may be any one of t, b, c, or s, denoting top, bottom,
centered, or stretched alignment respectively. When the hinner-posi argument
is not specified, LATEX gives it same value as hposi (this could be the latters
default value).
\begin{lrbox} {hcmd i}
htexti
\end{lrbox}
This is an environment which does not directly print anything. Its effect is to
save the typeset htexti in the bin hcmd i. Thus it is like \sbox {hcmd i} {htexti},
except that any white space before or after the contents htexti is ignored.
This is very useful as it enables both the \verb command and the verbatim
environment to be used within htexti.
It also makes it possible to define, for example, a framed box environment.
This is done by first using this environment to save some text in a bin hcmd i
and then calling \fbox{\usebox{hcmd i}}.
The following example defines an environment, called fmpage, that is a framed
version of minipage.
\newsavebox{\fmbox}
\newenvironment{fmpage}[1]
{\begin{lrbox}{\fmbox}\begin{minipage}{#1}}
{\end{minipage}\end{lrbox}\fbox{\usebox{\fmbox}}}
The first of these next commands was in LATEX 2.09. The two new commands
are the obvious analogues.
The command \\, which is used to indicate a line-end in various places, is now New description
a robust command when used within arguments such as section titles. 1994/12/01
16
Also, because it is often necessary to distinguish which type of line is to be ended,
we have introduced the following new command; it has the same argument
syntax as that of \\.
\enlargethispage {hsizei}
\enlargethispage* {hsizei}
These commands increase the height of a page (from its normal value of
\textheight) by the specified amount hsizei, a rigid length. This change affects
only the current page.
This can be used, for example, to allow an extra line to be fitted onto the page
or, with a negative length, to produce a page shorter than normal.
The star form also shrinks any vertical white space on the page as much as
possible, so as to fit the maximum amount of text on the page.
These commands do not change the position of the footer text; thus, if a page New description
is lengthened too far, the main text may overprint the footer. 1995/12/01
3.9 Floats
\suppressfloats [hplacementi]
This command stops any further floating environments from being placed on
the current page. With an optional argument, which should be either t or b
17
(not both), this restriction applies only to putting further floats at the top or at
the bottom. Any floats which would normally be placed on this page are placed
on the next page instead.
This can be used, along with at least one of h, t, b and p, in the location
optional argument of a float.
If a ! is present then, just for this particular float, whenever it is processed by
the float mechanism the following are ignored:
The mechanism will, however, still attempt to ensure that pages are not overfull
and that floats of the same type are printed in the correct order.
Note that its presence has no effect on the production of float pages.
A ! specifier overrides the effect of any \suppressfloats command for this
particular float.
\rmfamily
\sffamily
\ttfamily
\mdseries
\bfseries
\upshape
\itshape
\slshape
\scshape
These are font commands whose use is the same as the commands \rm, \bf, etc.
The difference is that each command changes just one attribute of the font (the
attribute changed is part of the name). One result of this is that, for example,
\bfseries\itshape produces both a change of series and a change of shape, to
give a bold italic font.
18
\textrm{htexti}
\textsf{htexti}
\texttt{htexti}
\textmd{htexti}
\textbf{htexti}
\textup{htexti}
\textit{htexti}
\textsl{htexti}
\textsc{htexti}
\emph{htexti}
These are one-argument commands; they take as an argument the text which
is to be typeset in the particular font. They also automatically insert italic
corrections where appropriate; if you do not like the result, you can add an italic
correction with \/ or remove it with \nocorr. The \nocorr should always be
the first or last thing within the {htexti} argument.
Most of the fonts used within math mode do not need to be explicitly invoked;
but to use letters from a range of fonts, the following class of commands is
provided.
\mathrm {hlettersi}
\mathnormal {hlettersi}
\mathcal {hlettersi}
\mathbf {hlettersi}
\mathsf {hlettersi}
\mathtt {hlettersi}
\mathit {hlettersi}
These are also one-argument commands which take as an argument the letters
which are to be typeset in the particular font. The argument is processed in
math mode so spaces within it will be ignored. Only letters, digits and accents
have their font changed, for example $\mathbf{\tilde A \times 1}$ produces
A 1.
In LATEX 2.09, if you wanted a command to work both in math mode and in
text mode, the suggested method was to define something like:
\newcommand{\Gp}{\mbox{$G_p$}}
19
Unfortunately, the \mbox stops \Gp changing size correctly in (for instance)
subscripts or a fraction.
In LATEX 2 you can define it thus:
\newcommand{\Gp}{\ensuremath{G_p}}
\textsuperscript {htexti}
In LATEX 2.09 textual superscripts such as footnote markers were produced by New feature
internally entering math mode and typesetting the number as a math super- 1995/06/01
script. This normally looked fine since the digits in math fonts are the same as
those in text fonts when Computer Modern fonts are used. But when a different
document font (such as Times) is selected, the results look rather strange. For
this reason the command \textsuperscript has been introduced which type-
sets its argument in the current text font, in a superscript position and in the
correct size.
20
\r{htexti} New feature
1994/12/01
This command gives a ring accent, for example o can be typed \r{o}.
The reason for making these characters directly accessible is so that they will
work in encodings which do not have these characters.
21
\textbullet \textperiodcentered New feature
1994/12/01
These commands allow access to characters which were previously only available
in math mode:
The OT1 font encoding is fine for typesetting in English, but has problems when New description
typesetting other languages. The T1 encoding solves some of these problems, 1994/12/01
by providing extra characters (such as eth and thorn), and it allows words
containing accented letters to be hyphenated (as long as you have a package like
babel which allows for non-American hyphenation).
This section describes the commands you can use if you have the T1 fonts. To use
them, you need to get the ec fonts, or the T1-encoded PostScript fonts, as used
by psnfss. All these fonts are available by anonymous ftp in the Comprehensive
22
TEX Archive, and are also available on the CD-ROMs 4all TEX and TEX Live
(both available from the TEX Users Group).
You can then select the T1 fonts by saying:
\usepackage[T1]{fontenc}
\DH \DJ \NG \TH \dh \dj \ng \th New feature
1994/12/01
These commands produce characters eth, dbar, eng, and thorn.
23
3.16 Logos
\LaTeX
\LaTeXe
\LaTeX (producing LATEX) is still the main logo command, but if you need to
refer to the new features, you can write \LaTeXe (producing LATEX 2 ).
is drawn with:
\begin{picture}(50,50)
\thicklines
\qbezier(0,0)(0,50)(50,50)
\qbezier[20](0,0)(50,0)(50,50)
\thinlines
\put(0,0){\line(1,1){50}}
\end{picture}
The \bezier command is the same, except that the argument hN i is not op-
tional. It is provided for compatibility with the LATEX 2.09 bezier document
style option.
\samepage
The \samepage command still exists but is no longer being maintained. This is
because it only ever worked erratically; it does not guarantee that there will be
24
no page-breaks within its scope; and it can cause footnotes and marginals to be
wrongly placed.
We recommend using \enlargethispage in conjunction with page-break com-
mands such as \newpage and \pagebreak to help control page breaks.
\SLiTeX
Since SliTEX no longer exists, the logo is no longer defined in the LATEX kernel.
A suitable replacement is \textsc{Sli\TeX}. The SliTEX logo is defined in
LATEX 2.09 compatibility mode.
These symbols are contained in the LATEX symbol font, which was automatically
loaded by LATEX 2.09. However, TEX has room for only sixteen math font
families; thus many users discovered that they ran out. Because of this, LATEX
does not load the LATEX symbol font unless you use the latexsym package.
These symbols are also made available, using different fonts, by the amsfonts
package, which also defines a large number of other symbols. It is supplied by
the American Mathematical Society.
The latexsym package is loaded automatically in LATEX 2.09 compatibility mode.
4.1 Warning
This LATEX 2.09 compatibility mode is provided solely to allow you to process New description
1995/12/01
25
2.09 documents, i.e. documents that were written (we hope, a long time ago) for
a very old system and therefore could be processed by using a genuine antique
LATEX 2.09 system.
This mode is therefore not intended to provide access to the enhanced features of
LATEX 2 . Thus it must not be used to process new documents which masquerade
as 2.09 documents (i.e. they begin with \documentstyle) but which could not
be processed using that genuine antique LATEX 2.09 system because they contain
some new, LATEX 2 -only, commands or environments.
To prevent such misuse of the system, and the consequent trouble it causes
when such misleadingly encoded documents are distributed, the LATEX 2.09
compatibility mode turns off most of these new features and commands. Any
attempt to use them will give you an error message and, moreover, many of
them simply will not work, whilst others will produce unpredictable results. So
dont bother sending us any bug reports about such occurences since they are
intentional.
When using compatibility mode, it is possible that you will find problems with
font-changing commands in some old documents. These problems are of two
types:
In case of error messages it is possible that the document (or an old style file
used therein) contains references to old internal commands which are no longer
defined, see Section ?? for more information if this is the case.
One example of the unexpected is if you use one of the new style of math-mode New description
font changing command as follows: 1995/12/01
$ \mathbf{xy} A $
You may well find that this behaves as if you had put:
$ \bf {xy} A $
26
no longer allows so much customization but, for compatibility with old docu-
ments, the local configuration file latex209.cfg is loaded every time LATEX 2
enters LATEX 2.09 compatibility mode.
For example, if your site was customized to use the New Font Selection Scheme
(NFSS) with the oldlfont option, then you can make LATEX 2 emulate this by
creating a latex209.cfg file containing the commands:
\ExecuteOptions{oldlfont}\RequirePackage{oldlfont}
Similarly, to emulate NFSS with the newlfont option, you can create a
latex209.cfg file containing:
\ExecuteOptions{newlfont}\RequirePackage{newlfont}
To run an old document faster, and use the new features of LATEX 2 , you should
try using LATEX 2 native mode. This is done by replacing the command:
\documentstyle[hoptionsi,hpackagesi]{hclassi}
with:
\documentclass[hoptionsi]{hclassi}
\usepackage{latexsym,hpackagesi}
5 Local modifications
There are two common types of local modifications that can be done very simply. New description
Do not forget that documents produced using such modifications will not be 1995/12/01
usable at other places (such documents are called non-portable).
One type of modification is the use of personal commands for commonly used
symbols or constructions. These should be put into a package file (for example,
27
one called mymacros.sty) and loaded by putting \usepackage{mymacros} in
the document preamble.
Another type is a local document class that is very similar to one of the standard
classes but contains some straightforward modifications such as extra environ-
ments, different values for some parameters, etc. These should be put into a
class file; here we shall describe a simple method of constructing such a file
using, as an example, a class called larticle that is very similar to the article
class.
The class file called larticle.cls should (after the preliminary identification New feature
commands) start as follows: 1995/12/01
\LoadClassWithOptions{article}
This command should be followed by whatever additions and changes you wish
to make to the results of reading in the file article.sty.
The effect of using the above \LoadClassWithOptions command is to load the
standard class file article with whatever options are asked for by the document.
Thus a document using your larticle class can specify any option that could be
specified when using the standard article class; for example:
\documentclass[a4paper,twocolumn,dvips]{larticle}
6 Problems
This section describes some of the things which may go wrong when using
LATEX 2 , and what you can do about it.
LATEX 2 has a number of new error messages. Please also note that many error
messages now produce further helpful information if you press h in response to
the error prompt.
The named package has been loaded twice with different options. If you enter h
you will be told what the options were, for example, if your document contained:
\usepackage[foo]{fred}
\usepackage[baz]{fred}
28
then you will get the error message:
The cure is, as suggested, to load the package with both sets of options. Note
that since LATEX packages can call other packages, it is possible to get a package
option clash without explicitly requesting the same package twice.
which are now part of the latexsym package. The cure is to add:
\usepackage{latexsym}
The hcommand i is a LATEX 2 command but this is a LATEX 2.09 document. The
cure is to replace the command by a LATEX 2.09 command, or to run document
in native mode, as described in Section ??.
The command \newmathalphabet was used by the New Font Selection Scheme
Release 1 but it has now been replaced by \DeclareMathAlphabet, the use of
which is described in LATEX 2 Font Selection.
29
The best cure is to update the package which contained the \newmathalphabet
command. Find out if there is a new release of the package, or (if you wrote
the package yourself) consult LATEX 2 Font Selection for the new syntax of font
commands.
If there is no updated version of the package then you can cure this error
by using the newlfont or oldlfont package, which tells LATEX which version of
\newmathalphabet should be emulated.
You should use oldlfont if the document selects math fonts with syntax such as
this:
\cal{A}, etc.
The \verb command has been begun but not ended on that line. This usu-
ally means that you have forgotten to put in the end-character of the \verb
command.
The \verb command has been used inside the argument of another command.
This has never been allowed in LATEXoften producing incorrect output without
any warningand so LATEX 2 produces an error message.
A number of LATEX 2.09 internal commands have been removed, since their
functionality is now provided in a different way. See LATEX 2 for Class and
Package Writers for more details of the new, supported interface for class and
package writers.
These commands provided access to the seventy fonts preloaded by LATEX 2.09.
In contrast, LATEX 2 normally preloads at most fourteen fonts, which saves a
30
lot of font memory; but a consequence is that any LATEX file which used the
above commands to directly access fonts will no longer work.
Their use will usually produce an error message such as:
The cure for this is to update the document to use the new font-changing com-
mands provided by LATEX 2 ; these are described in LATEX 2 Font Selection.
If this is not possible then, as a last resort, you can use the rawfonts package,
which loads the seventy LATEX 2.09 fonts and provides direct access to them
using the old commands. This takes both time and memory. If you do not wish
to load all seventy fonts, you can select some of them by using the only option
to rawfonts. For example, to load only tenrm and tenbf you write:
\usepackage[only,tenrm,tenbf]{rawfonts}
The rawfonts package is distributed as part of the LATEX tools software, see
Section ??.
One of the more common mistakes in running LATEX is to read in old versions
of packages instead of the new versions. If you get an incomprehensible error
message from a standard package, make sure you are loading the most recent
version of the package. You can find out which version of the package has been
loaded by looking in the log file for a line like:
If you cant find the answer for your problem here, try looking in LATEX: A
Document Preparation System or The LATEX Companion. If you have a problem
with installing LATEX, look in the installation guide files which come with the
distribution.
31
If this doesnt help, contact your local LATEX guru or local LATEX mailing list.
If you think youve discovered a bug then please report it! First, you should
find out if the problem is with a third-party package or class. If the problem is
caused by a package or class other than those listed in Section ?? then please
report the problem to the author of the package or class, not to the LATEX3
project team.
If the bug really is with core LATEX then you should create a short, self-contained
document which exhibits the problem. You should run a recent (less than a year
old) version of LATEX on the file and then run LATEX on latexbug.tex. This
will create an error report which you should send, together with the sample
document and log file, to the LATEX bugs address which can be found in the file
latexbug.tex or bugs.txt.
7 Enjoy!
We certainly hope you will enjoy using the new standard LATEX but, if this is
not possible, we hope that you will enjoy success and fulfillment as a result of
the documents which it will help you to create.
If you find that the contribution of LATEX to your life is such that you would
like to support the work of the project team, then please read Section ?? and
discover practical ways to do this.
References
[1] Michel Goossens, Frank Mittelbach and Alexander Samarin. The LATEX
Companion. Addison-Wesley, Reading, Massachusetts, 1994.
[2] Michel Goossens, Sebastian Rahtz and Frank Mittelbach. The LATEX Graph-
ics Companion. Addison-Wesley, Reading, Massachusetts, 1997.
[3] Michel Goossens and Sebastian Rahtz. The LATEX Web Companion.
Addison-Wesley, Reading, Massachusetts, 1999.
[4] Donald E. Knuth. The TEXbook. Addison-Wesley, Reading, Massachusetts,
1986. Revised to cover TEX3, 1991.
32