[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
RefTeX is a specialized package for support of labels,
references, citations, and the index in LaTeX. RefTeX wraps
itself round 4 LaTeX macros: \label
, \ref
, \cite
,
and \index
. Using these macros usually requires looking up
different parts of the document and searching through BibTeX database
files. RefTeX automates these time--consuming tasks almost
entirely. It also provides functions to display the structure of a
document and to move around in this structure quickly.
See section 6.10 Imprint, for information about who to contact for help, bug reports or suggestions.
1.1 Installation | How to install and activate RefTeX. | |
1.4 RefTeX in a Nutshell | A brief summary and quick guide. |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
RefTeX is bundled and pre--installed with Emacs since version 20.2. It was also bundled and pre--installed with XEmacs 19.16--20.x. XEmacs 21.x users want to install the corresponding plug-in package which is available from the XEmacs ftp site.. See the XEmacs 21.x documentation on package installation for details.
Users of earlier Emacs distributions (including Emacs 19) can get a copy of the RefTeX distribution from the maintainers web-page. See section 6.10 Imprint, for more information.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
RefTeX needs to access all files which are part of a multifile
document, and the BibTeX database files requested by the
\bibliography
command. To find these files, RefTeX will
require a search path, i.e. a list of directories to check. Normally
this list is stored in the environment variables TEXINPUTS
and
BIBINPUTS
which are also used by RefTeX. However, on some
systems these variables do not contain the full search path. If
RefTeX does not work for you because it cannot find some files,
read 6.6 Finding Files.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To turn RefTeX Mode on and off in a particular buffer, use M-x reftex-mode. To turn on RefTeX Mode for all LaTeX files, add the following lines to your `.emacs' file:
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode (add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
reftex-toc
) will show
a table of contents of the document. This buffer can display sections,
labels and index entries defined in the document. From the buffer, you
can jump quickly to every part of your document. Press ? to get
help.
reftex-label-alist
).
reftex-label
) to insert a label at point.
RefTeX will either
reftex-insert-label-flags
.
reftex-reference
). This shows an outline of the document with
all labels of a certain type (figure, equation,...) and some label
context. Selecting a label inserts a \ref{label}
macro
into the original buffer.
reftex-citation
) will let you specify a
regular expression to search in current BibTeX database files (as
specified in the \bibliography
command) and pull out a list of
matches for you to choose from. The list is formatted and
sorted. The selected article is referenced as `\cite{key}'
(see the variable reftex-cite-format
if you want to insert
different macros).
reftex-index-macros
). Multiple indices
are supported.
reftex-index-selection-or-word
). The default macro
reftex-index-default-macro
will be used. For a more complex entry
type C-c < (reftex-index
), select any of the index macros
and enter the arguments with completion.
reftex-index-phrase-selection-or-word
) to add
the current word or selection to a special index phrase file.
RefTeX can later search the document for occurrences of these
phrases and let you interactively index the matches.
reftex-display-index
). From that buffer you can check and edit
all entries.
\label
, \ref
, \cite
, \bibitem
,
\index
, and variations) or inside a BibTeX database entry, you
can press C-c & (reftex-view-crossref
) to display
corresponding locations in the document and associated BibTeX database
files. \cite
or \ref
and no other
message occupies the echo area, information about the citation or label
will automatically be displayed in the echo area.
TeX-master
or tex-main-file
pointing to the
master file. RefTeX provides cross-referencing information from
all parts of the document, and across document borders
(`xr.sty').
reftex-label
and
reftex-index
are used. To enforce reparsing, call any of the
commands described above with a raw C-u prefix, or press the
r key in the label selection buffer, the table of contents
buffer, or the index buffer.
reftex-plug-into-AUCTeX
). AUCTeX
contains style files which trigger appropriate settings in
RefTeX, so that for many of the popular LaTeX packages no
additional customizations will be necessary.
(setq reftex-plug-into-AUCTeX t) |
To make your own LaTeX macro definitions known to RefTeX, customize the variables
|
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated by XEmacs shared group account on December, 19 2009
using texi2html 1.65.