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