aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Dominik2002-07-25 07:09:00 +0000
committerCarsten Dominik2002-07-25 07:09:00 +0000
commitb93d35c955a52c4bed012cd4f4369dfedc33b886 (patch)
treee3e78755a9164770953752470bf206a3b9fccf2c
parent7ac7387b8e5672d84f700e26c8a0ca432da058d1 (diff)
downloademacs-b93d35c955a52c4bed012cd4f4369dfedc33b886.tar.gz
emacs-b93d35c955a52c4bed012cd4f4369dfedc33b886.zip
Update to RefTeX 4.18
-rw-r--r--man/reftex.texi169
1 files changed, 127 insertions, 42 deletions
diff --git a/man/reftex.texi b/man/reftex.texi
index 88892ecdb53..5a29f125ef8 100644
--- a/man/reftex.texi
+++ b/man/reftex.texi
@@ -9,13 +9,9 @@
9@synindex ky cp 9@synindex ky cp
10@syncodeindex vr cp 10@syncodeindex vr cp
11@syncodeindex fn cp 11@syncodeindex fn cp
12@set VERSION 4.16 12@set VERSION 4.18
13@set EDITION 4.16 13@set EDITION 4.18
14@set DATE June 2001 14@set DATE July 2002
15@set AUTHOR Carsten Dominik
16@set AUTHOR-EMAIL dominik@@astro.uva.nl
17@set MAINTAINER Carsten Dominik
18@set MAINTAINER-EMAIL dominik@@astro.uva.nl
19@c %**end of header 15@c %**end of header
20@finalout 16@finalout
21 17
@@ -38,7 +34,7 @@ citations and indices for LaTeX documents with Emacs.@refill
38This is edition @value{EDITION} of the @b{Ref@TeX{}} User Manual for 34This is edition @value{EDITION} of the @b{Ref@TeX{}} User Manual for
39@b{Ref@TeX{}} @value{VERSION}@refill 35@b{Ref@TeX{}} @value{VERSION}@refill
40 36
41Copyright (c) 1997, 1998, 1999, 2000 2001 Free Software Foundation, Inc. 37Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
42 38
43Permission is granted to copy, distribute and/or modify this document 39Permission is granted to copy, distribute and/or modify this document
44under the terms of the GNU Free Documentation License, Version 1.1 or 40under the terms of the GNU Free Documentation License, Version 1.1 or
@@ -65,7 +61,7 @@ license to the document, as described in section 6 of the license.
65 61
66@author by Carsten Dominik 62@author by Carsten Dominik
67@page 63@page
68Copyright @copyright{} 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. 64Copyright @copyright{} 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
69 65
70@sp 2 66@sp 2
71This is edition @value{EDITION} of the @cite{Ref@TeX{} User Manual} for 67This is edition @value{EDITION} of the @cite{Ref@TeX{} User Manual} for
@@ -1135,8 +1131,19 @@ was chosen for @code{theorem} since @code{?t} is already taken by
1135@noindent 1131@noindent
1136The labels for Axioms and Theorems will have the prefixes @samp{ax:} and 1132The labels for Axioms and Theorems will have the prefixes @samp{ax:} and
1137@samp{thr:}, respectively. @xref{AUCTeX}, for information on how 1133@samp{thr:}, respectively. @xref{AUCTeX}, for information on how
1138AUCTeX can use @b{Ref@TeX{}} to automatically create labels when a new 1134AUCTeX can use RefTeX to automatically create labels when a new environment
1139environment is inserted into a buffer.@refill 1135is inserted into a buffer. Additionally, the following needs to be
1136added to one's .emacs file before AUCTeX will automatically create
1137labels for the new environments.
1138
1139@lisp
1140(add-hook 'LaTeX-mode-hook
1141 (lambda ()
1142 (LaTeX-add-environments
1143 '("axiom" LaTeX-env-label)
1144 '("theorem" LaTeX-env-label))))
1145@end lisp
1146
1140 1147
1141@noindent 1148@noindent
1142The @samp{~\ref@{%s@}} is a format string indicating how to insert 1149The @samp{~\ref@{%s@}} is a format string indicating how to insert
@@ -1625,7 +1632,10 @@ logic @code{and} for regular expressions. For example
1625@samp{Einstein&&Bose} will match all articles which mention 1632@samp{Einstein&&Bose} will match all articles which mention
1626Bose-Einstein condensation, or which are co-authored by Bose and 1633Bose-Einstein condensation, or which are co-authored by Bose and
1627Einstein. When entering the regular expression, you can complete on 1634Einstein. When entering the regular expression, you can complete on
1628known citation keys.@refill 1635known citation keys. RefTeX also offeres a default when prompting for a
1636regular expression. This default is the word before the cursor or the
1637word before the current @samp{\cite} comand. Sometimes this may be a
1638good search key.@refill
1629 1639
1630@cindex @code{\bibliography} 1640@cindex @code{\bibliography}
1631@cindex @code{thebibliography}, LaTeX environment 1641@cindex @code{thebibliography}, LaTeX environment
@@ -2809,6 +2819,23 @@ command depends upon the version of that program.
2809@end lisp 2819@end lisp
2810@end itemize 2820@end itemize
2811 2821
2822@cindex Noweb files
2823@vindex reftex-file-extensions
2824@vindex TeX-file-extensions
2825Some people like to use RefTeX with noweb files, which usually have the
2826extension @file{.nw}. In order to deal with such files, the new
2827extension must be added to the list of valid extensions in the variable
2828@code{reftex-file-extensions}. When working with AUCTeX as major mode,
2829the new extension must also be known to AUCTeX via the variable
2830@code{TeX-file-extension}. For example:
2831
2832@lisp
2833(setq reftex-file-extensions
2834 '(("nw" "tex" ".tex" ".ltx") ("bib" ".bib")))
2835(setq TeX-file-extensions
2836 '( "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo"))
2837@end lisp
2838
2812@node Optimizations, Problems and Work-Arounds, Finding Files, Top 2839@node Optimizations, Problems and Work-Arounds, Finding Files, Top
2813@section Optimizations 2840@section Optimizations
2814@cindex Optimizations 2841@cindex Optimizations
@@ -2938,7 +2965,6 @@ with the @kbd{g} key. To get this behavior, use instead@refill
2938@end group 2965@end group
2939@end lisp 2966@end lisp
2940 2967
2941@page
2942@node AUCTeX, Multifile Documents, Faces, Top 2968@node AUCTeX, Multifile Documents, Faces, Top
2943@section @w{AUC @TeX{}} 2969@section @w{AUC @TeX{}}
2944@cindex @code{AUCTeX}, Emacs package 2970@cindex @code{AUCTeX}, Emacs package
@@ -2946,7 +2972,7 @@ with the @kbd{g} key. To get this behavior, use instead@refill
2946 2972
2947AUCTeX is without doubt the best major mode for editing TeX and LaTeX 2973AUCTeX is without doubt the best major mode for editing TeX and LaTeX
2948files with Emacs (@pxref{Top,AUCTeX,,auctex, The AUCTeX User Manual}). 2974files with Emacs (@pxref{Top,AUCTeX,,auctex, The AUCTeX User Manual}).
2949If AUCTeX is not part of you Emacs distribution, you can get 2975If AUCTeX is not part of your Emacs distribution, you can get
2950it@footnote{XEmacs 21.x users may want to install the corresponding 2976it@footnote{XEmacs 21.x users may want to install the corresponding
2951XEmacs package.} by ftp from the 2977XEmacs package.} by ftp from the
2952@uref{http://www.sunsite.auc.dk/auctex/,AUCTeX distribution site}. 2978@uref{http://www.sunsite.auc.dk/auctex/,AUCTeX distribution site}.
@@ -3197,8 +3223,8 @@ make use of this feature, try@refill
3197@item 3223@item
3198@b{LaTeX commands}@* 3224@b{LaTeX commands}@*
3199@cindex LaTeX commands, not found 3225@cindex LaTeX commands, not found
3200@code{\input}, @code{\include}, @code{\bibliography} and @code{\section} 3226@code{\input}, @code{\include}, and @code{\section} (etc.) statements
3201(etc.) statements have to be first on a line (except for white space).@refill 3227have to be first on a line (except for white space).@refill
3202 3228
3203@item 3229@item
3204@b{Commented regions}@* 3230@b{Commented regions}@*
@@ -3335,12 +3361,12 @@ With @i{Viper} mode prior to Vipers version 3.01, you need to protect
3335@cindex @code{http}, @b{Ref@TeX{}} home page 3361@cindex @code{http}, @b{Ref@TeX{}} home page
3336@cindex @code{ftp}, @b{Ref@TeX{}} site 3362@cindex @code{ftp}, @b{Ref@TeX{}} site
3337 3363
3338@b{Ref@TeX{}} was written by @i{@value{AUTHOR}} 3364@b{Ref@TeX{}} was written by @i{@value{Carsten Dominik}}
3339@email{@value{AUTHOR-EMAIL}}, with contributions by @i{Stephen 3365@email{dominik@@science.uva.nl}, with contributions by @i{Stephen
3340Eglen}. @b{Ref@TeX{}} is currently maintained by @refill 3366Eglen}. @b{Ref@TeX{}} is currently maintained by @refill
3341 3367
3342@noindent 3368@noindent
3343@value{MAINTAINER} @email{@value{MAINTAINER-EMAIL}} 3369@value{Carsten Dominik} @email{dominik@@science.uva.nl}
3344 3370
3345If you have questions about @b{Ref@TeX{}}, there are several Usenet 3371If you have questions about @b{Ref@TeX{}}, there are several Usenet
3346groups which have competent readers: @code{comp.emacs}, 3372groups which have competent readers: @code{comp.emacs},
@@ -3349,7 +3375,7 @@ You can also write directly to the maintainer.
3349 3375
3350If you find a bug in @b{Ref@TeX{}} or its documentation, or if you want 3376If you find a bug in @b{Ref@TeX{}} or its documentation, or if you want
3351to contribute code or ideas, please 3377to contribute code or ideas, please
3352@uref{mailto:@value{MAINTAINER-EMAIL},contact the maintainer}. Remember 3378@uref{mailto:dominik@@science.uva.nl,contact the maintainer}. Remember
3353to provide all necessary information such as version numbers of Emacs 3379to provide all necessary information such as version numbers of Emacs
3354and @b{Ref@TeX{}}, and the relevant part of your configuration in 3380and @b{Ref@TeX{}}, and the relevant part of your configuration in
3355@file{.emacs}. When reporting a bug which throws an exception, please 3381@file{.emacs}. When reporting a bug which throws an exception, please
@@ -3369,11 +3395,13 @@ features described in this manual.@refill
3369 3395
3370Thanks to the people on the Net who have used @b{Ref@TeX{}} and helped 3396Thanks to the people on the Net who have used @b{Ref@TeX{}} and helped
3371developing it with their reports. In particular thanks to @i{Fran 3397developing it with their reports. In particular thanks to @i{Fran
3372Burstall, Alastair Burt, Soren Dayton, Stephen Eglen, Karl Eichwalder, 3398Burstall, Alastair Burt, Lars Clausen, Soren Dayton, Stephen Eglen, Karl
3373Erik Frik, Peter Galbraith, Kai Grossjohann, Frank Harrell, Dieter 3399Eichwalder, Erik Frik, Erik Frisk, Peter Galbraith, Kai Grossjohann,
3374Kraft, Adrian Lanz, Rory Molinari, Stefan Monnier, Laurent Mugnier, 3400Frank Harrell, Stephan Heuel, Alan Ho, Dieter Kraft, Adrian Lanz, Rory
3375Sudeep Kumar Palat, Daniel Polani, Robin Socha, Richard Stanton, Allan 3401Molinari, Stefan Monnier, Laurent Mugnier, Sudeep Kumar Palat, Daniel
3376Strand, Jan Vroonhof, Christoph Wedler, Alan Williams}.@refill 3402Polani, Alan Shutko, Robin Socha, Richard Stanton, Allan Strand, Jan
3403Vroonhof, Christoph Wedler, Alan Williams, Roland Winkler, Eli
3404Zaretskii}.@refill
3377 3405
3378The @code{view-crossref} feature was inspired by @i{Peter Galbraith's} 3406The @code{view-crossref} feature was inspired by @i{Peter Galbraith's}
3379@file{bib-cite.el}.@refill 3407@file{bib-cite.el}.@refill
@@ -3487,7 +3515,7 @@ the command @code{reftex-view-crossref-from-bibtex}. With one or two
3487View location in a LaTeX document which cites the BibTeX entry at point. 3515View location in a LaTeX document which cites the BibTeX entry at point.
3488Since BibTeX files can be used by many LaTeX documents, this function 3516Since BibTeX files can be used by many LaTeX documents, this function
3489prompts upon first use for a buffer in @b{Ref@TeX{}} mode. To reset this 3517prompts upon first use for a buffer in @b{Ref@TeX{}} mode. To reset this
3490link to a document, call the function with with a prefix arg. Calling 3518link to a document, call the function with a prefix arg. Calling
3491this function several times find successive citation locations. 3519this function several times find successive citation locations.
3492@end deffn 3520@end deffn
3493 3521
@@ -3583,6 +3611,26 @@ reftex-customize} will get you there.@refill
3583@cindex Options, table of contents 3611@cindex Options, table of contents
3584@cindex Table of contents, options 3612@cindex Table of contents, options
3585 3613
3614@defopt reftex-include-file-commands
3615List of LaTeX commands which input another file.
3616The file name is expected after the command, either in braces or separated
3617by whitespace.
3618@end defopt
3619
3620@defopt reftex-max-section-depth
3621Maximum depth of section levels in document structure.
3622Standard LaTeX needs 7, default is 12.
3623@end defopt
3624
3625@defopt reftex-section-levels
3626Commands and levels used for defining sections in the document. The
3627@code{car} of each cons cell is the name of the section macro. The
3628@code{cdr} is a number indicating its level. A negative level means the
3629same as the positive value, but the section will never get a
3630number. The @code{cdr} may also be a function which then has to return
3631the level.@refill
3632@end defopt
3633
3586@defopt reftex-toc-max-level 3634@defopt reftex-toc-max-level
3587The maximum level of toc entries which will be included in the TOC. 3635The maximum level of toc entries which will be included in the TOC.
3588Section headings with a bigger level will be ignored. In RefTeX, 3636Section headings with a bigger level will be ignored. In RefTeX,
@@ -3590,6 +3638,17 @@ chapters are level 1, sections level 2 etc. This variable can be
3590changed from within the @file{*toc*} buffer with the @kbd{t} key.@refill 3638changed from within the @file{*toc*} buffer with the @kbd{t} key.@refill
3591@end defopt 3639@end defopt
3592 3640
3641@defopt reftex-toc-split-windows-horizontally
3642Non-@code{nil} means, create TOC window by splitting window
3643horizontally. The default is to split vertically.
3644@end defopt
3645
3646@defopt reftex-toc-split-windows-horizontally-fraction
3647Fraction of the horizontal width of the frame to be used for TOC window.
3648Only relevant when @code{reftex-toc-split-windows-horizontally} is
3649non-@code{nil}.
3650@end defopt
3651
3593@defopt reftex-toc-keep-other-windows 3652@defopt reftex-toc-keep-other-windows
3594Non-@code{nil} means, split the selected window to display the 3653Non-@code{nil} means, split the selected window to display the
3595@file{*toc*} buffer. This helps to keep the window configuration, but 3654@file{*toc*} buffer. This helps to keep the window configuration, but
@@ -3685,7 +3744,7 @@ Special names: @code{section} for section labels, @code{any} to define a
3685group which contains all labels.@refill 3744group which contains all labels.@refill
3686 3745
3687This may also be a function to do local parsing and identify point to be 3746This may also be a function to do local parsing and identify point to be
3688in a a non-standard label environment. The function must take an 3747in a non-standard label environment. The function must take an
3689argument @var{bound} and limit backward searches to this value. It 3748argument @var{bound} and limit backward searches to this value. It
3690should return either nil or a cons cell @code{(@var{function} 3749should return either nil or a cons cell @code{(@var{function}
3691. @var{position})} with the function symbol and the position where the 3750. @var{position})} with the function symbol and the position where the
@@ -3817,20 +3876,6 @@ spliced into the list. However, builtin defaults should normally be set
3817with the variable @code{reftex-default-label-alist-entries}.@refill 3876with the variable @code{reftex-default-label-alist-entries}.@refill
3818@end defopt 3877@end defopt
3819 3878
3820@defopt reftex-max-section-depth
3821Maximum depth of section levels in document structure.
3822Standard LaTeX needs 7, default is 12.
3823@end defopt
3824
3825@defopt reftex-section-levels
3826Commands and levels used for defining sections in the document. The
3827@code{car} of each cons cell is the name of the section macro. The
3828@code{cdr} is a number indicating its level. A negative level means the
3829same as the positive value, but the section will never get a
3830number. The @code{cdr} may also be a function which then has to return
3831the level.@refill
3832@end defopt
3833
3834@defopt reftex-section-prefixes 3879@defopt reftex-section-prefixes
3835Prefixes for section labels. When the label prefix given in an entry in 3880Prefixes for section labels. When the label prefix given in an entry in
3836@code{reftex-label-alist} contains @samp{%S}, this list is used to 3881@code{reftex-label-alist} contains @samp{%S}, this list is used to
@@ -4088,6 +4133,10 @@ The keymap which is active in the labels selection process
4088@cindex Options, creating citations 4133@cindex Options, creating citations
4089@cindex Creating citations, options 4134@cindex Creating citations, options
4090 4135
4136@defopt reftex-bibliography-commands
4137LaTeX commands which specify the BibTeX databases to use with the document.
4138@end defopt
4139
4091@defopt reftex-bibfile-ignore-regexps 4140@defopt reftex-bibfile-ignore-regexps
4092List of regular expressions to exclude files in 4141List of regular expressions to exclude files in
4093@code{\\bibliography@{..@}}. File names matched by any of these regexps 4142@code{\\bibliography@{..@}}. File names matched by any of these regexps
@@ -4363,6 +4412,11 @@ Non-@code{nil} means, searching for index phrases will ignore
4363case.@refill 4412case.@refill
4364@end defopt 4413@end defopt
4365 4414
4415@defopt reftex-index-verify-function
4416A function which is called at each match during global indexing.
4417If the function returns nil, the current match is skipped.
4418@end defopt
4419
4366@defopt reftex-index-phrases-skip-indexed-matches 4420@defopt reftex-index-phrases-skip-indexed-matches
4367Non-@code{nil} means, skip matches which appear to be indexed already. 4421Non-@code{nil} means, skip matches which appear to be indexed already.
4368When doing global indexing from the phrases buffer, searches for some 4422When doing global indexing from the phrases buffer, searches for some
@@ -4451,7 +4505,7 @@ viewing can be useful. Each entry has the structure
4451@end example 4505@end example
4452@var{macro-re} is matched against the macro. @var{search-re} is the 4506@var{macro-re} is matched against the macro. @var{search-re} is the
4453regexp used to search for cross references. @samp{%s} in this regexp is 4507regexp used to search for cross references. @samp{%s} in this regexp is
4454replaced with with the macro argument at point. @var{highlight} is an 4508replaced with the macro argument at point. @var{highlight} is an
4455integer indicating which subgroup of the match should be highlighted. 4509integer indicating which subgroup of the match should be highlighted.
4456@end defopt 4510@end defopt
4457 4511
@@ -5433,10 +5487,41 @@ Support for @file{bibentry} citation style.
5433@noindent @b{Version 4.15} 5487@noindent @b{Version 4.15}
5434@itemize @bullet 5488@itemize @bullet
5435@item 5489@item
5490Fixed bug with parsing of BibTeX files, when fields contain quotes or
5491unmatched parenthesis.
5492@item
5436Small bug fixes. 5493Small bug fixes.
5437@item 5494@item
5438Improved interaction with Emacs LaTeX mode. 5495Improved interaction with Emacs LaTeX mode.
5439@end itemize 5496@end itemize
5497@noindent @b{Version 4.17}
5498@itemize @bullet
5499@item
5500The toc window can be split off horizontally. See new options
5501@code{reftex-toc-split-windows-horizontally},
5502@code{reftex-toc-split-windows-horizontally-fraction}.
5503@item
5504It is possible to specify a function which verifies an index match
5505during global indexing. See new option @code{reftex-index-verify-function}.
5506@item
5507The macros which input a file in LaTeX (like \input, \include) can
5508be configured. See new option @code{reftex-include-file-commands}.
5509@item
5510The macros which specify the bibliography file (like \bibliography) can
5511be configured. See new option @code{reftex-bibliography-commands}.
5512@item
5513The regular expression used to search for the \bibliography macro has
5514been relaxed to allow for @samp{@{\bibliography@{...@}@}} needed by
5515chapterbib.
5516@item
5517Small bug fixes.
5518@end itemize
5519@noindent @b{Version 4.18}
5520@itemize @bullet
5521@item
5522@code{reftex-citation} uses the word before the cursor as a default
5523search string.
5524@end itemize
5440 5525
5441@node Index, , , Top 5526@node Index, , , Top
5442@unnumbered Index 5527@unnumbered Index