Commit | Line | Data |
---|---|---|
5e56e175 | 1 | % Reference Card for Dired |
0b5546d6 | 2 | |
ab422c4d | 3 | % Copyright (C) 2000-2013 Free Software Foundation, Inc. |
5e56e175 | 4 | |
0b5546d6 GM |
5 | % Author: Evgeny Roubinchtein <eroubinc@u.washington.edu> |
6 | % French translation: Eric Jacoboni | |
7 | ||
5e56e175 GM |
8 | % This file is part of GNU Emacs. |
9 | ||
b83446dd | 10 | % GNU Emacs is free software: you can redistribute it and/or modify |
5e56e175 | 11 | % it under the terms of the GNU General Public License as published by |
b83446dd GM |
12 | % the Free Software Foundation, either version 3 of the License, or |
13 | % (at your option) any later version. | |
5e56e175 GM |
14 | |
15 | % GNU Emacs is distributed in the hope that it will be useful, | |
16 | % but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | % GNU General Public License for more details. | |
19 | ||
20 | % You should have received a copy of the GNU General Public License | |
b83446dd | 21 | % along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
5e56e175 | 22 | |
0b5546d6 GM |
23 | |
24 | % See dired-ref.tex. | |
25 | ||
5e56e175 GM |
26 | %**start of header |
27 | ||
0b5546d6 GM |
28 | % This file can be printed with 1, 2, or 3 columns per page. |
29 | % Specify how many you want here. | |
5e56e175 | 30 | \newcount\columnsperpage |
5e56e175 GM |
31 | \columnsperpage=2 |
32 | ||
7ca3bc2f MC |
33 | % PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for |
34 | % a landscape layout. | |
7ca3bc2f MC |
35 | \input pdflayout.sty |
36 | \pdflayout=(0) | |
37 | ||
dcf8834b | 38 | \input emacsver.tex |
0b5546d6 GM |
39 | |
40 | % Nothing else needs to be changed. | |
5e56e175 GM |
41 | |
42 | \def\shortcopyrightnotice{\vskip 1ex plus 2 fill | |
43 | \centerline{\small \copyright\ \year\ Free Software Foundation, Inc. | |
0b5546d6 | 44 | Permissions au dos.}} |
5e56e175 GM |
45 | |
46 | \def\copyrightnotice{ | |
47 | \vskip 1ex plus 2 fill\begingroup\small | |
48 | \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.} | |
0b5546d6 GM |
49 | \centerline{Pour GNU Emacs version \versionemacs} |
50 | \centerline{Conception de Stephen Gildea} | |
7616b390 | 51 | \centerline{Mis \`a jour pour Dired en Mai 2000 par Evgeny Roubinchtein} |
5e56e175 GM |
52 | \centerline{Traduction fran\c{c}aise d'\'Eric Jacoboni} |
53 | ||
54 | Vous pouvez faire et distribuer des copies de cette carte, pourvu que | |
55 | la notice de copyright et cette note de permission soient pr\'eserv\'ees | |
56 | sur toutes les copies. | |
57 | ||
0b5546d6 | 58 | Pour obtenir des copies du manuel de GNU Emacs: |
5e56e175 | 59 | |
0b5546d6 | 60 | {\tt http://www.gnu.org/software/emacs/\#Manuals} |
5e56e175 GM |
61 | \endgroup} |
62 | ||
63 | % make \bye not \outer so that the \def\bye in the \else clause below | |
64 | % can be scanned without complaint. | |
65 | \def\bye{\par\vfill\supereject\end} | |
66 | ||
67 | \newdimen\intercolumnskip %horizontal space between columns | |
68 | \newbox\columna %boxes to hold columns already built | |
69 | \newbox\columnb | |
70 | ||
71 | \def\ncolumns{\the\columnsperpage} | |
72 | ||
177c0ea7 | 73 | \message{[\ncolumns\space |
5e56e175 GM |
74 | column\if 1\ncolumns\else s\fi\space per page]} |
75 | ||
76 | \def\scaledmag#1{ scaled \magstep #1} | |
77 | ||
78 | % This multi-way format was designed by Stephen Gildea October 1986. | |
79 | % Note that the 1-column format is fontfamily-independent. | |
80 | \if 1\ncolumns %one-column format uses normal size | |
81 | \hsize 4in | |
82 | \vsize 10in | |
83 | \voffset -.7in | |
84 | \font\titlefont=\fontname\tenbf \scaledmag3 | |
85 | \font\headingfont=\fontname\tenbf \scaledmag2 | |
86 | \font\smallfont=\fontname\sevenrm | |
87 | \font\smallsy=\fontname\sevensy | |
88 | ||
89 | \footline{\hss\folio} | |
90 | \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}} | |
91 | \else %2 or 3 columns uses prereduced size | |
92 | \hsize 3.4in | |
01108fab | 93 | \vsize 10in |
5e56e175 GM |
94 | \hoffset -.75in |
95 | \voffset -.745in | |
96 | \font\titlefont=cmbx10 \scaledmag2 | |
97 | \font\headingfont=cmbx10 \scaledmag1 | |
98 | \font\smallfont=cmr6 | |
99 | \font\smallsy=cmsy6 | |
100 | \font\eightrm=cmr8 | |
101 | \font\eightbf=cmbx8 | |
102 | \font\eightit=cmti8 | |
103 | \font\eighttt=cmtt8 | |
104 | \font\eightmi=cmmi8 | |
105 | \font\eightsy=cmsy8 | |
106 | \textfont0=\eightrm | |
107 | \textfont1=\eightmi | |
108 | \textfont2=\eightsy | |
109 | \def\rm{\eightrm} | |
110 | \def\bf{\eightbf} | |
111 | \def\it{\eightit} | |
112 | \def\tt{\eighttt} | |
113 | \normalbaselineskip=.8\normalbaselineskip | |
114 | \normallineskip=.8\normallineskip | |
115 | \normallineskiplimit=.8\normallineskiplimit | |
116 | \normalbaselines\rm %make definitions take effect | |
117 | ||
118 | \if 2\ncolumns | |
119 | \let\maxcolumn=b | |
120 | \footline{\hss\rm\folio\hss} | |
121 | \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}} | |
122 | \else \if 3\ncolumns | |
123 | \let\maxcolumn=c | |
124 | \nopagenumbers | |
125 | \else | |
126 | \errhelp{You must set \columnsperpage equal to 1, 2, or 3.} | |
127 | \errmessage{Illegal number of columns per page} | |
128 | \fi\fi | |
129 | ||
130 | \intercolumnskip=.46in | |
131 | \def\abc{a} | |
132 | \output={% %see The TeXbook page 257 | |
133 | % This next line is useful when designing the layout. | |
134 | %\immediate\write16{Column \folio\abc\space starts with \firstmark} | |
135 | \if \maxcolumn\abc \multicolumnformat \global\def\abc{a} | |
136 | \else\if a\abc | |
137 | \global\setbox\columna\columnbox \global\def\abc{b} | |
138 | %% in case we never use \columnb (two-column mode) | |
139 | \global\setbox\columnb\hbox to -\intercolumnskip{} | |
140 | \else | |
141 | \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi} | |
142 | \def\multicolumnformat{\shipout\vbox{\makeheadline | |
143 | \hbox{\box\columna\hskip\intercolumnskip | |
144 | \box\columnb\hskip\intercolumnskip\columnbox} | |
145 | \makefootline}\advancepageno} | |
146 | \def\columnbox{\leftline{\pagebody}} | |
147 | ||
148 | \def\bye{\par\vfill\supereject | |
149 | \if a\abc \else\null\vfill\eject\fi | |
150 | \if a\abc \else\null\vfill\eject\fi | |
177c0ea7 | 151 | \end} |
5e56e175 GM |
152 | \fi |
153 | ||
154 | % we won't be using math mode much, so redefine some of the characters | |
155 | % we might want to talk about | |
156 | \catcode`\^=12 | |
157 | \catcode`\_=12 | |
158 | ||
159 | \chardef\\=`\\ | |
160 | \chardef\{=`\{ | |
161 | \chardef\}=`\} | |
162 | ||
163 | \hyphenation{mini-buf-fer} | |
164 | \hyphenation{de-le-tion} | |
165 | ||
166 | \parindent 0pt | |
167 | \parskip 1ex plus .5ex minus .5ex | |
168 | ||
169 | \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip} | |
170 | ||
171 | % newcolumn - force a new column. Use sparingly, probably only for | |
172 | % the first column of a page, which should have a title anyway. | |
173 | \outer\def\newcolumn{\vfill\eject} | |
174 | ||
175 | % title - page title. Argument is title text. | |
176 | \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex} | |
177 | ||
178 | % section - new major section. Argument is section name. | |
179 | \outer\def\section#1{\par\filbreak | |
180 | \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}% | |
181 | \vskip 2ex plus 1ex minus 1.5ex} | |
182 | ||
183 | \newdimen\keyindent | |
184 | ||
185 | % beginindentedkeys...endindentedkeys - key definitions will be | |
186 | % indented, but running text, typically used as headings to group | |
187 | % definitions, will not. | |
188 | \def\beginindentedkeys{\keyindent=1em} | |
189 | \def\endindentedkeys{\keyindent=0em} | |
190 | \endindentedkeys | |
191 | ||
192 | % paralign - begin paragraph containing an alignment. | |
193 | % If an \halign is entered while in vertical mode, a parskip is never | |
194 | % inserted. Using \paralign instead of \halign solves this problem. | |
195 | \def\paralign{\vskip\parskip\halign} | |
196 | ||
197 | % \<...> - surrounds a variable name in a code example | |
198 | \def\<#1>{{\it #1\/}} | |
199 | ||
200 | % kbd - argument is characters typed literally. Like the Texinfo command. | |
201 | \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows | |
202 | ||
203 | % beginexample...endexample - surrounds literal text, such a code example. | |
204 | % typeset in a typewriter font with line breaks preserved | |
205 | \def\beginexample{\par\leavevmode\begingroup | |
206 | \obeylines\obeyspaces\parskip0pt\tt} | |
207 | {\obeyspaces\global\let =\ } | |
208 | \def\endexample{\endgroup} | |
209 | ||
210 | % key - definition of a key. | |
211 | % \key{description of key}{key-name} | |
212 | % prints the description left-justified, and the key-name in a \kbd | |
213 | % form near the right margin. | |
01108fab | 214 | % First hfill tweaked from 0.75 to 0.8 to allow for longer descriptions. |
5e56e175 | 215 | \def\key#1#2{\leavevmode\hbox to \hsize{\vtop |
01108fab | 216 | {\hsize=.8\hsize\rightskip=1em |
5e56e175 GM |
217 | \hskip\keyindent\relax#1}\kbd{#2}\hfil}} |
218 | ||
219 | \newbox\metaxbox | |
220 | \setbox\metaxbox\hbox{\kbd{M-x }} | |
221 | \newdimen\metaxwidth | |
222 | \metaxwidth=\wd\metaxbox | |
223 | ||
224 | % metax - definition of a M-x command. | |
225 | % \metax{description of command}{M-x command-name} | |
226 | % Tries to justify the beginning of the command name at the same place | |
227 | % as \key starts the key name. (The "M-x " sticks out to the left.) | |
228 | \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize | |
229 | {\hskip\keyindent\relax#1\hfil}% | |
230 | \hskip -\metaxwidth minus 1fil | |
231 | \kbd{#2}\hfil}} | |
232 | ||
233 | % threecol - like "key" but with two key names. | |
234 | % for example, one for doing the action backward, and one for forward. | |
235 | \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad | |
236 | &\kbd{#3}\hfil\quad\cr} | |
237 | ||
238 | % I cannot figure out how to make all dired-x | |
239 | % commands fit on a page in two-column format | |
240 | \def\dx{\bf (DX)} | |
241 | ||
01108fab GM |
242 | % Set to non-zero to check for layout problems. |
243 | \overfullrule 0pt | |
244 | \nopagenumbers | |
245 | ||
5e56e175 GM |
246 | %**end of header |
247 | \f | |
248 | ||
249 | \title{Carte de r\'ef\'erence de Dired} | |
250 | ||
0b5546d6 | 251 | \centerline{(bas\'e sur Dired de GNU Emacs \versionemacs)} |
5e56e175 GM |
252 | \centerline{Les commandes marqu\'ees par \dx{} n\'ecessitent dired-x} |
253 | ||
254 | % trim this down to fit everything on one page | |
255 | % \section{G\'en\'eral} | |
256 | % Avec dired, vous pouvez \'editer la liste des fichiers d'un r\'epertoire | |
257 | % (et, \'eventuellement, ses r\'epertoires au format 'ls -lR'). | |
258 | ||
259 | % L'\'edition d'un r\'epertoire signifie que vous pouvez visiter, | |
260 | % renommer, copier, compresser, compiler des fichiers. Dans le tampon | |
261 | % d'\'edition, vous pouvez modifier les attributs des fichiers, leur | |
177c0ea7 | 262 | % appliquer des commandes |
5e56e175 GM |
263 |