annotate etc/refcards/pt-br-refcard.tex @ 85613:ae9da278f53b

(org-publish-attachment): Re-install accidentally deleted change.
author Dan Nicolaescu <dann@ics.uci.edu>
date Wed, 24 Oct 2007 15:50:28 +0000
parents 63495d138f2f
children 107ccd98fa12
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,
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
24 % 2006, 2007 Free Software Foundation, Inc.
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
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
28 % GNU Emacs is free software; you can redistribute it and/or modify
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
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
30 % the Free Software Foundation; either version 3, or (at your option)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
31 % any later version.
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
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
39 % along with GNU Emacs; see the file COPYING. If not, write to
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
40 % the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
41 % Boston, MA 02110-1301, USA.
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 % 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
44 %
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
45 % The final reference card has six columns, three on each side.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
46 % This file can be used to produce it in any of three ways:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
47 % 1 column per page
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
48 % produces six separate pages, each of which needs to be reduced to 80%.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
49 % This gives the best resolution.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
50 % 2 columns per page
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
51 % produces three already-reduced pages.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
52 % You will still need to cut and paste.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
53 % 3 columns per page
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
54 % produces two pages which must be printed sideways to make a
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
55 % ready-to-use 8.5 x 11 inch reference card.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
56 % For this you need a dvi device driver that can print sideways.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
57 % Which mode to use is controlled by setting \columnsperpage above.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
58 %
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
59 % To compile and print this document:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
60 % tex refcard.tex
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
61 % dvips -t landscape refcard.dvi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
62 %
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
63 % Author:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
64 % Stephen Gildea
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
65 % Internet: gildea@stop.mail-abuse.org
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
66 %
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
67 % 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
68 % for their many good ideas.
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 % 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
71
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
72 % 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
73 % 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
74 % the opinions.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
75
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
76
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
77 \def\versionnumber{2.3}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
78 \def\versionyear{2006} % latest update
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
79 \def\versionemacs{22}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
80 \def\year{2007} % latest copyright year
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
81
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
82 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
83 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
84 Permissions on back. v\versionnumber}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
85
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
86 \def\copyrightnotice{
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
87 \vskip 1ex plus 2 fill\begingroup\small
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
88 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
89 \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
90 \centerline{designed by Stephen Gildea}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
91
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
92 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
93 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
94 are preserved on all copies.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
95
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
96 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
97 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
98
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
99 \endgroup}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
100
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
101 % 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
102 % can be scanned without complaint.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
103 \def\bye{\par\vfill\supereject\end}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
104
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
105 \newdimen\intercolumnskip %horizontal space between columns
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
106 \newbox\columna %boxes to hold columns already built
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
107 \newbox\columnb
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 \def\ncolumns{\the\columnsperpage}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
110
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
111 \message{[\ncolumns\space
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
112 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
113
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
114 \def\scaledmag#1{ scaled \magstep #1}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
115
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
116 % 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
117 % 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
118 \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
119 \hsize 4in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
120 \vsize 10in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
121 \voffset -.7in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
122 \font\titlefont=\fontname\tenbf \scaledmag3
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
123 \font\headingfont=\fontname\tenbf \scaledmag2
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
124 \font\smallfont=\fontname\sevenrm
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
125 \font\smallsy=\fontname\sevensy
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
126
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
127 \footline{\hss\folio}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
128 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
129 \else %2 or 3 columns uses prereduced size
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
130 \hsize 3.2in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
131 \if 1\the\letterpaper
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
132 \vsize 7.95in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
133 \else
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
134 \vsize 7.65in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
135 \fi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
136 \hoffset -.75in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
137 \voffset -.745in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
138 \font\titlefont=cmbx10 \scaledmag2
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
139 \font\headingfont=cmbx10 \scaledmag1
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
140 \font\smallfont=cmr6
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
141 \font\smallsy=cmsy6
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
142 \font\eightrm=cmr8
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
143 \font\eightbf=cmbx8
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
144 \font\eightit=cmti8
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
145 \font\eighttt=cmtt8
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
146 \font\eightmi=cmmi8
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
147 \font\eightsy=cmsy8
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
148 \textfont0=\eightrm
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
149 \textfont1=\eightmi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
150 \textfont2=\eightsy
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
151 \def\rm{\eightrm}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
152 \def\bf{\eightbf}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
153 \def\it{\eightit}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
154 \def\tt{\eighttt}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
155 \if 1\the\letterpaper
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
156 \normalbaselineskip=.8\normalbaselineskip
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
157 \else
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
158 \normalbaselineskip=.7\normalbaselineskip
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
159 \fi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
160 \normallineskip=.8\normallineskip
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
161 \normallineskiplimit=.8\normallineskiplimit
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
162 \normalbaselines\rm %make definitions take effect
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
163
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
164 \if 2\ncolumns
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
165 \let\maxcolumn=b
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
166 \footline{\hss\rm\folio\hss}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
167 \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
168 \else \if 3\ncolumns
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
169 \let\maxcolumn=c
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
170 \nopagenumbers
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
171 \else
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
172 \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
173 \errmessage{Illegal number of columns per page}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
174 \fi\fi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
175
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
176 %% \intercolumnskip=.46in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
177 \intercolumnskip=.65in
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
178 \def\abc{a}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
179 \output={% %see The TeXbook page 257
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
180 % 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
181 %\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
182 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
183 \else\if a\abc
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
184 \global\setbox\columna\columnbox \global\def\abc{b}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
185 %% 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
186 \global\setbox\columnb\hbox to -\intercolumnskip{}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
187 \else
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
188 \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
189 \def\multicolumnformat{\shipout\vbox{\makeheadline
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
190 \hbox{\box\columna\hskip\intercolumnskip
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
191 \box\columnb\hskip\intercolumnskip\columnbox}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
192 \makefootline}\advancepageno}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
193 \def\columnbox{\leftline{\pagebody}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
194
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
195 \def\bye{\par\vfill\supereject
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
196 \if a\abc \else\null\vfill\eject\fi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
197 \if a\abc \else\null\vfill\eject\fi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
198 \end}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
199 \fi
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
200
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
201 % 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
202 % we might want to talk about
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
203 \catcode`\^=12
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
204 \catcode`\_=12
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
205
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 \chardef\{=`\{
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
208 \chardef\}=`\}
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 \hyphenation{mini-buf-fer}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
211
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
212 \parindent 0pt
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
213 \parskip 1ex plus .5ex minus .5ex
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 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
216
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
217 % 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
218 % 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
219 \outer\def\newcolumn{\vfill\eject}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
220
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
221 % title - page title. Argument is title text.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
222 \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
223
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
224 % section - new major section. Argument is section name.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
225 \outer\def\section#1{\par\filbreak
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
226 \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
227 \vskip 2ex plus 1ex minus 1.5ex}
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 \newdimen\keyindent
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
230
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
231 % beginindentedkeys...endindentedkeys - key definitions will be
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
232 % 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
233 % definitions, will not.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
234 \def\beginindentedkeys{\keyindent=1em}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
235 \def\endindentedkeys{\keyindent=0em}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
236 \endindentedkeys
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
237
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
238 % paralign - begin paragraph containing an alignment.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
239 % 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
240 % 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
241 \def\paralign{\vskip\parskip\halign}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
242
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
243 % \<...> - surrounds a variable name in a code example
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
244 \def\<#1>{{\it #1\/}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
245
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
246 % 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
247 \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
248
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
249 % 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
250 % 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
251 \def\beginexample{\par\leavevmode\begingroup
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
252 \obeylines\obeyspaces\parskip0pt\tt}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
253 {\obeyspaces\global\let =\ }
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
254 \def\endexample{\endgroup}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
255
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
256 % key - definition of a key.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
257 % \key{description of key}{key-name}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
258 % 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
259 % form near the right margin.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
260 \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
261 {\hsize=.75\hsize\rightskip=1em
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
262 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
263
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
264 \newbox\metaxbox
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
265 \setbox\metaxbox\hbox{\kbd{M-x }}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
266 \newdimen\metaxwidth
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
267 \metaxwidth=\wd\metaxbox
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
268
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
269 % metax - definition of a M-x command.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
270 % \metax{description of command}{M-x command-name}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
271 % 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
272 % 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
273 \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
274 {\hskip\keyindent\relax#1\hfil}%
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
275 \hskip -\metaxwidth minus 1fil
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
276 \kbd{#2}\hfil}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
277
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
278 % threecol - like "key" but with two key names.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
279 % 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
280 \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
281 &\kbd{#3}\hfil\quad\cr}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
282
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 %**end of header
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
285
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
286
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
287 \title{GNU Emacs: Cart\~ao de Refer\^encia}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
288 \centerline{(para vers\~ao \versionemacs)}
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 \section{Iniciando o 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 Para entrar no GNU Emacs, digite: \kbd{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 \section{Saindo do Emacs}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
295
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
296 \key{suspende ou minimiza o Emacs}{C-z}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
297 \key{encerra o Emacs}{C-x C-c}
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 \section{Arquivos}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
300
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
301 \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
302 \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
303 \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
304 \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
305 \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
306 \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
307 \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
308
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
309 \section{Ajuda (Help)}
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 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
312
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
313 \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
314 \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
315
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
316 \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
317 \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
318 \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
319 \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
320
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
321 \section{Recuperando-se de Erros}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
322
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
323 \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
324 \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
325 \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
326 \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
327 \key{redesenha a tela}{C-l}
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 \section{Busca Incremental}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
330
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
331 \key{busca para frente}{C-s}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
332 \key{busca para tr{\'a}s}{C-r}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
333 \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
334 \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
335
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
336 \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
337 \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
338 \key{sai da busca incremental}{RET}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
339 \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
340 \key{encerra a busca}{C-g}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
341
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
342 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
343 \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
344
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
345 \shortcopyrightnotice
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 \section{Movimenta{\c{c}}{\~a}o}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
348
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
349 \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
350 \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
351 \threecol{um caracter}{C-b}{C-f}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
352 \threecol{uma palavra}{M-b}{M-f}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
353 \threecol{uma linha}{C-p}{C-n}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
354 \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
355 \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
356 \threecol{par{\'a}grafo}{M-\{}{M-\}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
357 \threecol{p{\'a}gina}{C-x [}{C-x ]}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
358 \threecol{sexp}{C-M-b}{C-M-f}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
359 \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
360 \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
361 }
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
362
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
363 \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
364 \key{rolar para tela anterior}{M-v}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
365 \key{rolar para esquerda}{C-x <}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
366 \key{rolar para direita}{C-x >}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
367 \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
368
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
369 \section{Cortando e Apagando}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
370
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
371 \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
372 \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
373 \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
374 \threecol{palavra}{M-DEL}{M-d}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
375 \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
376 \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
377 \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
378 }
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
379
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
380 \key{corta {\bf regi{\~a}o}}{C-w}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
381 \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
382 \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
383
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
384 \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
385 \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
386
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
387 \section{Marcando}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
388
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
389 \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
390 \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
391
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
392 \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
393 \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
394 \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
395 \key{marca a {\bf sexp}}{C-M-@}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
396 \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
397 \key{marca todo {\bf buffer}}{C-x h}
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 \section{Busca e Substitui{\c{c}}{\~a}o}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
400
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
401 \key{Substitui interativamente uma string}{M-\%}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
402 % 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
403 % consoles.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
404 \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
405
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
406 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
407
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
408 \key{{\bf substitui} esta, e prossegue}{SPC}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
409 \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
410 \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
411 \key{substitui em todo o texto restante}{!}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
412 \key{{\bf volta} para a palavra anterior}{^}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
413 \key{{\bf encerra}}{RET}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
414 \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
415
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 \section{M{\'u}ltiplas Janelas}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
418
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
419 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
420 para frame.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
421
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
422 {\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
423 \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
424 \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
425 \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
426 \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
427 }}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
428 \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
429
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
430 \key{rola a outra janela}{C-M-v}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
431
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
432 {\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
433 \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
434 \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
435
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
436 \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
437 \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
438 \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
439 \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
440 \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
441 \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
442 }}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
443
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
444 \key{aumenta a janela na vertical}{C-x ^}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
445 \key{estreita a janela}{C-x \{}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
446 \key{alarga a janela}{C-x \}}
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 \section{Formatando}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
449
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
450 \key{identa a {\bf linha} corrente (modo)}{TAB}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
451 \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
452 \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
453 \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
454
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
455 \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
456 \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
457 \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
458 \key{junta a linha com a anterior}{M-^}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
459 \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
460 \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
461
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
462 \key{preenche o par{\'a}grafo}{M-q}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
463 \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
464 \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
465
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
466 \key{formata fonte}{M-o}
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 \section{Mai{\'u}sculas e Min{\'u}sculas}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
469
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
470 \key{Palavra para mai{\'u}sculas}{M-u}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
471 \key{Palavra para min{\'u}sculas}{M-l}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
472 \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
473
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
474 \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
475 \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
476
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
477 \section{O 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 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
480
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
481 \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
482 \key{complete at{\'e} uma palavra}{SPC}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
483 \key{complete e execute}{RET}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
484 \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
485 \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
486 \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
487 \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
488 \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
489 \key{encerra o comando}{C-g}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
490
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
491 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
492 utilizado. Tecle \kbd{F10} para ativar o menu.
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
493
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
494 \newcolumn
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
495 \title{GNU Emacs: Cart\~ao de Refer\^encia}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
496 \centerline{(para vers\~ao \versionemacs)}
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 \section{Buffers}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
499
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
500 \key{seleciona outro buffer}{C-x b}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
501 \key{lista todos buffers}{C-x C-b}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
502 \key{mata um buffer}{C-x k}
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 \section{Transposi{\c{c}}{\~a}o}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
505
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
506 \key{transp{\~o}e {\bf caracteres}}{C-t}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
507 \key{transp{\~o}e {\bf palavras}}{M-t}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
508 \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
509 \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
510
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
511 \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
512
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
513 \key{verifica a palavra corrente}{M-\$}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
514 \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
515 \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
516
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
517 \section{Tags}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
518
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
519 \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
520 \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
521 \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
522
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
523 \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
524 \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
525 \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
526
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
527 \section{Shells}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
528
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
529 \key{executa um comando do shell}{M-!}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
530 \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
531 \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
532 \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
533
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
534 \section{Ret{\^a}ngulos}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
535
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
536 \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
537 \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
538 \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
539 \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
540 \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
541 \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
542
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
543 \section{Abreviaturas}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
544
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
545 \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
546 \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
547 \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
548 \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
549 \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
550
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
551 \key{completa com base em palavras anteriores}{M-/}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
552
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 \section{Express{\~o}es Regulares}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
555
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
556 \key{qualquer caracter exceto nova linha}{. {\rm(dot)}}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
557 \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
558 \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
559 \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
560 \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
561 \key{(``or'')}{\\|}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
562 \key{agrupamento}{\\( {\rm$\ldots$} \\)}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
563 \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
564 \key{quebra de palavra}{\\b}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
565 \key{sem quebra de palavra}{\\B}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
566
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
567 \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
568 \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
569 \threecol{linha}{^}{\$}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
570 \threecol{palavra}{\\<}{\\>}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
571 \threecol{buffer}{\\`}{\\'}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
572
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
573 \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
574 \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
575 \threecol{caracter de sintaxe de palavra}{\\w}{\\W}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
576 \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
577 }
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 \section{Conjuntos de Carac. Internacionais}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
580
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
581 \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
582 \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
583 \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
584 \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
585 \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
586 \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
587
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
588 \section{Info}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
589
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
590 \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
591 \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
592 \beginindentedkeys
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 Movimenta{\c{c}}{\~a}o em um nodo:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
595
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
596 \key{rola para frente}{SPC}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
597 \key{rola para tr{\'a}s}{DEL}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
598 \key{in{\'\i}cio do nodo}{. {\rm (dot)}}
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 Movimenta{\c{c}}{\~a}o entre nodos:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
601
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
602 \key{{\bf pr{\'o}ximo} nodo}{n}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
603 \key{nodo {\bf anterior}}{p}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
604 \key{mover cima {\bf cima}}{u}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
605 \key{seleciona item do menu pelo nome}{m}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
606 \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
607 \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
608 \key{retorna {\'u}ltimo nodo visitado}{l}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
609 \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
610 \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
611 \key{ir para qualquer nodo por nome}{g}
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 Outros:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
614
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
615 \key{executar {\bf tutorial} do Info}{h}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
616 \key{busca pelo assunto no {\'\i}ndice}{i}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
617 \key{busca por express{\~a}o regular}{s}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
618 \key{{\bf sair} Info}{q}
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 \endindentedkeys
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 \section{Registrador}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
623
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
624 \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
625 \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
626
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
627 \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
628 \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
629
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
630 \section{Macros de Teclado}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
631
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
632 \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
633 \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
634 \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
635 \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
636 \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
637 \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
638
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
639 \section{Lidando com Emacs Lisp}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
640
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
641 \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
642 \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
643 \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
644 \key{l{\^e} e avalia o minibuffer}{M-:}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
645 \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
646
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
647 \section{Personaliza{\c{c}}{\~a}o Simples}
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 \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
650
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
651 % 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
652 % customizations and knows Lisp syntax.
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 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
655
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
656 \beginexample%
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
657 (global-set-key "\\C-cg" 'goto-line)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
658 (global-set-key "\\M-\#" 'query-replace-regexp)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
659 \endexample
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 \section{Escrevendo Comandos}
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
662
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
663 \beginexample%
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
664 (defun \<command-name> (\<args>)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
665 "\<documentation>" (interactive "\<template>")
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
666 \<body>)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
667 \endexample
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 Um exemplo:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
670
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
671 \beginexample%
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
672 (defun this-line-to-top-of-window (line)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
673 "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
674 With ARG, put point on line ARG."
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
675 (interactive "P")
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
676 (recenter (if (null line)
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
677 0
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
678 (prefix-numeric-value line))))
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
679 \endexample
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
680
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
681 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
682 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
683 detalhes.
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 \copyrightnotice
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 \bye
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
688
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
689 % 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
690 % compile-command: "pdftex pt-br-refcard"
82668
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
691 % coding: iso-latin-1
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
692 % End:
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
693
a30fc728dcd5 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
694 % arch-tag: 56bf248c-a1f3-443d-93f7-02d7aea67d94