annotate etc/refcards/calccard.tex @ 98144:142baa998501

* quail/cyrillic.el ("cyrillic-translit"): Add g' for Ukrainian G with upturn.
author Magnus Henoch <mange@freemail.hu>
date Thu, 11 Sep 2008 20:24:16 +0000
parents 9f4d6f3769da
children c90853557b90
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
82644
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1 % Reference Card for GNU Emacs Calc 2.02
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2 %**start of header
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3 \newcount\columnsperpage
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
5 % The format for this file is adapted from the GNU Emacs reference
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
6 % card version 1.9, by Stephen Gildea.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
7
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
8 % This file can be printed with 1, 2, or 3 columns per page (see below).
82862
7fda0382dcba Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82644
diff changeset
9 % Specify how many you want here.
82644
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
10
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
11 \columnsperpage=3
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
12
82862
7fda0382dcba Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82644
diff changeset
13 % PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for
7fda0382dcba Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82644
diff changeset
14 % a landscape layout.
7fda0382dcba Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82644
diff changeset
15
7fda0382dcba Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82644
diff changeset
16 \input pdflayout.sty
7fda0382dcba Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82644
diff changeset
17 \pdflayout=(1l)
7fda0382dcba Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82644
diff changeset
18
7fda0382dcba Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82644
diff changeset
19 % Nothing else needs to be changed.
82644
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
20 % Typical command to format: tex calccard.tex
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
21 % Typical command to print (3 cols): dvips -t landscape calccard.dvi
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
22
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
23 % Copyright (C) 1987, 1992, 2001, 2002, 2003, 2004,
87649
107ccd98fa12 Merge from emacs--rel--22
Miles Bader <miles@gnu.org>
parents: 82862
diff changeset
24 % 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
82644
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
25
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
26 % This file is part of GNU Emacs.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
27
95010
9f4d6f3769da Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
28 % GNU Emacs is free software: you can redistribute it and/or modify
82644
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
29 % it under the terms of the GNU General Public License as published by
95010
9f4d6f3769da Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
30 % the Free Software Foundation, either version 3 of the License, or
9f4d6f3769da Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
31 % (at your option) any later version.
82644
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
32
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
33 % GNU Emacs is distributed in the hope that it will be useful,
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
34 % but WITHOUT ANY WARRANTY; without even the implied warranty of
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
35 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
36 % GNU General Public License for more details.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
37
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
38 % You should have received a copy of the GNU General Public License
95010
9f4d6f3769da Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
39 % along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
82644
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
40
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
41 % This file is intended to be processed by plain TeX (TeX82).
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
42 %
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
43 % The final reference card has six columns, three on each side.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
44 % This file can be used to produce it in any of three ways:
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
45 % 1 column per page
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
46 % produces six separate pages, each of which needs to be reduced to 80%.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
47 % This gives the best resolution.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
48 % 2 columns per page
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
49 % produces three already-reduced pages.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
50 % You will still need to cut and paste.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
51 % 3 columns per page
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
52 % produces two pages which must be printed sideways to make a
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
53 % ready-to-use 8.5 x 11 inch reference card.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
54 % For this you need a dvi device driver that can print sideways.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
55 % Which mode to use is controlled by setting \columnsperpage above.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
56 %
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
57 % Author (Calc reference card):
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
58 % Dave Gillespie
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
59 % UUCP: uunet!synaptx!daveg
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
60 % Internet: daveg@synaptics.com
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
61 %
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
62 % Author (refcard.tex format):
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
63 % Stephen Gildea
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
64 % UUCP: mit-erl!gildea
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
65 % Internet: gildea@stop.mail-abuse.org
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
66
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
67 \def\versionnumber{2.1}
87649
107ccd98fa12 Merge from emacs--rel--22
Miles Bader <miles@gnu.org>
parents: 82862
diff changeset
68 \def\year{2008} % latest copyright year
82644
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
69 \def\version{v\versionnumber}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
70
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
71 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
72 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
73 Permissions on back. v\versionnumber}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
74
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
75 \def\copyrightnotice{
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
76 \vskip 1ex plus 2 fill\begingroup\small
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
77 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
78 \centerline{designed by Dave Gillespie and Stephen Gildea, \version}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
79 \centerline{for GNU Emacs Calc version \versionnumber}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
80
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
81 Permission is granted to make and distribute copies of
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
82 this card provided the copyright notice and this permission notice
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
83 are preserved on all copies.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
84
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
85 For copies of the GNU Emacs Calc manual, write to the Free Software
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
86 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
87 MA 02110-1301, USA.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
88
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
89 \endgroup}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
90
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
91 % make \bye not \outer so that the \def\bye in the \else clause below
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
92 % can be scanned without complaint.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
93 \def\bye{\par\vfill\supereject\end}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
94
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
95 \newdimen\intercolumnskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
96 \newbox\columna
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
97 \newbox\columnb
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
98
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
99 \def\ncolumns{\the\columnsperpage}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
100
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
101 \message{[\ncolumns\space
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
102 column\if 1\ncolumns\else s\fi\space per page]}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
103
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
104 \def\scaledmag#1{ scaled \magstep #1}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
105
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
106 % This multi-way format was designed by Stephen Gildea
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
107 % October 1986.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
108 \if 1\ncolumns
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
109 \hsize 4in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
110 \vsize 10in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
111 \voffset -.7in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
112 \font\titlefont=\fontname\tenbf \scaledmag3
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
113 \font\headingfont=\fontname\tenbf \scaledmag2
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
114 \font\smallfont=\fontname\sevenrm
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
115 \font\smallsy=\fontname\sevensy
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
116
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
117 \footline{\hss\folio}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
118 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
119 \else
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
120 \hsize 3.2in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
121 \vsize 7.95in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
122 \hoffset -.75in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
123 \voffset -.745in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
124 \font\titlefont=cmbx10 \scaledmag2
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
125 \font\headingfont=cmbx10 \scaledmag1
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
126 \font\smallfont=cmr6
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
127 \font\smallsy=cmsy6
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
128 \font\eightrm=cmr8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
129 \font\eightbf=cmbx8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
130 \font\eightit=cmti8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
131 \font\eighttt=cmtt8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
132 \font\eightsy=cmsy8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
133 \textfont0=\eightrm
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
134 \textfont2=\eightsy
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
135 \def\rm{\eightrm}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
136 \def\bf{\eightbf}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
137 \def\it{\eightit}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
138 \def\tt{\eighttt}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
139 \normalbaselineskip=.8\normalbaselineskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
140 \normallineskip=.8\normallineskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
141 \normallineskiplimit=.8\normallineskiplimit
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
142 \normalbaselines\rm %make definitions take effect
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
143
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
144 \if 2\ncolumns
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
145 \let\maxcolumn=b
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
146 \footline{\hss\rm\folio\hss}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
147 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
148 \else \if 3\ncolumns
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
149 \let\maxcolumn=c
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
150 \nopagenumbers
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
151 \else
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
152 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
153 \errmessage{Illegal number of columns per page}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
154 \fi\fi
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
155
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
156 \intercolumnskip=.46in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
157 \def\abc{a}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
158 \output={%
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
159 % This next line is useful when designing the layout.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
160 %\immediate\write16{Column \folio\abc\space starts with \firstmark}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
161 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
162 \else\if a\abc
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
163 \global\setbox\columna\columnbox \global\def\abc{b}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
164 %% in case we never use \columnb (two-column mode)
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
165 \global\setbox\columnb\hbox to -\intercolumnskip{}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
166 \else
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
167 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
168 \def\multicolumnformat{\shipout\vbox{\makeheadline
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
169 \hbox{\box\columna\hskip\intercolumnskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
170 \box\columnb\hskip\intercolumnskip\columnbox}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
171 \makefootline}\advancepageno}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
172 \def\columnbox{\leftline{\pagebody}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
173
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
174 \def\bye{\par\vfill\supereject
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
175 \if a\abc \else\null\vfill\eject\fi
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
176 \if a\abc \else\null\vfill\eject\fi
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
177 \end}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
178 \fi
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
179
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
180 % we won't be using math mode much, so redefine some of the characters
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
181 % we might want to talk about
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
182 \catcode`\^=12
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
183 \catcode`\_=12
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
184
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
185 \chardef\\=`\\
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
186 \chardef\{=`\{
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
187 \chardef\}=`\}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
188
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
189 \hyphenation{mini-buf-fer}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
190
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
191 \parindent 0pt
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
192 \parskip 1ex plus .5ex minus .5ex
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
193
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
194 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
195
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
196 \outer\def\newcolumn{\vfill\eject}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
197
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
198 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
199
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
200 \outer\def\section#1{\par\filbreak
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
201 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
202 \vskip 2ex plus 1ex minus 1.5ex}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
203
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
204 \newdimen\keyindent
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
205
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
206 \def\beginindentedkeys{\keyindent=1em}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
207 \def\endindentedkeys{\keyindent=0em}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
208 \endindentedkeys
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
209
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
210 \def\paralign{\vskip\parskip\halign}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
211
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
212 \def\<#1>{$\langle${\rm #1}$\rangle$}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
213
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
214 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
215
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
216 \def\beginexample{\par\leavevmode\begingroup
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
217 \obeylines\obeyspaces\parskip0pt\tt}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
218 {\obeyspaces\global\let =\ }
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
219 \def\endexample{\endgroup}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
220
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
221 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
222 {\hsize=.75\hsize\rightskip=1em
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
223 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
224
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
225 \newbox\metaxbox
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
226 \setbox\metaxbox\hbox{\kbd{M-x }}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
227 \newdimen\metaxwidth
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
228 \metaxwidth=\wd\metaxbox
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
229
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
230 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
231 {\hskip\keyindent\relax#1\hfil}%
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
232 \hskip -\metaxwidth minus 1fil
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
233 \kbd{#2}\hfil}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
234
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
235 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\quad
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
236 &\kbd{#3}\quad\cr}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
237
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
238 %
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
239 % Calc-specific commands here:
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
240 %
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
241
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
242 \let\^=^
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
243 \let\_=_
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
244 \catcode`\^=7
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
245 \catcode`\_=8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
246
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
247 % Redefine to make spaces a bit smaller
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
248 \let\wkbd=\kbd
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
249 \def\kbd#1{{\spaceskip=.37em\tt#1}\null}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
250
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
251 \def\wkey#1#2{\leavevmode\hbox to \hsize{\vtop
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
252 {\hsize=.75\hsize\rightskip=1em
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
253 \hskip\keyindent\relax#1}\wkbd{#2}\hfil}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
254 \def\wthreecol#1#2#3{\hskip\keyindent\relax#1\hfil&\wkbd{#2}\quad
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
255 &\wkbd{#3}\quad\cr}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
256
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
257 \def\stkkey#1#2#3#4{\par\line{\hskip1em\rlap{\kbd{#1}}\hskip4.5em%
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
258 \rlap{{#2}}\hskip7.5em\rlap{{#3}}\hskip7.5em\rlap{{#4}}\hfill}\par}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
259 \def\S#1{$S_{\scriptscriptstyle #1}$}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
260 \def\swap{$\leftrightarrow$}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
261
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
262 \def\calcprefix{C-x *\ }
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
263 \def\,{{\rm ,\hskip.55em}\ignorespaces}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
264 \def\lesssectionskip{\vskip-1.5ex}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
265
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
266 \def\iline#1{\par\line{\hskip1em\relax #1\hfill}\par}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
267
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
268 \if 1\ncolumns
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
269 \else
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
270 \font\eighti=cmmi8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
271 \textfont1=\eighti
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
272 \fi
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
273
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
274 %**end of header
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
275
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
276
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
277 % Column 1
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
278
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
279 \title{GNU Calc Reference Card}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
280
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
281 \centerline{(for version \versionnumber)}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
282
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
283 \section{Starting and Stopping}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
284
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
285 \wkey{start/stop standard Calc}{\calcprefix c}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
286 \wkey{start/stop X keypad Calc}{\calcprefix k}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
287 \wkey{\quad start/stop either: \kbd{\calcprefix *}}{}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
288 \wkey{stop standard Calc}{q}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
289
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
290 \wkey{Calc tutorial}{\calcprefix t}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
291 \wkey{run Calc in other window}{\calcprefix o}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
292 \wkey{quick calculation in minibuffer}{\calcprefix q}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
293
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
294 \section{Getting Help}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
295
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
296 \lesssectionskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
297 The \kbd{h} prefix key is Calc's analogue of \kbd{C-h} in Emacs.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
298
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
299 \key{quick summary of keys}{?}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
300 \key{describe key briefly}{h c}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
301 \key{describe key fully}{h k}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
302 \key{describe function or command}{h f}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
303 \key{read on-line manual}{h i{\rm\enskip or\enskip}\calcprefix i}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
304 \key{read full Calc summary}{h s{\rm\enskip or\enskip}\calcprefix s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
305
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
306 \section{Error Recovery}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
307
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
308 \key{abort command in progress}{C-g}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
309 \key{display recent error messages}{w}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
310 \key{undo last operation}{U}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
311 \key{redo last operation}{D}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
312 \key{recall last arguments}{M-RET}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
313 \key{edit top of stack}{`}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
314 \wkey{reset Calc to initial state}{\calcprefix 0 {\rm (zero)}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
315
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
316 \section{Transferring Data}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
317
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
318 \wkey{grab region from a buffer}{\calcprefix g}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
319 \wkey{grab rectangle from a buffer}{\calcprefix r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
320 \wkey{grab rectangle, summing columns}{\calcprefix :}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
321 \wkey{grab rectangle, summing rows}{\calcprefix \_}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
322
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
323 \wkey{yank data to a buffer}{\calcprefix y}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
324
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
325 Also, try \kbd{C-k}/\kbd{C-y} or X cut and paste.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
326
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
327 \section{Examples}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
328
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
329 \lesssectionskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
330 In RPN, enter numbers first, separated by \kbd{RET} if necessary,
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
331 then type the operator. To enter a calculation in algebraic form,
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
332 press the apostrophe first.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
333
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
334 \beginindentedkeys
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
335 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt\hfil\quad&#\hfil\cr
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
336 \wthreecol{ }{{\bf RPN style:}}{{\bf algebraic style:}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
337 \wthreecol{Example:}{2 RET 3 +}{' 2+3 RET}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
338 \wthreecol{Example:}{2 RET 3 + 4 *}{' (2+3)*4 RET}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
339 \wthreecol{Example:}{2 RET 3 RET 4 + *}{' 2*(3+4) RET}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
340 \wthreecol{Example:}{3 RET 6 + Q 3 \^}{' sqrt(3+6)\^3 RET}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
341 \wthreecol{Example:}{P 3 / n S}{' sin(-pi/3) RET =}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
342 }
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
343 \endindentedkeys
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
344
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
345 \shortcopyrightnotice
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
346
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
347 % Column 2
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
348
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
349 \section{Arithmetic}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
350
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
351 \key{add, subtract, multiply, divide}{+\, -\, *\, /}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
352 \key{raise to a power, {\it n\/}th root}{\^\, I \^}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
353 \key{change sign}{n}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
354 \key{reciprocal $1/x$}{\&}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
355 \key{square root $\sqrt x$}{Q}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
356
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
357 \key{set precision}{p}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
358 \key{round off last two digits}{c 2}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
359 \key{convert to fraction, float}{c F\, c f}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
360
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
361 \wkey{enter using algebraic notation}{' 2+3*4}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
362 \wkey{refer to previous result}{' 3*\$\^2}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
363 \wkey{refer to higher stack entries}{' \$1*\$2\^2}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
364 \key{finish alg entry without evaluating}{LFD}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
365 \key{set mode where alg entry used by default}{m a}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
366
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
367 \section{Stack Commands}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
368
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
369 \lesssectionskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
370 Here \S{n} is the $n$th stack entry, and $N$ is the size of the stack.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
371
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
372 \vskip.5ex
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
373 \stkkey{\it key}{\it no prefix}{\it prefix $n$}{\it prefix $-n$}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
374 \stkkey{RET}{copy \S{1}}{copy \S{1..n}}{copy \S{n}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
375 \stkkey{LFD}{copy \S{2}}{copy \S{n}}{copy \S{1..n}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
376 \stkkey{DEL}{delete \S{1}}{delete \S{1..n}}{delete \S{n}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
377 \stkkey{M-DEL}{delete \S{2}}{delete \S{n}}{delete \S{1..n}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
378 \stkkey{TAB}{swap \S{1}\swap\S{2}}{roll \S{1} to \S{n}}{roll \S{n} to \S{N}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
379 \stkkey{M-TAB}{roll \S{3} to \S{1}}{roll \S{n} to \S{1}}{roll \S{N} to \S{n}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
380
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
381 With a 0 prefix, these copy, delete, or reverse \S{1..N}.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
382
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
383 \section{Display}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
384
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
385 \wkey{scroll horizontally, vertically}{< >\, \{ \}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
386 \key{home cursor}{o}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
387 \key{line numbers on/off}{d l}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
388 \key{trail display on/off}{t d}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
389
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
390 \key{scientific notation}{d s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
391 \key{fixed-point notation}{d f}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
392 \key{floating-point (normal) notation}{d n}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
393 \key{group digits with commas}{d g}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
394
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
395 For display mode commands, \kbd{H} prefix prevents screen redraw
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
396 and \kbd{I} prefix temporarily redraws top of stack.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
397
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
398 \section{Notations}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
399
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
400 \wkey{scientific notation}{6.02e23}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
401 \wkey{minus sign in numeric entry}{\_23{\rm\quad or\quad}23 n}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
402 \wkey{fractions}{3:4}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
403 \wkey{complex numbers}{({\it x}, {\it y})}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
404 \wkey{polar complex numbers}{({\it r}; $\theta$)}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
405 \wkey{vectors (commas optional)}{[1, 2, 3]}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
406 \wkey{matrices (or nested vectors)}{[1, 2; 3, 4]}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
407 \wkey{error forms (\kbd{p} key)}{100 +/- 0.5}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
408 \wkey{interval forms}{[2 ..\ 5)}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
409 \wkey{modulo forms (\kbd{M} key)}{6 mod 24}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
410 \wkey{HMS forms}{5@ 30' 0"}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
411 \wkey{date forms}{<Jul 4, 1992>}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
412 \wkey{infinity, indeterminate}{inf\, nan}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
413
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
414 % Column 3
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
415
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
416 \section{Scientific Functions}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
417
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
418 \key{ln, log${}_{\scriptscriptstyle 10}$, log${}_b$}{L\, H L\, B}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
419 \key{exponential {\it e}${}^x$, 10${}^x$}{E\, H E}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
420 \key{sin, cos, tan}{S\, C\, T}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
421 \key{arcsin, arccos, arctan}{I S\, I C\, I T}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
422 \key{inverse, hyperbolic prefix keys}{I\, H}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
423 \key{two-argument arctan}{f T}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
424 \key{degrees, radians modes}{m d\, m r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
425 \key{pi ($\pi$)}{P}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
426
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
427 \key{factorial, double factorial}{!\, k d}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
428 \key{combinations, permutations}{k c\, H k c}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
429 \key{prime factorization}{k f}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
430 \key{next prime, previous prime}{k n\, I k n}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
431 \key{GCD, LCM}{k g\, k l}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
432 \key{random number, shuffle}{k r\, k h}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
433 \key{minimum, maximum}{f n\, f x}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
434
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
435 \key{error functions erf, erfc}{f e\, I f e}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
436 \key{gamma, beta functions}{f g\, f b}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
437 \key{incomplete gamma, beta functions}{f G\, f B}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
438 \key{Bessel $J_\nu$, $Y_\nu$ functions}{f j\, f y}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
439
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
440 \key{complex magnitude, arg, conjugate}{A\, G\, J}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
441 \key{real, imaginary parts}{f r\, f i}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
442 \key{convert polar/rectangular}{c p}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
443
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
444 \section{Financial Functions}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
445
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
446 \key{enter percentage}{M-\%}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
447 \key{convert to percentage}{c \%}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
448 \key{percentage change}{b \%}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
449
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
450 \key{present value}{b P}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
451 \key{future value}{b F}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
452 \key{rate of return}{b T}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
453 \key{number of payments}{b \#}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
454 \key{size of payments}{b M}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
455 \key{net present value, int.\ rate of return}{b N\, b I}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
456
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
457 Above computations assume payments at end of period. Use \kbd{I}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
458 prefix for beginning of period, or \kbd{H} for a lump sum investment.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
459
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
460 \key{straight-line depreciation}{b S}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
461 \key{sum-of-years'-digits}{b Y}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
462 \key{double declining balance}{b D}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
463
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
464 \section{Units}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
465
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
466 \wkey{enter with units}{' 55 mi/hr}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
467 \key{convert to new units, base units}{u c\, u b}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
468 \key{convert temperature units}{u t}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
469 \key{simplify units expression}{u s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
470 \key{view units table}{u v}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
471
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
472 Common units:
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
473 \iline{distance: \kbd{m}, \kbd{cm}, \kbd{mm}, \kbd{km};
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
474 \kbd{in}, \kbd{ft}, \kbd{mi}, \kbd{mfi};
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
475 \kbd{point}, \kbd{lyr}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
476 \iline{volume: \kbd{l} or \kbd{L}, \kbd{ml};
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
477 \kbd{gal}, \kbd{qt}, \kbd{pt}, \kbd{cup}, \kbd{floz},
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
478 \kbd{tbsp}, \kbd{tsp}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
479 \iline{mass: \kbd{g}, \kbd{mg}, \kbd{kg}, \kbd{t};
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
480 \kbd{lb}, \kbd{oz}, \kbd{ton}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
481 \iline{time: \kbd{s} or \kbd{sec}, \kbd{ms}, \kbd{us}, \kbd{ns}, \kbd{min},
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
482 \kbd{hr}, \kbd{day}, \kbd{wk}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
483 \iline{temperature: \kbd{degC}, \kbd{degF}, \kbd{K}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
484
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
485 % Column 4
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
486
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
487 \newcolumn
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
488 \title{GNU Calc Reference Card}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
489
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
490 \section{Programmer's Functions}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
491
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
492 \key{binary, octal, hex display}{d 2\, d 8\, d 6}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
493 \key{decimal, other radix display}{d 0\, d r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
494 \key{display leading zeros}{d z}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
495 \key{entering non-decimal numbers}{16\#7FFF}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
496
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
497 \key{binary word size}{b w}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
498 \key{binary AND, OR, XOR}{b a\, b o\, b x}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
499 \key{binary DIFF, NOT}{b d\, b n}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
500 \key{left shift}{b l}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
501 \key{logical right shift}{b r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
502 \key{arithmetic right shift}{b R}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
503
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
504 \key{integer quotient, remainder}{\\\, \%}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
505 \key{integer square root, logarithm}{f Q\, f I}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
506 \key{floor, ceiling, round to integer}{F\, I F\, R}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
507
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
508 \section{Variables}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
509
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
510 \lesssectionskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
511 Variable names are single digits or whole words.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
512
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
513 \key{store to variable}{s t}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
514 \key{store and keep on stack}{s s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
515 \key{recall from variable}{s r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
516 \key{shorthands for digit variables}{t {\it n}\, s {\it n}\, r {\it n}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
517 \key{unstore, exchange variable}{s u\, s x}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
518 \key{edit variable}{s e}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
519
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
520 \section{Vector Operations}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
521
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
522 \key{vector of 1, 2, $\ldots\mskip\thinmuskip$, {\it n}}{v x {\it n}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
523 \key{vector of {\it n} counts from {\it a} by {\it b}}{C-u v x}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
524 \key{vector of copies of a value}{v b}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
525 \key{concatenate into vector}{|}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
526 \key{pack many stack items into vector}{v p}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
527 \key{unpack vector or object}{v u}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
528
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
529 \key{length of vector (list)}{v l}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
530 \key{reverse vector}{v v}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
531 \key{sort, grade vector}{V S\, V G}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
532 \key{histogram of vector data}{V H}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
533 \key{extract vector element}{v r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
534
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
535 \key{matrix determinant, inverse}{V D\, \&}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
536 \key{matrix transpose, trace}{v t\, V T}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
537 \key{cross, dot products}{V C\, *}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
538 \key{identity matrix}{v i}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
539 \key{extract matrix row, column}{v r\, v c}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
540
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
541 \key{intersection, union, diff of sets}{V \^\, V V\, V -}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
542 \key{cardinality of set}{V \#}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
543
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
544 \key{add vectors elementwise (i.e., map \kbd{+})}{V M +}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
545 \key{sum elements in vector (i.e., reduce \kbd{+})}{V R +}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
546 \key{sum rows in matrix}{V R \_ +}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
547 \key{sum columns in matrix}{V R : +}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
548 \key{sum elements, accumulate results}{V U +}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
549
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
550 % Column 5
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
551
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
552 \section{Algebra}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
553
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
554 \wkey{enter an algebraic formula}{' 2x+3y\^2}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
555 \wkey{enter an equation}{' 2x\^2=18}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
556
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
557 \key{symbolic (vs.\ numeric) mode}{m s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
558 \key{fractions (vs.\ float) mode}{m f}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
559 \key{suppress evaluation of formulas}{m O}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
560 \key{simplify formulas automatically}{m S}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
561 \key{return to default evaluation rules}{m D}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
562
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
563 \key{``Big'' display mode}{d B}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
564 \key{C, Pascal, FORTRAN modes}{d C\, d P\, d F}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
565 \key{\TeX, La\TeX, eqn modes}{d T\, d L\, d E}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
566 \key{Unformatted mode}{d U}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
567 \key{Normal language mode}{d N}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
568
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
569 \key{simplify formula}{a s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
570 \key{put formula into rational form}{a n}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
571 \key{evaluate variables in formula}{=}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
572 \key{evaluate numerically}{N}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
573 \key{let variable equal a value in formula}{s l {\it x\/}={\it val}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
574 \key{declare properties of variable}{s d}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
575 \iline{Common decls: \kbd{pos}, \kbd{int}, \kbd{real},
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
576 \kbd{scalar}, \kbd{[{\it a}..{\it b}\hskip.1em]}.}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
577
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
578 \key{expand, collect terms}{a x\, a c}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
579 \key{factor, partial fractions}{a f\, a a}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
580 \key{polynomial quotient, remainder, GCD}{a \\\, a \%\, a g}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
581 \key{derivative, integral}{a d\, a i}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
582 \key{taylor series}{a t}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
583
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
584 \key{principal solution to equation(s)}{a S}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
585 \key{list of solutions}{a P}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
586 \key{generic solution}{H a S}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
587 \key{apply function to both sides of eqn}{a M}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
588
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
589 \key{rewrite formula}{a r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
590 \iline{Example: \wkbd{a r a*b + a*c := a*(b+c)}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
591 \iline{Example: \wkbd{a r sin(x)\^2 := 1-cos(x)\^2}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
592 \iline{Example: \wkbd{a r cos(n pi) := 1 ::\ integer(n) ::\ n\%2 = 0}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
593 \iline{Example: \wkbd{a r [f(0) := 1, f(n) := n f(n-1) ::\ n > 0]}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
594 \iline{Put rules in \kbd{EvalRules} to have them apply automatically.}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
595 \iline{Put rules in \kbd{AlgSimpRules} to apply during \kbd{a s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
596 command.}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
597 \iline{Common markers: \kbd{opt}, \kbd{plain}, \kbd{quote}, \kbd{eval},
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
598 \kbd{let}, \kbd{remember}.}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
599
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
600 \section{Numerical Computations}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
601
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
602 \key{sum formula over a range}{a +}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
603 \key{product of formula over a range}{a *}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
604 \key{tabulate formula over a range}{a T}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
605 \key{integrate numerically over a range}{a I}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
606 \key{find zero of formula or equation}{a R}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
607 \key{find local min, max of formula}{a N\, a X}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
608 \key{fit data to line or curve}{a F}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
609
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
610 \key{mean of data in vector or variable}{u M}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
611 \key{median of data}{H u M}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
612 \key{geometric mean of data}{u G}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
613 \key{sum, product of data}{u +\, u *}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
614 \key{minimum, maximum of data}{u N\, u X}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
615 \key{sample, pop.\ standard deviation}{u S\, I u S}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
616
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
617 % Column 6
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
618
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
619 \section{Selections}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
620
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
621 \key{select subformula under cursor}{j s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
622 \key{select {\it n\/}th subformula}{j {\it n}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
623 \key{select more}{j m}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
624 \key{unselect this, all formulas}{j u\, j c}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
625
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
626 \key{copy indicated subformula}{j RET}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
627 \key{delete indicated subformula}{j DEL}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
628
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
629 \key{commute selected terms}{j C}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
630 \key{commute term leftward, rightward}{j L\, j R}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
631 \key{distribute, merge selection}{j D\, j M}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
632 \key{isolate selected term in equation}{j I}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
633 \key{negate, invert term in context}{j N\, j \&}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
634 \key{rewrite selected term}{j r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
635
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
636 \section{Graphics}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
637
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
638 \key{graph function or data}{g f}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
639 \key{graph 3D function or data}{g F}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
640 \key{replot current graph}{g p}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
641 \key{print current graph}{g P}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
642 \key{add curve to graph}{g a}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
643 \key{set number of data points}{g N}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
644 \key{set line, point styles}{g s\, g S}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
645 \key{set log vs.\ linear {\it x, y} axis}{g l\, g L}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
646 \key{set range for {\it x, y} axis}{g r\, g R}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
647 \key{close graphics window}{g q}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
648
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
649 \section{Programming}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
650
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
651 \key{begin, end recording a macro}{C-x (\, C-x )}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
652 \key{replay keyboard macro}{X}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
653 \wkey{read region as written-out macro}{\calcprefix m}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
654 \key{if, else, endif}{Z [\, Z :\, Z ]}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
655 \key{equal to, less than, member of}{a =\, a <\, a \{}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
656 \key{repeat {\it n} times, break from loop}{Z <\, Z >\, Z /}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
657 \key{``for'' loop: start, end; body, step}{Z (\, Z )}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
658 \key{save, restore mode settings}{Z `\, Z '}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
659 \key{query user during macro}{Z \#}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
660 \key{put finished macro on a key}{Z K}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
661
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
662 \key{define function with formula}{Z F}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
663 \key{edit definition}{Z E}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
664
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
665 \key{record user-defined command permanently}{Z P}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
666 \key{record variable value permanently}{s p}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
667 \key{record mode settings permanently}{m m}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
668
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
669 \copyrightnotice
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
670
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
671 \bye
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
672
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
673 % Local variables:
82862
7fda0382dcba Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82644
diff changeset
674 % compile-command: "pdftex calccard"
82644
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
675 % End:
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
676
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
677 % arch-tag: a2764f34-ec23-4083-bd5c-53f9e70a5da9