AUCTEX Reference Card Multifile Handling Math Mode (for version 11.86) Save Document C-c C-d Switch to master file or active buffer C-c ^ Variables Conventions Used Query for a master file C-c All math mode commands are under the prefix key specified Carriage Return or C-m RET by LaTeX-math-abbrev-prefix, default is ”‘”. Tabular or C-i TAB Command Insertion You can define your own math mode commands by setting the Linefeed or C-j LFD variable LaTeX-math-list before loading LaTeX-math-mode. Insert Section C-c C-s Shell Interaction Insert LaTEX environment C-c C-e Insert item C-c LFD Greek Letters Insert item (alias) M-RET Run a command on the master file C-c C-c Close LaT X environment C-c ] α (\alpha) a υ (\upsilon) u Run a command on the buffer C-c C-b E Insert T X macro \{} C-c C-m β (\beta) b φ (\phi) f Run a command on the region C-c C-r E Insert double brace C-c { γ (\gamma) g χ (\chi) q Fix the region C-c C-t C-r Complete T X macro M-TAB δ (\delta) d ψ (\psi) y Kill job C-c C-k E Smart “quote” "  (\) e ω (\omega) w Recenter output buffer C-c C-l Smart “dollar” $ ζ (\zeta) z ∆ (\Delta) D Next error in TEX/LaTEX session C-c ‘ η (\eta) h Γ(\Gamma) G Toggle debug of bad boxes C-c C-t C-b θ (\theta) j Θ(\Theta) Q Toggle debug of warnings C-c C-t C-w Font Selection κ (\kappa) k Λ(\Lambda) L View output file C-c C-v λ (\lambda) l Ξ(\Xi) X Commands you can run on the master file (with C-c C-c) or the Insert bold text C-c C-f C-b µ (\mu) m Π(\Pi) P region (with C-c C-r) include the following (starred versions Insert italics text C-c C-f C-i ν (\nu) n Σ(\Sigma) S are not available in all modes): Insert roman text C-c C-f C-r ξ (\xi) x Υ(\Upsilon) U Insert emphasized text C-c C-f C-e π (\pi) p Φ(\Phi) F TEX*TeX Insert typewriter text C-c C-f C-t ρ (\rho) r Ψ(\Psi) Y LaTEX*LaTeX Insert slanted text C-c C-f C-s σ (\sigma) s Ω(\Omega) W ConTEXt (once) *ConTeXt Insert Small Caps text C-c C-f C-c τ (\tau) t ConTEXt Full *ConTeXt Full Delete font C-c C-f C-d Makeinfo *Makeinfo Replace font C-u C-c C-f hkeyi Makeinfo with HTML output *Makeinfo HTML Symbols Appropriate previewer View Print the output Print Source Formatting → (\rightarrow) C-f ⊇ (\supseteq) ] BibTEX BibTeX ← (\leftarrow) C-b ∅ (\emptyset) 0 MakeIndex Index Indent current line TAB ↑ (\uparrow) C-p \ (\setminus) \ LaCheck Check Indent next line LFD ↓ (\downarrow) C-n ∪ (\cup) + ≤ (\leq) < ∩ (\cap) - Make (PostScript) File File Format a paragraph M-q ≥ (\geq) > h (\langle) ( Ispell Spell Format a region C-c C-q C-r x˜ (\tilde) ~ i (\rangle) ) Delete intermediate files Clean Format a section C-c C-q C-s ∇ (\nabla) N exp (\exp) C-e Delete all output files files Clean All Format an environment C-c C-q C-e ∞ (\infty) I sin (\sin) C-s T Xing options Mark an environment C-c . ∀ (\forall) A cos (\cos) C-c E Mark a section C-c * ∃ (\exists) E sup (\sup) C-^ 6 ( ) inf ( ) T X runs can come in various types, which may be toggled and Comment or uncomment region C-c ; \not / \inf C-_ E ∈ ( ) det ( ) are indicated in the mode line. Comment or uncomment paragraph C-c % \in i \det C-d × (\times) * lim (\lim) C-l PDF/DVI mode C-c C-t C-p · (\cdot) . tan (\tan) C-t Stop on errors (Interactive mode) C-c C-t C-i ⊂ (\subset) { xˆ (\hat) ^ I/O correlation (S. Specials, SyncTEX) C-c C-t C-s ⊃ (\supset) } ∨ (\vee) | Copyright c 1987, 1992, 1993, 2004, 2005, 2008, ⊆ (\subseteq) [ ∧ (\wedge) & Miscellaneous 2010 Free Software Foundation, Inc. for AUCTEX version 11.86 Miscellaneous Read AUCT X manual C-c TAB Permission is granted to make and distribute copies of this card pro- E vided the copyright notice and this permission notice are preserved on Math Mode C-c ~ all copies. cal letters c hletteri Reset Buffer C-c C-n Reset AUCTEX C-u C-c C-n preview- Customization from LaTEX RefTeX Customization is done in the document preamble (you need to Activation load preview.sty explicitly) or in prauctex.cfg (which should Activation RefTeX is part of [X]. To activate and make it interact load the system prauctex.cfg first). Commands: with AUCTeX, insert the following lines in .emacs. Preview macro \PreviewMacro[{hargsi}]{hmacroi} preview-latex is part of AUCT X. If it is active, you should E Preview env \PreviewEnvironment[{hargsi}]{henvi} (add-hook ’latex-mode-hook ’turn-on-) see an entry “Preview” in the menu bar when editing LaT X E Skip macro \PreviewMacro*[{hargsi}]{hmacroi} (add-hook ’LaTeX-mode-hook ’turn-on-reftex) files. If you have a “LaTeX”, but no “Preview” menu, add the Skip env \PreviewEnvironment*[{hargsi}]{henvi} (setq reftex-plug-into-auctex t) following to your .emacs file: Diverting material from float environments Table of Contents Snarf stuff \PreviewSnarfEnvironment[{hargsi}]{henvi} (load "preview-latex.el" nil t t) The table of contents is a structured view of the entire doc- Values to be used within hargsi: ument. It contains the sections, and optionally labels, index Usage and keybindings Optional argument [] entries, and file boundaries. Mandatory argument {} Show the table of contents1 C-c = Optional star * Recenter *toc* buffer to here1 C-c - preview-latex operation only affects the display of the buffer, Conditionals ?htokeni{hif foundi}{hif not foundi} not its contents. It runs only on demand, using the target Skip next token - Crossreferences, Citations, Index dvi or PDF files in the process. The first command in the Transformation #{hmacro argsi}{hreplacementi} 1 following list (also on the toolbar button) will (as applicable) Insert unique label C-c ( More options and explanations can be found in preview.dvi or 1 repreview an active region or a single modified preview, toggle Reference a label C-c ) the Texinfo manual. the visibility of an unmodified preview or generate previews for Insert citation with key selection C-c [ a surrounding buffer area up to the next preview. ... prompt for optional arguments C-u C-c [ Index word at point with default macro C-c / Preview at point C-c C-p C-p Folding Source Display Insert an index entry C-c < Preview environment C-c C-p C-e Toggle folding mode C-c C-o C-f Add word to index phrases C-c \ Preview region C-c C-p C-r Visit index phrases buffer C-c | Preview buffer C-c C-p C-b Hide all items in buffer C-c C-o C-b Hide all items in region C-c C-o C-r Compile and display index C-c > Preview document C-c C-p C-d View cross reference1 C-c & Remove previews at point C-c C-p C-c C-d Hide all items in paragraph C-c C-o C-p Hide current macro C-c C-o C-m View cross reference with mouse S-mouse-2 Remove previews from region C-c C-p C-c C-r View cross reference from BibTeX file C-c & Remove previews from buffer C-c C-p C-c C-b Hide current environment C-c C-o C-e Remove previews from document C-c C-p C-c C-d Show all items in buffer C-c C-o b Standard keys in special buffers Cache preamble C-c C-p C-f Show all items in region C-c C-o r RefTeX’s special buffers have many active keys. The common Switch off preamble cache C-c C-p C-c C-f Show all items in paragraph C-c C-o p ones are: Read Texinfo manual C-c C-p TAB Show current item C-c C-o i Copy region as MML C-c C-p C-w Hide or show current item C-c C-o C-o Display summary of active keys ? Select this item RET The last keysequence will copy a region with previews into the Rescan the document r kill buffer in a form fit for sending in Emacs’ message-mode. Outlining TEX Documents Display location in other window SPC Follow mode f AUCTEX supports outline mode by defining section, subsec- Customization within Emacs tion, etc. as heading levels. You can use M-x outline-minor- Multifile actions mode RET to toggle outline minor mode. All outline minor mode Since RefTeX scans the entire (multifile) document, it can pro- You can use M-x customize-variable RET or the “Preview/ commands are under the prefix key specified by outline-minor- vide commands that act on all files of a document. Check the Customize” menu for customization. Worthwhile settings: mode-prefix, default is “C-c @”. Ref->Global Actions menu for these commands. Hide all of buffer except headings C-c @ C-t If you have dvipng available: Show all text in buffer C-c @ C-a Variables Set to dvipng preview-image-type Hide body following this heading C-c @ C-c To tell reftex about your own macro definitions, customize the Show body following this heading C-c @ C-e Keep counter values when regenerating single previews: variables Hide subtree C-c @ C-d Set to t preview-preserve-counters Show subtree C-c @ C-s reftex-label-alist Cache/Don’t cache preamble without query (preamble caching All subheadings visible C-c @ C-k reftex-section-lecels reftex-index-macros is done using mylatex.ltx and might not always work. Use the next visible heading C-c @ C-n reftex-cite-format appropriate key sequences for overriding the following setting): previous visible heading C-c @ C-p Set to t/nil preview-auto-cache-preamble forward to next subheading C-c @ C-f 1 An argument of C-u triggers a document scan first. This backward to next subheading C-c @ C-b can be necessary if file content and RefTeX’s knowledge are no up one heading level C-c @ C-u longer consistent.