Mercurial > hg > xemacs-beta
comparison man/auctex/math-ref.tex @ 24:4103f0995bd7 r19-15b95
Import from CVS: tag r19-15b95
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:51:03 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
23:0edd3412f124 | 24:4103f0995bd7 |
---|---|
1 % -*- plain-tex -*- | |
2 % $Id: math-ref.tex,v 1.1 1997/02/20 02:04:25 steve Exp $ | |
3 % Reference Card for LaTeX Math Minor Mode | |
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 auc-tex-ref.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.* | |
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{5.2} | |
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 | |
41 Permission is granted to make and distribute copies of | |
42 this card provided the copyright notice and this permission notice | |
43 are preserved on all copies. | |
44 | |
45 \endgroup} | |
46 | |
47 % make \bye not \outer so that the \def\bye in the \else clause below | |
48 % can be scanned without complaint. | |
49 \def\bye{\par\vfill\supereject\end} | |
50 | |
51 \newdimen\intercolumnskip | |
52 \newbox\columna | |
53 \newbox\columnb | |
54 | |
55 \def\ncolumns{\the\columnsperpage} | |
56 | |
57 \message{[\ncolumns\space | |
58 column\if 1\ncolumns\else s\fi\space per page]} | |
59 | |
60 \def\scaledmag#1{ scaled \magstep #1} | |
61 | |
62 % This multi-way format was designed by Stephen Gildea | |
63 % October 1986. | |
64 \if 1\ncolumns | |
65 \hsize 4in | |
66 \vsize 10in | |
67 \voffset -.7in | |
68 \font\titlefont=\fontname\tenbf \scaledmag3 | |
69 \font\headingfont=\fontname\tenbf \scaledmag2 | |
70 \font\smallfont=\fontname\sevenrm | |
71 \font\smallsy=\fontname\sevensy | |
72 | |
73 \footline{\hss\folio} | |
74 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}} | |
75 \else | |
76 \hsize 3.2in | |
77 \vsize 7.95in | |
78 % \hoffset -.75in | |
79 % \voffset -.745in | |
80 \font\titlefont=cmbx10 \scaledmag2 | |
81 \font\headingfont=cmbx10 \scaledmag1 | |
82 \font\smallfont=cmr6 | |
83 \font\smallsy=cmsy6 | |
84 \font\eightrm=cmr8 | |
85 \font\eightbf=cmbx8 | |
86 \font\eightit=cmti8 | |
87 \font\eighttt=cmtt8 | |
88 \font\eightsy=cmsy8 | |
89 \textfont0=\eightrm | |
90 \textfont2=\eightsy | |
91 \def\rm{\eightrm} | |
92 \def\bf{\eightbf} | |
93 \def\it{\eightit} | |
94 \def\tt{\eighttt} | |
95 \normalbaselineskip=.8\normalbaselineskip | |
96 \normallineskip=.8\normallineskip | |
97 \normallineskiplimit=.8\normallineskiplimit | |
98 \normalbaselines\rm %make definitions take effect | |
99 | |
100 \if 2\ncolumns | |
101 \let\maxcolumn=b | |
102 \footline{\hss\rm\folio\hss} | |
103 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}} | |
104 \else \if 3\ncolumns | |
105 \let\maxcolumn=c | |
106 \nopagenumbers | |
107 \else | |
108 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.} | |
109 \errmessage{Illegal number of columns per page} | |
110 \fi\fi | |
111 | |
112 \intercolumnskip=.46in | |
113 \def\abc{a} | |
114 \output={% | |
115 % This next line is useful when designing the layout. | |
116 %\immediate\write16{Column \folio\abc\space starts with \firstmark} | |
117 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a} | |
118 \else\if a\abc | |
119 \global\setbox\columna\columnbox \global\def\abc{b} | |
120 %% in case we never use \columnb (two-column mode) | |
121 \global\setbox\columnb\hbox to -\intercolumnskip{} | |
122 \else | |
123 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi} | |
124 \def\multicolumnformat{\shipout\vbox{\makeheadline | |
125 \hbox{\box\columna\hskip\intercolumnskip | |
126 \box\columnb\hskip\intercolumnskip\columnbox} | |
127 \makefootline}\advancepageno} | |
128 \def\columnbox{\leftline{\pagebody}} | |
129 | |
130 \def\bye{\par\vfill\supereject | |
131 \if a\abc \else\null\vfill\eject\fi | |
132 \if a\abc \else\null\vfill\eject\fi | |
133 \end} | |
134 \fi | |
135 | |
136 % we won't be using math mode much, so redefine some of the characters | |
137 % we might want to talk about | |
138 \catcode`\^=12 | |
139 \catcode`\_=12 | |
140 | |
141 \chardef\\=`\\ | |
142 \chardef\{=`\{ | |
143 \chardef\}=`\} | |
144 | |
145 \hyphenation{mini-buf-fer} | |
146 | |
147 \parindent 0pt | |
148 \parskip 1ex plus .5ex minus .5ex | |
149 | |
150 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip} | |
151 | |
152 \outer\def\newcolumn{\vfill\eject} | |
153 | |
154 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex} | |
155 | |
156 \outer\def\section#1{\par\filbreak | |
157 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}% | |
158 \vskip 2ex plus 1ex minus 1.5ex} | |
159 | |
160 \newdimen\keyindent | |
161 | |
162 \def\beginindentedkeys{\keyindent=1em} | |
163 \def\endindentedkeys{\keyindent=0em} | |
164 \endindentedkeys | |
165 | |
166 \def\paralign{\vskip\parskip\halign} | |
167 | |
168 \def\<#1>{$\langle${\rm #1}$\rangle$} | |
169 | |
170 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows | |
171 | |
172 \def\beginexample{\par\leavevmode\begingroup | |
173 \obeylines\obeyspaces\parskip0pt\tt} | |
174 {\obeyspaces\global\let =\ } | |
175 \def\endexample{\endgroup} | |
176 | |
177 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop | |
178 {\hsize=.75\hsize\rightskip=1em | |
179 \hskip\keyindent\relax#1}\kbd{#2}\hfil}} | |
180 | |
181 \newbox\metaxbox | |
182 \setbox\metaxbox\hbox{\kbd{M-x }} | |
183 \newdimen\metaxwidth | |
184 \metaxwidth=\wd\metaxbox | |
185 | |
186 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize | |
187 {\hskip\keyindent\relax#1\hfil}% | |
188 \hskip -\metaxwidth minus 1fil | |
189 \kbd{#2}\hfil}} | |
190 | |
191 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\quad | |
192 &\kbd{#3}\quad\cr} | |
193 | |
194 %**end of header | |
195 | |
196 | |
197 \title{Math Mode Reference Card} | |
198 | |
199 \section{Variables} | |
200 | |
201 All math mode commands are under the prefix key specified by | |
202 LaTeX-math-abbrev-prefix, default is "`". | |
203 | |
204 You can define your own math mode commands by setting the variable | |
205 LaTeX-math-list before loading LaTeX-math-mode. | |
206 | |
207 \section{Greek Letters} | |
208 | |
209 \def\disp#1{\hbox to 6ex{$#1$\hfill}} | |
210 \key{\disp{\alpha} (alpha)}{a} | |
211 \key{\disp{\beta} (beta)}{b} | |
212 \key{\disp{\delta} (delta)}{d} | |
213 \key{\disp{\epsilon} (epsilon)}{e} | |
214 \key{\disp{\phi} (phi)}{f} | |
215 \key{\disp{\gamma} (gamma)}{g} | |
216 \key{\disp{\eta} (eta)}{h} | |
217 \key{\disp{\kappa} (kappa)}{k} | |
218 \key{\disp{\lambda} (lambda)}{l} | |
219 \key{\disp{\mu} (mu)}{m} | |
220 \key{\disp{\nabla} (nabla)}{N} | |
221 \key{\disp{\nu} (nu)}{n} | |
222 \key{\disp{\omega} (omega)}{o} | |
223 \key{\disp{\pi} (pi)}{p} | |
224 \key{\disp{\theta} (theta)}{q} | |
225 \key{\disp{\rho} (rho)}{r} | |
226 \key{\disp{\sigma} (sigma)}{s} | |
227 \key{\disp{\tau} (tau)}{t} | |
228 \key{\disp{\upsilon} (upsilon)}{u} | |
229 \key{\disp{\chi} (chi)}{x} | |
230 \key{\disp{\psi} (psi)}{y} | |
231 \key{\disp{\zeta} (zeta)}{z} | |
232 \key{\disp{\Delta} (Delta)}{D} | |
233 \key{\disp{\Phi} (Phi)}{F} | |
234 \key{\disp{\Gamma} (Gamma)}{G} | |
235 \key{\disp{\Theta} (Theta)}{Q} | |
236 \key{\disp{\Lambda} (Lambda)}{L} | |
237 \key{\disp{\Psi} (Psi)}{Y} | |
238 \key{\disp{\Pi} (Pi)}{P} | |
239 \key{\disp{\Sigma} (Sigma)}{S} | |
240 \key{\disp{\Upsilon} (Upsilon)}{U} | |
241 \key{\disp{\Omega} (Omega)}{O} | |
242 | |
243 \section{Symbols} | |
244 | |
245 \key{\disp{\rightarrow} (rightarrow)}{C-f} | |
246 \key{\disp{\leftarrow} (leftarrow)}{C-b} | |
247 \key{\disp{\uparrow} (uparrow)}{C-p} | |
248 \key{\disp{\downarrow} (downarrow)}{C-n} | |
249 \key{\disp{\leq} (leq)}{<} | |
250 \key{\disp{\geq} (geq)}{>} | |
251 \key{\disp{\tilde{ }} (tilde)}{$\tilde{ }$} | |
252 \key{\disp{\infty} (infty)}{I} | |
253 \key{\disp{\forall} (forall)}{A} | |
254 \key{\disp{\exists} (exists)}{E} | |
255 \key{\disp{\not } (not)}{!} | |
256 \key{\disp{\in} (in)}{i} | |
257 \key{\disp{\times} (times)}{*} | |
258 \key{\disp{\cdot} (cdot)}{.} | |
259 \key{\disp{\subset} (subset)}{\{} | |
260 \key{\disp{\supset} (supset)}{\}} | |
261 \key{\disp{\subseteq} (subseteq)}{[} | |
262 \key{\disp{\supseteq} (supseteq)}{]} | |
263 \key{\disp{\backslash} (backslash)}{\\} | |
264 \key{\disp{\setminus} (setminus)}{/} | |
265 \key{\disp{\cup} (cup)}{+} | |
266 \key{\disp{\cap} (cap)}{-} | |
267 \key{\disp{\langle} (langle)}{(} | |
268 \key{\disp{\rangle} (rangle)}{)} | |
269 \key{\disp{\exp} (exp)}{C-e} | |
270 \key{\disp{\sin} (sin)}{C-s} | |
271 \key{\disp{\cos} (cos)}{C-c} | |
272 \key{\disp{\sup} (sup)}{C-^} | |
273 \key{\disp{\inf} (inf)}{C-_} | |
274 \key{\disp{\det} (det)}{C-d} | |
275 \key{\disp{\lim} (lim)}{C-l} | |
276 \key{\disp{\tan} (tan)}{C-t} | |
277 \key{\disp{\hat{ }} (hat)}{^} | |
278 \key{\disp{\vee} (vee)}{v} | |
279 | |
280 \section{Miscellaneous} | |
281 | |
282 \key{cal letters}{c {\rm LETTER}} | |
283 | |
284 \copyrightnotice | |
285 | |
286 \bye | |
287 | |
288 % End: | |
289 |