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