100
|
1 +% -*- plain-tex -*-
|
|
2 % $Id: tex-ref.tex,v 1.1 1997/02/20 02:05:18 steve Exp $
|
|
3 % Reference Card for Auc TeX version 7
|
|
4 %**start of header
|
|
5 \newcount\columnsperpage
|
|
6
|
|
7 % This file can be printed with 1, 2, or 3 columns per page (see below).
|
|
8 % Specify how many you want here. Nothing else needs to be changed.
|
|
9
|
|
10 \columnsperpage=2
|
|
11
|
|
12 % This file is intended to be processed by plain TeX (TeX82).
|
|
13 % compile-command: "tex ref-card.tex"
|
|
14 %
|
|
15 % Original author of Auc-TeX Reference Card:
|
|
16 %
|
|
17 % Terrence Brannon, PO Box 5027, Bethlehem, PA 18015 , USA
|
|
18 % internet: tb06@pl118f.cc.lehigh.edu (215) 758-1720 (215) 758-2104
|
|
19 %
|
|
20 % Kresten Krab Thorup updated the reference card to 6.
|
|
21 % Per Abrahamsen updated the reference card to 7, 8, and 9.
|
|
22 %
|
|
23 % Thanks to Stephen Gildea
|
|
24 % Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik
|
|
25 % for creating the GNU Emacs Reference Card from which this was mutated
|
|
26
|
|
27 \def\versionnumber{9}
|
|
28 \def\year{1993}
|
|
29 \def\version{February \year\ v\versionnumber}
|
|
30
|
|
31 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
|
|
32 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
|
|
33 Permissions on back. v\versionnumber}}
|
|
34
|
|
35 \def\copyrightnotice{
|
|
36 \vskip 1ex plus 2 fill\begingroup\small
|
|
37 \centerline{Copyright \copyright\ 1987 Free Software Foundation, Inc.}
|
|
38 \centerline{Copyright \copyright\ 1992 Kresten Krab Thorup}
|
|
39 \centerline{Copyright \copyright\ \year\ Per Abrahamsen}
|
|
40 \centerline{for AUC \TeX\ version \versionnumber}
|
|
41
|
|
42 Permission is granted to make and distribute copies of
|
|
43 this card provided the copyright notice and this permission notice
|
|
44 are preserved on all copies.
|
|
45
|
|
46
|
|
47 \endgroup}
|
|
48
|
|
49 % make \bye not \outer so that the \def\bye in the \else clause below
|
|
50 % can be scanned without complaint.
|
|
51 \def\bye{\par\vfill\supereject\end}
|
|
52
|
|
53 \newdimen\intercolumnskip
|
|
54 \newbox\columna
|
|
55 \newbox\columnb
|
|
56
|
|
57 \def\ncolumns{\the\columnsperpage}
|
|
58
|
|
59 \message{[\ncolumns\space
|
|
60 column\if 1\ncolumns\else s\fi\space per page]}
|
|
61
|
|
62 \def\scaledmag#1{ scaled \magstep #1}
|
|
63
|
|
64 % This multi-way format was designed by Stephen Gildea
|
|
65 % October 1986.
|
|
66 \if 1\ncolumns
|
|
67 \hsize 4in
|
|
68 \vsize 10in
|
|
69 \voffset -.7in
|
|
70 \font\titlefont=\fontname\tenbf \scaledmag3
|
|
71 \font\headingfont=\fontname\tenbf \scaledmag2
|
|
72 \font\smallfont=\fontname\sevenrm
|
|
73 \font\smallsy=\fontname\sevensy
|
|
74
|
|
75 \footline{\hss\folio}
|
|
76 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
|
|
77 \else
|
|
78 \hsize 3.2in
|
|
79 \vsize 7.95in
|
|
80 % \hoffset -.75in
|
|
81 % \voffset -.745in
|
|
82 \font\titlefont=cmbx10 \scaledmag2
|
|
83 \font\headingfont=cmbx10 \scaledmag1
|
|
84 \font\smallfont=cmr6
|
|
85 \font\smallsy=cmsy6
|
|
86 \font\eightrm=cmr8
|
|
87 \font\eightbf=cmbx8
|
|
88 \font\eightit=cmti8
|
|
89 \font\eighttt=cmtt8
|
|
90 \font\eightsy=cmsy8
|
|
91 \textfont0=\eightrm
|
|
92 \textfont2=\eightsy
|
|
93 \def\rm{\eightrm}
|
|
94 \def\bf{\eightbf}
|
|
95 \def\it{\eightit}
|
|
96 \def\tt{\eighttt}
|
|
97 \normalbaselineskip=.8\normalbaselineskip
|
|
98 \normallineskip=.8\normallineskip
|
|
99 \normallineskiplimit=.8\normallineskiplimit
|
|
100 \normalbaselines\rm %make definitions take effect
|
|
101
|
|
102 \if 2\ncolumns
|
|
103 \let\maxcolumn=b
|
|
104 \footline{\hss\rm\folio\hss}
|
|
105 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
|
|
106 \else \if 3\ncolumns
|
|
107 \let\maxcolumn=c
|
|
108 \nopagenumbers
|
|
109 \else
|
|
110 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
|
|
111 \errmessage{Illegal number of columns per page}
|
|
112 \fi\fi
|
|
113
|
|
114 \intercolumnskip=.46in
|
|
115 \def\abc{a}
|
|
116 \output={%
|
|
117 % This next line is useful when designing the layout.
|
|
118 %\immediate\write16{Column \folio\abc\space starts with \firstmark}
|
|
119 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
|
|
120 \else\if a\abc
|
|
121 \global\setbox\columna\columnbox \global\def\abc{b}
|
|
122 %% in case we never use \columnb (two-column mode)
|
|
123 \global\setbox\columnb\hbox to -\intercolumnskip{}
|
|
124 \else
|
|
125 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
|
|
126 \def\multicolumnformat{\shipout\vbox{\makeheadline
|
|
127 \hbox{\box\columna\hskip\intercolumnskip
|
|
128 \box\columnb\hskip\intercolumnskip\columnbox}
|
|
129 \makefootline}\advancepageno}
|
|
130 \def\columnbox{\leftline{\pagebody}}
|
|
131
|
|
132 \def\bye{\par\vfill\supereject
|
|
133 \if a\abc \else\null\vfill\eject\fi
|
|
134 \if a\abc \else\null\vfill\eject\fi
|
|
135 \end}
|
|
136 \fi
|
|
137
|
|
138 % we won't be using math mode much, so redefine some of the characters
|
|
139 % we might want to talk about
|
|
140 \catcode`\^=12
|
|
141 \catcode`\_=12
|
|
142
|
|
143 \chardef\\=`\\
|
|
144 \chardef\{=`\{
|
|
145 \chardef\}=`\}
|
|
146
|
|
147 \hyphenation{mini-buf-fer}
|
|
148
|
|
149 \parindent 0pt
|
|
150 \parskip 1ex plus .5ex minus .5ex
|
|
151
|
|
152 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
|
|
153
|
|
154 \outer\def\newcolumn{\vfill\eject}
|
|
155
|
|
156 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
|
|
157
|
|
158 \outer\def\section#1{\par\filbreak
|
|
159 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
|
|
160 \vskip 2ex plus 1ex minus 1.5ex}
|
|
161
|
|
162 \newdimen\keyindent
|
|
163
|
|
164 \def\beginindentedkeys{\keyindent=1em}
|
|
165 \def\endindentedkeys{\keyindent=0em}
|
|
166 \endindentedkeys
|
|
167
|
|
168 \def\paralign{\vskip\parskip\halign}
|
|
169
|
|
170 \def\<#1>{$\langle${\rm #1}$\rangle$}
|
|
171
|
|
172 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
|
|
173
|
|
174 \def\beginexample{\par\leavevmode\begingroup
|
|
175 \obeylines\obeyspaces\parskip0pt\tt}
|
|
176 {\obeyspaces\global\let =\ }
|
|
177 \def\endexample{\endgroup}
|
|
178
|
|
179 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop
|
|
180 {\hsize=.75\hsize\rightskip=1em
|
|
181 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
|
|
182
|
|
183 \newbox\metaxbox
|
|
184 \setbox\metaxbox\hbox{\kbd{M-x }}
|
|
185 \newdimen\metaxwidth
|
|
186 \metaxwidth=\wd\metaxbox
|
|
187
|
|
188 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
|
|
189 {\hskip\keyindent\relax#1\hfil}%
|
|
190 \hskip -\metaxwidth minus 1fil
|
|
191 \kbd{#2}\hfil}}
|
|
192
|
|
193 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\quad
|
|
194 &\kbd{#3}\quad\cr}
|
|
195
|
|
196 %**end of header
|
|
197
|
|
198
|
|
199 \title{AUC \TeX\ Reference Card}
|
|
200
|
|
201 \centerline{(for version \versionnumber)}
|
|
202
|
|
203 \section{Conventions Used}
|
|
204
|
|
205 \key{Carriage Return}{RET}
|
|
206 \key{Tabular}{TAB}
|
|
207 \key{Linefeed}{LFD}
|
|
208
|
|
209 Mode variables: You want to change the variables found in the file
|
|
210 `{\tt tex-site.el}' in the AUC-\TeX\ distribution for your site. The
|
|
211 other variables should be set by the individual user.
|
|
212
|
|
213 Entering LaTeX mode calls the value of text-mode-hook, then the value
|
|
214 of TeX-mode-hook, and then the value of LaTeX-mode-hook.
|
|
215
|
|
216 \section{Shell Interaction}
|
|
217
|
|
218 \key{Save Document}{C-c C-d}
|
|
219 \key{Run a command on the master file}{C-c C-c}
|
|
220 \key{Run a command on the buffer}{C-c C-b}
|
|
221 \key{Run a command on the region}{C-c C-r}
|
|
222 \key{Kill job}{C-c C-k}
|
|
223 \key{Recenter output buffer}{C-c C-l}
|
|
224 \key{Next error in \TeX/LaTeX session}{C-c `}
|
|
225 \key{Toggle debug of wonderful boxes}{C-c C-w}
|
|
226 \key{Switch to master file or active buffer}{C-c ^}
|
|
227
|
|
228 Commands you can run on the master file (with C-c C-c) or the region
|
|
229 (with C-c C-r) include the following.
|
|
230
|
|
231 \key{\TeX}{TeX}
|
|
232 \overfullrule=0pt %The next line is too wide.
|
|
233 \key{Run \TeX{} Interactively}{TeX Interactive}
|
|
234 \key{LaTeX}{LaTeX}
|
|
235 \key{Run LaTeX Interactively}{LaTeX Interactive}
|
|
236 \key{SliTeX}{SliTeX}
|
|
237 \key{A previewer}{View}
|
|
238 \key{Printing the DVI file}{Print}
|
|
239 \key{Bib\TeX}{BibTeX}
|
|
240 \key{MakeIndex}{Index}
|
|
241 \key{LaCheck}{Check}
|
|
242 \key{(PostScript) File}{File}
|
|
243 \key{Ispell}{Spell}
|
|
244
|
|
245 \section{Command Insertion}
|
|
246
|
|
247 \key{Insert Section}{C-c C-s}
|
|
248 \key{Insert LaTeX environment}{C-c C-e}
|
|
249 \key{Insert item}{C-c LFD}
|
|
250 \key{Close LaTeX environment}{C-c ]}
|
|
251 \key{Insert \TeX\ macro \kbd{\\\{\}} }{C-c C-m}
|
|
252 \key{Insert double brace}{C-c \{}
|
|
253 \key{Complete \TeX\ macro}{M-TAB}
|
|
254 \key{Smart ``quote''}{"}
|
|
255 \key{Smart ``dollar''}{\$}
|
|
256
|
|
257 \section{Font Selection}
|
|
258
|
|
259 \key{Insert {\bf bold} text}{C-c C-f C-b}
|
|
260 \key{Insert {\it italics\/} text}{C-c C-f C-i}
|
|
261 \key{Insert {\rm roman} text}{C-c C-f C-r}
|
|
262 \key{Insert {\it emphasized} text}{C-c C-f C-e}
|
|
263 \key{Insert {\tt typewriter} text}{C-c C-f C-t}
|
|
264 \key{Insert {\sl slanted\/} text}{C-c C-f C-s}
|
|
265 \key{Delete font}{C-c C-f C-d}
|
|
266 \key{Change font}{C-u C-c C-f <KEY>}
|
|
267
|
|
268 \section{Source Formatting}
|
|
269
|
|
270 \key{Indent current line}{TAB}
|
|
271 \key{Indent next line}{LFD}
|
|
272
|
|
273 \key{Format a paragraph}{M-q}
|
|
274 \key{Format a region}{C-c C-q C-r}
|
|
275 \key{Format a section}{C-c C-q C-s}
|
|
276 \key{Format an environment}{C-c C-q C-e}
|
|
277
|
|
278 \key{Mark an environment}{C-c .}
|
|
279 \key{Mark a section}{C-c *}
|
|
280
|
|
281 \key{Comment region}{C-c ;}
|
|
282 \key{Comment paragraph}{C-c \%}
|
|
283 \key{Uncomment region}{C-u - C-c ;}
|
|
284 \key{Uncomment paragraph}{C-u - C-c \%}
|
|
285
|
|
286 \section{Miscellaneous}
|
|
287
|
|
288 \key{Math Mode}{C-c \~{}}
|
|
289 \key{Reset AUC TeX}{C-c C-n}
|
|
290
|
|
291 \copyrightnotice
|
|
292
|
|
293 \bye
|
|
294
|
|
295 % End:
|