Fix typo in declaration
[emacs.git] / etc / refcards / cs-dired-ref.tex
blobeaad988e396300e1f48c5965c18f766c03ab7de4
1 % Reference Card for Dired -*- coding: iso-latin-2 -*-
3 % Copyright (C) 2000-2013 Free Software Foundation, Inc.
5 % Author: Evgeny Roubinchtein <eroubinc@u.washington.edu>
6 % Czech translation: Pavel Janík <Pavel@Janik.cz>, March 2001
8 % This file is part of GNU Emacs.
10 % GNU Emacs is free software: you can redistribute it and/or modify
11 % it under the terms of the GNU General Public License as published by
12 % the Free Software Foundation, either version 3 of the License, or
13 % (at your option) any later version.
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.
20 % You should have received a copy of the GNU General Public License
21 % along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24 % See dired-ref.tex.
26 % Process the file with `csplain' from the `CSTeX' distribution (included
27 % e.g. in the TeX Live CD).
29 %**start of header
31 % Czech hyphenation rules applied
32 \chyph
34 % This file can be printed with 1, 2, or 3 columns per page.
35 % Specify how many you want here.
36 \newcount\columnsperpage
37 \columnsperpage=2
39 % PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for
40 % a landscape layout.
41 \input pdflayout.sty
42 \pdflayout=(0)
44 \input emacsver.tex
46 % Nothing else needs to be changed.
48 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
49 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
50 Permissions on back.}}
52 \def\copyrightnotice{
53 \vskip 1ex plus 2 fill\begingroup\small
54 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
55 \centerline{For GNU Emacs version \versionemacs}
56 \centerline{Originally written May 2000 by Evgeny Roubinchtein,}
57 \centerline{using refcard layout designed by Stephen Gildea.}
58 \centerline{Translated by Pavel Janík.}
60 Permission is granted to make and distribute copies of
61 this card provided the copyright notice and this permission notice
62 are preserved on all copies.
64 For copies of the GNU Emacs manual, see:
66 {\tt http://www.gnu.org/software/emacs/\#Manuals}
67 \endgroup}
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}
73 \newdimen\intercolumnskip %horizontal space between columns
74 \newbox\columna %boxes to hold columns already built
75 \newbox\columnb
77 \def\ncolumns{\the\columnsperpage}
79 \message{[\ncolumns\space
80 column\if 1\ncolumns\else s\fi\space per page]}
82 \def\scaledmag#1{ scaled \magstep #1}
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
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 9.2in
100 \hoffset -.75in
101 \voffset -.745in
102 \font\titlefont=csbx10 \scaledmag2
103 \font\headingfont=csbx10 \scaledmag1
104 \font\smallfont=csr6
105 \font\smallsy=cmsy6
106 \font\eightrm=csr8
107 \font\eightbf=csbx8
108 \font\eightit=csti8
109 \font\eighttt=cstt8
110 \font\eightmi=csmi8
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
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
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}}
154 \def\bye{\par\vfill\supereject
155 \if a\abc \else\null\vfill\eject\fi
156 \if a\abc \else\null\vfill\eject\fi
157 \end}
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
165 \chardef\\=`\\
166 \chardef\{=`\{
167 \chardef\}=`\}
169 \hyphenation{mini-buf-fer}
170 \hyphenation{de-le-tion}
172 \parindent 0pt
173 \parskip 1ex plus .5ex minus .5ex
175 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
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}
181 % title - page title. Argument is title text.
182 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
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}
189 \newdimen\keyindent
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
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}
203 % \<...> - surrounds a variable name in a code example
204 \def\<#1>{{\it #1\/}}
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
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}
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}}
224 \newbox\metaxbox
225 \setbox\metaxbox\hbox{\kbd{M-x }}
226 \newdimen\metaxwidth
227 \metaxwidth=\wd\metaxbox
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}}
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}
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)}}
247 %**end of header
250 \title{Referenèní karta pro Dired}
252 \centerline{(urèeno pro Dired v GNU Emacsu \versionemacs)}
253 \centerline{Pøíkazy oznaèené \dx{} vy¾adují dired-x}
255 % trim this down to fit everything on one page
256 % \section{General}
257 % In dired, you can edit a list of the files in a directory (and optionally
258 % its subdirectories in the `ls -lR' format).
260 % Editing a directory means that you can visit, rename, copy, compress,
261 % load, byte-compile files. You can change files' attributes, run shell
262 % commands on files, or insert subdirectories into the edit buffer. You can
263 % "flag" files for deletion or "mark" files for later commands, either one
264 % file at a time or by all files matching certain criteria (e.g., files that
265 % match a certain regexp).
267 % You move throughout the buffer using the usual cursor motion commands.
268 % Letters no longer insert themselves, but execute commands instead. The
269 % digits (0-9) are prefix arguments.
271 % Most commands operate either on all marked files or on the current file if
272 % no files are marked. Use a numeric prefix argument to operate on the next
273 % ARG files (or previous ARG if ARG $<$ 0). Use the prefix argument `1' to
274 % operate on the current file only. Prefix arguments override marks. Commands
275 % which run a sub-process on a group of files will display a list of files
276 % for which the sub-process failed. Typing y will try to tell
277 % you what went wrong.
279 % When editing several directories in one buffer, each directory acts as a
280 % page, so C-x [ and C-x ] can be used to move between directories.
282 \section{Spu¹tìní a ukonèení Dired}
284 \key{spu¹tìní dired}{C-x d}
285 \key{spu¹tìní dired v adresáøi s aktuálním souborem}{C-x C-j \dx}
286 \key{ukonèení dired}{q}
288 \section{Pøíkazy pro pøesuny}
290 \key{zpìt na pøedchozí øádku}{p}
291 \key{vpøed na následující øádku}{n}
292 \key{nahoru na pøedchozí adresáø}{<}
293 \key{dolù na následující adresáø}{>}
294 \key{na dal¹í oznaèený soubor}{M-\}}
295 \key{na pøedchozí oznaèený soubor}{M-\{}
296 \key{zpìt na pøedchozí podadresáø}{M-C-p}
297 \key{vpøed na dal¹í podadresáø}{M-C-n}
298 \key{na nadøazený adresáø}{^}
299 \key{jdi na první podadresáø}{M-C-d}
301 \section{Pøíkazy pomocí my¹i}
302 \metax{otevøi soubor}{Mouse_Button_2}
303 \metax{zobraz menu}{Control-Mouse_Button_3}
305 \section{Okam¾ité akce nad soubory}
307 \key{otevøi aktuální soubor}{f}
308 \key{otevøi aktuální soubor pouze pro ètení}{v}
309 \key{otevøi aktuální soubor v jiném oknì}{o}
310 %%\key{otevøi aktuální soubor v jiném rámci}{w}
311 %%\key{zobraz aktuální soubor}{C-u o}
312 \key{vytvoø nový podadresáø}{+}
313 \key{porovnej soubor pod kurzorem s oznaèeným}{=}
315 \section{Znaèení a odznaèení souborù}
317 \key{oznaè soubor nebo podadresáø pro dal¹í pøíkazy}{m}
318 \key{odznaè soubor nebo soubory podadresáøe}{u}
319 \key{zru¹ oznaèení v¹ech souborù v bufferu}{M-delete}
320 \key{oznaè soubory se zadanou pøíponou}{* .}
321 \key{oznaè v¹echny adresáøe}{* /}
322 \key{oznaè v¹echny symbolické odkazy}{* @}
323 \key{oznaè v¹echny spustitelné soubory}{* *}
324 \key{invertuj oznaèení}{* t}
325 \key{oznaè v¹echny soubory v aktuálním podadresáøi}{* s}
326 \key{oznaè soubory vyhovující regulárnímu výrazu}{* \%}
327 \key{zmìò znaèku na jiné písmeno}{* c}
328 \key{oznaè soubory, pro které elispový výraz vrací t}{* ( \dx}
330 \section{Modifikace Dired bufferu}
332 \key{vlo¾ do tohoto bufferu podadresáø}{i}
333 \key{odstraò oznaèené soubory z bufferu}{k}
334 \key{odstraò z bufferu výpis podadresáøe}{C-u k}
335 \key{znovu naèti adresáøe (znaèky se zachovají)}{g}
336 \key{pøepni tøídìní adresáøe podle jména/data}{s}
337 \key{uprav volby pøíkazu ls}{C-u s}
338 \key{obnov znaèky, skryté øádky apod.}{C-_}
339 \key{skryj v¹echny podadresáøe}{M-\$}
340 \key{skryj nebo odkryj v¹echny podadresáøe}{\$}
342 \section{Pøíkazy nad oznaèenými soubory}
344 \key{kopíruj soubor(y)}{C}
345 \key{pøejmenuj soubor nebo pøesuò soubory}{R}
346 \key{zmìò vlastníka souboru(ù)}{O}
347 \key{zmìò skupinu souboru(ù)}{G}
348 \key{zmìò pøístupová práva souboru(ù)}{M}
349 \key{vytiskni soubor(y)}{P}
350 \key{zmìò název souboru(ù) na malá písmena}{\% l}
351 \key{zmìò název souboru(ù) na velká písmena}{\% u}
352 \key{sma¾ oznaèené soubory}{D}
353 %%\key{proveï uuencode nebo uudecode souboru(ù)}{U}
354 \key{zkomprimuj nebo dekomprimuj soubor(y)}{Z}
355 \key{spus» info na soubor}{I \dx}
356 \key{vytvoø symbolický(é) odkaz(y)}{S}
357 \key{vytvoø relativní symbolické odkazy}{Y}
358 \key{vytvoø pevný odkaz}{H}
359 \key{prohledej soubory na regulární výraz}{A}
360 \key{nahraï regulární výrazy}{Q}
361 \key{pøelo¾ soubory (byte-compile)}{B}
362 \key{naèti soubory (load-file)}{L}
363 \key{spus» pøíkaz na soubor(y)}{!}
365 \section{Oznaèení souborù pro smazání}
366 \leftline{\bf Odznaèující pøíkazy ma¾ou znaèku pro smazání}
367 \key{oznaè soubor pro smazání}{d}
368 %%\key{odstraò znaèku pro smazání}{delete}
369 \key{oznaè v¹echny zálohy (soubory konèící na \~{})}{\~{}}
370 \key{oznaè v¹echny zálohy (auto-save)}{\#}
371 \key{oznaè rùzné doèasné soubory}{\% \&}
372 \key{oznaè èíslované zálohy (konèící na .\~{}1\~{} apod.)}{.}
373 \key{proveï výmaz souborù oznaèených ke smazání}{x}
374 \key{oznaè soubory vyhovující regulárnímu výrazu}{\% d}
376 \section{Pøíkazy s regulárními výrazy}
378 \key{oznaè soubory vyhovující regulárnímu výrazu}{\% m}
379 \key{kopíruj oznaèené soubory obsahující regexp}{\% C}
380 \key{pøejmenuj oznaèené soubory vyhovující regexp}{\% R}
381 \key{pevný odkaz}{\% H}
382 \key{symbolický odkaz}{\% S}
383 \key{symbolický odkaz s relativní cestou}{\% Y}
384 \key{oznaè pro smazání}{\% d}
386 \section{Dired a Find}
387 \metax{otevøi v dired soubory vyhovující vzorku}{M-x find-name-dired}
388 \metax{otevøi v dired soubory obsahující vzorek}{M-x find-grep-dired}
389 \metax{otevøi v dired soubory podle výstupu \kbd{find}}{M-x find-dired}
391 \section{Nápovìda}
393 \key{zobraz nápovìdu}{h}
394 \key{pøehled pøíkazù dired}{?}
396 \copyrightnotice
398 \bye