AUCTeX User Manual
AUCTeX User Manual
Table of Contents
Executive Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Copying . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1 Introduction to AUCTeX . . . . . . . . . . . . . . . . . . . . . . 3
1.1 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 Contacts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Installing AUCTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1 Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 Configure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Build/install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.4 Loading the package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.5 Providing AUCTeX as a package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.6 Installation for non-privileged users. . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.7 Installation under MS Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.8 Customizing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3 Quick Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.1 Functions for editing TeX files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.1.1 Making your TeX code more readable. . . . . . . . . . . . . . . . . . . . . 18
3.1.2 Entering sectioning commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.1.3 Inserting environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.1.4 Inserting macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.1.5 Changing the font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.1.6 Other useful features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.2 Creating and viewing output, debugging . . . . . . . . . . . . . . . . . . . . . . . 20
3.2.1 One Command for LaTeX, helpers, viewers, and printing . . 20
3.2.2 Choosing an output format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.2.3 Debugging LaTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.2.4 Running LaTeX on parts of your document . . . . . . . . . . . . . . . 21
4.4.3 Itemize-like . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
4.4.4 Tabular-like . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
4.4.5 Customizing environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
8 Multifile Documents . . . . . . . . . . . . . . . . . . . . . . . . . . 52
10 Language Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
10.1 Using AUCTeX with European Languages . . . . . . . . . . . . . . . . . . . . 56
10.1.1 Typing and Displaying Non-ASCII Characters . . . . . . . . . . . 56
10.1.2 Style Files for Different Languages. . . . . . . . . . . . . . . . . . . . . . . 56
10.2 Using AUCTeX with Japanese TeX . . . . . . . . . . . . . . . . . . . . . . . . . . 58
11 Automatic Customization . . . . . . . . . . . . . . . . . . . 60
11.1 Automatic Customization for the Site . . . . . . . . . . . . . . . . . . . . . . . . 60
11.2 Automatic Customization for a User . . . . . . . . . . . . . . . . . . . . . . . . . 61
11.3 Automatic Customization for a Directory . . . . . . . . . . . . . . . . . . . . . 61
iii
Key Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Function Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Variable Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Concept Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Executive Summary 1
Executive Summary
AUCTEX is an integrated environment for editing LaTEX, ConTEXt, docTEX, Texinfo, and
TEX files.
Although AUCTEX contains a large number of features, there are no reasons to despair.
You can continue to write TEX and LaTEX documents the way you are used to, and only
start using the multiple features in small steps. AUCTEX is not monolithic, each feature
described in this manual is useful by itself, but together they provide an environment where
you will make very few LaTEX errors, and makes it easy to find the errors that may slip
through anyway.
It is a good idea to make a printout of AUCTEX’s reference card ‘tex-ref.tex’ or one
of its typeset versions.
If you want to make AUCTEX aware of style files and multi-file documents right away,
insert the following in your ‘.emacs’ file.
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
Another thing you should enable is RefTEX, a comprehensive solution for managing
cross references, bibliographies, indices, document navigation and a few other things. (see
Section “Installation” in The RefTEX manual)
For detailed information about the preview-latex subsystem of AUCTEX, see Section
“Introduction” in The preview-latex Manual.
There is a mailing list for general discussion about AUCTEX: write a mail with “sub-
scribe” in the subject to [email protected] to join it. Send contributions to
[email protected].
Bug reports should go to [email protected], suggestions for new features, and
pleas for help should go to either [email protected] (the AUCTEX developers),
or to [email protected] if they might have general interest. Please use the command
M-x TeX-submit-bug-report RET to report bugs if possible. You can subscribe to
a low-volume announcement list by sending “subscribe” in the subject of a mail to
[email protected].
Copying 2
Copying
AUCTEX primarily consists of Lisp files for Emacs (and XEmacs), but there are also instal-
lation scripts and files and TEX support files. All of those are free; this means that everyone
is free to use them and free to redistribute them on a free basis. The files of AUCTEX are not
in the public domain; they are copyrighted and there are restrictions on their distribution,
but these restrictions are designed to permit everything that a good cooperating citizen
would want to do. What is not allowed is to try to prevent others from further sharing any
version of these programs that they might get from you.
Specifically, we want to make sure that you have the right to give away copies of the
files that constitute AUCTEX, that you receive source code or else can get it if you want it,
that you can change these files or use pieces of them in new free programs, and that you
know you can do these things.
To make sure that everyone has such rights, we have to forbid you to deprive anyone
else of these rights. For example, if you distribute copies of parts of AUCTEX, you must
give the recipients all the rights that you have. You must make sure that they, too, receive
or can get the source code. And you must tell them their rights.
Also, for our own protection, we must make certain that everyone finds out that there
is no warranty for AUCTEX. If any parts are modified by someone else and passed on, we
want their recipients to know that what they have is not what we distributed, so that any
problems introduced by others will not reflect on our reputation.
The precise conditions of the licenses for the files currently being distributed as part of
AUCTEX are found in the General Public Licenses that accompany them. This manual
specifically is covered by the GNU Free Documentation License (see Appendix A [Copying
this Manual], page 70).
Chapter 1: Introduction to AUCTEX 3
1 Introduction to AUCTEX
This section of the AUCTEX manual gives a brief overview of what AUCTEX is. It is not
an attempt to document AUCTEX. Real documentation for AUCTEX is available in the
rest of the manual.
1.1 Installation
Read the section Chapter 2 [Installation], page 5, or Section 2.7 [Installation under MS Win-
dows], page 11, respectively for comprehensive information about how to install AUCTEX.
The installation routine tries to make the modes provided by AUCTEX the default for
all supported file types. If this does not happen in your case, add
(load "auctex.el" nil t t)
to your init file and consult the section Section 2.4 [Loading the package], page 8.
If you want to change the modes for which it is operative instead of the default, use
M-x customize-variable RET TeX-modes RET
If you want to remove a preinstalled AUCTEX completely before any of its modes have
been used,
(unload-feature ’tex-site)
should accomplish that.
If you are considering upgrading AUCTEX, the recent changes are described in
Appendix B [Changes], page 77.
1.2 Features
AUCTEX is a comprehensive customizable integrated environment for writing input files for
TEX/LaTEX/ConTEXt/Texinfo using Emacs or XEmacs.
It lets you process your source files by running TEX and related tools (such as output
filters, post processors for generating indices and bibliographies, and viewers) from inside
Emacs. AUCTEX lets you browse through the errors TEX reported, while it moves the
cursor directly to the reported error, and displays some documentation for that particular
error. This will even work when the document is spread over several files.
One component of AUCTEX that LaTEX users will find attractive is preview-latex, a
combination of folding and in-source previewing that provides true “What You See Is What
You Get” experience in your sourcebuffer, while letting you retain full control. preview-latex
comes with its own manual, see Section “preview-latex” in The preview-latex Manual.
AUCTEX automatically indents your ‘LaTEX-source’, not only as you write it — you can
also let it indent and format an entire document. It has a special outline feature, which can
greatly help you ‘getting an overview’ of a document.
Apart from these special features, AUCTEX provides a large range of handy Emacs
macros, which in several different ways can help you write your documents fast and
painlessly.
All features of AUCTEX are documented using the GNU Emacs online documentation
system. That is, documentation for any command is just a key click away!
Chapter 1: Introduction to AUCTEX 4
AUCTEX is written entirely in Emacs-Lisp, and hence you can easily add new features
for your own needs. It has become recently a GNU project. AUCTEX is distributed under
the ‘GNU General Public License Version 2’.
1.3 Availability
The most recent version is always available at
http://ftp.gnu.org/pub/gnu/auctex/
WWW users may want to check out the AUCTEX page at
http://www.gnu.org/software/auctex/
1.4 Contacts
Various mailing lists exist.
Send a mail with the subject “subscribe” to [email protected] in order to join
the general discussion list for AUCTEX. Articles should be sent to [email protected]. In a
similar way, you can subscribe to the [email protected] list for just getting important
announcements about AUCTEX. The list [email protected] is for bug reports which
you should usually file with the M-x TeX-submit-bug-report RET command.
If you want to address the developers of AUCTEX themselves with technical issues, they
can be found on the discussion list [email protected].
Chapter 2: Installing AUCTEX 5
2 Installing AUCTEX
Installing AUCTEX should be simple: merely ./configure, make, and make install for
a standard site-wide installation (most other installations can be done by specifying a
‘--prefix=...’ option).
On many systems, this will already activate the package, making its modes the default in-
stead of the built-in modes of Emacs. If this is not the case, consult Section 2.4 [Loading the
package], page 8. Please read through this document fully before installing anything. The
installation procedure has changed as compared to earlier versions. Users of MS Windows
are asked to consult See Section 2.7 [Installation under MS Windows], page 11.
2.1 Prerequisites
• A recent version of Emacs, alternatively XEmacs
Emacs 20 is no longer supported, and neither is XEmacs with a version of xemacs-
base older than 1.84 (released in sumo from 02/02/2004). Using preview-latex requires
a version of Emacs compiled with image support. While the X11 version of Emacs 21
will likely work, Emacs 22 is the preferred platform.
Windows Precompiled versions are available from
ftp://ftp.gnu.org/gnu/emacs/windows/.
Mac OS X A precompiled version including an installer as well as pre-
installed versions of AUCTEX and preview-latex is available from
http://homepage.mac.com/zenitani/emacs-e.html.
Debian GNU/Linux
Debian provides ‘emacs22-gtk’ (probably preferable) and ‘emacs22’ pack-
ages in its ‘unstable’ distribution.
Fedora GNU/Linux
Fedora 8 comes with Emacs 22.1 and Fedora 7 comes with a developer
version of the same.
openSUSE
openSUSE 10.3 comes with
Emacs 22.1. For some earlier openSUSE versions, Emacs 22.1 is available
from http://packages.opensuse-community.org/.
Self-compiled
Compiling Emacs yourself requires a C compiler and a number of tools
and development libraries. Details are beyond the scope of this man-
ual. Instructions for checking out the source code can be found at
http://savannah.gnu.org/cvs/?group=emacs.
If you really need to use Emacs 21 on platforms where this implies missing image
support, you should disable the installation of preview-latex (see below).
While XEmacs (version 21.4.15, 21.4.17 or later) is supported, doing this in a satisfac-
tory manner has proven to be difficult. This is mostly due to technical shortcomings
and differing API’s which are hard to come by. If AUCTEX is your main application
Chapter 2: Installing AUCTEX 6
for XEmacs, you are likely to get better results and support by switching to Emacs.
Of course, you can improve support for your favorite editor by giving feedback in case
you encounter bugs.
• A working TEX installation
Well, AUCTEX would be pointless without that. Processing documentation requires
TEX, LaTEX and Texinfo during installation. preview-latex requires Dvips for its op-
eration in DVI mode. The default configuration of AUCTEX is tailored for teTEX or
TEXlive-based distributions, but can be adapted easily.
• A recent Ghostscript
This is needed for operation of preview-latex in both DVI and PDF mode. Most ver-
sions of Ghostscript nowadays in use should work fine (version 7.0 and newer). If you
encounter problems, check Section “Problems with Ghostscript” in the preview-latex
manual.
• The texinfo package
Strictly speaking, you can get away without it if you are building from the distribution
tarball, have not modified any files and don’t need a printed version of the manual: the
pregenerated info file is included in the tarball. At least version 4.0 is required.
For some known issues with various software, see Section “Known problems” in the
preview-latex manual.
2.2 Configure
The first step is to configure the source code, telling it where various files will be. To do so,
run
./configure options
(Note: if you have fetched AUCTEX from CVS rather than a regular release, you will
have to first follow the instructions in ‘README.CVS’).
On many machines, you will not need to specify any options, but if configure cannot
determine something on its own, you’ll need to help it out with one of these options:
--prefix=‘/usr/local’
All automatic placements for package components will be chosen from sensible
existing hierarchies below this: directories like ‘man’, ‘share’ and ‘bin’ are
supposed to be directly below prefix.
Only if no workable placement can be found there, in some cases an alternative
search will be made in a prefix deduced from a suitable binary.
‘/usr/local’ is the default prefix, intended to be suitable for a site-wide in-
stallation. If you are packaging this as an operating system component for
distribution, the setting ‘/usr’ will probably be the right choice. If you are
planning to install the package as a single non-priviledged user, you will typi-
cally set prefix to your home directory.
--with-emacs[=/path/to/emacs ]
If you are using a pretest which isn’t in your $PATH, or configure is not finding
the right Emacs executable, you can specify it with this option.
Chapter 2: Installing AUCTEX 7
--with-xemacs[=/path/to/xemacs ]
Configure for generation under XEmacs (Emacs is the default). Again, the
name of the right XEmacs executable can be specified, complete with path if
necessary.
--with-packagedir=/dir
This XEmacs-only option configures the directory for XEmacs packages. A
typical user-local setting would be ‘~/.xemacs/xemacs-packages’. If this di-
rectory exists and is below prefix, it should be detected automatically. This
will install and activate the package.
--without-packagedir
This XEmacs-only option switches the detection of a package directory and
corresponding installation off. Consequently, the Emacs installation scheme
will be used. This might be appropriate if you are using a different package
system/installer than the XEmacs one and want to avoid conflicts.
The Emacs installation scheme has the following options:
--with-lispdir=/dir
This Emacs-only option specifies the location of the ‘site-lisp’ directory
within ‘load-path’ under which the files will get installed (the bulk will get
installed in a subdirectory). ‘./configure’ should figure this out by itself.
--with-auctexstartfile=‘auctex.el’
--with-previewstartfile=‘preview-latex.el’
This is the name of the respective startup files. If lispdir contains a subdirectory
‘site-start.d’, the start files are placed there, and ‘site-start.el’ should
load them automatically. Please be aware that you must not move the start
files after installation since other files are found relative to them.
--with-packagelispdir=‘auctex’
This is the directory where the bulk of the package gets located. The startfile
adds this into load-path.
--with-auto-dir=/dir
You can use this option to specify the directory containing automatically gen-
erated information. It is not necessary for most TEX installs, but may be used
if you don’t like the directory that configure is suggesting.
--help This is not an option specific to AUCTEX. A number of standard options to
configure exist, and we do not have the room to describe them here; a short
description of each is available, using --help. If you use ‘--help=recursive’,
then also preview-latex-specific options will get listed.
--disable-preview
This disables configuration and installation of preview-latex. This option is not
actually recommended. If your Emacs does not support images, you should
really upgrade to a newer version. Distributors should, if possible, refrain from
distributing AUCTEX and preview-latex separately in order to avoid confusion
and upgrade hassles if users install partial packages on their own.
Chapter 2: Installing AUCTEX 8
--with-texmf-dir=/dir
--without-texmf-dir
This option is used for specifying a TDS-compliant directory hierarchy. Using --
with-texmf-dir=/dir you can specify where the TEX TDS directory hierarchy
resides, and the TEX files will get installed in ‘/dir /tex/latex/preview/’.
If you use the --without-texmf-dir option, the TEX-related files will be kept
in the Emacs Lisp tree, and at runtime the TEXINPUTS environment variable
will be made to point there. You can install those files into your own TEX tree
at some later time with M-x preview-install-styles RET.
--with-tex-dir=/dir
If you want to specify an exact directory for the preview TEX files, use --with-
tex-dir=/dir . In this case, the files will be placed in ‘/dir ’, and you’ll also
need the following option:
--with-doc-dir=/dir
This option may be used to specify where the TEX documentation goes. It
is to be used when you are using --with-tex-dir=/dir , but is normally not
necessary otherwise.
2.3 Build/install
Once configure has been run, simply enter
make
at the prompt to byte-compile the lisp files, extract the TEX files and build the documen-
tation files. To install the files into the locations chosen earlier, type
make install
You may need special privileges to install, e.g., if you are installing into system directo-
ries.
when either AUCTEX or teTEX get installed or upgraded. If your users might
want to work with a different TEX distribution (nowadays pretty common),
instead consider the following:
‘auctex-emacs’
This package will be compiled with ‘--without-texmf-dir’ and will conse-
quently contain the ‘preview’ style files in its private directory. It will prob-
ably not be possible to initialize ‘TeX-macro-global’ to a sensible value, so
running ‘TeX-auto-generate-global’ does not appear useful. This package
would neither conflict with nor provide ‘preview-tetex’.
‘auctex-xemacs-tetex’
‘auctex-xemacs’
Those are the obvious XEmacs equivalents. For XEmacs, there is the additional
problem that the XEmacs sumo package tree already possibly provides its own
version of AUCTEX, and the user might even have used the XEmacs package
manager to updating this package, or even installing a private AUCTEX version.
So you should make sure that such a package will not conflict with existing
XEmacs packages and will be at an appropriate place in the load order (after
site-wide and user-specific locations, but before a distribution-specific sumo
package tree). Using the --without-packagedir option might be one idea to
avoid conflicts. Another might be to refrain from providing an XEmacs package
and just rely on the user or system administrator to instead use the XEmacs
package system.
3. Configure AUCTEX:
For Emacs: Many people like to install AUCTEX into the pseudo file system hierar-
chy set up by the Emacs installation. Assuming Emacs is installed in ‘C:/Program
Files/Emacs’ and the directory for local additions of your TEX system, e.g. MiKTEX,
is ‘C:/localtexmf’, you can do this by typing the following statement at the shell
prompt:
./configure --prefix=’C:/Program Files/Emacs’ \
--infodir=’C:/Program Files/Emacs/info’ \
--with-texmf-dir=’C:/localtexmf’
For XEmacs: You can install AUCTEX as an XEmacs package. Assuming XEmacs is
installed in ‘C:/Program Files/XEmacs’ and the directory for local additions of your
TEX system, e.g. MiKTEX, is ‘C:/localtexmf’, you can do this by typing the following
command at the shell prompt:
./configure --with-xemacs=’C:/Program Files/XEmacs/bin/xemacs’ \
--with-texmf-dir=’C:/localtexmf’
The commands above are examples for common usage. More on configuration options
can be found in the detailed installation instructions below.
If the configuration script failed to find all required programs, make sure that these
programs are in your system path and add directories containing the programs to the
PATH environment variable if necessary. Here is how to do that in W2000/XP:
1. On the desktop, right click “My Computer” and select properties.
2. Click on “Advanced” in the “System Properties” window.
3. Select “Environment Variables”.
4. Select “path” in “System Variables” and click “edit”. Move to the front in the
line (this might require scrolling) and add the missing path including drive letter,
ended with a semicolon.
4. If there were no further error messages, type
make
In case there were, please refer to the detailed description below.
5. Finish the installation by typing
make install
The installation procedure tries finding stuff in system search paths and in Emacs paths.
For that to succeed, you have to use the same syntax and spelling and case of paths ev-
erywhere: in your system search paths, in Emacs’ load-path variable, as argument to the
scripts. If your path names contain spaces or other ‘shell-unfriendly’ characters, most no-
tably backslashes for directory separators, place the whole path in ‘"double quote marks"’
whenever you specify it on a command line.
Avoid ‘helpful’ magic file names like ‘/cygdrive/c’ and ‘C:\PROGRA~1\’ like the plague.
It is quite unlikely that the scripts will be able to identify the actual file names in-
volved. Use the full paths, making use of normal Windows drive letters like ‘ ’C:/Program
Files/Emacs’ ’ where required, and using the same combination of upper- and lowercase
letters as in the actual files. File names containing shell-special characters like spaces or
backslashes (if you prefer that syntax) need to get properly quoted to the shell: the above
example used single quotes for that.
Ok, now here are the steps to perform:
1. You need to unpack the AUCTEX distribution (which you seemingly have done since
you are reading this). It must be unpacked in a separate installation directory outside
of your Emacs file hierarchy: the installation will later copy all necessary files to their
final destination, and you can ultimately remove the directory where you unpacked the
files.
Line endings are a problem under Windows. The distribution contains only text files,
and theoretically most of the involved tools should get along with that. However, the
files are processed by various utilities, and it is conceivable that not all of them will
use the same line ending conventions. If you encounter problems, it might help if you
try unpacking (or checking out) the files in binary mode, if your tools allow that.
If you don’t have a suitable unpacking tool, skip to the next step: this should provide
you with a working ‘unzip’ command.
2. The instal-
lation of AUCTEX will require the MSYS tool set from http://www.mingw.org/ or
the Cygwin tool set from http://cygwin.com/. The latter is slower and larger (the
download size of the base system is about 15 MB) but comes with a package man-
ager that allows for updating the tool set and installing additional packages like, for
example, the spell checker aspell.
If Cygwin specific paths like ‘/cygdrive/c’ crop up in the course of the installation,
using a non-Cygwin Emacs could conceivably cause trouble. Using Cygwin either for
everything or nothing might save headaches, if things don’t work out.
3. Install a current version of XEmacs from http://www.xemacs.org/ or Emacs 22 from
ftp://ftp.gnu.org/gnu/emacs/windows/. Emacs 22 is the recommended choice be-
cause it is currently the primary platform for AUCTEX development.
4. You need a working TEX installation. One popular installation under Windows is
MiKTEX. Another much more extensive system is TEX Live which is rather close to
its Unix cousins.
5. A working copy of Ghostscript is required for preview-latex operation. Examining the
output from
gswin32c -h
Chapter 2: Installing AUCTEX 14
on a Windows command line should tell you whether your Ghostscript supports the
png16m device needed for PNG support. MiKTeX apparently comes with its own Ghost-
script called ‘mgs.exe’.
6. Perl is needed for rebuilding the documentation if you are working with a copy from
CVS or have touched documentation source files in the preview-latex part. If the line
endings of the file ‘preview/latex/preview.dtx’ don’t correspond with what Perl
calls \n when reading text files, you’ll run into trouble.
7. Now the fun stuff starts. If you have not yet done so, unpack the AUCTEX distribution
into a separate directory after rereading the instructions for unpacking above.
8. Ready for takeoff. Start some shell (typically bash) capable of running configure,
change into the installation directory and call ./configure with appropriate options.
Typical options you’ll want to specify will be
--prefix=drive:/path/to/emacs-hierarchy
which tells ‘configure’ where to perform the installation. It may also make
‘configure’ find Emacs or XEmacs automatically; if this doesn’t happen,
try one of ‘--with-emacs’ or ‘--with-xemacs’ as described below. All
automatic detection of files and directories restricts itself to directories
below the prefix or in the same hierarchy as the program accessing the
files. Usually, directories like ‘man’, ‘share’ and ‘bin’ will be situated right
under prefix.
This option also affects the defaults for placing the Texinfo documentation
files (see also ‘--infodir’ below) and automatically generated style hooks.
If you have a central directory hierarchy (not untypical with Cygwin) for
such stuff, you might want to specify its root here. You stand a good
chance that this will be the only option you need to supply, as long as your
TEX-related executables are in your system path, which they better be for
AUCTEX’s operation, anyway.
--with-emacs
if you are installing for a version of Emacs. You can use
‘--with-emacs=drive:/path/to/emacs ’ to specify the name of the in-
stalled Emacs executable, complete with its path if necessary (if Emacs is
not within a directory specified in your PATH environment setting).
--with-xemacs
if you are installing for a version of XEmacs. Again, you can use
‘--with-xemacs=drive:/path/to/xemacs ’ to specify the name of the in-
stalled XEmacs executable complete with its path if necessary. It may also
be necessary to specify this option if a copy of Emacs is found in your PATH
environment setting, but you still would like to install a copy of AUCTEX
for XEmacs.
--with-packagedir=drive:/dir
is an XEmacs-only option giving the location of the package directory. This
will install and activate the package. Emacs uses a different installation
scheme:
Chapter 2: Installing AUCTEX 15
--with-lispdir=drive:/path/to/site-lisp
This Emacs-only option tells a place in load-path below which the files
are situated. The startup files ‘auctex.el’ and ‘preview-latex.el’ will
get installed here unless a subdirectory ‘site-start.d’ exists which will
then be used instead. The other files from AUCTEX will be installed in a
subdirectory called ‘auctex’.
If you think that you need a different setup, please refer to the full instal-
lation instructions in Section 2.2 [Configure], page 6.
--infodir=drive:/path/to/info/directory
If you are installing into an Emacs directory, info files have to be put into
the ‘info’ folder below that directory. The configuration script will usually
try to install into the folder ‘share/info’, so you have to override this by
specifying something like ‘--infodir=’C:/Program Files/info’’ for the
configure call.
--with-auto-dir=drive:/dir
Directory containing automatically generated information. You should not
normally need to set this, as ‘--prefix’ should take care of this.
--disable-preview
Use this option if your Emacs version is unable to support image display.
This will be the case if you are using a native variant of Emacs 21.
--with-texmf-dir=drive:/dir
This will specify the directory where your TEX installation sits. If your
TEX installation does not conform to the TDS (TEX directory standard),
you may need to specify more options to get everything in place.
For more information about any of the above and additional options, see Section 2.2
[Configure], page 6.
Calling ‘./configure --help=recursive’ will tell about other options, but those are
almost never required.
Some executables might not be found in your path. That is not a good idea, but you
can get around by specifying environment variables to ‘configure’:
GS="drive:/path/to/gswin32c.exe " ./configure ...
should work for this purpose. ‘gswin32c.exe’ is the usual name for the required
command line executable under Windows; in contrast, ‘gswin32.exe’ is likely to fail.
As an alternative to specifying variables for the ‘configure’ call you can add directories
containing the required executables to the PATH variable of your Windows system. This
is especially a good idea if Emacs has trouble finding the respective programs later
during normal operation.
9. Run make in the installation directory.
10. Run make install in the installation directory.
11. With XEmacs, AUCTEX and preview-latex should now be active by default. With
Emacs, activation depends on a working ‘site-start.d’ directory or similar setup,
since then the startup files ‘auctex.el’ and ‘preview-latex.el’ will have been placed
Chapter 2: Installing AUCTEX 16
there. If this has not been done, you should be able to load the startup files manually
with
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
in either a site-wide ‘site-start.el’ or your personal startup file (usually accessible
as ‘~/.emacs’ from within Emacs and ‘~/.xemacs/init.el’ from within XEmacs).
The default configuration of AUCTEX is probably not the best fit for Windows systems.
You might want to add
(require ’tex-mik)
or
(require ’tex-fptex)
in order to get more appropriate values for MiKTEX and fpTEX, respectively after
loading ‘auctex.el’ and ‘preview-latex.el’.
You can always use
M-x customize-group RET AUCTeX RET
in order to customize more stuff, or use the ‘Customize’ menu.
12. Load ‘preview/circ.tex’ into Emacs or XEmacs and see if you get the ‘Command’
menu. Try using it to LaTEX the file.
13. Check whether the ‘Preview’ menu is available in this file. Use it to generate previews
for the document.
If this barfs and tells you that image type ‘png’ is not supported, try adding the line
(setq preview-image-type ’pnm)
at the end of your installed version of ‘preview-latex.el’. If this helps, complain
to wherever you got your Emacs from: all current Emacs/XEmacs versions capable
of running preview-latex by now can be compiled to support PNG images. Which is
important, because PNM files take away vast amounts of disk space, and thus also of
load/save time.
Well, that about is all. Have fun!
2.8 Customizing
Most of the site-specific customization should already have happened during configuration
of AUCTEX. Any further customization can be done with customization buffers directly
in Emacs. Just type M-x customize-group RET AUCTeX RET to open the customization
group for AUCTEX or use the menu entries provided in the mode menus. Editing the file
‘tex-site.el’ as suggested in former versions of AUCTEX should not be done anymore
because the installation routine will overwrite those changes.
You might check some variables with a special significance. They are accessible directly
by typing M-x customize-variable RET <variable> RET.
Normally, AUCTEX will only allow you to complete macros and environments which are
built-in, specified in AUCTEX style files or defined by yourself. If you issue the M-x TeX-
auto-generate-global command after loading AUCTEX, you will be able to complete on
all macros available in the standard style files used by your document. To do this, you
must set this variable to a list of directories where the standard style files are located. The
directories will be searched recursively, so there is no reason to list subdirectories explicitly.
Automatic configuration will already have set the variable for you if it could use the program
‘kpsewhich’. In this case you normally don’t have to alter anything.
Chapter 3: Quick Start 18
3 Quick Start
AUCTEX is a powerful program offering many features and configuration options. If you are
new to AUCTEX this might be deterrent. Fortunately you do not have to learn everything at
once. This Quick Start Guide will give you the knowledge of the most important commands
and enable you to prepare your first LaTEX document with AUCTEX after only a few minutes
of reading.
In this introduction, we assume that AUCTEX is already installed on your system. If
this is not the case, you should read the file ‘INSTALL’ in the base directory of the un-
packed distribution tarball. These installation instructions are available in this manual as
well, Chapter 2 [Installation], page 5. We also assume that you are familiar with the way
keystrokes are written in Emacs manuals. If not, have a look at the Emacs Tutorial in the
Help menu.
If AUCTEX is installed, you might still need to activate it, by inserting
(load "auctex.el" nil t t)
in your user init file.1 In order to get support for many of the LaTEX packages you will
use in your documents, you should enable document parsing as well, which can be achieved
by putting
(setq TeX-auto-save t)
(setq TeX-parse-self t)
into your init file. Finally, if you often use \include or \input, you should make
AUCTEX aware of the multi-file document structure. You can do this by inserting
(setq-default TeX-master nil)
into your init file. Each time you open a new file, AUCTEX will then ask you for a
master file.
This Quick Start Guide covers two main topics: First we explain how AUCTEX helps
you in editing your input file for TEX, LaTEX, and some other formats. Then we describe
the functions that AUCTEX provides for processing the input files with LaTEX, BibTEX,
etc., and for viewing and debugging.
after an error (usually \noninteractive is used, to allow you to detect all errors in a single
run).
These options are controlled by toggles, the keystrokes should be easy to memorize:
C-c C-t C-p
This command toggles between DVI and PDF output
C-c C-t C-i
toggles interactive mode
C-c C-t C-s
toggles source specials support
C-c C-t C-o
toggles usage of Omega/lambda.
Dollar Signs
In AUCTEX, dollar signs should match like they do in TEX. This has been partially imple-
mented, we assume dollar signs always match within a paragraph. The first ‘$’ you insert
in a paragraph will do nothing special. The second ‘$’ will match the first. This will be
indicated by moving the cursor temporarily over the first dollar sign.
Chapter 4: Inserting Frequently Used Commands 23
Braces
To avoid unbalanced braces, it is useful to insert them pairwise. You can do this by typing
C-c {.
TeX-insert-braces [Command]
(C-c {) Make a pair of braces and position the cursor to type inside of them. If there
is an active region, put braces around it and leave point after the closing brace.
As a default selection, AUCTEX will suggest the environment last inserted or, as the
first choice the value of the variable LaTeX-default-environment.
If the document is empty, or the cursor is placed at the top of the document, AUCTEX
will default to insert a ‘document’ environment.
Most of these are described further in the following sections, and you may easily specify
more. See Section 4.4.5 [Customizing environments], page 28.
You can close the current environment with C-c ], but we suggest that you use C-c C-e
to insert complete environments instead.
LaTeX-close-environment [Command]
(C-c ]) Insert an ‘\end’ that matches the current environment.
Chapter 4: Inserting Frequently Used Commands 27
4.4.1 Equations
When inserting equation-like environments, the ‘\label’ will have a default prefix, which
is controlled by the following variables:
4.4.2 Floats
Figures and tables (i.e., floats) may also be inserted using AUCTEX. After choosing either
‘figure’ or ‘table’ in the environment list described above, you will be prompted for a number
of additional things.
float position
This is the optional argument of float environments that controls how they
are placed in the final document. In LaTEX this is a sequence of the letters
‘htbp’ as described in the LaTEX manual. The value will default to the value of
LaTeX-float.
caption This is the caption of the float. The default is to insert the caption at the
bottom of the float. You can specify floats where the caption should be placed
at the top with LaTeX-top-caption-list.
label The label of this float. The label will have a default prefix, which is controlled
by the variables LaTeX-figure-label and LaTeX-table-label.
Moreover, you will be asked if you want the contents of the float environment to be
horizontally centered. Upon a positive answer a ‘\centering’ macro will be inserted at the
beginning of the float environment.
4.4.3 Itemize-like
In an itemize-like environment, nodes (i.e., ‘\item’s) may be inserted using C-c LFD.
LaTeX-insert-item [Command]
(C-c LFD) Close the current item, move to the next line and insert an appropriate
‘\item’ for the current environment. That is, ‘itemize’ and ‘enumerate’ will have
‘\item ’ inserted, while ‘description’ will have ‘\item[]’ inserted.
4.4.4 Tabular-like
When inserting Tabular-like environments, that is, ‘tabular’ ‘array’ etc., you will be
prompted for a template for that environment. Related variables:
LaTeX-math-mode [Command]
(C-c ~) Toggle LaTeX Math mode. This is a minor mode rebinding the key LaTeX-
math-abbrev-prefix to allow easy typing of mathematical symbols. ‘ will read
a character from the keyboard, and insert the symbol as specified in LaTeX-math-
default and LaTeX-math-list. If given a prefix argument, the symbol will be sur-
rounded by dollar signs.
You can use another prefix key (instead of ‘) by setting the variable LaTeX-math-
abbrev-prefix.
To enable LaTeX Math mode by default, add the following in your ‘.emacs’ file:
(add-hook ’LaTeX-mode-hook ’LaTeX-math-mode)
AUCTEX’s reference card ‘tex-ref.tex’ includes a list of all math mode commands.
AUCTEX can help you write subscripts and superscripts in math constructs by au-
tomatically inserting a pair of braces after typing or ^ respectively and putting point
between the braces. In order to enable this feature, set the variable TeX-electric-sub-
and-superscript to a non-nil value.
TeX-electric-sub-and-superscript [User Option]
If non-nil, insert braces after typing ^ and in math mode.
5.2 Completion
Emacs lisp programmers probably know the lisp-complete-symbol command, usually
bound to M-TAB. Users of the wonderful ispell mode know and love the ispell-complete-
word command from that package. Similarly, AUCTEX has a TeX-complete-symbol com-
mand, usually bound to M-TAB. Using LaTeX-complete-symbol makes it easier to type and
remember the names of long LaTEX macros.
In order to use TeX-complete-symbol, you should write a backslash and the start of the
macro. Typing M-TAB will now complete as much of the macro, as it unambiguously can.
For example, if you type “\renewc’’ and then M-TAB, it will expand to “\renewcommand’’.
TeX-complete-symbol [Command]
(M-TAB) Complete TEX symbol before point.
A more direct way to insert a macro is with TeX-insert-macro, bound to C-c C-m. It
has the advantage over completion that it knows about the argument of most standard
LaTEX macros, and will prompt for them. It also knows about the type of the arguments,
so it will for example give completion for the argument to ‘\include’. Some examples are
listed below.
TeX-insert-macro [Command]
(C-c C-m or C-c RET) Prompt (with completion) for the name of a TEX macro, and
if AUCTEX knows the macro, prompt for each argument.
As a default selection, AUCTEX will suggest the macro last inserted or, as the first choice
the value of the variable TeX-default-macro.
TeX-insert-macro-default-style [User Option]
Specifies whether TeX-insert-macro will ask for all optional arguments.
If set to the symbol show-optional-args, TeX-insert-macro asks for optional argu-
ments of TEX macros. If set to mandatory-args-only, TeX-insert-macro asks only
for mandatory arguments. When TeX-insert-macro is called with prefix argument
(C-u), it’s the other way round.
Note that for some macros, there are special mechanisms, e.g. LaTeX-
includegraphics-options-alist.
TeX-default-macro [User Option]
Default macro to insert when invoking TeX-insert-macro first time.
A faster alternative is to bind the function TeX-electric-macro to ‘\’. This can be
done by setting the variable TeX-electric-escape
Chapter 5: Advanced Editing Features 31
TeX-electric-macro [Command]
Prompt (with completion) for the name of a TEX macro, and if AUCTEX knows the
macro, prompt for each argument. Space will complete and exit.
By default AUCTEX will put an empty set braces ‘{}’ after a macro with no arguments to
stop it from eating the next whitespace. This can be stopped by entering LaTeX-math-mode,
see Section 5.1 [Mathematics], page 29, or by setting TeX-insert-braces to nil.
Completions work because AUCTEX can analyze TEX files, and store symbols in emacs
lisp files for later retrieval. See Chapter 11 [Automatic], page 60, for more information.
AUCTEX will also make completion for many macro arguments, for example existing
labels when you enter a ‘\ref’ macro with TeX-insert-macro or TeX-electric-macro,
and BibTEX entries when you enter a ‘\cite’ macro. For this kind of completion to work,
parsing must be enabled as described in see Chapter 9 [Parsing Files], page 54. For ‘\cite’
you must also make sure that the BibTEX files have been saved at least once after you
enabled automatic parsing on save, and that the basename of the BibTEX file does not
conflict with the basename of one of TEX files.
5.3 Commenting
It is often necessary to comment out temporarily a region of TEX or LaTEX code. This
can be done with the commands C-c ; and C-c %. C-c ; will comment out all lines in the
current region, while C-c % will comment out the current paragraph. Type C-c ; again to
uncomment all lines of a commented region, or C-c % again to uncomment all comment
lines around point. These commands will insert or remove a single ‘%’ respectively.
TeX-comment-or-uncomment-region [Command]
(C-c ;) Add or remove ‘%’ from the beginning of each line in the current region. Un-
commenting works only if the region encloses solely commented lines. If AUCTEX
should not try to guess if the region should be commented or uncommented the com-
mands TeX-comment-region and TeX-uncomment-region can be used to explicitly
comment or uncomment the region in concern.
TeX-comment-or-uncomment-paragraph [Command]
(C-c %) Add or remove ‘%’ from the beginning of each line in the current paragraph.
When removing ‘%’ characters the paragraph is considered to consist of all preceding
and succeeding lines starting with a ‘%’, until the first non-comment line.
Chapter 5: Advanced Editing Features 32
5.4 Indenting
Indentation means the addition of whitespace at the beginning of lines to reflect special
syntactical constructs. This makes it easier to see the structure of the document, and to
catch errors such as a missing closing brace. Thus, the indentation is done for precisely the
same reasons that you would indent ordinary computer programs.
Indentation is done by LaTEX environments and by TEX groups, that is the body of an
environment is indented by the value of LaTeX-indent-level (default 2). Also, items of an
‘itemize-like’ environment are indented by the value of LaTeX-item-indent, default −2. If
more environments are nested, they are indented ‘accumulated’ just like most programming
languages usually are seen indented in nested constructs.
You can explicitely indent single lines, usually by pressing TAB, or marked regions by
calling indent-region on it. If you have auto-fill-mode enabled and a line is broken
while you type it, Emacs automatically cares about the indentation in the following line.
If you want to have a similar behavior upon typing RET, you can customize the variable
TeX-newline-function and change the default of newline which does no indentation to
newline-and-indent which indents the new line or reindent-then-newline-and-indent
which indents both the current and the new line.
There are certain LaTEX environments which should be indented in a special way, like
‘tabular’ or ‘verbatim’. Those environments may be specified in the variable LaTeX-
indent-environment-list together with their special indentation functions. Taking the
‘verbatim’ environment as an example you can see that current-indentation is used
as the indentation function. This will stop AUCTEX from doing any indentation in the
environment if you hit TAB for example.
There are environments in LaTeX-indent-environment-list which do not bring a spe-
cial indentation function with them. This is due to the fact that first the respective functions
are not implemented yet and second that filling will be disabled for the specified environ-
ments. This shall prevent the source code from being messed up by accidently filling those
environments with the standard filling routine. If you think that providing special filling
routines for such environments would be an appropriate and challenging task for you, you
are invited to contribute. (See Section 5.5 [Filling], page 33, for further information about
the filling functionality)
The check for the indentation function may be enabled or disabled by customizing the
variable LaTeX-indent-environment-check.
As a side note with regard to formatting special environments: Newer Emacsen include
‘align.el’ and therefore provide some support for formatting ‘tabular’ and ‘tabbing’
environments with the function align-current which will nicely align columns in the source
code.
AUCTEX is able to format commented parts of your code just as any other part. This
means LaTEX environments and TEX groups in comments will be indented syntactically
correct if the variable LaTeX-syntactic-comments is set to t. If you disable it, comments
will be filled like normal text and no syntactic indentation will be done.
Following you will find a list of most commands and variables related to indenting with
a small summary in each case:
TAB LaTeX-indent-line will indent the current line.
Chapter 5: Advanced Editing Features 33
LFD newline-and-indent inserts a new line (much like RET) and moves the cursor
to an appropriate position by the left margin.
Most keyboards nowadays don’t have a linefeed key and C-j is tedious to type.
Therefore you can customize AUCTEX to perform indentation (or to make
coffee) upon typing RET as well. The respective option is called TeX-newline-
function.
C-j Alias for LFD
5.5 Filling
Filling deals with the insertion of line breaks to prevent lines from becoming wider than what
is specified in fill-column. The linebreaks will be inserted automatically if auto-fill-
mode is enabled. In this case the source is not only filled but also indented automatically
as you write it.
auto-fill-mode can be enabled for AUCTEX by calling turn-on-auto-fill in one of
the hooks AUCTEX is running. For all text modes with text-mode-hook, for all AUCTEX
Chapter 5: Advanced Editing Features 34
placed on a commented line which does not have a surrounding environment inside the
comment, AUCTEX will report an error.
The relevant commands and variables with regard to filling are:
C-c C-q C-p
LaTeX-fill-paragraph will fill and indent the current paragraph.
M-q Alias for C-c C-q C-p
C-c C-q C-e
LaTeX-fill-environment will fill and indent the current environment. This
may e.g. be the ‘document’ environment, in which case the entire document
will be formatted.
C-c C-q C-s
LaTeX-fill-section will fill and indent the current logical sectional unit.
C-c C-q C-r
LaTeX-fill-region will fill and indent the current region.
Macros
Highlighting of macros can be customized by adapting keyword lists which can be found in
the customization group font-latex-keywords. The lists contain names of macros without
the leading backslash.
Three types of macros can be handled differently with respect to fontification:
Chapter 6: Controlling Screen Display 37
1. Commands of the form ‘\foo[bar]{baz}’ which consist of the macro itself, optional
arguments in square brackets and mandatory arguments in curly braces. For the com-
mand itself the face font-lock-keyword-face will be used and for the optional argu-
ments the face font-lock-variable-name-face. The face applied to the mandatory
argument depends on the macro class represented by the respective built-in variables.
2. Declaration macros of the form ‘{\foo text}’ which consist of the macro which may
be enclosed in a TEX group together with text to be affected by the macro. In case a
TEX group is present, the macro will get the face font-lock-keyword-face and the
text will get the face configured for the respective macro class. If no TEX group is
present, the latter face will be applied to the macro itself.
3. Simple macros of the form ‘\foo’ which do not have any arguments or groupings. The
respective face will be applied to the macro itself.
font-latex-match-function-keywords
Keywords for macros defining or related to functions, like ‘\newcommand’.
Type: ‘\macro[...]{...}’
Face: font-lock-function-name-face
font-latex-match-reference-keywords
Keywords for macros defining or related to references, like ‘\ref’.
Type: ‘\macro[...]{...}’
Face: font-lock-constant-face
font-latex-match-textual-keywords
Keywords for macros specifying textual content, like ‘\caption’.
Type: ‘\macro[...]{...}’
Face: font-lock-type-face
font-latex-match-variable-keywords
Keywords for macros defining or related to variables, like ‘\setlength’.
Type: ‘\macro[...]{...}{...}’
Face: font-lock-variable-name-face
font-latex-match-warning-keywords
Keywords for important macros, e.g. affecting line or page break, like
‘\clearpage’.
Type: ‘\macro’
Face: font-latex-warning-face
Sectioning commands
Sectioning commands are macros like ‘\chapter’ or ‘\section’. For these commands there
are two fontification schemes which may be selected by customizing the variable font-
latex-fontify-sectioning.
Chapter 6: Controlling Screen Display 38
font-latex-match-italic-declaration-keywords
Keywords for declarations specifying an italic font.
Face: font-latex-italic-face
font-latex-match-type-declaration-keywords
Keywords for declarations specifying a typewriter font.
Face: font-latex-type-face
Quotes
Text in quotation marks is displayed with the face font-latex-string-face. Besides the
various forms of opening and closing double and single quotation marks, so-called guillemets
(<<, >>) can be used for quoting. Because there are two styles of using them—French style:
<< text >>; German style: >>text<<—you can customize the variable font-latex-quotes to
tell font-latex which type you are using if the correct value cannot be derived from document
properties.
font-latex-quotes [User Option]
The default value of font-latex-quotes is ‘auto’ which means that font-latex will
try to derive the correct type of quotation mark matching from document properties
like the language option supplied to the babel LaTEX package.
If the automatic detection fails for you and you mostly use one specific style you can
set it to a specific language-dependent value as well. Set the value to ‘german’ if you
are using >>German quotes<< and to ‘french’ if you are using << French quotes >>.
font-latex will recognize the different ways these quotes can be given in your source
code, i.e. (‘"<’, ‘">’), (‘<<’, ‘>>’) and the respective 8-bit variants.
If you set font-latex-quotes to nil, quoted content will not be fontified.
Multi-line fontification
Font locking in LaTEX source code often involves constructs spanning more than one line of
text. For these constructs to be handled correctly GNU Emacs as well as font-latex provide
mechanisms for multi-line fontification which can be controlled by the variable font-latex-
do-multi-line.
Faces
In case you want to change the colors and fonts used by font-latex please refer to the
faces mentioned in the explanations above and use M-x customize-face RET <face> RET.
All faces defined by font-latex are accessible through a customization group by typing M-x
customize-group RET font-latex-highlighting-faces RET.
Once the mode is active there are several commands available to hide and show macros,
environments and comments:
TeX-fold-buffer [Command]
(C-c C-o C-b) Hide all foldable items in the current buffer according to the setting of
TeX-fold-type-list. This command can also be used to refresh the whole buffer and
hide any new macros and environments which were inserted after the last invocation
of the command.
TeX-fold-region [Command]
(C-c C-o C-r) Hide all configured macros in the marked region.
TeX-fold-paragraph [Command]
(C-c C-o C-p) Hide all configured macros in the paragraph containing point.
TeX-fold-macro [Command]
(C-c C-o C-m) Hide the macro on which point currently is located. If the name of the
macro is found in TeX-fold-macro-spec-list, the respective display string will be
shown instead. If it is not found, the name of the macro in sqare brackets or the de-
fault string for unspecified macros (TeX-fold-unspec-macro-display-string) will
be shown, depending on the value of the variable TeX-fold-unspec-use-name.
TeX-fold-env [Command]
(C-c C-o C-e) Hide the environment on which point currently is located. The be-
havior regarding the display string is analogous to TeX-fold-macro and determined
by the variables TeX-fold-env-spec-list and TeX-fold-unspec-env-display-
string respectively.
TeX-fold-comment [Command]
(C-c C-o C-c) Hide the comment point is located on.
TeX-fold-clearout-buffer [Command]
(C-c C-o b) Permanently unfold all macros and environments in the current buffer.
Chapter 6: Controlling Screen Display 43
TeX-fold-clearout-region [Command]
(C-c C-o r) Permanently unfold all macros and environments in the marked region.
TeX-fold-clearout-paragraph [Command]
(C-c C-o p) Permanently unfold all macros and environments in the paragraph con-
taining point.
TeX-fold-clearout-item [Command]
(C-c C-o i) Permanently show the macro or environment on which point currently is
located. In contrast to temporarily opening the macro when point is moved sideways
onto it, the macro will be permanently unfolded and will not collapse again once point
is leaving it.
TeX-fold-dwim [Command]
(C-c C-o C-o) Hide or show items according to the current context. If there is folded
content, unfold it. If there is a marked region, fold all configured content in this
region. If there is no folded content but a macro or environment, fold it.
The commands above will only take macros or environments into consideration which
are specified in the variable TeX-fold-macro-spec-list or TeX-fold-env-spec-list re-
spectively.
TeX-fold-macro-spec-list [User Option]
List of display strings or argument numbers and macros to fold. If you specify a
number, the content of the first mandatory argument of a LaTEX macro will be used
as the placeholder.
The placeholder is made by copying the text from the buffer together with its prop-
erties, i.e. its face as well. If fontification has not happened when this is done
(e.g. because of lazy font locking) the intended fontification will not show up. As a
workaround you can leave Emacs idle a few seconds and wait for stealth font locking to
finish before you fold the buffer. Or you just re-fold the buffer with TeX-fold-buffer
when you notice a wrong fontification.
TeX-fold-env-spec-list [User Option]
List of display strings or argument numbers and environments to fold. Argu-
ment numbers refer to the ‘\begin’ statement. That means if you have e.g.
‘\begin{tabularx}{\linewidth}{XXX} ... \end{tabularx}’ and specify 3 as the
argument number, the resulting display string will be “XXX”.
TeX-fold-unspec-macro-display-string [User Option]
Default display string for macros which are not specified in TeX-fold-macro-spec-
list.
TeX-fold-unspec-env-display-string [User Option]
Default display string for environments which are not specified in TeX-fold-env-
spec-list.
TeX-fold-unspec-use-name [User Option]
If non-nil the name of the macro or environment surrounded by square brackets is
used as display string, otherwise the defaults specified in TeX-fold-unspec-macro-
display-string or TeX-fold-unspec-env-display-string respectively.
Chapter 6: Controlling Screen Display 44
When you hover with the mouse pointer over folded content, its original text will be
shown in a tooltip or the echo area depending on Tooltip mode being activate. In order
to avoid exorbitantly big tooltips and to cater for the limited space in the echo area the
content will be cropped after a certain amount of characters defined by the variable TeX-
fold-help-echo-max-length.
TeX-outline-extra [Variable]
List of extra TEX outline levels.
Each element is a list with two entries. The first entry is the regular expression
matching a header, and the second is the level of the header. A ‘^’ is automatically
prepended to the regular expressions in the list, so they must match text at the
beginning of the line.
See LaTeX-section-list or ConTeXt-INTERFACE-section-list for existing header
levels.
The following example add ‘\item’ and ‘\bibliography’ headers, with ‘\bibliography’
at the same outline level as ‘\section’, and ‘\item’ being below ‘\subparagraph’.
(setq TeX-outline-extra
’(("[ \t]*\\\\\\(bib\\)?item\\b" 7)
("\\\\bibliography\\b" 2)))
You may want to check out the unbundled ‘out-xtra’ package for even better outline
support. It is available from your favorite emacs lisp archive.
Chapter 7: Starting Processors, Viewers and Other Programs 45
TeX-command-master [Command]
(C-c C-c) Query the user for a command, and run it on the master file associated
with the current buffer. The name of the master file is controlled by the variable TeX-
master. The available commands are controlled by the variable TeX-command-list.
TeX-command-region [Command]
(C-c C-r) Query the user for a command, and run it on the “region file”. Some
commands (typically those invoking TEX or LaTEX) will write the current region into
the region file, after extracting the header and trailer from the master file. If mark
is inactive (which can happen with transient-mark-mode), use the old region. The
name of the region file is controlled by the variable TeX-region. The name of the
master file is controlled by the variable TeX-master. The header is all text up to the
line matching the regular expression TeX-header-end. The trailer is all text from the
line matching the regular expression TeX-trailer-start. The available commands
are controlled by the variable TeX-command-list.
TeX-pin-region [Command]
(C-c C-t C-r) If you don’t have a mode like transient-mark-mode active, where
marks get disabled automatically, the region would need to get properly set before
each call to TeX-command-region. If you fix the current region with C-c C-t C-r,
then it will get used for more commands even though mark and point may change.
An explicitly activated mark, however, will always define a new region when calling
TeX-command-region.
Chapter 7: Starting Processors, Viewers and Other Programs 46
TeX-command-buffer [Command]
(C-c C-b) Query the user for a command, and run it on the “region file”. Some
commands (typically those invoking TEX or LaTEX) will write the current buffer into
the region file, after extracting the header and trailer from the master file. See above
for details.
AUCTEX will allow one process for each document, plus one process for the region file
to be active at the same time. Thus, if you are editing n different documents, you can have
n plus one processes running at the same time. If the last process you started was on the
region, the commands described in Section 7.3 [Debugging], page 49 and Section 7.5 [Con-
trol], page 50 will work on that process, otherwise they will work on the process associated
with the current document.
AUCTEX will try to guess what command you want to invoke, but by default it will
assume that you want to run TEX in TEX mode and LaTEX in LaTEX mode. You can
overwrite this by setting the variable TeX-command-default.
TeX-view [Command]
The command TeX-view, bound to C-c C-v, starts a viewer without confirmation.
The viewer is started either on a region or the master file, depending on the last
command issued. This is especially useful for jumping to the location corresponding
to point in the DVI viewer when using TeX-source-specials-mode.
Upon opening the viewer you will be asked if you want to start a server process (Gnuserv
or Emacs server) which is necessary for inverse search. This happens only if there is
no server running already. You can customize the variable TeX-source-specials-view-
start-server to inhibit the question and always or never start the server respectively.
Once the server and the viewer are running you can use a mouse click in the viewer to
jump to the corresponding part of your document in Emacs (inverse search). Refer to the
documentation of your viewer to find out what you have to do exactly. In xdvi you usually
have to use C-down-mouse-1.
For PDF output, forward search is availabe when using the pdfsync LaTEX package and
xpdf as PDF viewer. With the pdfsync package forward search does not rely on source
specials. Therefore you don’t have to bother about the provisions for source specials ex-
plained above. If document parsing is enabled, the functionality is usable immediately, e.g.
by typing C-c C-v (TeX-view) which will open the viewer or bring it to front if it is already
opened and display the output page corresponding to the position of point in the source
file.
TeX-next-error [Command]
(C-c ‘) Go to the next error reported by TEX. The view will be split in two, with the
cursor placed as close as possible to the error in the top view. In the bottom view,
the error message will be displayed along with some explanatory text.
Normally AUCTEX will only report real errors, but you may as well ask it to report ‘bad
boxes’ and warnings as well.
TeX-toggle-debug-bad-boxes [Command]
(C-c C-t C-b) Toggle whether AUCTEX should stop at bad boxes (i.e. overfull and
underfull boxes) as well as normal errors.
TeX-toggle-debug-warnings [Command]
(C-c C-t C-w) Toggle whether AUCTEX should stop at warnings as well as normal
errors.
As default, AUCTEX will display a special help buffer containing the error reported by
TEX along with the documentation. There is however an ‘expert’ option, which allows you
to display the real TEX output.
Chapter 7: Starting Processors, Viewers and Other Programs 50
TeX-kill-job [Command]
(C-c C-k) Kill currently running external application. This may be either of TEX,
LaTEX, previewer, BibTEX, etc.
TeX-recenter-output-buffer [Command]
(C-c C-l) Recenter the output buffer so that the bottom line is visible.
TeX-home-buffer [Command]
(C-c ^) Go to the ‘master’ file in the document associated with the current buffer, or
if already there, to the file where the current process was started.
8 Multifile Documents
You may wish to spread a document over many files (as you are likely to do if there are
multiple authors, or if you have not yet discovered the power of the outline commands
(see Section 6.3 [Outline], page 44)). This can be done by having a “master” file in which
you include the various files with the TEX macro ‘\input’ or the LaTEX macro ‘\include’.
These files may also include other files themselves. However, to format the document you
must run the commands on the top level master file.
When you, for example, ask AUCTEX to run a command on the master file, it has no
way of knowing the name of the master file. By default, it will assume that the current file
is the master file. If you insert the following in your ‘.emacs’ file AUCTEX will use a more
advanced algorithm.
(setq-default TeX-master nil) ; Query for master file.
If AUCTEX finds the line indicating the end of the header in a master file (TeX-header-
end), it can figure out for itself that this is a master file. Otherwise, it will ask for the
name of the master file associated with the buffer. To avoid asking you again, AUCTEX
will automatically insert the name of the master file as a file variable (see Section “File
Variables” in The Emacs Editor). You can also insert the file variable yourself, by putting
the following text at the end of your files.
%%% Local Variables:
%%% TeX-master: "master"
%%% End:
You should always set this variable to the name of the top level document. If you always
use the same name for your top level documents, you can set TeX-master in your ‘.emacs’
file.
(setq-default TeX-master "master") ; All master files called "master".
TeX-master-file-ask [Command]
(C-c _) Query for the name of a master file and add the respective File Variables
(see Section “File Variables” in The Emacs Editor) to the file for setting this variable
permanently.
AUCTEX will not ask for a master file when it encounters existing files. This function
shall give you the possibility to insert the variable manually.
AUCTEX keeps track of macros, environments, labels, and style files that are used in
a given document. For this to work with multifile documents, AUCTEX has to have a
place to put the information about the files in the document. This is done by having an
‘auto’ subdirectory placed in the directory where your document is located. Each time
you save a file, AUCTEX will write information about the file into the ‘auto’ directory.
When you load a file, AUCTEX will read the information in the ‘auto’ directory about the
file you loaded and the master file specified by TeX-master. Since the master file (perhaps
indirectly) includes all other files in the document, AUCTEX will get information from all
files in the document. This means that you will get from each file, for example, completion
for all labels defined anywhere in the document.
AUCTEX will create the ‘auto’ directory automatically if TeX-auto-save is non-nil.
Without it, the files in the document will not know anything about each other, except for
the name of the master file. See Section 11.3 [Automatic Local], page 61.
TeX-save-document [Command]
(C-c C-d) Save all buffers known to belong to the current document.
The pre-specified lists of regexps are defined below. You can use these before loading
AUCTEX by quoting them, as in the example above.
TeX-auto-empty-regexp-list [Constant]
Parse nothing
LaTeX-auto-minimal-regexp-list [Constant]
Only parse LaTEX class and packages.
LaTeX-auto-label-regexp-list [Constant]
Only parse LaTEX labels.
LaTeX-auto-regexp-list [Constant]
Parse common LaTEX commands.
plain-TeX-auto-regexp-list [Constant]
Parse common plain TEX commands.
TeX-auto-full-regexp-list [Constant]
Parse all TEX and LaTEX commands that AUCTEX can use.
Chapter 10: Language Support 56
10 Language Support
TEX and Emacs are usable for European (Latin, Cyrillic, Greek) based languages. Some
LaTEX and EmacsLisp packages are available for easy typesetting and editing documents in
European languages.
For CJK (Chinese, Japanese, and Korean) languages, Emacs or XEmacs with MULE
(MULtilingual Enhancement to GNU Emacs) support is required. MULE is part of Emacs
by default since Emacs 20. XEmacs has to be configured with the ‘--with-mule’ option.
Special versions of TEX are needed for CJK languages: CTEX and ChinaTEX for Chinese,
ASCII pTEX and NTT jTEX for Japanese, HLaTEX and kTEX for Korean. The CJK-LaTEX
package is required for supporting multiple CJK scripts within a single document.
Note that Unicode is not fully supported in Emacs 21 and XEmacs 21. CJK characters
are not usable. Please use the MULE-UCS EmacsLisp package or Emacs 22 (not released
yet) if you need CJK.
(add-hook ’TeX-language-dk-hook
(lambda () (ispell-change-dictionary "danish")))
The following style files are recognized:
‘czech’ Runs style hook TeX-language-cz-hook. Pressing " will insert ‘\uv{’ and ‘}’
depending on context.
‘danish’ Runs style hook TeX-language-dk-hook. Pressing " will insert ‘"‘’ and ‘"’’
depending on context. Typing - twice will insert ‘"=’, i.e. a hyphen string
allowing hyphenation in the composing words.
‘dutch’ Runs style hook TeX-language-nl-hook.
‘german’
‘ngerman’ Runs style hook TeX-language-de-hook. Gives ‘"’ word syntax, makes the "
key insert a literal ‘"’. Pressing the key twice will give you opening or closing
German quotes (‘"‘’ or ‘"’’). Typing - twice will insert ‘"=’, three times ‘--’.
‘frenchb’
‘francais’
Runs style hook TeX-language-fr-hook. Pressing " will insert ‘\\og’ and
‘\\fg’ depending on context. Note that the language name for customizing
TeX-quote-language-alist is ‘french’.
‘icelandic’
Runs style hook TeX-language-is-hook. Gives ‘"’ word syntax, makes the "
key insert a literal ‘"’. Typing " twice will insert insert ‘"‘’ or ‘"’’ depending
on context. Typing - twice will insert ‘"=’, three times ‘--’.
‘italian’ Runs style hook TeX-language-it-hook. Pressing " will insert ‘"<’ and ‘">’
depending on context.
‘polish’ Runs style hook TeX-language-pl-hook. Gives ‘"’ word syntax and makes the
" key insert a literal ‘"’. Pressing " twice will insert ‘"‘’ or ‘"’’ depending on
context.
‘polski’ Runs style hook TeX-language-pl-hook. Makes the " key insert a literal ‘"’.
Pressing " twice will insert ‘,,’ or ‘’’’ depending on context.
‘slovak’ Runs style hook TeX-language-sk-hook. Pressing " will insert ‘\uv{’ and ‘}’
depending on context.
‘swedish’ Runs style hook TeX-language-sv-hook. Pressing " will insert ‘’’’. Typing -
twice will insert ‘"=’, three times ‘--’.
Replacement of language-specific hyphen strings like ‘"=’ with dashes does not require
to type - three times in a row. You can put point after the hypen string anytime and trigger
the replacement by typing -.
In case you are not satisfied with the suggested behavior of quote and hyphen insertion
you can change it by customizing the variables TeX-quote-language-alist and LaTeX-
babel-hyphen-language-alist respectively.
Chapter 10: Language Support 58
11 Automatic Customization
Since AUCTEX is so highly customizable, it makes sense that it is able to customize it-
self. The automatic customization consists of scanning TEX files and extracting symbols,
environments, and things like that.
The automatic customization is done on three different levels. The global level is the
level shared by all users at your site, and consists of scanning the standard TEX style files,
and any extra styles added locally for all users on the site. The private level deals with
those style files you have written for your own use, and use in different documents. You
may have a ‘~/lib/TeX/’ directory where you store useful style files for your own use. The
local level is for a specific directory, and deals with writing customization for the files for
your normal TEX documents.
If compared with the environment variable TEXINPUTS, the global level corresponds to
the directories built into TEX. The private level corresponds to the directories you add
yourself, except for ‘.’, which is the local level.
By default AUCTEX will search for customization files in all the global, private, and local
style directories, but you can also set the path directly. This is useful if you for example
want to add another person’s style hooks to your path. Please note that all matching files
found in TeX-style-path are loaded, and all hooks defined in the files will be executed.
TeX-style-path [User Option]
List of directories to search for AUCTEX style files. Each must end with a slash.
By default, when AUCTEX searches a directory for files, it will recursively search through
subdirectories.
TeX-file-recurse [User Option]
Whether to search TEX directories recursively: nil means do not recurse, a positive
integer means go that far deep in the directory hierarchy, t means recurse indefinitely.
By default, AUCTEX will ignore files name ‘.’, ‘..’, ‘SCCS’, ‘RCS’, and ‘CVS’.
TeX-ignore-file [User Option]
Regular expression matching file names to ignore.
These files or directories will not be considered when searching for TEX files in a
directory.
(TeX-add-style-hook
"book"
(lambda () (setq LaTeX-largest-level
(LaTeX-section-level ("chapter")))))
This file specifies that the largest kind of section in a LaTEX document using the book
document style is chapter. The interesting thing to notice is that the style file defines an
(anonymous) function, and adds it to the list of loaded style hooks by calling TeX-add-
style-hook.
The first time the user indirectly tries to access some style specific information, such as
the largest sectioning command available, the style hooks for all files directly or indirectly
read by the current document is executed. The actual files will only be evaluated once, but
the hooks will be called for each buffer using the style file.
TeX-add-style-hook style hook [Function]
Add hook to the list of functions to run when we use the TEX file style.
Each argument to TeX-add-symbols is a list describing one symbol. The head of the
list is the name of the symbol, the remaining elements describe each argument.
If there are no additional elements, the symbol will be inserted with point inside braces.
Otherwise, each argument of this function should match an argument of the TEX macro.
What is done depends on the argument type.
If a macro is defined multiple times, AUCTEX will chose the one with the longest defi-
nition (i.e. the one with the most arguments).
Thus, to overwrite
’("tref" 1) ; one argument
you can specify
’("tref" TeX-arg-label ignore) ; two arguments
ignore is a function that does not do anything, so when you insert a ‘tref’ you will be
prompted for a label and no more.
string Use the string as a prompt to prompt for the argument.
number Insert that many braces, leave point inside the first.
nil Insert empty braces.
t Insert empty braces, leave point between the braces.
other symbols
Call the symbol as a function. You can define your own hook, or use one of the
predefined argument hooks.
list If the car is a string, insert it as a prompt and the next element as initial input.
Otherwise, call the car of the list with the remaining elements as arguments.
vector Optional argument. If it has more than one element, parse it as a list, otherwise
parse the only element as above. Use square brackets instead of curly braces,
and is not inserted on empty user input.
A lot of argument hooks have already been defined. The first argument to all hooks is
a flag indicating if it is an optional argument. It is up to the hook to determine what to
do with the remaining arguments, if any. Typically the next argument is used to overwrite
the default prompt.
TeX-arg-conditional
Implements if EXPR THEN ELSE. If EXPR evaluates to true, parse THEN as
an argument list, else parse ELSE as an argument list.
TeX-arg-literal
Insert its arguments into the buffer. Used for specifying extra syntax for a
macro.
TeX-arg-free
Parse its arguments but use no braces when they are inserted.
TeX-arg-eval
Evaluate arguments and insert the result in the buffer.
Chapter 12: Writing Your own Style Support 65
TeX-arg-label
Prompt for a label completing with known labels.
TeX-arg-macro
Prompt for a TEX macro with completion.
TeX-arg-environment
Prompt for a LaTEX environment with completion.
TeX-arg-cite
Prompt for a BibTEX citation.
TeX-arg-counter
Prompt for a LaTEX counter.
TeX-arg-savebox
Prompt for a LaTEX savebox.
TeX-arg-file
Prompt for a filename in the current directory, and use it without the extension.
TeX-arg-input-file
Prompt for the name of an input file in TEX’s search path, and use it without
the extension. Run the style hooks for the file.
TeX-arg-define-label
Prompt for a label completing with known labels. Add label to list of defined
labels.
TeX-arg-define-macro
Prompt for a TEX macro with completion. Add macro to list of defined macros.
TeX-arg-define-environment
Prompt for a LaTEX environment with completion. Add environment to list of
defined environments.
TeX-arg-define-cite
Prompt for a BibTEX citation.
TeX-arg-define-counter
Prompt for a LaTEX counter.
TeX-arg-define-savebox
Prompt for a LaTEX savebox.
TeX-arg-corner
Prompt for a LaTEX side or corner position with completion.
TeX-arg-lr
Prompt for a LaTEX side with completion.
TeX-arg-tb
Prompt for a LaTEX side with completion.
TeX-arg-pagestyle
Prompt for a LaTEX pagestyle with completion.
Chapter 12: Writing Your own Style Support 66
TeX-arg-verb
Prompt for delimiter and text.
TeX-arg-pair
Insert a pair of numbers, use arguments for prompt. The numbers are sur-
rounded by parentheses and separated with a comma.
TeX-arg-size
Insert width and height as a pair. No arguments.
TeX-arg-coordinate
Insert x and y coordinates as a pair. No arguments.
If you add new hooks, you can assume that point is placed directly after the previous
argument, or after the macro name if this is the first argument. Please leave point located
after the argument you are inserting. If you want point to be located somewhere else after
all hooks have been processed, set the value of exit-mark. It will point nowhere, until the
argument hook sets it.
\newenvironment{loop}[3]{...}{...}
;; loop.el
(TeX-add-style-hook
Chapter 12: Writing Your own Style Support 67
"loop"
(lambda ()
(LaTeX-add-environments
’("loop" "From" "To" "Step"))))
If an environment is defined multiple times, AUCTEX will chose the one with the longest
definition. Thus, if you have an enumerate style file, and want it to replace the standard
LaTEX enumerate hook above, you could define an ‘enumerate.el’ file as follows, and place
it in the appropriate style directory.
(TeX-add-style-hook
"latex"
(lambda ()
(LaTeX-add-environments
’("enumerate" LaTeX-env-enumerate foo))))
;;; Code:
(defvar TeX-newmacro-regexp
’("\\\\newmacro{\\\\\\([a-zA-Z]+\\)}{\\\\\\([a-zA-Z]+\\)}"
(1 2) TeX-auto-multi)
"Matches \newmacro definitions.")
(defun TeX-macro-cleanup ()
"Move symbols from ‘TeX-auto-multi’ to ‘TeX-auto-symbol’."
(mapcar (lambda (list)
(mapcar (lambda (symbol)
(setq TeX-auto-symbol
(cons symbol TeX-auto-symbol)))
list))
TeX-auto-multi))
(defun TeX-macro-prepare ()
"Clear ‘Tex-auto-multi’ before use."
(setq TeX-auto-multi nil))
(TeX-add-style-hook
"macro"
(lambda ()
(TeX-auto-add-regexp TeX-newmacro-regexp)
(TeX-add-symbols ’("newmacro"
TeX-arg-macro
(TeX-arg-macro "Capitalized macro: \\")
t
"BibTeX entry: "
nil))))
In this case, the hook before parsing just initializes the variable, and the hook after parsing
collects the data from the variable, and adds them to the list of symbols found.
TeX-auto-regexp-list [Variable]
List of regular expressions matching TEX macro definitions.
The list has the following format ((REGEXP MATCH TABLE) . . . ), that is, each
entry is a list with three elements.
REGEXP. Regular expression matching the macro we want to parse.
MATCH. A number or list of numbers, each representing one parenthesized subex-
pression matched by REGEXP.
TABLE. The symbol table to store the data. This can be a function, in which case the
function is called with the argument MATCH. Use TeX-match-buffer to get match
data. If it is not a function, it is presumed to be the name of a variable containing
a list of match data. The matched data (a string if MATCH is a number, a list of
strings if MATCH is a list of numbers) is put in front of the table.
2. VERBATIM COPYING
You may copy and distribute the Document in any medium, either commercially or
noncommercially, provided that this License, the copyright notices, and the license
notice saying this License applies to the Document are reproduced in all copies, and
that you add no other conditions whatsoever to those of this License. You may not use
technical measures to obstruct or control the reading or further copying of the copies
you make or distribute. However, you may accept compensation in exchange for copies.
If you distribute a large enough number of copies you must also follow the conditions
in section 3.
You may also lend copies, under the same conditions stated above, and you may publicly
display copies.
3. COPYING IN QUANTITY
If you publish printed copies (or copies in media that commonly have printed covers) of
the Document, numbering more than 100, and the Document’s license notice requires
Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all
these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
the back cover. Both covers must also clearly and legibly identify you as the publisher
of these copies. The front cover must present the full title with all words of the title
equally prominent and visible. You may add other material on the covers in addition.
Copying with changes limited to the covers, as long as they preserve the title of the
Document and satisfy these conditions, can be treated as verbatim copying in other
respects.
If the required texts for either cover are too voluminous to fit legibly, you should put
the first ones listed (as many as fit reasonably) on the actual cover, and continue the
rest onto adjacent pages.
If you publish or distribute Opaque copies of the Document numbering more than 100,
you must either include a machine-readable Transparent copy along with each Opaque
copy, or state in or with each Opaque copy a computer-network location from which
the general network-using public has access to download using public-standard network
protocols a complete Transparent copy of the Document, free of added material. If
you use the latter option, you must take reasonably prudent steps, when you begin
distribution of Opaque copies in quantity, to ensure that this Transparent copy will
remain thus accessible at the stated location until at least one year after the last time
you distribute an Opaque copy (directly or through your agents or retailers) of that
edition to the public.
It is requested, but not required, that you contact the authors of the Document well
before redistributing any large number of copies, to give them a chance to provide you
with an updated version of the Document.
4. MODIFICATIONS
You may copy and distribute a Modified Version of the Document under the conditions
of sections 2 and 3 above, provided that you release the Modified Version under precisely
this License, with the Modified Version filling the role of the Document, thus licensing
distribution and modification of the Modified Version to whoever possesses a copy of
it. In addition, you must do these things in the Modified Version:
Appendix A: Copying this Manual 73
A. Use in the Title Page (and on the covers, if any) a title distinct from that of the
Document, and from those of previous versions (which should, if there were any,
be listed in the History section of the Document). You may use the same title as
a previous version if the original publisher of that version gives permission.
B. List on the Title Page, as authors, one or more persons or entities responsible for
authorship of the modifications in the Modified Version, together with at least five
of the principal authors of the Document (all of its principal authors, if it has fewer
than five), unless they release you from this requirement.
C. State on the Title page the name of the publisher of the Modified Version, as the
publisher.
D. Preserve all the copyright notices of the Document.
E. Add an appropriate copyright notice for your modifications adjacent to the other
copyright notices.
F. Include, immediately after the copyright notices, a license notice giving the public
permission to use the Modified Version under the terms of this License, in the form
shown in the Addendum below.
G. Preserve in that license notice the full lists of Invariant Sections and required Cover
Texts given in the Document’s license notice.
H. Include an unaltered copy of this License.
I. Preserve the section Entitled “History”, Preserve its Title, and add to it an item
stating at least the title, year, new authors, and publisher of the Modified Version
as given on the Title Page. If there is no section Entitled “History” in the Docu-
ment, create one stating the title, year, authors, and publisher of the Document
as given on its Title Page, then add an item describing the Modified Version as
stated in the previous sentence.
J. Preserve the network location, if any, given in the Document for public access to
a Transparent copy of the Document, and likewise the network locations given in
the Document for previous versions it was based on. These may be placed in the
“History” section. You may omit a network location for a work that was published
at least four years before the Document itself, or if the original publisher of the
version it refers to gives permission.
K. For any section Entitled “Acknowledgements” or “Dedications”, Preserve the Title
of the section, and preserve in the section all the substance and tone of each of the
contributor acknowledgements and/or dedications given therein.
L. Preserve all the Invariant Sections of the Document, unaltered in their text and
in their titles. Section numbers or the equivalent are not considered part of the
section titles.
M. Delete any section Entitled “Endorsements”. Such a section may not be included
in the Modified Version.
N. Do not retitle any existing section to be Entitled “Endorsements” or to conflict in
title with any Invariant Section.
O. Preserve any Warranty Disclaimers.
If the Modified Version includes new front-matter sections or appendices that qualify
as Secondary Sections and contain no material copied from the Document, you may at
Appendix A: Copying this Manual 74
your option designate some or all of these sections as invariant. To do this, add their
titles to the list of Invariant Sections in the Modified Version’s license notice. These
titles must be distinct from any other section titles.
You may add a section Entitled “Endorsements”, provided it contains nothing but
endorsements of your Modified Version by various parties—for example, statements of
peer review or that the text has been approved by an organization as the authoritative
definition of a standard.
You may add a passage of up to five words as a Front-Cover Text, and a passage of up
to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified
Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be
added by (or through arrangements made by) any one entity. If the Document already
includes a cover text for the same cover, previously added by you or by arrangement
made by the same entity you are acting on behalf of, you may not add another; but
you may replace the old one, on explicit permission from the previous publisher that
added the old one.
The author(s) and publisher(s) of the Document do not by this License give permission
to use their names for publicity for or to assert or imply endorsement of any Modified
Version.
5. COMBINING DOCUMENTS
You may combine the Document with other documents released under this License,
under the terms defined in section 4 above for modified versions, provided that you
include in the combination all of the Invariant Sections of all of the original documents,
unmodified, and list them all as Invariant Sections of your combined work in its license
notice, and that you preserve all their Warranty Disclaimers.
The combined work need only contain one copy of this License, and multiple identical
Invariant Sections may be replaced with a single copy. If there are multiple Invariant
Sections with the same name but different contents, make the title of each such section
unique by adding at the end of it, in parentheses, the name of the original author or
publisher of that section if known, or else a unique number. Make the same adjustment
to the section titles in the list of Invariant Sections in the license notice of the combined
work.
In the combination, you must combine any sections Entitled “History” in the vari-
ous original documents, forming one section Entitled “History”; likewise combine any
sections Entitled “Acknowledgements”, and any sections Entitled “Dedications”. You
must delete all sections Entitled “Endorsements.”
6. COLLECTIONS OF DOCUMENTS
You may make a collection consisting of the Document and other documents released
under this License, and replace the individual copies of this License in the various
documents with a single copy that is included in the collection, provided that you
follow the rules of this License for verbatim copying of each of the documents in all
other respects.
You may extract a single document from such a collection, and distribute it individu-
ally under this License, provided you insert a copy of this License into the extracted
document, and follow this License in all other respects regarding verbatim copying of
that document.
Appendix A: Copying this Manual 75
News in 11.85
• Font locking has been improved significantly. It is now less prone to color bleeding
which could lead to high resource usage. In addition it now includes information about
LaTEX macro syntax and can indicate syntactically incorrect macros in LaTEX mode.
• The license was updated to GPLv3.
• Support for the nomencl, flashcards and comment LaTEX packages as well as the Ice-
landic language option of babel were added.
• Support for folding of math macros was added.
• Lots of minor bugs in features and documentation fixed.
News in 11.84
• There have been problems with the ‘-without-texmf-dir’ option to ‘configure’ when
the value of ‘-with-kpathsea-sep’ was set or determined for an installation system
with a default different from that of the runtime system. with-kpathsea-sep has been
removed; the setting is now usually determined at runtime.
Due to this and other problems, preview-latex in the released XEmacs package failed
under Windows or with anything except recent 21.5 XEmacsen.
• AUCTEX and preview-latex have been changed in order to accommodate file names
containing spaces. preview-latex now tolerates bad PostScript code polluting the stack
(like some Omega fonts).
• ‘preview.sty’ had in some cases failed to emit PostScript header specials.
• Support for folding of comments was added.
• The polish language option of the babel LaTeX package as well as the polski LaTeX
package are now supported. Most notably this means that AUCTeX will help to insert
quotation marks as defined by polish.sty ("‘..."’) and polski.sty (,,...’’).
• The TEX tool bar is now available and enabled by default in plain TEX mode. See
Chapter 7 [Running TeX and friends], page 45.
• Bug fix in the display of math subscripts and superscripts.
• Bug fix TeX-doc for Emacs 21.
• There has been quite a number of other bug fixes to various features and documentation
across the board.
News in 11.83
• The new function TeX-doc provides easy access to documentation about commands
and packages or information related to TEX and friends in general. See Section 7.7
[Documentation], page 51.
• You can now get rid of generated intermediate and output files by means of the new
‘Clean’ and ‘Clean All’ entries in TeX-command-list accessible with C-c C-c or the
Command menu. See Section 7.6 [Cleaning], page 50.
Appendix B: Changes and New Features 78
• Support for forward search with PDF files was added. That means you can jump to a
place in the output file corresponding to the position in the source file. See Section 7.2
[Viewing], page 48.
Adding support for this feature required the default value of the variable TeX-output-
view-style to be changed. Please make sure you either remove any customizations
overriding the new default or incorporate the changes into your customizations if you
want to use this feature.
• TEX error messages of the -file-line-error kind are now understood in AUCTEX
and preview-latex (parsers are still separate).
• Bug fix in XyMTEX support.
• The LaTEX tool bar is now enabled by default. See Chapter 7 [Running TeX and
friends], page 45.
News in 11.82
• Support for the MinionPro LaTeX package was added.
• Warnings and underfull/overfull boxes are now being indicated in the echo area after a
LaTEX run, if the respective debugging options are activated with TeX-toggle-debug-
warnings (C-c C-t C-w) or TeX-toggle-debug-bad-boxes (C-c C-t C-b). In this case
TeX-next-error will find these warnings in addition to normal errors.
The key binding C-c C-w for TeX-toggle-debug-bad-boxes (which was renamed from
TeX-toggle-debug-boxes) now is deprecated.
• AUCTEX now can automatically insert a pair of braces after typing or ^ in math
constructs if the new variable TeX-electric-sub-and-superscript is set to a non-nil
value.
• Some language-specific support for French was added. There now is completion support
for the commands provided by the ‘frenchb’ (and ‘francais’) options of the babel
LaTEX package and easier input of French quotation marks (\\og ...\\fg) which can
now be inserted by typing ".
• Completion support for options of some LaTeX packages was added.
• Already in version 11.81 the way to activate AUCTEX changed substantially. This
should now be done with (load "auctex.el" nil t t) instead of the former (require
’tex-site). Related to this change ‘tex-mik.el’ does not load ‘tex-site.el’
anymore. That means if you used only (require ’tex-mik) in order to activate
AUCTEX, you have to add (load "auctex.el" nil t t) before the latter statement.
See Section 2.4 [Loading the package], page 8.
• Handling of verbatim constructs was consolidated across AUCTeX. This resulted
in the font-latex-specific variables font-latex-verb-like-commands, font-latex-
verbatim-macros, and font-latex-verbatim-environments being removed and
the more general variables LaTeX-verbatim-macros-with-delims, LaTeX-verbatim-
macros-with-braces, and LaTeX-verbatim-environments being added.
• The output of a BibTEX run is now checked for warnings and errors, which are reported
in the echo area.
• The aliases for font-latex-title-fontify were removed. Use font-latex-fontify-
sectioning instead.
Appendix B: Changes and New Features 79
• The problem that Japanese macros where broken across lines was fixed.
• Various bug fixes.
News in 11.81
• LaTeX-mark-section now marks subsections of a given section as well. The former
behavior is available via the prefix argument.
• preview-latex which was previously available separately became a subsystem of
AUCTEX. There is no documented provision for building or installing preview-latex
separately. It is still possible to use and install AUCTEX without preview-latex, how-
ever.
• The installation procedures have been overhauled and now also install startup files as
part of the process (those had to be copied manually previously). You are advised to
remove previous installations of AUCTEX and preview-latex before starting the installa-
tion procedure. A standard installation from an unmodified tarball no longer requires
Makeinfo or Perl.
Also note that the way AUCTEX is supposed to be activated changed. Instead of
(require ’tex-site) you should now use (load "auctex.el" nil t t). While the
former method may still work, the new method has the advantage that you can de-
activate a preactivated AUCTEX with the statement (unload-feature ’tex-site)
before any of its modes have been used. This may be important especially for site-wide
installations.
• Support for the babel LaTEX package was added.
• Folding a buffer now ensures that the whole buffer is fontified before the actual folding
is carried out. If this results in unbearably long execution times, you can fall back to
the old behavior of relying on stealth font locking to do this job in the background by
customizing the variable TeX-fold-force-fontify.
• Folded content now reveals part of its original text in a tooltip or the echo area when
hovering with the mouse pointer over it.
• The language-specific insertion of quotation marks was generalized. The
variables LaTeX-german-open-quote, LaTeX-german-close-quote, LaTeX-german-
quote-after-quote, LaTeX-italian-open-quote, LaTeX-italian-close-quote,
and LaTeX-italian-quote-after-quote are now obsolete. If you are not satisfied
with the default settings, you should customize TeX-quote-language-alist instead.
• Similar to language-specific quote insertion, AUCTEX now helps you with hyphens in
different languages as well. See Section 10.1 [European], page 56, for details.
• Fill problems in Japanese text introduced in AUCTEX 11.55 were fixed. AUCTEX tries
not to break lines between 1-byte and 2-byte chars. These features will work in Chinese
text, too.
• The scaling factor of the fontification of sectioning commands can now be customized
using the variable font-latex-fontify-sectioning. This variable was previously
called font-latex-title-fontify; In this release we provide an alias but this will
disappear in one of the the next releases. The faces for the sectioning commands are now
called font-latex-sectioning-N -face (N =0. . . 5) instead of font-latex-title-N -
face (N =1. . . 4). Analogously the names of the variables holding the related keyword
Appendix B: Changes and New Features 80
News in 11.55
• A bug was fixed which lead to the insertion of trailing whitespace during filling. In
particular extra spaces were added to sentence endings at the end of lines. You can
make this whitespace visible by setting the variable show-trailing-whitespace to t.
If you want to delete all trailing whitespace in a buffer, type M-x delete-trailing-
whitespace RET.
• A bug was fixed which lead to a ‘*Compile-Log*’ buffer popping up when the first
LaTEX file was loaded in an Emacs session.
• On some systems the presence of an outdated Emacspeak package lead to the
error message ‘File mode specification error: (error "Variable binding depth
exceeds max-specpdl-size")’. Precautions were added which prevent this error from
happening. But nevertheless, it is advised to upgrade or uninstall the outdated Emac-
speak package.
• The value of TeX-macro-global is not determined during configuration anymore
but at load time of AUCTEX. Consequently the associated configuration option
‘--with-tex-input-dirs’ was removed.
• Support for the LaTEX Japanese classes ‘jsarticle’ and ‘jsbook’ was added.
News in 11.54
• The parser (used e.g. for TeX-auto-generate-global) was extended to recognize
keywords common in LaTEX packages and classes, like “\DeclareRobustCommand” or
“\RequirePackage”. Additionally a bug was fixed which led to duplicate entries in
AUCTEX style files.
• Folding can now be done for paragraphs and regions besides single constructs and the
whole buffer. With the new TeX-fold-dwim command content can both be hidden
and shown with a single key binding. In course of these changes new key bindings for
unfolding commands where introduced. The old bindings are still present but will be
phased out in future releases.
• Info files of the manual now have a .info extension.
• There is an experimental tool bar support now. It is not activated by default. If you
want to use it, add
(add-hook ’LaTeX-mode-hook ’LaTeX-install-toolbar)
to your init file.
• The manual now contains a new chapter “Quick Start”. It explains the main features
and how to use them, and should be enough for a new user to start using AUCTEX.
Appendix B: Changes and New Features 81
• A new section “Font Locking” was added to the manual which explains syntax high-
lighting in AUCTEX and its customization. Together with the sections related to folding
and outlining, the section is part of the new chapter “Display”.
• Keywords for syntax highlighting of LaTEX constructs to be typeset in bold,
italic or typewriter fonts may now be customized. Besides the built-
in classes, new keyword classes may be added by customizing the variable
‘font-latex-user-keyword-classes’. The customization options can be found in
the customization group ‘font-latex-keywords’.
• Verbatim content is now displayed with the ‘fixed-pitch’ face. (GNU Emacs only)
• Syntax highlighting should not spill out of verbatim content anymore. (GNU Emacs
only)
• Verbatim commands like ‘\verb|...|’ will not be broken anymore during filling.
• You can customize the completion for graphic files with LaTeX-includegraphics-
read-file.
• Support for the LaTEX packages ‘url’, ‘listings’, ‘jurabib’ and ‘csquotes’ was added
with regard to command completion and syntax highlighting.
• Performance of fontification and filling was improved.
• Insertion of nodes in Texinfo mode now supports completion of existing node names.
• Setting the variable LaTeX-float to nil now means that you will not be prompted for
the float position of figures and tables. You can get the old behaviour of nil by setting
the variable to "", i.e. an empty string. See also Section 4.4.2 [Floats], page 27.
• The XEmacs-specific bug concerning overlays-at was fixed.
• Lots of bug fixes.
News in 11.53
• The LaTEX math menu can include Unicode characters if your Emacs built supports it.
See the variable LaTeX-math-menu-unicode, Section 5.1 [Mathematics], page 29.
• Bug fixes for XEmacs.
• Completion for graphic files in the TeX search path has been added.
• start is used for the viewer for MiKTEX and fpTEX.
• The variable TeX-fold-preserve-comments can now be customized to deactivate fold-
ing in comments.
News in 11.52
• Installation and menus under XEmacs work again (maybe for the first time).
• Fontification of subscripts and superscripts is now disabled when the fontification engine
is not able to support it properly.
• Bug fixes in the build process.
News in 11.51
• PDFTeX and Source Special support did not work with ConTeXt, this has been fixed.
Similar for Source Special support under Windows.
Appendix B: Changes and New Features 82
News in 11.50
• The use of source specials when processing or viewing the document can now be con-
trolled with the new TeX-source-specials minor mode which can be toggled via an
entry in the Command menu or the key binding C-c C-t C-s. If you have customized
the variable TeX-command-list, you have to re-initialize it for this to work. This means
to open a customization buffer for the variable by typing M-x customize-variable RET
TeX-command-list RET, selecting “Erase Customization” and do your customization
again with the new default.
• The content of the command menu now depends on the mode (plain TEX, LaTEX,
ConTEXt etc.). Any former customization of the variable TeX-command-list has to be
erased. Otherwise the command menu and the customization will not work correctly.
• Support for hiding and auto-revealing macros, e.g. footnotes or citations, and environ-
ments in a buffer was added, Section 6.2 [Folding], page 41.
• You can now control if indentation is done upon typing RET by customizing the variable
TeX-newline-function, Section 5.4 [Indenting], page 32.
• Limited support for doc.sty and ltxdoc.cls (‘dtx’ files) was added. The new docTEX
mode provides functionality for editing documentation parts. This includes formatting
(indenting and filling), adding and completion of macros and environments while stay-
ing in comments as well as syntax highlighting. (Please note that the mode is not
finished yet. For example syntax highlighting does not work yet in XEmacs.)
• For macro completion in docTEX mode the AUCTEX style files ‘doc.el’, ‘ltxdoc.el’
and ‘ltx-base.el’ were included. The latter provides general support for low-level
LaTEX macros and may be used with LaTEX class and style files as well. It is currently
not loaded automatically for those files.
• Support for ConTEXt with a separate ConTEXt mode is now included. Macro defini-
tions for completion are available in Dutch and English.
• The filling and indentation code was overhauled and is now able to format commented
parts of the source syntactically correct. Newly available functionality and customiza-
tion options are explained in the manual.
• Filling and indentation in XEmacs with preview-latex and activated previews lead to
the insertion of whitespace before multi-line previews. AUCTEX now contains facilities
to prevent this problem.
• If TeX-master is set to t, AUCTEX will now query for a master file only when a new
file is opened. Existing files will be left alone. The new function TeX-master-file-ask
(bound to C-c _ is provided for adding the variable manually.
• Sectioning commands are now shown in a larger font on display devices which support
such fontification. The variable font-latex-title-fontify can be customized to
restore the old appearance, i.e. the usage of a different color instead of a change in
size.
Appendix B: Changes and New Features 83
News in 11.14
• Many more LaTeX and LaTeX2e commands are supported. Done by Masayuki Ataka
<[email protected]>
News in 11.12
• Support for the KOMA-Script classes. Contributed by Mark Trettin
<[email protected]>.
Appendix B: Changes and New Features 84
News in 11.11
• Support for ‘prosper.sty’, see http://prosper.sourceforge.net/. Contributed by
Phillip Lord <[email protected]>.
News in 11.10
• comment-region now inserts %% by default. Suggested by "Davide G. M. Salvetti"
<[email protected]>.
News in 11.06
• You can now switch between using the ‘font-latex’ (all emacsen), the ‘tex-font’
(Emacs 21 only) or no special package for font locking. Customize TeX-install-
font-lock for this.
News in 11.04
• Now use -t landscape by default when landscape option appears. Suggested by Erik
Frisk <[email protected]>.
News in 11.03
• Use ‘tex-fptex.el’ for fpTeX support. Contributed by Fabrice Popineau <Fab-
[email protected]>.
News in 11.02
• New user option LaTeX-top-caption-list specifies environments where the caption
should go at top. Contributed by [email protected] (Masayuki Ataka).
• Allow explicit dimensions in ‘graphicx.sty’. Contributed by [email protected]
(Masayuki Ataka).
• Limited support for ‘verbatim.sty’. Contributed by [email protected]
(Masayuki Ataka).
• Better support for asmmath items. Patch by [email protected] (Masayuki
Ataka).
• More accurate error parsing. Added by David Kastrup <[email protected]>.
News in 11.01
• Bug fixes.
Older versions
See the file ‘history.texi’ for older changes.
Appendix C: Future Development 85
C.2 Wishlist
• Documentation lookup for macros
A parser could gather information about which macros are defined in which LaTEX
packages and store the information in a hashtable which can be used in a backend
for TeX-doc in order to open the matching documentation for a given macro. The
information could also be used to insert an appropriate ‘\usepackage’ statement if the
user tries to insert a macro for which the respective package has not been requested
yet.
• Spell checking of macros
A special ispell dictionary for macros could be nice to have.
Appendix C: Future Development 86
• Option not to calculate very slow completions like for C-c C-m include RET.
• Font menu should be created from TeX-font-list.
• Installation procedure written purely in emacs lisp.
• Included PostScript files should also be counted as part of the document.
• The parser should catch warnings about undefined crossreferences. Suggested by
Richard Hirsch ‘[email protected]’.
• A nice hierarchical by-topic organization of all officially documented LaTeX macros,
available from the menu bar.
• TeX-command-default should be set from the master file, if not set locally. Suggested
by Peter Whaite ‘<[email protected]>’.
• Make AUCTEX work with ‘crypt++’. Suggested by Chris Moore
‘<[email protected]>’.
• Make AUCTEX work with ‘longlines’. This would also apply to preview-latex, though
it might make sense to unify error processing before attempting this.
• The ‘Spell’ command should apply to all files in a document. Maybe it could try to
restrict to files that have been modified since last spell check? Suggested by Ravinder
Bhumbla ‘<[email protected]>’.
• Make . check for abbreviations and sentences ending with capital letters.
• Use Emacs 19 minibuffer history to choose between previewers, and other stuff. Sug-
gested by John Interrante ‘<[email protected]>’.
• Make features.
A new command TeX-update (C-c C-u) could be used to create an up-to-date dvi file
by repeatedly running BibTEX, MakeIndex and (La)TEX, until an error occurs or we
are done.
An alternative is to have an ‘Update’ command that ensures the ‘dvi’ file is up to date.
This could be called before printing and previewing.
• Documentation of variables that can be set in a style hook.
We need a list of what can safely be done in an ordinary style hook. You can not set a
variable that AUCTEX depends on, unless AUCTEX knows that it has to run the style
hooks first.
Here is the start of such a list.
LaTeX-add-environments
TeX-add-symbols
LaTeX-add-labels
LaTeX-add-bibliographies
LaTeX-largest-level
• Completion for counters and sboxes.
• Outline should be (better) supported in TEX mode.
At least, support headers, trailers, as well as TeX-outline-extra.
• TeX-header-start and TeX-trailer-end.
We might want these, just for fun (and outlines)
Appendix C: Future Development 88
C.3 Bugs
• The parsed files and style hooks for ‘example.dtx’, ‘example.sty’, ‘example.drv’ and
‘example.bib’ all clash. Bad.
• C-c ‘ should always stay in the current window, also when it finds a new file.
• Do not overwrite emacs warnings about existing auto-save files when loading a new
file.
• Maybe the regexp for matching a TeX symbol during parsing should be
‘"\\\\\\([a-zA-Z]+\\|.\\)"’ — ‘<[email protected]>’ Pe-
ter Thiemann.
• AUCTEX should not parse verbatim environments.
• Make ‘‘’ check for math context in LaTeX-math-mode. and simply self insert if not in
a math context.
• Make TeX-insert-dollar more robust. Currently it can be fooled by ‘\mbox’’es and
escaped double dollar for example.
• Correct indentation for tabular, tabbing, table, math, and array environments.
• No syntactic font locking of verbatim macros and environments. (XEmacs only)
• Font locking inside of verbatim macros and environments is not inhibited. This may
result in syntax highlighting of unbalanced dollar signs and the like spilling out of the
verbatim content. (XEmacs only)
• Folding of LaTEX constructs spanning more than one line may result in overfull lines.
(XEmacs only)
Appendix D: Frequently Asked Questions 89
Our success with XEmacs has been less than convincing. Under the Windows operating
system, nominally the only option for a released, stable Emacs variant supporting
toolbars and preview-latex would be XEmacs 21.4. However, code for core functionality
like formatting and syntax highlighting tends to be different and often older than
even Emacs 21.4, and Unicode support as delivered is problematic at best, missing
on Windows. Both AUCTEX and XEmacs developers don’t hear much from active
users of the combination. Partly for that reason, problems tend to go unnoticed for
long amounts of time and are often found, if at all, after releases. No experiences or
recommendations can be given for beta or developer versions of XEmacs.
3. What should I do when ./configure does not find programs like latex?
This is problem often encountered on Windows. Make sure that the PATH environ-
ment variable includes the directories containing the relevant programs, as described
in Section “Installation under MS Windows” in the AUCTEX manual.
4. Why doesn’t the completion, style file, or multi-file stuff work?
It must be enabled first, insert this in your init file:
(setq-default TeX-master nil)
(setq TeX-parse-self t)
(setq TeX-auto-save t)
Read also the chapters about parsing and multifile documents in the manual.
5. Why doesn’t TeX-save-document work?
TeX-check-path has to contain "./" somewhere.
6. Why is the information in ‘foo.tex’ forgotten when I save ‘foo.bib’?
For various reasons, AUCTEX ignores the extension when it stores information about
a file, so you should use unique base names for your files. E.g. rename ‘foo.bib’ to
‘foob.bib’.
7. Why doesn’t AUCTEX signal when processing a document is done?
If the message in the minibuffer stays "Type ‘C-c C-l’ to display results of compilation.",
you probably have a misconfiguration in your init file (‘.emacs’, ‘init.el’ or similar).
To track this down either search in the ‘*Messages*’ buffer for an error message or put
(setq debug-on-error t) as the first line into your init file, restart Emacs and open
a LaTEX file. Emacs will complain loudly by opening a debugging buffer as soon as an
error occurs. The information in the debugging buffer can help you find the cause of
the error in your init file.
8. What does AUC stand for?
AUCTEX came into being at Aalborg University in Denmark. Back then the Danish
name of the university was Aalborg Universitetscenter; AUC for short.
Key Index 91
Key Index
Function Index
L TeX-arg-pair . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
LaTeX-add-bibliographies . . . . . . . . . . . . . . . . . . . 67 TeX-arg-savebox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
LaTeX-add-environments . . . . . . . . . . . . . . . . . . . . . . 67 TeX-arg-size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
LaTeX-add-labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 TeX-arg-tb. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
LaTeX-close-environment . . . . . . . . . . . . . . . . . . . . . 26 TeX-arg-verb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
LaTeX-env-item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 TeX-auto-generate. . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
LaTeX-environment. . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 TeX-clean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
TeX-command-buffer . . . . . . . . . . . . . . . . . . . . . . . . . . 46
LaTeX-fill-environment . . . . . . . . . . . . . . . . . . . . . . 35
TeX-command-master . . . . . . . . . . . . . . . . . . . . . . . . . . 45
LaTeX-fill-paragraph . . . . . . . . . . . . . . . . . . . . . . . . 35
TeX-command-region . . . . . . . . . . . . . . . . . . . . . . . . . . 45
LaTeX-fill-region. . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
TeX-comment-or-uncomment-paragraph . . . . . . . . 31
LaTeX-fill-section . . . . . . . . . . . . . . . . . . . . . . . . . . 35
TeX-comment-or-uncomment-region . . . . . . . . . . . 31
LaTeX-indent-line. . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
TeX-complete-symbol . . . . . . . . . . . . . . . . . . . . . . . . . 30
LaTeX-insert-environment . . . . . . . . . . . . . . . . . . . 67
TeX-doc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
LaTeX-insert-item. . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
TeX-electric-macro . . . . . . . . . . . . . . . . . . . . . . . . . . 31
LaTeX-math-mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
TeX-fold-buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
LaTeX-section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
TeX-fold-clearout-buffer . . . . . . . . . . . . . . . . . . . 42
LaTeX-section-heading . . . . . . . . . . . . . . . . . . . . . . . 25
TeX-fold-clearout-item . . . . . . . . . . . . . . . . . . . . . . 43
LaTeX-section-label . . . . . . . . . . . . . . . . . . . . . . . . . 25
TeX-fold-clearout-paragraph . . . . . . . . . . . . . . . . 43
LaTeX-section-section . . . . . . . . . . . . . . . . . . . . . . . 25 TeX-fold-clearout-region . . . . . . . . . . . . . . . . . . . 43
LaTeX-section-title . . . . . . . . . . . . . . . . . . . . . . . . . 25 TeX-fold-comment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
LaTeX-section-toc. . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 TeX-fold-dwim . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
TeX-fold-env . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
T TeX-fold-macro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TeX-fold-mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42
41
TeX-add-style-hook . . . . . . . . . . . . . . . . . . . . . . . . . . 63 TeX-fold-paragraph . . . . . . . . . . . . . . . . . . . . . . . . . . 42
TeX-add-symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 TeX-fold-region . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
TeX-arg-cite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 TeX-font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
TeX-arg-conditional . . . . . . . . . . . . . . . . . . . . . . . . . 64 TeX-header-end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
TeX-arg-coordinate . . . . . . . . . . . . . . . . . . . . . . . . . . 66 TeX-home-buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
TeX-arg-corner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 TeX-insert-braces. . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
TeX-arg-counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 TeX-insert-dollar. . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
TeX-arg-define-cite . . . . . . . . . . . . . . . . . . . . . . . . . 65 TeX-insert-macro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
TeX-arg-define-counter . . . . . . . . . . . . . . . . . . . . . . 65 TeX-insert-quote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
TeX-arg-define-environment . . . . . . . . . . . . . . . . . 65 TeX-interactive-mode . . . . . . . . . . . . . . . . . . . . . . . . 47
TeX-arg-define-label . . . . . . . . . . . . . . . . . . . . . . . . 65 TeX-kill-job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
TeX-arg-define-macro . . . . . . . . . . . . . . . . . . . . . . . . 65 TeX-master-file-ask . . . . . . . . . . . . . . . . . . . . . . . . . 53
TeX-arg-define-savebox . . . . . . . . . . . . . . . . . . . . . . 65 TeX-next-error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
TeX-arg-environment . . . . . . . . . . . . . . . . . . . . . . . . . 65 TeX-normal-mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
TeX-arg-eval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 TeX-Omega-mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
TeX-arg-file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 TeX-PDF-mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
TeX-arg-free . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 TeX-pin-region . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
TeX-arg-input-file . . . . . . . . . . . . . . . . . . . . . . . . . . 65 TeX-recenter-output-buffer . . . . . . . . . . . . . . . . . 50
TeX-arg-label . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 TeX-save-document. . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
TeX-arg-literal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 TeX-source-specials-mode . . . . . . . . . . . . . . . . . . . 47
TeX-arg-lr. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 TeX-toggle-debug-bad-boxes . . . . . . . . . . . . . . . . . 49
TeX-arg-macro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 TeX-toggle-debug-warnings . . . . . . . . . . . . . . . . . . 49
TeX-arg-pagestyle. . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 TeX-view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Variable Index 93
Variable Index
C L
ConTeXt-clean-intermediate-suffixes . . . . . . . 50 LaTeX-amsmath-label . . . . . . . . . . . . . . . . . . . . . . . . . 27
ConTeXt-clean-output-suffixes . . . . . . . . . . . . . . 50 LaTeX-auto-label-regexp-list . . . . . . . . . . . . . . . 55
LaTeX-auto-minimal-regexp-list . . . . . . . . . . . . . 55
LaTeX-auto-regexp-list . . . . . . . . . . . . . . . . . . . . . . 55
D LaTeX-babel-hyphen . . . . . . . . . . . . . . . . . . . . . . . . . . 58
docTeX-clean-intermediate-suffixes . . . . . . . . 50 LaTeX-babel-hyphen-after-hyphen . . . . . . . . . . . 58
docTeX-clean-output-suffixes . . . . . . . . . . . . . . . 50 LaTeX-babel-hyphen-language-alist . . . . . . . . . 58
LaTeX-clean-intermediate-suffixes . . . . . . . . . 50
LaTeX-clean-output-suffixes . . . . . . . . . . . . . . . . 50
F LaTeX-csquotes-close-quote . . . . . . . . . . . . . . . . . 22
font-latex-deactivated-keyword-classes . . . 39 LaTeX-csquotes-open-quote . . . . . . . . . . . . . . . . . . 22
font-latex-do-multi-line . . . . . . . . . . . . . . . . . . . 41 LaTeX-csquotes-quote-after-quote . . . . . . . . . . 22
font-latex-fontify-script . . . . . . . . . . . . . . . . . . 40 LaTeX-default-environment . . . . . . . . . . . . . . . . . . 26
font-latex-fontify-sectioning . . . . . . . . . . . . . . 38 LaTeX-default-format . . . . . . . . . . . . . . . . . . . . . . . . 28
font-latex-match-bold-command-keywords . . . 38 LaTeX-default-position . . . . . . . . . . . . . . . . . . . . . . 28
font-latex-match-bold-declaration-keywords LaTeX-enable-toolbar . . . . . . . . . . . . . . . . . . . . . . . . 45
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 LaTeX-eqnarray-label . . . . . . . . . . . . . . . . . . . . . . . . 27
font-latex-match-function-keywords . . . . . . . . 37 LaTeX-equation-label . . . . . . . . . . . . . . . . . . . . . . . . 27
font-latex-match-italic-command-keywords LaTeX-figure-label . . . . . . . . . . . . . . . . . . . . . . . . . . 27
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 LaTeX-fill-break-at-separators . . . . . . . . . . . . . 35
font-latex-match-italic-declaration- LaTeX-fill-break-before-code-comments. . . . . 35
keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 LaTeX-float . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
font-latex-match-math-command-keywords . . . 38 LaTeX-indent-environment-check . . . . . . . . . . . . . 32
font-latex-match-reference-keywords . . . . . . . 37 LaTeX-indent-environment-list . . . . . . . . . . 32, 33
font-latex-match-sectioning-0-keywords . . . 38 LaTeX-indent-level . . . . . . . . . . . . . . . . . . . . . . . 32, 33
font-latex-match-sectioning-1-keywords . . . 38 LaTeX-item-indent . . . . . . . . . . . . . . . . . . . . . . . . 32, 33
font-latex-match-sectioning-2-keywords . . . 38 LaTeX-math-abbrev-prefix . . . . . . . . . . . . . . . . . . . 29
font-latex-match-sectioning-3-keywords . . . 38 LaTeX-math-list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
font-latex-match-sectioning-4-keywords . . . 38 LaTeX-math-menu-unicode . . . . . . . . . . . . . . . . . . . . . 29
font-latex-match-sectioning-5-keywords . . . 38 LaTeX-paragraph-commands . . . . . . . . . . . . . . . . . . . 34
font-latex-match-slide-title-keywords. . . . . 38 LaTeX-section-hook . . . . . . . . . . . . . . . . . . . . . . . . . . 25
font-latex-match-textual-keywords . . . . . . . . . 37 LaTeX-section-label . . . . . . . . . . . . . . . . . . . . . . 25, 26
font-latex-match-type-command-keywords . . . 38 LaTeX-syntactic-comments . . . . . . . . . . . . . . . . 32, 33
font-latex-match-type-declaration-keywords LaTeX-table-label. . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 LaTeX-top-caption-list . . . . . . . . . . . . . . . . . . . . . . 27
font-latex-match-variable-keywords . . . . . . . . 37 LaTeX-verbatim-environments . . . . . . . . . . . . . . . . 40
font-latex-match-warning-keywords . . . . . . . . . 37 LaTeX-verbatim-macros-with-braces . . . . . . . . . 40
font-latex-quotes. . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 LaTeX-verbatim-macros-with-delims . . . . . . . . . 40
font-latex-script-display . . . . . . . . . . . . . . . . . . 40
font-latex-sectioning-0-face . . . . . . . . . . . . . . . 38
font-latex-sectioning-1-face . . . . . . . . . . . . . . . 38 P
font-latex-sectioning-2-face . . . . . . . . . . . . . . . 38 plain-TeX-auto-regexp-list . . . . . . . . . . . . . . . . . 55
font-latex-sectioning-3-face . . . . . . . . . . . . . . . 38 plain-TeX-clean-intermediate-suffixes. . . . . 50
font-latex-sectioning-4-face . . . . . . . . . . . . . . . 38 plain-TeX-clean-output-suffixes . . . . . . . . . . . 50
font-latex-sectioning-5-face . . . . . . . . . . . . . . . 38 plain-TeX-enable-toolbar . . . . . . . . . . . . . . . . . . . 45
font-latex-slide-title-face . . . . . . . . . . . . . . . . 38
font-latex-user-keyword-classes . . . . . . . . . . . 39
T
TeX-auto-cleanup-hook . . . . . . . . . . . . . . . . . . . . . . . 69
J TeX-auto-empty-regexp-list . . . . . . . . . . . . . . . . . 55
japanese-LaTeX-command-default . . . . . . . . . 58, 59 TeX-auto-full-regexp-list . . . . . . . . . . . . . . . . . . 55
japanese-LaTeX-default-style . . . . . . . . . . . 58, 59 TeX-auto-global . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
japanese-TeX-command-default . . . . . . . . . . . 58, 59 TeX-auto-local . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Variable Index 94
TeX-auto-parse-length . . . . . . . . . . . . . . . . . . . . . . . 55 TeX-language-cz-hook . . . . . . . . . . . . . . . . . . . . . . . . 57
TeX-auto-prepare-hook . . . . . . . . . . . . . . . . . . . . . . . 69 TeX-language-de-hook . . . . . . . . . . . . . . . . . . . . . . . . 57
TeX-auto-private . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 TeX-language-dk-hook . . . . . . . . . . . . . . . . . . . . . . . . 57
TeX-auto-regexp-list . . . . . . . . . . . . . . . . . . . . 55, 69 TeX-language-it-hook . . . . . . . . . . . . . . . . . . . . . . . . 57
TeX-auto-save . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 TeX-language-nl-hook . . . . . . . . . . . . . . . . . . . . . . . . 57
TeX-auto-untabify. . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 TeX-language-pl-hook . . . . . . . . . . . . . . . . . . . . . . . . 57
TeX-brace-indent-level . . . . . . . . . . . . . . . . . . . . . . 33 TeX-language-sk-hook . . . . . . . . . . . . . . . . . . . . . . . . 57
TeX-check-path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 TeX-language-sv-hook . . . . . . . . . . . . . . . . . . . . . . . . 57
TeX-clean-confirm. . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 TeX-macro-global . . . . . . . . . . . . . . . . . . . . . . . . . 16, 60
TeX-close-quote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 TeX-macro-private. . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
TeX-command-default . . . . . . . . . . . . . . . . . . . . . . . . . 46 TeX-master . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45, 52
TeX-command-list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 TeX-math-close-double-dollar . . . . . . . . . . . . . . . 23
TeX-default-macro. . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 TeX-newline-function . . . . . . . . . . . . . . . . . . . . 32, 33
TeX-default-mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 TeX-Omega-mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
TeX-display-help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 TeX-one-master . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
TeX-DVI-via-PDFTeX . . . . . . . . . . . . . . . . . . . . . . . . . . 47 TeX-open-quote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
TeX-electric-escape . . . . . . . . . . . . . . . . . . . . . . . . . 31 TeX-outline-extra. . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
TeX-electric-sub-and-superscript . . . . . . . . . . 30 TeX-output-view-style . . . . . . . . . . . . . . . . . . . . . . . 48
TeX-file-recurse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 TeX-parse-self . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
TeX-fold-env-spec-list . . . . . . . . . . . . . . . . . . . . . . 43 TeX-PDF-mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
TeX-fold-force-fontify . . . . . . . . . . . . . . . . . . . . . . 42 TeX-quote-after-quote . . . . . . . . . . . . . . . . . . . . . . . 22
TeX-fold-help-echo-max-length . . . . . . . . . . . . . . 44 TeX-quote-language-alist . . . . . . . . . . . . . . . . . . . 58
TeX-fold-macro-spec-list . . . . . . . . . . . . . . . . . . . 43 TeX-region . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45, 46
TeX-fold-preserve-comments . . . . . . . . . . . . . . . . . 42 TeX-save-query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
TeX-fold-type-list . . . . . . . . . . . . . . . . . . . . . . . . . . 42 TeX-show-compilation . . . . . . . . . . . . . . . . . . . . . . . . 48
TeX-fold-unspec-env-display-string . . . . . . . . 43 TeX-source-specials-mode . . . . . . . . . . . . . . . . . . . 47
TeX-fold-unspec-macro-display-string . . . . . . 43 TeX-source-specials-view-start-server. . . . . 49
TeX-fold-unspec-use-name . . . . . . . . . . . . . . . . . . . 43 TeX-style-global . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
TeX-font-list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 TeX-style-local . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
TeX-header-end . . . . . . . . . . . . . . . . . . . . . . . . . . . 45, 46 TeX-style-path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
TeX-ignore-file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 TeX-style-private. . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
TeX-insert-braces. . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 TeX-trailer-start . . . . . . . . . . . . . . . . . . . . . . . . 45, 46
TeX-insert-macro-default-style . . . . . . . . . . . . . 30 TeX-view-style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
TeX-install-font-lock . . . . . . . . . . . . . . . . . . . . . . . 36 Texinfo-clean-intermediate-suffixes . . . . . . . 50
TeX-interactive-mode . . . . . . . . . . . . . . . . . . . . . . . . 47 Texinfo-clean-output-suffixes . . . . . . . . . . . . . . 50
Concept Index 95
Concept Index
. bibliography, completion . . . . . . . . . . . . . . . . . . . . . . . 31
‘.emacs’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 BibTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
BibTeX, completion . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
‘book.el’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
\ Braces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
‘\begin’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Brackets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
\chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19, 24
\cite, completion of . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 C
\emph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19, 23
‘\end’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Changing font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
\include . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 Changing the parser . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
\input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 Chapters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19, 24
\item. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Character set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
\label. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19, 24 Checking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
\label, completion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ChinaTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
\ref, completion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 chktex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
\section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19, 24 citations, completion of . . . . . . . . . . . . . . . . . . . . . . . . 31
\subsection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19, 24 cite, completion of . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
\textbf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19, 23 CJK language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
\textit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19, 23 CJK-LaTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
\textrm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19, 23 Cleaning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
\textsc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20, 24 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
\textsf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20, 23 Completion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
\textsl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19, 23 Controlling the output . . . . . . . . . . . . . . . . . . . . . . . . . 50
\texttt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20, 23 Copying . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Copyright . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
CTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
A Current file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Customization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Adding a style hook . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Customization, personal . . . . . . . . . . . . . . . . . . . . . . . 16
Adding bibliographies . . . . . . . . . . . . . . . . . . . . . . . . . 67 Customization, site . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Adding environments . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Czech . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Adding labels. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Adding macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 D
Adding other information . . . . . . . . . . . . . . . . . . . . . . 67
Adding to PATH in Windows . . . . . . . . . . . . . . . . . . . 12 Danish . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Advanced features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
amsmath . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Default command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
ANSI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Defining bibliographies in style hooks . . . . . . . . . . 67
Arguments to TeX macros . . . . . . . . . . . . . . . . . . . . . 30 Defining environments in style hooks . . . . . . . . . . . 66
ASCII pTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56, 58 Defining labels in style hooks . . . . . . . . . . . . . . . . . . 67
‘auctex.el’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8, 78 Defining macros in style hooks . . . . . . . . . . . . . . . . . 63
‘auto’ directories. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Defining other information in style hooks . . . . . . 67
Auto-Reveal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Deleting fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20, 24
Automatic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Denmark . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Automatic Customization . . . . . . . . . . . . . . . . . . . . . . 60 Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Automatic Parsing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 Display math mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Automatic updating style hooks . . . . . . . . . . . . . . . 61 Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
B Documents with multiple files . . . . . . . . . . . . . . . . . . 52
Bad boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Dollars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Bibliographies, adding . . . . . . . . . . . . . . . . . . . . . . . . . 67 Double quotes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Dutch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Concept Index 96
E I
Enumerates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Including . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Indentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Environments, adding . . . . . . . . . . . . . . . . . . . . . . . . . 66 Indenting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Eqnarray . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Indexing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Inputing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Europe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Internationalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
European Characters . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Inverse search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Example of a style file.. . . . . . . . . . . . . . . . . . . . . . . . . 63 ISO 8859 Latin 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Expansion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ISO 8859 Latin 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
External Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 ‘iso-cvt.el’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Extracting TeX symbols . . . . . . . . . . . . . . . . . . . . . . . 60 ispell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Italy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Itemize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
F
Faces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
FDL, GNU Free Documentation License . . . . . . . 70 J
Figure environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Japan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Japanese . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
File Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 jLaTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Filling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 jTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56, 58
Finding errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Finding the current file . . . . . . . . . . . . . . . . . . . . . . . . 50
Finding the master file. . . . . . . . . . . . . . . . . . . . . . . . . 50 K
Floats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Killing a process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Folding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41, 44 kTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Font Locking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Font macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
font-latex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 L
Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Label prefix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26, 27
Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32, 33, 45 Labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26, 27
Forward search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Labels, adding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Free . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 labels, completion of . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Free software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 lacheck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Language Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
LaTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
G Latin 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
General Public License . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Latin 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Generating symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Literature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Germany . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Local style directory . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Global directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Local style hooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Global macro directory . . . . . . . . . . . . . . . . . . . . . . . . 60
Local Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Global style hook directory . . . . . . . . . . . . . . . . . . . . 60
Global TeX macro directory . . . . . . . . . . . . . . . . . . . 60
GPL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 M
Macro arguments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
H Macro completion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Macro expansion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 ‘macro.el’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 ‘macro.tex’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Hide Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Macros, adding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
HLaTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Make . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Holland . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 makeindex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Making a bibliography . . . . . . . . . . . . . . . . . . . . . . . . . 45
Concept Index 97
Making an index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 R
Many Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 Redisplay output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Master file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50, 52 Refilling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Matching dollar signs . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Reformatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32, 33
Math mode delimiters . . . . . . . . . . . . . . . . . . . . . . . . . 22 Region . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Mathematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Region file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
MULE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56, 58 Reindenting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
MULE-UCS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Reveal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Multifile Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 Right . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Multiple Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 Running BibTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Running chktex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Running commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
N Running lacheck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
National letters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Running LaTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Next error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Running makeindex. . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Nippon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Running TeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
NTT jTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56, 58
S
O Sample style file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Omega . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 Sectioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19, 24
Other information, adding . . . . . . . . . . . . . . . . . . . . . 67 Sectioning commands, fontification of . . . . . . . . . . 37
Outlining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41, 44 Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19, 24, 44
Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Setting the default command . . . . . . . . . . . . . . . . . . 45
Overfull boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Setting the header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Setting the trailer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Site customization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Site information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
P Site initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Parsing errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Site macro directory . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Parsing LaTeX errors . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Site TeX macro directory . . . . . . . . . . . . . . . . . . . . . . 60
Parsing new macros . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Slovakia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Parsing TeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54, 60 Source specials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Parsing TeX output . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Specifying a font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
PATH in Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Starting a previewer . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
PDF mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 Stopping a process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Personal customization . . . . . . . . . . . . . . . . . . . . . . . . 16 ‘style’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Personal information . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Personal macro directory . . . . . . . . . . . . . . . . . . . . . . 61 Style file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Personal TeX macro directory . . . . . . . . . . . . . . . . . 61 Style files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
pLaTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Style hook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Poland . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Style hooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Prefix for labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26, 27 Subscript, fontification of . . . . . . . . . . . . . . . . . . . . . . 40
preview-install-styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Superscript, fontification of . . . . . . . . . . . . . . . . . . . . 40
Previewing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Sweden . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Private directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Syntax Highlighting . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Private macro directory . . . . . . . . . . . . . . . . . . . . . . . . 61
Private style hook directory . . . . . . . . . . . . . . . . . . . . 61
Private TeX macro directory . . . . . . . . . . . . . . . . . . . 61 T
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Tabify . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Table environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
pTeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56, 58 Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
TeX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Q TeX parsing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Quotes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 ‘tex-fptex.el’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Quotes, fontification of . . . . . . . . . . . . . . . . . . . . . . . . 40 ‘tex-jp.el’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Concept Index 98
‘tex-mik.el’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 V
‘tex-site.el’ . . . . . . . . . . . . . . . . . . . . . . . . . . . 8, 16, 78 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
tool bar, toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Verbatim, fontification of . . . . . . . . . . . . . . . . . . . . . . 40
Trailer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Viewing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
U W
Underfull boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Warranty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
UNICODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Writing to a printer . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Untabify . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Updating style hooks . . . . . . . . . . . . . . . . . . . . . . . . . . 61 X
‘x-compose.el’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
X-Symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56