annotate etc/refcards/pt-br-refcard.tex @ 102138:3830c0dc1415

Updated gnus manual for mbox rmail.
author Glenn Morris <rgm@gnu.org>
date Fri, 20 Feb 2009 04:31:13 +0000
parents 83a1b016c800
children cbea58d660d2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
82668
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1 % Reference Card for GNU Emacs version 22 on Unix systems
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2 %**start of header
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3 \newcount\columnsperpage
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4 \newcount\letterpaper
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
5
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
6 % This file can be printed with 1, 2, or 3 columns per page (see below).
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
7 % Specify how many you want here.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
8
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
9 \columnsperpage=3
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
10
82872
63495d138f2f Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82668
diff changeset
11 % Set letterpaper to 0 for A4 paper, 1 for letter (US) paper. Useful
82668
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
12 % only when columnsperpage is 2 or 3.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
13
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
14 \letterpaper=0
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
15
82872
63495d138f2f Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82668
diff changeset
16 % PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for
63495d138f2f Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82668
diff changeset
17 % a landscape layout.
63495d138f2f Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82668
diff changeset
18
63495d138f2f Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82668
diff changeset
19 \input pdflayout.sty
63495d138f2f Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82668
diff changeset
20 \pdflayout=(0l)
63495d138f2f Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82668
diff changeset
21
82668
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
22 % Nothing else needs to be changed below this line.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
23 % Copyright (C) 1987, 1993, 1996, 1997, 2002, 2003, 2004,
100972
c90853557b90 Add 2009 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 95010
diff changeset
24 % 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
82668
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
25
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
26 % This file is part of GNU Emacs.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
27
95010
9f4d6f3769da Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
28 % GNU Emacs is free software: you can redistribute it and/or modify
82668
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
29 % it under the terms of the GNU General Public License as published by
95010
9f4d6f3769da Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
30 % the Free Software Foundation, either version 3 of the License, or
9f4d6f3769da Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
31 % (at your option) any later version.
82668
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
32
a30fc728dcd5 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,
a30fc728dcd5 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
a30fc728dcd5 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
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
36 % GNU General Public License for more details.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
37
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
38 % You should have received a copy of the GNU General Public License
95010
9f4d6f3769da Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
39 % along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
82668
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
40
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
41 % This file is intended to be processed by plain TeX (TeX82).
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
42 %
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
43 % The final reference card has six columns, three on each side.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
44 % This file can be used to produce it in any of three ways:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
45 % 1 column per page
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
46 % produces six separate pages, each of which needs to be reduced to 80%.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
47 % This gives the best resolution.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
48 % 2 columns per page
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
49 % produces three already-reduced pages.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
50 % You will still need to cut and paste.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
51 % 3 columns per page
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
52 % produces two pages which must be printed sideways to make a
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
53 % ready-to-use 8.5 x 11 inch reference card.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
54 % For this you need a dvi device driver that can print sideways.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
55 % Which mode to use is controlled by setting \columnsperpage above.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
56 %
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
57 % To compile and print this document:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
58 % tex refcard.tex
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
59 % dvips -t landscape refcard.dvi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
60 %
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
61 % Author:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
62 % Stephen Gildea
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
63 % Internet: gildea@stop.mail-abuse.org
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
64 %
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
65 % Thanks to Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
66 % for their many good ideas.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
67
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
68 % If there were room, it would be nice to see a section on Dired.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
69
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
70 % Translated from English to Portuguese by Rodrigo Real, send comments
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
71 % and suggestions to rreal@ucpel.tche.br. Thanks to Mario Goulart for
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
72 % the opinions.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
73
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
74
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
75 \def\versionnumber{2.3}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
76 \def\versionyear{2006} % latest update
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
77 \def\versionemacs{22}
100975
83a1b016c800 Update printed copyright year to 2009.
Glenn Morris <rgm@gnu.org>
parents: 100972
diff changeset
78 \def\year{2009} % latest copyright year
82668
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
79
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
80 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
81 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
82 Permissions on back. v\versionnumber}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
83
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
84 \def\copyrightnotice{
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
85 \vskip 1ex plus 2 fill\begingroup\small
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
86 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
87 \centerline{v\versionnumber{} for GNU Emacs version \versionemacs, \versionyear}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
88 \centerline{designed by Stephen Gildea}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
89
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
90 Permission is granted to make and distribute copies of
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
91 this card provided the copyright notice and this permission notice
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
92 are preserved on all copies.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
93
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
94 For copies of the GNU Emacs manual, write to the Free Software
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
95 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
96
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
97 \endgroup}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
98
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
99 % make \bye not \outer so that the \def\bye in the \else clause below
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
100 % can be scanned without complaint.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
101 \def\bye{\par\vfill\supereject\end}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
102
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
103 \newdimen\intercolumnskip %horizontal space between columns
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
104 \newbox\columna %boxes to hold columns already built
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
105 \newbox\columnb
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
106
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
107 \def\ncolumns{\the\columnsperpage}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
108
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
109 \message{[\ncolumns\space
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
110 column\if 1\ncolumns\else s\fi\space per page]}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
111
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
112 \def\scaledmag#1{ scaled \magstep #1}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
113
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
114 % This multi-way format was designed by Stephen Gildea October 1986.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
115 % Note that the 1-column format is fontfamily-independent.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
116 \if 1\ncolumns %one-column format uses normal size
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
117 \hsize 4in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
118 \vsize 10in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
119 \voffset -.7in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
120 \font\titlefont=\fontname\tenbf \scaledmag3
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
121 \font\headingfont=\fontname\tenbf \scaledmag2
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
122 \font\smallfont=\fontname\sevenrm
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
123 \font\smallsy=\fontname\sevensy
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
124
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
125 \footline{\hss\folio}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
126 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
127 \else %2 or 3 columns uses prereduced size
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
128 \hsize 3.2in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
129 \if 1\the\letterpaper
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
130 \vsize 7.95in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
131 \else
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
132 \vsize 7.65in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
133 \fi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
134 \hoffset -.75in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
135 \voffset -.745in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
136 \font\titlefont=cmbx10 \scaledmag2
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
137 \font\headingfont=cmbx10 \scaledmag1
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
138 \font\smallfont=cmr6
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
139 \font\smallsy=cmsy6
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
140 \font\eightrm=cmr8
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
141 \font\eightbf=cmbx8
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
142 \font\eightit=cmti8
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
143 \font\eighttt=cmtt8
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
144 \font\eightmi=cmmi8
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
145 \font\eightsy=cmsy8
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
146 \textfont0=\eightrm
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
147 \textfont1=\eightmi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
148 \textfont2=\eightsy
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
149 \def\rm{\eightrm}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
150 \def\bf{\eightbf}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
151 \def\it{\eightit}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
152 \def\tt{\eighttt}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
153 \if 1\the\letterpaper
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
154 \normalbaselineskip=.8\normalbaselineskip
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
155 \else
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
156 \normalbaselineskip=.7\normalbaselineskip
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
157 \fi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
158 \normallineskip=.8\normallineskip
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
159 \normallineskiplimit=.8\normallineskiplimit
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
160 \normalbaselines\rm %make definitions take effect
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
161
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
162 \if 2\ncolumns
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
163 \let\maxcolumn=b
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
164 \footline{\hss\rm\folio\hss}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
165 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
166 \else \if 3\ncolumns
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
167 \let\maxcolumn=c
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
168 \nopagenumbers
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
169 \else
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
170 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
171 \errmessage{Illegal number of columns per page}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
172 \fi\fi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
173
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
174 %% \intercolumnskip=.46in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
175 \intercolumnskip=.65in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
176 \def\abc{a}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
177 \output={% %see The TeXbook page 257
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
178 % This next line is useful when designing the layout.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
179 %\immediate\write16{Column \folio\abc\space starts with \firstmark}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
180 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
181 \else\if a\abc
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
182 \global\setbox\columna\columnbox \global\def\abc{b}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
183 %% in case we never use \columnb (two-column mode)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
184 \global\setbox\columnb\hbox to -\intercolumnskip{}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
185 \else
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
186 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
187 \def\multicolumnformat{\shipout\vbox{\makeheadline
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
188 \hbox{\box\columna\hskip\intercolumnskip
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
189 \box\columnb\hskip\intercolumnskip\columnbox}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
190 \makefootline}\advancepageno}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
191 \def\columnbox{\leftline{\pagebody}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
192
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
193 \def\bye{\par\vfill\supereject
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
194 \if a\abc \else\null\vfill\eject\fi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
195 \if a\abc \else\null\vfill\eject\fi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
196 \end}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
197 \fi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
198
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
199 % we won't be using math mode much, so redefine some of the characters
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
200 % we might want to talk about
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
201 \catcode`\^=12
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
202 \catcode`\_=12
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
203
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
204 \chardef\\=`\\
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
205 \chardef\{=`\{
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
206 \chardef\}=`\}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
207
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
208 \hyphenation{mini-buf-fer}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
209
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
210 \parindent 0pt
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
211 \parskip 1ex plus .5ex minus .5ex
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
212
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
213 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
214
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
215 % newcolumn - force a new column. Use sparingly, probably only for
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
216 % the first column of a page, which should have a title anyway.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
217 \outer\def\newcolumn{\vfill\eject}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
218
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
219 % title - page title. Argument is title text.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
220 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
221
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
222 % section - new major section. Argument is section name.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
223 \outer\def\section#1{\par\filbreak
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
224 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
225 \vskip 2ex plus 1ex minus 1.5ex}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
226
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
227 \newdimen\keyindent
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
228
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
229 % beginindentedkeys...endindentedkeys - key definitions will be
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
230 % indented, but running text, typically used as headings to group
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
231 % definitions, will not.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
232 \def\beginindentedkeys{\keyindent=1em}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
233 \def\endindentedkeys{\keyindent=0em}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
234 \endindentedkeys
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
235
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
236 % paralign - begin paragraph containing an alignment.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
237 % If an \halign is entered while in vertical mode, a parskip is never
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
238 % inserted. Using \paralign instead of \halign solves this problem.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
239 \def\paralign{\vskip\parskip\halign}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
240
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
241 % \<...> - surrounds a variable name in a code example
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
242 \def\<#1>{{\it #1\/}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
243
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
244 % kbd - argument is characters typed literally. Like the Texinfo command.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
245 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
246
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
247 % beginexample...endexample - surrounds literal text, such a code example.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
248 % typeset in a typewriter font with line breaks preserved
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
249 \def\beginexample{\par\leavevmode\begingroup
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
250 \obeylines\obeyspaces\parskip0pt\tt}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
251 {\obeyspaces\global\let =\ }
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
252 \def\endexample{\endgroup}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
253
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
254 % key - definition of a key.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
255 % \key{description of key}{key-name}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
256 % prints the description left-justified, and the key-name in a \kbd
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
257 % form near the right margin.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
258 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
259 {\hsize=.75\hsize\rightskip=1em
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
260 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
261
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
262 \newbox\metaxbox
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
263 \setbox\metaxbox\hbox{\kbd{M-x }}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
264 \newdimen\metaxwidth
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
265 \metaxwidth=\wd\metaxbox
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
266
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
267 % metax - definition of a M-x command.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
268 % \metax{description of command}{M-x command-name}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
269 % Tries to justify the beginning of the command name at the same place
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
270 % as \key starts the key name. (The "M-x " sticks out to the left.)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
271 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
272 {\hskip\keyindent\relax#1\hfil}%
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
273 \hskip -\metaxwidth minus 1fil
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
274 \kbd{#2}\hfil}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
275
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
276 % threecol - like "key" but with two key names.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
277 % for example, one for doing the action backward, and one for forward.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
278 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
279 &\kbd{#3}\hfil\quad\cr}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
280
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
281
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
282 %**end of header
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
283
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
284
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
285 \title{GNU Emacs: Cart\~ao de Refer\^encia}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
286 \centerline{(para vers\~ao \versionemacs)}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
287
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
288 \section{Iniciando o Emacs}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
289
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
290 Para entrar no GNU Emacs, digite: \kbd{emacs}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
291
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
292 \section{Saindo do Emacs}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
293
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
294 \key{suspende ou minimiza o Emacs}{C-z}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
295 \key{encerra o Emacs}{C-x C-c}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
296
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
297 \section{Arquivos}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
298
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
299 \key{{\bf abre} um arquivo}{C-x C-f}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
300 \key{{\bf salva} um arquivo em disco}{C-x C-s}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
301 \key{salva {\bf todos} arquivos abertos}{C-x s}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
302 \key{{\bf insere} outro arquivo neste buffer}{C-x i}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
303 \key{substitui este arquivo por outro}{C-x C-v}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
304 \key{salva o buffer em um arquivo especificado}{C-x C-w}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
305 \key{alterna o estado de somente leitura do buffer}{C-x C-q}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
306
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
307 \section{Ajuda (Help)}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
308
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
309 Tecle \kbd{C-h} (ou \kbd{F1}) e siga as instru{\c{c}}{\~o}es.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
310
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
311 \key{remove a janela de ajuda}{C-x 1}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
312 \key{rola a janela de ajuda}{C-M-v}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
313
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
314 \key{apropos: mostra comandos que casam com a string}{C-h a}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
315 \key{descreve fun{\c{c}}{\~a}o associada a teclas}{C-h k}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
316 \key{descreve uma fun{\c{c}}{\~a}o}{C-h f}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
317 \key{busca informa{\c{c}}{\~o}es espec{\'\i}ficas do modo}{C-h m}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
318
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
319 \section{Recuperando-se de Erros}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
320
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
321 \key{{\bf aborta} uma opera{\c{c}}{\~a}o}{C-g}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
322 \metax{{\bf recupera} arquivos ap{\'o}s crash}{M-x recover-session}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
323 \metax{desfaz uma altera{\c{c}}{\~a}o ({\bf undo})}{C-x u, C-_ {\rm or} C-/}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
324 \metax{restaura um buffer para o arquivo}{M-x revert-buffer}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
325 \key{redesenha a tela}{C-l}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
326
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
327 \section{Busca Incremental}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
328
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
329 \key{busca para frente}{C-s}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
330 \key{busca para tr{\'a}s}{C-r}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
331 \key{busca por express{\~a}o regular}{C-M-s}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
332 \key{busca por express{\~a}o regular para tr{\'a}s}{C-M-r}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
333
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
334 \key{seleciona a string de pesquisa anterior}{M-p}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
335 \key{seleciona a string seguinte de pesquisa}{M-n}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
336 \key{sai da busca incremental}{RET}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
337 \key{desfaz o efeito do {\'u}ltimo caracter}{DEL}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
338 \key{encerra a busca}{C-g}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
339
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
340 Use \kbd{C-s} ou \kbd{C-r} novamente para repetir a busca.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
341 \kbd{C-g} cancela apenas o que ainda n{\~a}o foi feito.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
342
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
343 \shortcopyrightnotice
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
344
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
345 \section{Movimenta{\c{c}}{\~a}o}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
346
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
347 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
348 \threecol{{\bf avan{\c{c}}ar}}{{\bf tr{\'a}s}}{{\bf frente}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
349 \threecol{um caracter}{C-b}{C-f}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
350 \threecol{uma palavra}{M-b}{M-f}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
351 \threecol{uma linha}{C-p}{C-n}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
352 \threecol{para in{\'\i}cio ou fim de linha}{C-a}{C-e}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
353 \threecol{senten{\c{c}}a}{M-a}{M-e}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
354 \threecol{par{\'a}grafo}{M-\{}{M-\}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
355 \threecol{p{\'a}gina}{C-x [}{C-x ]}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
356 \threecol{sexp}{C-M-b}{C-M-f}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
357 \threecol{fun{\c{c}}{\~a}o}{C-M-a}{C-M-e}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
358 \threecol{para in{\'\i}cio ou fim do buffer}{M-<}{M->}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
359 }
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
360
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
361 \key{rolar para pr{\'o}xima tela}{C-v}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
362 \key{rolar para tela anterior}{M-v}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
363 \key{rolar para esquerda}{C-x <}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
364 \key{rolar para direita}{C-x >}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
365 \key{rolar a linha corrente para o centro da tela}{C-u C-l}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
366
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
367 \section{Cortando e Apagando}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
368
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
369 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
370 \threecol{{\bf entidade a cortar}}{{\bf tr{\'a}s}}{{\bf frente}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
371 \threecol{caracter (apaga, n{\~a}o corta)}{DEL}{C-d}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
372 \threecol{palavra}{M-DEL}{M-d}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
373 \threecol{linha (at{\'e} o final)}{M-0 C-k}{C-k}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
374 \threecol{senten{\c{c}}a}{C-x DEL}{M-k}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
375 \threecol{sexp}{M-- C-M-k}{C-M-k}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
376 }
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
377
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
378 \key{corta {\bf regi{\~a}o}}{C-w}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
379 \key{copia a {\bf regi{\~a}o}}{M-w}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
380 \key{cortar at{\'e} a pr{\'o}xima ocorr{\^e}ncia de {\it char}}{M-z {\it char}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
381
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
382 \key{colar a {\'u}ltima coisa cortada}{C-y}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
383 \key{substitui a {\'u}lt. colagem pela c{\'o}pia anterior}{M-y}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
384
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
385 \section{Marcando}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
386
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
387 \key{posiciona a marca aqui}{C-@ {\rm or} C-SPC}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
388 \key{troca a marca pelo ponto e vice-versa}{C-x C-x}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
389
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
390 \key{coloca a marca {\it arg\/} {\bf palavras} adiante}{M-@}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
391 \key{marca o {\bf par{\'a}grafo}}{M-h}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
392 \key{marca a {\bf p{\'a}gina}}{C-x C-p}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
393 \key{marca a {\bf sexp}}{C-M-@}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
394 \key{marca uma {\bf fun{\c{c}}{\~a}o}}{C-M-h}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
395 \key{marca todo {\bf buffer}}{C-x h}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
396
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
397 \section{Busca e Substitui{\c{c}}{\~a}o}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
398
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
399 \key{Substitui interativamente uma string}{M-\%}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
400 % query-replace-regexp is bound to C-M-% but that can't be typed on
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
401 % consoles.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
402 \metax{usando express{\~a}o regular}{M-x query-replace-regexp}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
403
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
404 Respostas v{\'a}lidas no modo de busca e substitui{\c{c}}{\~a}o
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
405
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
406 \key{{\bf substitui} esta, e prossegue}{SPC}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
407 \key{substitui esta e entrada e n{\~a}o avan{\c{c}}a}{,}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
408 \key{{\bf pula} para a pr{\'o}xima sem substituir}{DEL}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
409 \key{substitui em todo o texto restante}{!}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
410 \key{{\bf volta} para a palavra anterior}{^}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
411 \key{{\bf encerra}}{RET}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
412 \key{entra na edi{\c{c}}{\~a}o recursiva (\kbd{C-M-c} para sair)}{C-r}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
413
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
414
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
415 \section{M{\'u}ltiplas Janelas}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
416
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
417 Quando forem mostrados 2 comandos, o segundo tem comportamento similar
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
418 para frame.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
419
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
420 {\setbox0=\hbox{\kbd{0}}\advance\hsize by 0\wd0
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
421 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
422 \threecol{elimina todas outras janelas}{C-x 1\ \ \ \ }{C-x 5 1}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
423 \threecol{divide a janela, acima e abaixo}{C-x 2\ \ \ \ }{C-x 5 2}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
424 \threecol{elimina esta janela}{C-x 0\ \ \ \ }{C-x 5 0}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
425 }}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
426 \key{divide a janela, lado a lado}{C-x 3}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
427
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
428 \key{rola a outra janela}{C-M-v}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
429
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
430 {\setbox0=\hbox{\kbd{0}}\advance\hsize by 2\wd0
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
431 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
432 \threecol{leva o cursor para outra janela}{C-x o}{C-x 5 o}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
433
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
434 \threecol{seleciona um buffer em outra janela}{C-x 4 b}{C-x 5 b}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
435 \threecol{mostra um buffer em outra janela}{C-x 4 C-o}{C-x 5 C-o}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
436 \threecol{busca um arquivo em outra janela}{C-x 4 f}{C-x 5 f}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
437 \threecol{busca arquivo (ro) em outra janela}{C-x 4 r}{C-x 5 r}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
438 \threecol{executa Dired em outra janela}{C-x 4 d}{C-x 5 d}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
439 \threecol{busca tag em outra janela}{C-x 4 .}{C-x 5 .}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
440 }}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
441
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
442 \key{aumenta a janela na vertical}{C-x ^}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
443 \key{estreita a janela}{C-x \{}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
444 \key{alarga a janela}{C-x \}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
445
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
446 \section{Formatando}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
447
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
448 \key{identa a {\bf linha} corrente (modo)}{TAB}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
449 \key{identa a {\bf regi{\~a}o} (modo)}{C-M-\\}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
450 \key{identa a {\bf sexp} (modo)}{C-M-q}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
451 \key{identa regi{\~a}o rigidamente {\it arg\/} colunas}{C-x TAB}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
452
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
453 \key{insere uma nova linha ap{\'o}s o ponto}{C-o}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
454 \key{move o restante da linha para baixo}{C-M-o}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
455 \key{apaga linhas em branco em torno do ponto}{C-x C-o}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
456 \key{junta a linha com a anterior}{M-^}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
457 \key{apaga todos brancos em torno do ponto}{M-\\}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
458 \key{insere um espa{\c{c}}o em branco}{M-SPC}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
459
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
460 \key{preenche o par{\'a}grafo}{M-q}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
461 \key{define a coluna limite de preenchimento}{C-x f}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
462 \key{define um prefixo para cada linha}{C-x .}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
463
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
464 \key{formata fonte}{M-o}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
465
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
466 \section{Mai{\'u}sculas e Min{\'u}sculas}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
467
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
468 \key{Palavra para mai{\'u}sculas}{M-u}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
469 \key{Palavra para min{\'u}sculas}{M-l}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
470 \key{Primeira letra mai{\'u}scula (capitalize)}{M-c}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
471
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
472 \key{Regi{\~a}o para mai{\'u}sculas}{C-x C-u}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
473 \key{Regi{\~a}o para min{\'u}sculas}{C-x C-l}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
474
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
475 \section{O Minibuffer}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
476
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
477 As teclas seguintes s{\~a}o definidas no minibuffer.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
478
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
479 \key{complete o m{\'a}ximo possi{\'\i}vel}{TAB}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
480 \key{complete at{\'e} uma palavra}{SPC}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
481 \key{complete e execute}{RET}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
482 \key{mostre as op{\c{c}}{\~o}es para completar}{?}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
483 \key{busca a entrada anterior no minibuffer}{M-p}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
484 \key{busca a pr{\'o}xima entrada no minibuffer ou o default}{M-n}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
485 \key{busca regexp no hist{\'o}rico para tr{\'a}s}{M-r}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
486 \key{busca regexp no hist{\'o}rico para frente}{M-s}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
487 \key{encerra o comando}{C-g}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
488
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
489 Tecle \kbd{C-x ESC ESC} para editar e repetir o {\'u}ltimo comando
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
490 utilizado. Tecle \kbd{F10} para ativar o menu.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
491
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
492 \newcolumn
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
493 \title{GNU Emacs: Cart\~ao de Refer\^encia}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
494 \centerline{(para vers\~ao \versionemacs)}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
495
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
496 \section{Buffers}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
497
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
498 \key{seleciona outro buffer}{C-x b}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
499 \key{lista todos buffers}{C-x C-b}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
500 \key{mata um buffer}{C-x k}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
501
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
502 \section{Transposi{\c{c}}{\~a}o}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
503
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
504 \key{transp{\~o}e {\bf caracteres}}{C-t}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
505 \key{transp{\~o}e {\bf palavras}}{M-t}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
506 \key{transp{\~o}e {\bf linhas}}{C-x C-t}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
507 \key{transp{\~o}e {\bf sexps}}{C-M-t}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
508
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
509 \section{Verifica{\c{c}}{\~a}o Ortogr{\'a}fica}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
510
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
511 \key{verifica a palavra corrente}{M-\$}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
512 \metax{verifica todas palavras de uma regi{\~a}o}{M-x ispell-region}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
513 \metax{verifica todo o buffer}{M-x ispell-buffer}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
514
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
515 \section{Tags}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
516
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
517 \key{busca uma tag (uma defini{\c{c}}{\~a}o)}{M-.}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
518 \key{encontra a pr{\'o}xima ocorr{\^e}ncia da tag}{C-u M-.}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
519 \metax{especifica um novo arquivo de tags}{M-x visit-tags-table}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
520
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
521 \metax{busca por regexp em todos arquivos}{M-x tags-search}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
522 \metax{busca e subst. em todos arquivos}{M-x tags-query-replace}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
523 \key{continua a {\'u}ltima busca ou busca e substitui{\c{c}}{\~a}o}{M-,}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
524
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
525 \section{Shells}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
526
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
527 \key{executa um comando do shell}{M-!}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
528 \key{executa um comando do shell na regi{\~a}o}{M-|}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
529 \key{filtra uma regi{\~a}o por um comando do shell}{C-u M-|}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
530 \key{inicia um shell na janela \kbd{*shell*}}{M-x shell}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
531
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
532 \section{Ret{\^a}ngulos}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
533
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
534 \key{copia o ret{\^a}ngulo para o registrador}{C-x r r}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
535 \key{corta o ret{\^a}ngulo}{C-x r k}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
536 \key{cola o ret{\^a}ngulo}{C-x r y}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
537 \key{abre o ret{\^a}ngulo, move o texto para direita}{C-x r o}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
538 \key{troca por espa{\c{c}}os o conte{\'u}do do ret{\^a}ngulo}{C-x r c}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
539 \key{antep{\~o}e uma linha a string}{C-x r t}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
540
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
541 \section{Abreviaturas}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
542
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
543 \key{adiciona uma abreviatura global}{C-x a g}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
544 \key{adiciona abreviatura ao modo local}{C-x a l}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
545 \key{adiciona globalmente expans{\~a}o de abrev.}{C-x a i g}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
546 \key{adiciona localmente expans{\~a}o de abrev.}{C-x a i l}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
547 \key{explicitamente expande uma abrev}{C-x a e}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
548
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
549 \key{completa com base em palavras anteriores}{M-/}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
550
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
551
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
552 \section{Express{\~o}es Regulares}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
553
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
554 \key{qualquer caracter exceto nova linha}{. {\rm(dot)}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
555 \key{zero ou mais repeti{\c{c}}{\~o}es}{*}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
556 \key{uma ou mais repeti{\c{c}}{\~o}es}{+}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
557 \key{zero ou uma repeti{\c{c}}{\~a}o}{?}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
558 \key{protege o caracter especial {\it c\/}}{\\{\it c}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
559 \key{(``or'')}{\\|}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
560 \key{agrupamento}{\\( {\rm$\ldots$} \\)}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
561 \key{mesmo texto que {\it n\/}-{\'e}simo grupo}{\\{\it n}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
562 \key{quebra de palavra}{\\b}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
563 \key{sem quebra de palavra}{\\B}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
564
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
565 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
566 \threecol{{\bf entidade}}{{\bf casa in{\'\i}cio}}{{\bf casa fim}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
567 \threecol{linha}{^}{\$}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
568 \threecol{palavra}{\\<}{\\>}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
569 \threecol{buffer}{\\`}{\\'}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
570
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
571 \threecol{{\bf classe de caracteres}}{{\bf casa esses}}{{\bf casa os outros}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
572 \threecol{conjunto expl{\'\i}cito}{[ {\rm$\ldots$} ]}{[^ {\rm$\ldots$} ]}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
573 \threecol{caracter de sintaxe de palavra}{\\w}{\\W}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
574 \threecol{caracter de sintaxe de {\it c}}{\\s{\it c}}{\\S{\it c}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
575 }
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
576
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
577 \section{Conjuntos de Carac. Internacionais}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
578
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
579 \key{especifica uma l{\'\i}ngua principal}{C-x RET l}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
580 \metax{mostra todos m{\'e}todos de inser{\c{c}}{\~a}o}{M-x list-input-methods}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
581 \key{habilita/desabilita um m{\'e}todo de inser{\c{c}}{\~a}o}{C-\\}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
582 \key{determina o sistema de codifica{\c{c}}{\~a}o}{C-x RET c}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
583 \metax{mostra sistemas de codifica{\c{c}}{\~a}o}{M-x list-coding-systems}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
584 \metax{escolhe a codifica{\c{c}}{\~a}o preferida}{M-x prefer-coding-system}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
585
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
586 \section{Info}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
587
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
588 \key{entra no leitor de Info}{C-h i}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
589 \key{busca fun{\c{c}}{\~a}o ou arquivo no Info}{C-h S}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
590 \beginindentedkeys
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
591
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
592 Movimenta{\c{c}}{\~a}o em um nodo:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
593
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
594 \key{rola para frente}{SPC}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
595 \key{rola para tr{\'a}s}{DEL}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
596 \key{in{\'\i}cio do nodo}{. {\rm (dot)}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
597
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
598 Movimenta{\c{c}}{\~a}o entre nodos:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
599
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
600 \key{{\bf pr{\'o}ximo} nodo}{n}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
601 \key{nodo {\bf anterior}}{p}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
602 \key{mover cima {\bf cima}}{u}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
603 \key{seleciona item do menu pelo nome}{m}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
604 \key{seleciona {\it n\/}-{\'e}simo item do menu}{{\it n}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
605 \key{segue refer{\^e}ncia cruzada (retorna com \kbd{l})}{f}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
606 \key{retorna {\'u}ltimo nodo visitado}{l}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
607 \key{retorna ao diret{\'o}rio de nodos}{d}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
608 \key{ir para o topo do arquivo Info}{t}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
609 \key{ir para qualquer nodo por nome}{g}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
610
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
611 Outros:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
612
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
613 \key{executar {\bf tutorial} do Info}{h}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
614 \key{busca pelo assunto no {\'\i}ndice}{i}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
615 \key{busca por express{\~a}o regular}{s}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
616 \key{{\bf sair} Info}{q}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
617
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
618 \endindentedkeys
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
619
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
620 \section{Registrador}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
621
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
622 \key{salva regi{\~a}o em um registrador}{C-x r s}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
623 \key{insere o conte{\'u}do do registrador no buffer}{C-x r i}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
624
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
625 \key{salva valor do ponto no registrador}{C-x r SPC}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
626 \key{salta para o ponto salvo no registrador}{C-x r j}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
627
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
628 \section{Macros de Teclado}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
629
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
630 \key{{\bf inicia} a defini{\c{c}}{\~a}o de uma macro}{C-x (}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
631 \key{{\bf encerra} a defini{\c{c}}{\~a}o de uma macro}{C-x )}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
632 \key{{\bf executa} a {\'u}ltima macro definida}{C-x e}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
633 \key{adiciona a {\'u}ltima macro definida}{C-u C-x (}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
634 \metax{nomeia a {\'u}ltima macro definida}{M-x name-last-kbd-macro}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
635 \metax{insere uma defini{\c{c}}{\~a}o em Lisp}{M-x insert-kbd-macro}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
636
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
637 \section{Lidando com Emacs Lisp}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
638
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
639 \key{avalia {\bf sexp} antes do ponto}{C-x C-e}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
640 \key{avalia a {\bf defun} corrente}{C-M-x}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
641 \metax{avalia a {\bf regi{\~a}o}}{M-x eval-region}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
642 \key{l{\^e} e avalia o minibuffer}{M-:}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
643 \metax{carrega do diret{\'o}rio padr{\~a}o do sistema}{M-x load-library}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
644
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
645 \section{Personaliza{\c{c}}{\~a}o Simples}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
646
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
647 \metax{personaliza vari{\'a}veis e fontes}{M-x customize}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
648
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
649 % The intended audience here is the person who wants to make simple
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
650 % customizations and knows Lisp syntax.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
651
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
652 Fazendo teclas de atalho globais em Emacs Lisp (exemplos):
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
653
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
654 \beginexample%
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
655 (global-set-key "\\C-cg" 'goto-line)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
656 (global-set-key "\\M-\#" 'query-replace-regexp)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
657 \endexample
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
658
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
659 \section{Escrevendo Comandos}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
660
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
661 \beginexample%
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
662 (defun \<command-name> (\<args>)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
663 "\<documentation>" (interactive "\<template>")
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
664 \<body>)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
665 \endexample
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
666
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
667 Um exemplo:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
668
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
669 \beginexample%
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
670 (defun this-line-to-top-of-window (line)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
671 "Reposition line point is on to top of window.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
672 With ARG, put point on line ARG."
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
673 (interactive "P")
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
674 (recenter (if (null line)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
675 0
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
676 (prefix-numeric-value line))))
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
677 \endexample
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
678
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
679 A especifica{\c{c}}{\~a}o \kbd{interactive} explica como ler
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
680 interativamente argumentos. Tecle \kbd{C-h f interactive} para mais
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
681 detalhes.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
682
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
683 \copyrightnotice
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
684
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
685 \bye
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
686
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
687 % Local variables:
82872
63495d138f2f Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82668
diff changeset
688 % compile-command: "pdftex pt-br-refcard"
82668
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
689 % coding: iso-latin-1
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
690 % End:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
691
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
692 % arch-tag: 56bf248c-a1f3-443d-93f7-02d7aea67d94