RefTeX
RefTeX is a Emacs package dedicated for label, reference, citation, and index related operations in . What is exciting, RefTeX has been integrated into Emacs since version 20.2.
RefTeX is easy to use by providing 4 macros, \label, \ref, \cite, and \index. It can be configured as follows.
Loading the package
(require 'reftex)Turning on the mode
(add-hook 'LaTeX-mode-hook 'turn-on-reftex); with AUCTeX LaTeX mode (add-hook 'latex-mode-hook 'turn-on-reftex); with Emacs latex modeIntegrating with
AUCTeX(setq reftex-plug-into-AUCTeX t)
Targeting for quick operations, following keybindings are binded by default.
| Keybinding | Functionality |
|---|---|
C-c = | Display a table of contents, i.e. reftex-toc. |
C-c ( | Create a label, i.e., reftex-label. |
C-c [ | Create a citation, i.e., reftex-citation. |
C-c ) | Make a reference, i.e., reftex-reference. |
C-c & | View cross-references of the macro at point, i.e., reftex-view-crossref. |
C-c / | Create an index entry based on the current selection or the word at point, i.e., reftex-index-selection-or-word. |
C-c < | Create an index entry with more complex types, i.e., reftex-index. |
C-c \ | Add the current selection or the word at point to a special index phrase file1. |
C-c > | Display and edit the indices, i.e., reftex-display-index. |
Footnotes
1
RefTeX can search the document for occurrences of these phrases for delayed indexing.