Tex Ref
Tex Ref
Tex Ref
Multile Handling
Save Document Switch to master le or active buer Query for a master le C-c C-d C-c ^ C-c
Math Mode
Variables
All math mode commands are under the prex key specied by LaTeX-math-abbrev-prex, default is . You can dene your own math mode commands by setting the variable LaTeX-math-list before loading LaTeX-math-mode.
Conventions Used
Carriage Return or C-m Tabular or C-i Linefeed or C-j RET TAB LFD
Command Insertion
Insert Section a Insert L TEX environment Insert item Insert item (alias) a Close L TEX environment Insert TEX macro \{} Insert double brace Complete TEX macro Smart quote Smart dollar C-c C-s C-c C-e C-c LFD M-RET C-c ] C-c C-m C-c { M-TAB " $
Shell Interaction
Run a command on the master le Run a command on the buer Run a command on the region Fix the region Kill job Recenter output buer a Next error in TEX/L TEX session Toggle debug of bad boxes Toggle debug of warnings View output le C-c C-c C-c C-c C-c C-c C-c C-c C-c C-c C-c C-b C-r C-t C-r C-k C-l C-t C-b C-t C-w C-v
Greek Letters
(\alpha) (\beta) (\gamma) (\delta) (\epsilon) (\zeta) (\eta) (\theta) (\kappa) (\lambda) (\mu) (\nu) (\xi) (\pi) (\rho) (\sigma) (\tau) a b g d e z h j k l m n x p r s t
Font Selection
Insert bold text Insert italics text Insert roman text Insert emphasized text Insert typewriter text Insert slanted text Insert Small Caps text Delete font Replace font C-c C-c C-c C-c C-c C-c C-c C-c C-u C-f C-f C-f C-f C-f C-f C-f C-f C-c C-b C-i C-r C-e C-t C-s C-c C-d C-f key
Commands you can run on the master le (with C-c C-c) or the region (with C-c C-r) include the following (starred versions are not available in all modes): TEX a L TEX ConTEXt (once) ConTEXt Full Makeinfo Makeinfo with HTML output Appropriate previewer Print the output BibTEX MakeIndex LaCheck Make (PostScript) File Ispell Delete intermediate les Delete all output les les *TeX *LaTeX *ConTeXt *ConTeXt Full *Makeinfo *Makeinfo HTML View Print BibTeX Index Check File Spell Clean Clean All
(\upsilon) (\phi) (\chi) (\psi) (\omega) (\Delta) (\Gamma) (\Theta) (\Lambda) (\Xi) (\Pi) (\Sigma) (\Upsilon) (\Phi) (\Psi) (\Omega)
u f q y w D G Q L X P S U F Y W
Symbols
x (\rightarrow) (\leftarrow) (\uparrow) (\downarrow) (\leq) (\geq) (\tilde) (\nabla) (\infty) (\forall) (\exists) (\not) (\in) (\times) (\cdot) (\subset) (\supset) (\subseteq) C-f C-b C-p C-n < > ~ N I A E / i * . { } [ \ (\supseteq) (\emptyset) (\setminus) (\cup) (\cap) (\langle) (\rangle) (\exp) (\sin) (\cos) (\sup) (\inf) (\det) (\lim) (\tan) (\hat) (\vee) (\wedge) ] 0 \ + ( ) C-e C-s C-c C-^ C-_ C-d C-l C-t ^ | &
Source Formatting
Indent current line Indent next line Format Format Format Format a paragraph a region a section an environment TAB LFD M-q C-c C-q C-r C-c C-q C-s C-c C-q C-e C-c . C-c * C-c ; C-c %
TEXing options
TEX runs can come in various types, which may be toggled and are indicated in the mode line. PDF/DVI mode Stop on errors (Interactive mode) I/O correlation (S. Specials, SyncTEX) C-c C-t C-p C-c C-t C-i C-c C-t C-s
Mark an environment Mark a section Comment or uncomment region Comment or uncomment paragraph
Miscellaneous
Read AUCTEX manual Math Mode Reset Buer Reset AUCTEX C-c C-c C-c C-u TAB ~ C-n C-c C-n
Copyright c 1987, 1992, 1993, 2004, 2005, 2008, 2010 Free Software Foundation, Inc. for AUCT X version 11.86 E Permission is granted to make and distribute copies of this card provided the copyright notice and this permission notice are preserved on all copies.
Miscellaneous
cal letters c letter
preview-latex
Activation
preview-latex is part of AUCTEX. If it is active, you should a see an entry Preview in the menu bar when editing L TEX les. If you have a LaTeX, but no Preview menu, add the following to your .emacs le: (load "preview-latex.el" nil t t)
a Customization from LTEX Customization is done in the document preamble (you need to load preview.sty explicitly) or in prauctex.cfg (which should load the system prauctex.cfg rst). Commands: Preview macro \PreviewMacro[{ args }]{ macro } Preview env \PreviewEnvironment[{ args }]{ env } Skip macro \PreviewMacro*[{ args }]{ macro } Skip env \PreviewEnvironment*[{ args }]{ env } Diverting material from oat environments Snarf stu \PreviewSnarfEnvironment[{ args }]{ env } Values to be used within args : Optional argument [] Mandatory argument {} Optional star * Conditionals ? token { if found }{ if not found } Skip next token Transformation #{ macro args }{ replacement } More options and explanations can be found in preview.dvi or the Texinfo manual.
RefTeX
Activation
RefTeX is part of [X]Emacs. To activate and make it interact with AUCTeX, insert the following lines in .emacs. (add-hook latex-mode-hook turn-on-reftex) (add-hook LaTeX-mode-hook turn-on-reftex) (setq reftex-plug-into-auctex t)
Table of Contents
The table of contents is a structured view of the entire document. It contains the sections, and optionally labels, index entries, and le boundaries. Show the table of contents1 C-c = Recenter *toc* buer to here1 C-c -
The last keysequence will copy a region with previews into the kill buer in a form t for sending in Emacs message-mode.
Multile actions
Since RefTeX scans the entire (multile) document, it can provide commands that act on all les of a document. Check the Ref->Global Actions menu for these commands.
Variables
To tell reftex about your own macro denitions, customize the variables reftex-label-alist reftex-section-lecels reftex-index-macros reftex-cite-format
1 An argument of C-u triggers a document scan rst.
preview-image-type
Keep counter values when regenerating single previews: Set to t preview-preserve-counters Cache/Dont cache preamble without query (preamble caching is done using mylatex.ltx and might not always work. Use the appropriate key sequences for overriding the following setting): Set to t/nil preview-auto-cache-preamble
This can be necessary if le content and RefTeXs knowledge are no longer consistent.