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