annotate etc/refcards/calccard.tex @ 93487:426872139a89

(Commentary): Point to calendar.el. (calendar-persian-date-string): Reduce nesting of some lets.
author Glenn Morris <rgm@gnu.org>
date Tue, 01 Apr 2008 02:43:30 +0000
parents 107ccd98fa12
children 9f4d6f3769da
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
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
28 % GNU Emacs is free software; you can redistribute it and/or modify
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
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
30 % the Free Software Foundation; either version 3, or (at your option)
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
31 % any later version.
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
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
39 % along with GNU Emacs; see the file COPYING. If not, write to
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
40 % the Free Software Foundation, 51 Franklin Street, Fifth Floor,
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
41 % Boston, MA 02110-1301, USA.
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 % 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
44 %
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
45 % 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
46 % 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
47 % 1 column per page
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
48 % 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
49 % This gives the best resolution.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
50 % 2 columns per page
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
51 % produces three already-reduced pages.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
52 % You will still need to cut and paste.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
53 % 3 columns per page
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
54 % 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
55 % 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
56 % 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
57 % 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
58 %
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
59 % Author (Calc reference card):
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
60 % Dave Gillespie
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
61 % UUCP: uunet!synaptx!daveg
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
62 % Internet: daveg@synaptics.com
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
63 %
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
64 % Author (refcard.tex format):
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
65 % Stephen Gildea
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
66 % UUCP: mit-erl!gildea
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
67 % Internet: gildea@stop.mail-abuse.org
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
68
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
69 \def\versionnumber{2.1}
87649
107ccd98fa12 Merge from emacs--rel--22
Miles Bader <miles@gnu.org>
parents: 82862
diff changeset
70 \def\year{2008} % latest copyright year
82644
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
71 \def\version{v\versionnumber}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
72
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
73 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
74 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
75 Permissions on back. v\versionnumber}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
76
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
77 \def\copyrightnotice{
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
78 \vskip 1ex plus 2 fill\begingroup\small
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
79 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
80 \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
81 \centerline{for GNU Emacs Calc version \versionnumber}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
82
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
83 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
84 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
85 are preserved on all copies.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
86
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
87 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
88 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
89 MA 02110-1301, USA.
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 \endgroup}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
92
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
93 % 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
94 % can be scanned without complaint.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
95 \def\bye{\par\vfill\supereject\end}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
96
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
97 \newdimen\intercolumnskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
98 \newbox\columna
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
99 \newbox\columnb
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 \def\ncolumns{\the\columnsperpage}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
102
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
103 \message{[\ncolumns\space
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
104 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
105
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
106 \def\scaledmag#1{ scaled \magstep #1}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
107
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
108 % 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
109 % October 1986.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
110 \if 1\ncolumns
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
111 \hsize 4in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
112 \vsize 10in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
113 \voffset -.7in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
114 \font\titlefont=\fontname\tenbf \scaledmag3
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
115 \font\headingfont=\fontname\tenbf \scaledmag2
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
116 \font\smallfont=\fontname\sevenrm
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
117 \font\smallsy=\fontname\sevensy
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
118
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
119 \footline{\hss\folio}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
120 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
121 \else
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
122 \hsize 3.2in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
123 \vsize 7.95in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
124 \hoffset -.75in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
125 \voffset -.745in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
126 \font\titlefont=cmbx10 \scaledmag2
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
127 \font\headingfont=cmbx10 \scaledmag1
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
128 \font\smallfont=cmr6
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
129 \font\smallsy=cmsy6
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
130 \font\eightrm=cmr8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
131 \font\eightbf=cmbx8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
132 \font\eightit=cmti8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
133 \font\eighttt=cmtt8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
134 \font\eightsy=cmsy8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
135 \textfont0=\eightrm
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
136 \textfont2=\eightsy
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
137 \def\rm{\eightrm}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
138 \def\bf{\eightbf}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
139 \def\it{\eightit}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
140 \def\tt{\eighttt}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
141 \normalbaselineskip=.8\normalbaselineskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
142 \normallineskip=.8\normallineskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
143 \normallineskiplimit=.8\normallineskiplimit
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
144 \normalbaselines\rm %make definitions take effect
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
145
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
146 \if 2\ncolumns
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
147 \let\maxcolumn=b
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
148 \footline{\hss\rm\folio\hss}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
149 \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
150 \else \if 3\ncolumns
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
151 \let\maxcolumn=c
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
152 \nopagenumbers
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
153 \else
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
154 \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
155 \errmessage{Illegal number of columns per page}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
156 \fi\fi
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
157
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
158 \intercolumnskip=.46in
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
159 \def\abc{a}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
160 \output={%
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
161 % 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
162 %\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
163 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
164 \else\if a\abc
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
165 \global\setbox\columna\columnbox \global\def\abc{b}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
166 %% 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
167 \global\setbox\columnb\hbox to -\intercolumnskip{}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
168 \else
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
169 \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
170 \def\multicolumnformat{\shipout\vbox{\makeheadline
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
171 \hbox{\box\columna\hskip\intercolumnskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
172 \box\columnb\hskip\intercolumnskip\columnbox}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
173 \makefootline}\advancepageno}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
174 \def\columnbox{\leftline{\pagebody}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
175
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
176 \def\bye{\par\vfill\supereject
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
177 \if a\abc \else\null\vfill\eject\fi
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
178 \if a\abc \else\null\vfill\eject\fi
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
179 \end}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
180 \fi
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
181
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
182 % 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
183 % we might want to talk about
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
184 \catcode`\^=12
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
185 \catcode`\_=12
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
186
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 \chardef\{=`\{
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
189 \chardef\}=`\}
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 \hyphenation{mini-buf-fer}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
192
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
193 \parindent 0pt
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
194 \parskip 1ex plus .5ex minus .5ex
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 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
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\newcolumn{\vfill\eject}
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\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
201
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
202 \outer\def\section#1{\par\filbreak
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
203 \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
204 \vskip 2ex plus 1ex minus 1.5ex}
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 \newdimen\keyindent
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
207
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
208 \def\beginindentedkeys{\keyindent=1em}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
209 \def\endindentedkeys{\keyindent=0em}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
210 \endindentedkeys
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\paralign{\vskip\parskip\halign}
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\<#1>{$\langle${\rm #1}$\rangle$}
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\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
217
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
218 \def\beginexample{\par\leavevmode\begingroup
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
219 \obeylines\obeyspaces\parskip0pt\tt}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
220 {\obeyspaces\global\let =\ }
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
221 \def\endexample{\endgroup}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
222
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
223 \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
224 {\hsize=.75\hsize\rightskip=1em
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
225 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
226
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
227 \newbox\metaxbox
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
228 \setbox\metaxbox\hbox{\kbd{M-x }}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
229 \newdimen\metaxwidth
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
230 \metaxwidth=\wd\metaxbox
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
231
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
232 \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
233 {\hskip\keyindent\relax#1\hfil}%
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
234 \hskip -\metaxwidth minus 1fil
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
235 \kbd{#2}\hfil}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
236
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
237 \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
238 &\kbd{#3}\quad\cr}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
239
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 % Calc-specific commands here:
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
242 %
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
243
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
244 \let\^=^
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
245 \let\_=_
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
246 \catcode`\^=7
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
247 \catcode`\_=8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
248
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
249 % Redefine to make spaces a bit smaller
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
250 \let\wkbd=\kbd
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
251 \def\kbd#1{{\spaceskip=.37em\tt#1}\null}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
252
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
253 \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
254 {\hsize=.75\hsize\rightskip=1em
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
255 \hskip\keyindent\relax#1}\wkbd{#2}\hfil}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
256 \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
257 &\wkbd{#3}\quad\cr}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
258
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
259 \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
260 \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
261 \def\S#1{$S_{\scriptscriptstyle #1}$}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
262 \def\swap{$\leftrightarrow$}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
263
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
264 \def\calcprefix{C-x *\ }
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
265 \def\,{{\rm ,\hskip.55em}\ignorespaces}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
266 \def\lesssectionskip{\vskip-1.5ex}
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 \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
269
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
270 \if 1\ncolumns
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
271 \else
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
272 \font\eighti=cmmi8
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
273 \textfont1=\eighti
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
274 \fi
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 %**end of header
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
277
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 % Column 1
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 \title{GNU Calc Reference Card}
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 \centerline{(for version \versionnumber)}
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 \section{Starting and Stopping}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
286
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
287 \wkey{start/stop standard Calc}{\calcprefix c}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
288 \wkey{start/stop X keypad Calc}{\calcprefix k}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
289 \wkey{\quad start/stop either: \kbd{\calcprefix *}}{}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
290 \wkey{stop standard Calc}{q}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
291
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
292 \wkey{Calc tutorial}{\calcprefix t}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
293 \wkey{run Calc in other window}{\calcprefix o}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
294 \wkey{quick calculation in minibuffer}{\calcprefix q}
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 \section{Getting Help}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
297
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
298 \lesssectionskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
299 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
300
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
301 \key{quick summary of keys}{?}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
302 \key{describe key briefly}{h c}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
303 \key{describe key fully}{h k}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
304 \key{describe function or command}{h f}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
305 \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
306 \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
307
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
308 \section{Error Recovery}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
309
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
310 \key{abort command in progress}{C-g}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
311 \key{display recent error messages}{w}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
312 \key{undo last operation}{U}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
313 \key{redo last operation}{D}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
314 \key{recall last arguments}{M-RET}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
315 \key{edit top of stack}{`}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
316 \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
317
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
318 \section{Transferring Data}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
319
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
320 \wkey{grab region from a buffer}{\calcprefix g}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
321 \wkey{grab rectangle from a buffer}{\calcprefix r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
322 \wkey{grab rectangle, summing columns}{\calcprefix :}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
323 \wkey{grab rectangle, summing rows}{\calcprefix \_}
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 \wkey{yank data to a buffer}{\calcprefix y}
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 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
328
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
329 \section{Examples}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
330
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
331 \lesssectionskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
332 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
333 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
334 press the apostrophe first.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
335
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
336 \beginindentedkeys
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
337 \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
338 \wthreecol{ }{{\bf RPN style:}}{{\bf algebraic style:}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
339 \wthreecol{Example:}{2 RET 3 +}{' 2+3 RET}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
340 \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
341 \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
342 \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
343 \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
344 }
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
345 \endindentedkeys
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 \shortcopyrightnotice
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 % Column 2
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 \section{Arithmetic}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
352
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
353 \key{add, subtract, multiply, divide}{+\, -\, *\, /}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
354 \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
355 \key{change sign}{n}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
356 \key{reciprocal $1/x$}{\&}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
357 \key{square root $\sqrt x$}{Q}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
358
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
359 \key{set precision}{p}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
360 \key{round off last two digits}{c 2}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
361 \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
362
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
363 \wkey{enter using algebraic notation}{' 2+3*4}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
364 \wkey{refer to previous result}{' 3*\$\^2}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
365 \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
366 \key{finish alg entry without evaluating}{LFD}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
367 \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
368
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
369 \section{Stack Commands}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
370
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
371 \lesssectionskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
372 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
373
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
374 \vskip.5ex
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
375 \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
376 \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
377 \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
378 \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
379 \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
380 \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
381 \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
382
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
383 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
384
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
385 \section{Display}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
386
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
387 \wkey{scroll horizontally, vertically}{< >\, \{ \}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
388 \key{home cursor}{o}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
389 \key{line numbers on/off}{d l}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
390 \key{trail display on/off}{t d}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
391
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
392 \key{scientific notation}{d s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
393 \key{fixed-point notation}{d f}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
394 \key{floating-point (normal) notation}{d n}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
395 \key{group digits with commas}{d g}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
396
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
397 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
398 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
399
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
400 \section{Notations}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
401
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
402 \wkey{scientific notation}{6.02e23}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
403 \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
404 \wkey{fractions}{3:4}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
405 \wkey{complex numbers}{({\it x}, {\it y})}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
406 \wkey{polar complex numbers}{({\it r}; $\theta$)}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
407 \wkey{vectors (commas optional)}{[1, 2, 3]}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
408 \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
409 \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
410 \wkey{interval forms}{[2 ..\ 5)}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
411 \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
412 \wkey{HMS forms}{5@ 30' 0"}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
413 \wkey{date forms}{<Jul 4, 1992>}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
414 \wkey{infinity, indeterminate}{inf\, nan}
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 % Column 3
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 \section{Scientific Functions}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
419
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
420 \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
421 \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
422 \key{sin, cos, tan}{S\, C\, T}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
423 \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
424 \key{inverse, hyperbolic prefix keys}{I\, H}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
425 \key{two-argument arctan}{f T}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
426 \key{degrees, radians modes}{m d\, m r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
427 \key{pi ($\pi$)}{P}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
428
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
429 \key{factorial, double factorial}{!\, k d}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
430 \key{combinations, permutations}{k c\, H k c}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
431 \key{prime factorization}{k f}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
432 \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
433 \key{GCD, LCM}{k g\, k l}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
434 \key{random number, shuffle}{k r\, k h}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
435 \key{minimum, maximum}{f n\, f x}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
436
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
437 \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
438 \key{gamma, beta functions}{f g\, f b}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
439 \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
440 \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
441
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
442 \key{complex magnitude, arg, conjugate}{A\, G\, J}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
443 \key{real, imaginary parts}{f r\, f i}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
444 \key{convert polar/rectangular}{c p}
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 \section{Financial Functions}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
447
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
448 \key{enter percentage}{M-\%}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
449 \key{convert to percentage}{c \%}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
450 \key{percentage change}{b \%}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
451
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
452 \key{present value}{b P}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
453 \key{future value}{b F}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
454 \key{rate of return}{b T}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
455 \key{number of payments}{b \#}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
456 \key{size of payments}{b M}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
457 \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
458
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
459 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
460 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
461
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
462 \key{straight-line depreciation}{b S}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
463 \key{sum-of-years'-digits}{b Y}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
464 \key{double declining balance}{b D}
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 \section{Units}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
467
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
468 \wkey{enter with units}{' 55 mi/hr}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
469 \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
470 \key{convert temperature units}{u t}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
471 \key{simplify units expression}{u s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
472 \key{view units table}{u v}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
473
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
474 Common units:
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
475 \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
476 \kbd{in}, \kbd{ft}, \kbd{mi}, \kbd{mfi};
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
477 \kbd{point}, \kbd{lyr}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
478 \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
479 \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
480 \kbd{tbsp}, \kbd{tsp}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
481 \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
482 \kbd{lb}, \kbd{oz}, \kbd{ton}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
483 \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
484 \kbd{hr}, \kbd{day}, \kbd{wk}}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
485 \iline{temperature: \kbd{degC}, \kbd{degF}, \kbd{K}}
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 % Column 4
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
488
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
489 \newcolumn
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
490 \title{GNU Calc Reference Card}
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 \section{Programmer's Functions}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
493
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
494 \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
495 \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
496 \key{display leading zeros}{d z}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
497 \key{entering non-decimal numbers}{16\#7FFF}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
498
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
499 \key{binary word size}{b w}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
500 \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
501 \key{binary DIFF, NOT}{b d\, b n}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
502 \key{left shift}{b l}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
503 \key{logical right shift}{b r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
504 \key{arithmetic right shift}{b R}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
505
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
506 \key{integer quotient, remainder}{\\\, \%}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
507 \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
508 \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
509
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
510 \section{Variables}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
511
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
512 \lesssectionskip
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
513 Variable names are single digits or whole words.
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
514
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
515 \key{store to variable}{s t}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
516 \key{store and keep on stack}{s s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
517 \key{recall from variable}{s r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
518 \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
519 \key{unstore, exchange variable}{s u\, s x}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
520 \key{edit variable}{s e}
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 \section{Vector Operations}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
523
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
524 \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
525 \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
526 \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
527 \key{concatenate into vector}{|}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
528 \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
529 \key{unpack vector or object}{v u}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
530
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
531 \key{length of vector (list)}{v l}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
532 \key{reverse vector}{v v}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
533 \key{sort, grade vector}{V S\, V G}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
534 \key{histogram of vector data}{V H}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
535 \key{extract vector element}{v r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
536
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
537 \key{matrix determinant, inverse}{V D\, \&}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
538 \key{matrix transpose, trace}{v t\, V T}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
539 \key{cross, dot products}{V C\, *}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
540 \key{identity matrix}{v i}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
541 \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
542
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
543 \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
544 \key{cardinality of set}{V \#}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
545
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
546 \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
547 \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
548 \key{sum rows in matrix}{V R \_ +}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
549 \key{sum columns in matrix}{V R : +}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
550 \key{sum elements, accumulate results}{V U +}
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 % Column 5
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 \section{Algebra}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
555
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
556 \wkey{enter an algebraic formula}{' 2x+3y\^2}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
557 \wkey{enter an equation}{' 2x\^2=18}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
558
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
559 \key{symbolic (vs.\ numeric) mode}{m s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
560 \key{fractions (vs.\ float) mode}{m f}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
561 \key{suppress evaluation of formulas}{m O}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
562 \key{simplify formulas automatically}{m S}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
563 \key{return to default evaluation rules}{m D}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
564
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
565 \key{``Big'' display mode}{d B}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
566 \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
567 \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
568 \key{Unformatted mode}{d U}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
569 \key{Normal language mode}{d N}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
570
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
571 \key{simplify formula}{a s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
572 \key{put formula into rational form}{a n}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
573 \key{evaluate variables in formula}{=}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
574 \key{evaluate numerically}{N}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
575 \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
576 \key{declare properties of variable}{s d}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
577 \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
578 \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
579
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
580 \key{expand, collect terms}{a x\, a c}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
581 \key{factor, partial fractions}{a f\, a a}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
582 \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
583 \key{derivative, integral}{a d\, a i}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
584 \key{taylor series}{a t}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
585
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
586 \key{principal solution to equation(s)}{a S}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
587 \key{list of solutions}{a P}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
588 \key{generic solution}{H a S}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
589 \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
590
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
591 \key{rewrite formula}{a r}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
592 \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
593 \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
594 \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
595 \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
596 \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
597 \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
598 command.}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
599 \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
600 \kbd{let}, \kbd{remember}.}
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 \section{Numerical Computations}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
603
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
604 \key{sum formula over a range}{a +}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
605 \key{product of formula over a range}{a *}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
606 \key{tabulate formula over a range}{a T}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
607 \key{integrate numerically over a range}{a I}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
608 \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
609 \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
610 \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
611
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
612 \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
613 \key{median of data}{H u M}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
614 \key{geometric mean of data}{u G}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
615 \key{sum, product of data}{u +\, u *}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
616 \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
617 \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
618
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
619 % Column 6
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 \section{Selections}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
622
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
623 \key{select subformula under cursor}{j s}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
624 \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
625 \key{select more}{j m}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
626 \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
627
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
628 \key{copy indicated subformula}{j RET}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
629 \key{delete indicated subformula}{j DEL}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
630
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
631 \key{commute selected terms}{j C}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
632 \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
633 \key{distribute, merge selection}{j D\, j M}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
634 \key{isolate selected term in equation}{j I}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
635 \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
636 \key{rewrite selected term}{j r}
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 \section{Graphics}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
639
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
640 \key{graph function or data}{g f}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
641 \key{graph 3D function or data}{g F}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
642 \key{replot current graph}{g p}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
643 \key{print current graph}{g P}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
644 \key{add curve to graph}{g a}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
645 \key{set number of data points}{g N}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
646 \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
647 \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
648 \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
649 \key{close graphics window}{g q}
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 \section{Programming}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
652
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
653 \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
654 \key{replay keyboard macro}{X}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
655 \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
656 \key{if, else, endif}{Z [\, Z :\, Z ]}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
657 \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
658 \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
659 \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
660 \key{save, restore mode settings}{Z `\, Z '}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
661 \key{query user during macro}{Z \#}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
662 \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
663
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
664 \key{define function with formula}{Z F}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
665 \key{edit definition}{Z E}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
666
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
667 \key{record user-defined command permanently}{Z P}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
668 \key{record variable value permanently}{s p}
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
669 \key{record mode settings permanently}{m m}
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 \copyrightnotice
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 \bye
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
674
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
675 % 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
676 % compile-command: "pdftex calccard"
82644
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
677 % End:
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
678
fcd5634482bc Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
679 % arch-tag: a2764f34-ec23-4083-bd5c-53f9e70a5da9