tex-ref.tex
- Provided by: xemacs21-basesupport (Version: 2009.02.17.dfsg.2-4)
- Source: xemacs21-packages
- Report a bug
% This file has only been checked with 3 columns per page. But it % should print fine either via DVI or PDFTeX.
olumnsperpage=3
% Papersize stuff. Use default paper size for PDF, but switch % orientation. Use papersize special for dvips.
ifxdfoutputndefined
sname newcount\ndcsnamedfoutput
dfoutput=0
ifnumdfoutput=0
% ecial{papersize 8.5in,11in}%
ecial{papersize 297mm,210mm}% \lse
imen0dfpagewidth
dfpagewidthdfpageheight
dfpageheightimen0
% This file is intended to be processed by plain TeX (TeX82). % compile-command: "tex tex-ref" or "pdftex tex-ref" % % Original author of Auc-TeX Reference Card: % % Terrence Brannon, PO Box 5027, Bethlehem, PA 18015 , USA % internet: tb06@pl118f.cc.lehigh.edu (215) 758-1720 (215) 758-2104 % % Kresten Krab Thorup updated the reference card to 6. % Per Abrahamsen updated the reference card to 7, 8, and 9. % Ralf Angeli updated it to 11.50. % And David Kastrup messed around with it, too, merging the math reference. % % Thanks to Stephen Gildea % Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik % for creating the GNU Emacs Reference Card from which this was mutated
efr{11.84} efyear{2005} efar vr}
efortcopyrightnotice{ 2 fill
enterline{all opyright year Free Software Foundation, Inc.
Permissions on back. vr}}
efopyrightnotice{% 2 fill enterline{Copyright
opyright 1987, 1992, 1993, 2004, 2005 Free Software
Foundation, Inc.} enterline{for AUCTeX version r}
Permission is granted to make and distribute copies of this card provided the copyright notice and this permission notice are preserved on all copies.
\ndgroup}
% make % can be scanned without complaint. ef
0wdimenintercolumnskip 0wboxolumna 0wboxolumnb
\def0olumns{heolumnsperpage}
ssage{[0olumnsace
columnif 10olumns\lse sace per page]}
efaledmag#1{ scaled gstep #1}
% This multi-way format was designed by Stephen Gildea % October
1986. if 10olumns
ntitlefont=ntnameenbf aledmag3
ntntnameenbf aledmag2
ntallfont=ntnamevenrm
ntallsy=ntnamevensy
otline{lio}
efkefootline{otline}} \lse
ntitlefont=cmbx10 aledmag2
ntdmag1
ntallfont=cmr6
ntallsy=cmsy6
nt\ightrm=cmr8
nt\ightbf=cmbx8
nt\ightit=cmti8
nt\ighttt=cmtt8
nt\ightsl=cmsl8
nt\ightsc=cmcsc8
nt\ightsy=cmsy8
extfont0=\ightrm
extfont2=\ightsy
efm{m0 \ightrm}
ef}
efit{\ightit}
eft{\ighttt}
ef{\ightsl}
ef{\ightsc}
0rmalbaselineskip=.80rmalbaselineskip
box.8box
prutbox.8prutbox
0rmallineskip=.80rmallineskip
0rmallineskiplimit=.80rmallineskiplimit
0rmalbaselinesm %make definitions take effect
if 20olumns
otline{mlio}
efkefootline{otline}}
\lse if 30olumns
0pagenumbers
\lse
\rrhelp{You must set olumnsperpage equal to 1, 2, or 3.}
\rrmessage{Illegal number of columns per page}
intercolumnskip=.46in
efbc{a}
pt={%
% This next line is useful when designing the layout.
%immediate600ts with rstmark}
if xcolumnbc lticolumnformat obalefbc{a}
\lseif abc
obaltboxolumnaolumnbox obalefbc{b}
%% in case we never use olumnb (two-column mode)
obaltboxolumnb
\lse
obaltboxolumnbolumnbox obalefbc{c}}
eflticolumnformat{ipout
lumnbkipolumnbox}
kefootline}dvancepageno}
efolumnbox{{agebody}}
ef
if abc \lse0ll
if abc \lse0ll
\nd}
% we won't be using math mode much, so redefine some of the characters % we might want to talk about atcode`=12 atcode`_=12
hardef\=`\ hardef=` hardef=`
arindent
0pt arskip
1ex plus .5ex minus .5ex
efall{allfontextfont2=allsy
ef0wcolumn{
efitle#1{{itlefontenterline{#1}} .5ex}
efction#1{ar
0.2
-0.2
2ex minus 2ex {
1ex minus 1.5ex}
0wdimenyindent
efntedkeys{yindent=1em} ef\ndindentedkeys{yindent=0em} \ndindentedkeys
efaralign{kip
ef<#1>{$ngle$}
efd#1{{t#1}0ll} %0ll so not an abbrev even if period follows
efxample{arvmode
{oal ef\ndexample{\ndgroup}
efy#1#2{vmode
{
0wboxtaxbox tboxtaxbox 0wdimentaxwidth taxwidth=144
eftax#1#2{vmode
{
1fil
d{#2}
efhreecol#1#2#3{
&d{#3}quadr}
ef
Lrn-.36emaise.3ex
%**end of header ? itle{AUCTeX Reference Card}
enterline{(for version r)}
ction{Conventions Used}
y{Carriage Return or d{C-m}}{RET} y{Tabular or d{C-i}}{TAB} y{Linefeed or d{C-j}}{LFD}
ction{Shell Interaction}
y{Run a command on the master file}{C-c C-c} y{Run a command on the buffer}{C-c C-b} y{Run a command on the region}{C-c C-r} y{Fix the region}{C-c C-t C-r} y{Kill job}{C-c C-k} y{Recenter output buffer}{C-c C-l} y{Next error in TeX/ y{Toggle debug of wonderful boxes}{C-c C-w} % wonderful? y{View output file}{C-c C-v}
Commands you can run on the master file (with d{C-c C-c}) or the region (with d{C-c C-r}) include the following (starred versions are not available in all modes):
efar{ y{TeX}{ar TeX} y{r LaTeX} y{ConTeX{}t (once)}{ar ConTeXt} y{ConTeX{}t Full}{ar ConTeXt Full} y{Makeinfo}{ar Makeinfo} y{Makeinfo with HTML output}{ar Makeinfo HTML} y{Appropriate previewer}{View} y{Print the output}{Print} y{BibTeX}{BibTeX} y{MakeIndex}{Index} y{LaCheck}{Check} y{Make (PostScript) File}{File} y{Ispell}{Spell}
ction{TeX ing options} TeX runs can come in various types, which may be toggled and are indicated in the mode line.
y{$ega$ mode}{C-c C-t C-o} y{PDF/DVI mode}{C-c C-t C-p} y{Stop on errors (Interactive mode)}{C-c C-t C-i} y{Use Source Specials for viewer control}{C-c C-t C-s}
ction{Miscellaneous}
y{Read AUCTeX manual}{C-c TAB} y{Math Mode}{C-c ring~} y{Reset Buffer}{C-c C-n} y{Reset AUCTeX}{C-u C-c C-n}
ction{Multifile Handling}
y{Save Document}{C-c C-d} y{Switch to master file or active buffer}{C-c ^} y{Query for a master file}{C-c _}
ction{Command Insertion}
y{Insert Section}{C-c C-s} y{Insert y{Insert item}{C-c LFD} y{Insert item (alias)}{M-RET} y{Close y{Insert TeX macro d{\} }{C-c C-m} y{Insert double brace}{C-c } y{Complete TeX macro}{M-TAB} y{Smart ``quote''}{"} y{Smart ``dollar''}{
ction{Font Selection}
y{Insert { C-b} y{Insert {it italics} text}{C-c C-f C-i} y{Insert {m roman} text}{C-c C-f C-r} y{Insert {it emphasized} text}{C-c C-f C-e} y{Insert {t typewriter} text}{C-c C-f C-t} y{Insert { slanted} text}{C-c C-f C-s} y{Insert { Small Caps} text}{C-c C-f C-c} y{Delete font}{C-c C-f C-d} y{Replace font}{C-u C-c C-f <key>}
ction{Source Formatting}
y{Indent current line}{TAB} y{Indent next line}{LFD}
y{Format a paragraph}{M-q} y{Format a region}{C-c C-q C-r} y{Format a section}{C-c C-q C-s} y{Format an environment}{C-c C-q C-e}
y{Mark an environment}{C-c .} y{Mark a section}{C-c *}
y{Comment or uncomment region}{C-c ;} y{Comment or uncomment paragraph}{C-c }
opyrightnotice
0wcolumn
itle{Math Mode}
ction{Variables}
All math mode commands are under the prefix key specified by LaTeX-math-abbrev-prefix, default is "`".
You can define your own math mode commands by setting the variable LaTeX-math-list before loading LaTeX-math-mode.
ction{Greek Letters}
efisp#1{ efwocol#1ar{{%
efy##1##2{##1&##2r}%
tbox0
##
littopskip=box
imen0
dvanceimen0
tbox2
efycs#1#2#{ycsii#1{#2}} efycsii#1#2#3{y{isp{#1#2} ({tring#1})}{#3}}
wocol ycslpha{a} ycs ycsmma{g} ycselta{d} ycs\psilon{e} ycsta{z}
ycs\ta{h} ycsheta{j} ycsppa{k} ycs{l} ycs{m} ycs0{n} ycs ycsi{p}
ycsho{r} ycsgma{s} ycsau{t} ycspsilon{u} ycshi{f}
ycshi{q} ycssi{y}
ycs ycs ycsGamma{G} ycsTheta{Q} ycs{L} ycs ycsPi{P} ycs ycsUpsilon{U}
ycsPhi{F} ycsPsi{Y} ycsega{W}
ction{Symbols}
wocol ycsightarrow{C-f} ycs ycsparrow{C-p} ycsownarrow{C-n} ycs ycsq{>} ycsilde x{ring~} ycs0bla{N} ycsinfty{I} ycsrall{A} ycs\xists{E} ycs0t {/} ycsin{i} ycsimes{*} ycsdot{.} ycsbset{} ycspset{} ycsbseteq{[} ycspseteq{]} ycs\mptyset{0} ycstminus{\} ycsup{+} ycsap{-} ycs ycsangle{)} ycs\xp{C-e} ycsn{C-s} ycsos{C-c} ycsp{C-^} ycsinf{C-_} ycset{C-d} ycs ycsan{C-t} ycs ycs{|} ycs48{}
ction{Miscellaneous}
y{cal letters}{c <letter>}
0wcolumn
efreviewlatex{{preview-latex}}
itle{reviewlatex}
ction{Activation} reviewlatex is
part of AUCTeX. If it is active, you should see an entry ``Preview'' in the menu
bar when editing have a ``LaTeX'', but no ``Preview'' menu, add the
following to your {t .emacs} file: xample (load "preview-latex.el"
nil t t) \ndexample
ction{Usage and keybindings} reviewlatex operation
only affects the display of the buffer, not its contents. It runs only on
demand, using the target { dvi} or { PDF} files in the process. The first
command in the following list (also on the toolbar button) will (as
applicable) repreview an active region or a single modified preview, toggle
the visibility of an unmodified preview or generate previews for a
surrounding buffer area up to the next preview.
y{Preview at point}{C-c C-p C-p} y{Preview environment}{C-c C-p C-e} y{Preview region}{C-c C-p C-r} y{Preview buffer}{C-c C-p C-b} y{Preview document}{C-c C-p C-d} y{Remove previews at point}{C-c C-p C-c C-d} y{Remove previews from region}{C-c C-p C-c C-r} y{Remove previews from buffer}{C-c C-p C-c C-b} y{Remove previews from document}{C-c C-p C-c C-d} y{Cache preamble}{C-c C-p C-f} y{Switch off preamble cache}{C-c C-p C-c C-f} y{Read Texinfo manual}{C-c C-p TAB} y{Copy region as MML}{C-c C-p C-w}
The last keysequence will copy a region with previews into the kill buffer in a form fit for sending in Emacs' message-mode.
ction{Customization within Emacs}
You can use d{M-x customize-variable RET} or the ``Previewash Customize'' menu for customization. Worthwhile settings:
x# 0align{dskip If you have dvipng available:} Set to
d{dvipng}&preview-image-typer 0align{dskip
single previews:}} Set to d{t}&preview-preserve-countersr 0align{dskip le
without query (preamble caching is done using {t mylatex.ltx} and might not
always work. Use the appropriate key sequences for overriding the following
setting):}} Set to d{t}/d{nil}&preview-auto-cache-preambler}
ction{Customization from Customization is done in the document preamble (you need to load {t preview.sty} explicitly) or in {t prauctex.cfg} (which should load the system {prauctex.cfg} first). Commands:
x# Preview macro&ringPreviewMacro[<args>]<macro>r Preview env&ringPreviewEnvironment[<args>]<env>r Skip macro&ringPreviewMacro*[<args>]<macro>r Skip env&ringPreviewEnvironment*[<args>]<env>r 0align{allskip Diverting material from float environments} Snarf stuff&ringPreviewSnarfEnvironment[<args>]<env>r }
Values to be used within <args>: kip=1ptplus1filelax# Optional argument&[]r Mandatory argument&r Optional star&*r Conditionals&?<token><if found><if not found>r Skip next token&-r Transformation&}
More options and explanations can be found in {t preview.dvi} or the Texinfo manual.
6ex minus 1ex
itle{Folding Source Display}
y{Toggle folding mode}{C-c C-o C-f} y{Hide all items in buffer}{C-c C-o C-b} y{Hide all items in region}{C-c C-o C-r} y{Hide all items in paragraph}{C-c C-o C-p} y{Hide current macro}{C-c C-o C-m} y{Hide current environment}{C-c C-o C-e} y{Show all items in buffer}{C-c C-o b} y{Show all items in region}{C-c C-o r} y{Show all items in paragraph}{C-c C-o p} y{Show current item}{C-c C-o i} y{Hide or show current item}{C-c C-o C-o}
6ex minus 1ex
itle{Outlining TeX Documents}
AUCTeX supports outline mode by defining section, subsection, etc. as heading levels. You can use d{M-x outline-minor-mode RET} to toggle outline minor mode. All outline minor mode commands are under the prefix key specified by outline-minor-mode-prefix, default is ``C-c @''.
y{Hide all of buffer except headings}{C-c @ C-t} y{Show all text in buffer}{C-c @ C-a} y{Hide body following this heading}{C-c @ C-c} y{Show body following this heading}{C-c @ C-e} y{Hide subtree}{C-c @ C-d} y{Show subtree}{C-c @ C-s} y{All subheadings visible}{C-c @ C-k}
y{next visible heading}{C-c @ C-n} y{previous visible heading}{C-c @ C-p} y{forward to next subheading}{C-c @ C-f} y{backward to next subheading}{C-c @ C-b} y{up one heading level}{C-c @ C-u}
0wcolumn
iftrue % RefTeX long version
itle{RefTeX}
ction{Activation}
RefTeX is part of [X]Emacs. To activate and make it interact with AUCTeX, insert the following lines in .emacs. xample (add-hook 'latex-mode-hook 'turn-on-reftex) (add-hook 'LaTeX-mode-hook 'turn-on-reftex) (setq reftex-plug-into-auctex t) \ndexample
ction{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 file boundaries.
y{Show the table of contents$1$}{C-c =} y{Recenter *toc* buffer to here$1$}{C-c -}
ction{Crossreferences, Citations, Index}
y{Insert unique label$1$}{C-c (} y{Reference a label$1$}{C-c )} y{Insert citation with key selection}{C-c [} y{ots prompt for optional arguments}{C-u C-c [} y{Index word at point with default macro}{C-c /} y{Insert an index entry}{C-c <} y{Add word to index phrases}{C-c \} y{Visit index phrases buffer}{C-c |} y{Compile and display index}{C-c >} y{View cross reference$1$}{C-c } y{View cross reference with mouse}{S-mouse-2} y{View cross reference from BibTeX file}{C-c }
ction{Standard keys in special buffers} RefTeX's special buffers have many active keys. The common ones are:
y{Display summary of active keys}{?} y{Select this item}{RET} y{Rescan the document}{r} y{Display location in other window}{SPC} y{Follow mode}{f}
ction{Multifile actions} Since RefTeX scans the entire (multifile) document, it can provide commands that act on all files of a document. Check the {t Ref->Global Actions} menu for these commands.
ction{Variables}
To tell reftex about your own macro definitions, customize the variables xample reftex-label-alist reftex-section-lecels reftex-index-macros reftex-cite-format \ndexample
$1$ An argument of d{C-u} triggers a document scan first. This can be necessary if file content and RefTeX's knowledge are no longer consistent.
\lse % RefTeX compact version
sname title\ndcsname{RefTeX}
ction{Activation in .emacs}
xample (add-hook 'latex-mode-hook 'turn-on-reftex) (add-hook 'LaTeX-mode-hook 'turn-on-reftex) (setq reftex-plug-into-auctex t) \ndexample
ction{Table of Contents}
y{Show the table of contents$1$}{C-c =} y{Recenter *toc* buffer to here$1$}{C-c -}
ction{Crossreferences, Citations, Index}
y{Insert unique label$1$}{C-c (} y{Reference a label$1$}{C-c )} y{Insert citation with key selection}{C-c [} y{... prompt for optional arguments}{C-u C-c [} y{Index word at point with default macro}{C-c /} y{Insert an index entry}{C-c <} y{Add word to index phrases}{C-c \} y{Visit index phrases buffer}{C-c |} y{Compile and display index}{C-c >} y{View cross reference$1$}{C-c } y{View cross reference with mouse}{S-mouse-2} y{View cross reference from BibTeX file}{C-c }
$1$ An argument of d{C-u} triggers a document scan first.
%%% Local Variables: %%% mode: plain-TeX %%% TeX-master: t %%% End: