(FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
[emacs.git] / etc / sk-dired-ref.tex
blob9ee3941919f64b3264ee8b9c3113bf767b050686
1 % Reference Card for Dired
2 % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005,
3 % 2006, 2007, 2008 Free Software Foundation, Inc.
5 % Slovak hyphenation rules applied
6 \shyph
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, or (at your option)
13 % 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; see the file COPYING. If not, write to
22 % the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 % Boston, MA 02110-1301, USA.
25 % This file can be printed with 1, 2, or 3 columns per page (see below).
26 % Specify how many you want here. Nothing else needs to be changed.
27 %**start of header
29 \newcount\columnsperpage
31 \columnsperpage=2
33 % This file is intended to be processed by plain TeX (TeX82).
34 % The reference card looks OK with 2 columns per page, portrait mode.
35 % I haven't tried it with 3 columns per page.
37 % This is a bit of a dirty hack on the GNU Emacs reference card
38 % to produce a Dired reference card instead.
40 % I (Evgeny Roubinchtein, eroubinc@u.washington.edu) put this together
41 % because I wanted a Dired reference card,
42 % but couldn't find anything on the 'net.
43 % Based mostly off Dired's describe-mode.
45 % Translated to Czech by Pavel Janík <Pavel@Janik.cz> in March 2001
46 % Translated to Slovak by Miroslav Vasko <vasko@debian.cz> in March 2001
48 % Process the file with `csplain' from the `CSTeX' distribution (included
49 % e.g. in the TeX Live CD).
51 \def\versionnumber{0.1}
52 \def\versionemacs{22}
53 \def\year{2008}
54 \def\version{May 2006\ v\versionnumber}
56 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
57 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
58 Permissions on back. v\versionnumber}}
60 \def\copyrightnotice{
61 \vskip 1ex plus 2 fill\begingroup\small
62 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
63 \centerline{designed by Stephen Gildea, \version}
64 \centerline{for GNU Emacs version \versionemacs{} on Unix systems}
65 \centerline{Updated for Dired in May 2000 by Evgeny Roubinchtein}
67 Permission is granted to make and distribute copies of
68 this card provided the copyright notice and this permission notice
69 are preserved on all copies.
71 For copies of the GNU Emacs manual, write to the Free Software
72 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
73 MA 02110-1301, USA.
75 \endgroup}
77 % make \bye not \outer so that the \def\bye in the \else clause below
78 % can be scanned without complaint.
79 \def\bye{\par\vfill\supereject\end}
81 \newdimen\intercolumnskip %horizontal space between columns
82 \newbox\columna %boxes to hold columns already built
83 \newbox\columnb
85 \def\ncolumns{\the\columnsperpage}
87 \message{[\ncolumns\space
88 column\if 1\ncolumns\else s\fi\space per page]}
90 \def\scaledmag#1{ scaled \magstep #1}
92 % This multi-way format was designed by Stephen Gildea October 1986.
93 % Note that the 1-column format is fontfamily-independent.
94 \if 1\ncolumns %one-column format uses normal size
95 \hsize 4in
96 \vsize 10in
97 \voffset -.7in
98 \font\titlefont=\fontname\tenbf \scaledmag3
99 \font\headingfont=\fontname\tenbf \scaledmag2
100 \font\smallfont=\fontname\sevenrm
101 \font\smallsy=\fontname\sevensy
103 \footline{\hss\folio}
104 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
105 \else %2 or 3 columns uses prereduced size
106 \hsize 3.4in
107 \vsize 9.2in
108 \hoffset -.75in
109 \voffset -.745in
110 \font\titlefont=csbx10 \scaledmag2
111 \font\headingfont=csbx10 \scaledmag1
112 \font\smallfont=csr6
113 \font\smallsy=cmsy6
114 \font\eightrm=csr8
115 \font\eightbf=csbx8
116 \font\eightit=csti8
117 \font\eighttt=cstt8
118 \font\eightmi=csmi8
119 \font\eightsy=cmsy8
120 \textfont0=\eightrm
121 \textfont1=\eightmi
122 \textfont2=\eightsy
123 \def\rm{\eightrm}
124 \def\bf{\eightbf}
125 \def\it{\eightit}
126 \def\tt{\eighttt}
127 \normalbaselineskip=.8\normalbaselineskip
128 \normallineskip=.8\normallineskip
129 \normallineskiplimit=.8\normallineskiplimit
130 \normalbaselines\rm %make definitions take effect
132 \if 2\ncolumns
133 \let\maxcolumn=b
134 \footline{\hss\rm\folio\hss}
135 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
136 \else \if 3\ncolumns
137 \let\maxcolumn=c
138 \nopagenumbers
139 \else
140 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
141 \errmessage{Illegal number of columns per page}
142 \fi\fi
144 \intercolumnskip=.46in
145 \def\abc{a}
146 \output={% %see The TeXbook page 257
147 % This next line is useful when designing the layout.
148 %\immediate\write16{Column \folio\abc\space starts with \firstmark}
149 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
150 \else\if a\abc
151 \global\setbox\columna\columnbox \global\def\abc{b}
152 %% in case we never use \columnb (two-column mode)
153 \global\setbox\columnb\hbox to -\intercolumnskip{}
154 \else
155 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
156 \def\multicolumnformat{\shipout\vbox{\makeheadline
157 \hbox{\box\columna\hskip\intercolumnskip
158 \box\columnb\hskip\intercolumnskip\columnbox}
159 \makefootline}\advancepageno}
160 \def\columnbox{\leftline{\pagebody}}
162 \def\bye{\par\vfill\supereject
163 \if a\abc \else\null\vfill\eject\fi
164 \if a\abc \else\null\vfill\eject\fi
165 \end}
168 % we won't be using math mode much, so redefine some of the characters
169 % we might want to talk about
170 \catcode`\^=12
171 \catcode`\_=12
173 \chardef\\=`\\
174 \chardef\{=`\{
175 \chardef\}=`\}
177 \hyphenation{mini-buf-fer}
178 \hyphenation{de-le-tion}
180 \parindent 0pt
181 \parskip 1ex plus .5ex minus .5ex
183 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
185 % newcolumn - force a new column. Use sparingly, probably only for
186 % the first column of a page, which should have a title anyway.
187 \outer\def\newcolumn{\vfill\eject}
189 % title - page title. Argument is title text.
190 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
192 % section - new major section. Argument is section name.
193 \outer\def\section#1{\par\filbreak
194 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
195 \vskip 2ex plus 1ex minus 1.5ex}
197 \newdimen\keyindent
199 % beginindentedkeys...endindentedkeys - key definitions will be
200 % indented, but running text, typically used as headings to group
201 % definitions, will not.
202 \def\beginindentedkeys{\keyindent=1em}
203 \def\endindentedkeys{\keyindent=0em}
204 \endindentedkeys
206 % paralign - begin paragraph containing an alignment.
207 % If an \halign is entered while in vertical mode, a parskip is never
208 % inserted. Using \paralign instead of \halign solves this problem.
209 \def\paralign{\vskip\parskip\halign}
211 % \<...> - surrounds a variable name in a code example
212 \def\<#1>{{\it #1\/}}
214 % kbd - argument is characters typed literally. Like the Texinfo command.
215 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
217 % beginexample...endexample - surrounds literal text, such a code example.
218 % typeset in a typewriter font with line breaks preserved
219 \def\beginexample{\par\leavevmode\begingroup
220 \obeylines\obeyspaces\parskip0pt\tt}
221 {\obeyspaces\global\let =\ }
222 \def\endexample{\endgroup}
224 % key - definition of a key.
225 % \key{description of key}{key-name}
226 % prints the description left-justified, and the key-name in a \kbd
227 % form near the right margin.
228 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop
229 {\hsize=.75\hsize\rightskip=1em
230 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
232 \newbox\metaxbox
233 \setbox\metaxbox\hbox{\kbd{M-x }}
234 \newdimen\metaxwidth
235 \metaxwidth=\wd\metaxbox
237 % metax - definition of a M-x command.
238 % \metax{description of command}{M-x command-name}
239 % Tries to justify the beginning of the command name at the same place
240 % as \key starts the key name. (The "M-x " sticks out to the left.)
241 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
242 {\hskip\keyindent\relax#1\hfil}%
243 \hskip -\metaxwidth minus 1fil
244 \kbd{#2}\hfil}}
246 % threecol - like "key" but with two key names.
247 % for example, one for doing the action backward, and one for forward.
248 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad
249 &\kbd{#3}\hfil\quad\cr}
251 % I cannot figure out how to make all dired-x
252 % commands fit on a page in two-column format
253 \def\dx{{\bf (DX)}}
255 \nopagenumbers
257 %**end of header
260 \title{Referenèná karta pre Dired}
262 \centerline{(urèené pre Dired v GNU Emacse \versionemacs.x)}
263 \centerline{Príkazy oznaèené \dx{} vy¾adujú dired-x}
265 % trim this down to fit everything on one page
266 % \section{General}
267 % In dired, you can edit a list of the files in a directory (and optionally
268 % its subdirectories in the `ls -lR' format).
270 % Editing a directory means that you can visit, rename, copy, compress,
271 % load, byte-compile files. You can change files' attributes, run shell
272 % commands on files, or insert subdirectories into the edit buffer. You can
273 % "flag" files for deletion or "mark" files for later commands, either one
274 % file at a time or by all files matching certain criteria (e.g., files that
275 % match a certain regexp).
277 % You move throughout the buffer using the usual cursor motion commands.
278 % Letters no longer insert themselves, but execute commands instead. The
279 % digits (0-9) are prefix arguments.
281 % Most commands operate either on all marked files or on the current file if
282 % no files are marked. Use a numeric prefix argument to operate on the next
283 % ARG files (or previous ARG if ARG $<$ 0). Use the prefix argument `1' to
284 % operate on the current file only. Prefix arguments override marks. Commands
285 % which run a sub-process on a group of files will display a list of files
286 % for which the sub-process failed. Typing y will try to tell
287 % you what went wrong.
289 % When editing several directories in one buffer, each directory acts as a
290 % page, so C-x [ and C-x ] can be used to move between directories.
292 \section{Spustenie a ukonèenie Dired}
294 \key{spustenie dired}{C-x d}
295 \key{spustenie dired v adresári s aktuálnym súborom}{C-x C-j \dx}
296 \key{ukonèenie dired}{q}
298 \section{Príkazy pre presuny}
300 \key{spä» na predchádzajúci riadok}{p}
301 \key{vpred na nasledujúci riadok}{n}
302 \key{hore na predchádzajúci adresár}{<}
303 \key{dole na nasledujúci adresár}{>}
304 \key{na ïal¹í oznaèený súbor}{M-\}}
305 \key{na predchádzajúci oznaèený súbor}{M-\{}
306 \key{spä» na predchádzajúci podadresár}{M-C-p}
307 \key{vpred na ïal¹í podadresár}{M-C-n}
308 \key{na nadradený adresár}{^}
309 \key{choï na prvý podadresár}{M-C-d}
311 \section{Príkazy pomocou my¹i}
312 \metax{otvor súbor}{Mouse_Button_2}
313 \metax{zobraz menu}{Control-Mouse_Button_3}
315 \section{Okam¾ité akcie nad súbormi}
317 \key{otvor aktuálny súbor}{f}
318 \key{otvor aktuálny súbor iba pre èítanie}{v}
319 \key{otvor aktuálny súbor v inom okne}{o}
320 \key{otvor aktuálny súbor v inom rámci}{w}
321 \key{zobraz aktuálny súbor}{C-u o}
322 \key{vytvor nový podadresár}{+}
323 \key{porovnaj súbor pod kurzorom s oznaèeným}{=}
325 \section{Oznaèovanie a odznaèovanie súborov}
327 \key{oznaè súbor alebo podadresár pre ïal¹ie príkazy}{m}
328 \key{odznaè súbor alebo súbory podadresáre}{u}
329 \key{zru¹ oznaèenie v¹etkých súborov v bufferi}{M-delete}
330 \key{oznaè súbory so zadanou príponou}{* .}
331 \key{oznaè v¹etky adresáre}{* /}
332 \key{oznaè v¹etky symbolické odkazy}{* @}
333 \key{oznaè v¹etky spustiteµné súbory}{* *}
334 \key{invertuj oznaèenie}{* t}
335 \key{oznaè v¹etky súbory v aktuálnom podadresári}{* s}
336 \key{oznaè súbory vyhovujíce regulárnemu výrazu}{* \%}
337 \key{zmeò znaèku na iné písmeno}{* c}
338 \key{oznaè súbory, pre ktoré elispový výraz vrací t}{* ( \dx}
340 \section{Modifikácia Dired bufferu}
342 \key{vlo¾ do tohto bufferu podadresár}{i}
343 \key{odstráò oznaèené súbory z bufferu}{k}
344 \key{odstráò z bufferu výpis podadresára}{C-u k}
345 \key{znovu naèítaj adresár (znaèky sa zachovajú)}{g}
346 \key{prepni triedenie adresára podµa mena/dátumu}{s}
347 \key{uprav voµby príkazu ls}{C-u s}
348 \key{obnov znaèky, skryté riadky a~pod.}{C-_}
349 \key{skry v¹etky podadresáre}{M-\$}
350 \key{skry alebo odkry v¹etky podadresáre}{\$}
352 \section{Príkazy nad oznaèenými súbormi}
354 \key{kopíruj súbor(y)}{C}
355 \key{premenuj súbor alebo presuò súbory}{R}
356 \key{zmeò vlastníka súboru(ov)}{O}
357 \key{zmeò skupinu súboru(ov)}{G}
358 \key{zmeò prístupové práva súboru(ov)}{M}
359 \key{vytlaè súbor(y)}{P}
360 \key{zmeò názov súboru(ov) na malé písmená}{\% l}
361 \key{zmeò názov súboru(ov) na veµké písmená}{\% u}
362 \key{zma¾ oznaèené súbory}{X}
363 \key{vykonaj uuencode alebo uudecode súboru(ov)}{U}
364 \key{skomprimuj alebo dekomprimuj súbor(y)}{Z}
365 \key{spusti info na súbore}{I \dx}
366 \key{vytvor symbolický(é) odkaz(y)}{S}
367 \key{vytvor relatívne symbolické odkazy}{Y}
368 \key{vytvor pevný odkaz}{H}
369 \key{prehµadaj súbory -- hµadaj regulárny výraz}{A}
370 \key{nahraï regulárne výrazy}{Q}
371 \key{prelo¾ súbory (byte-compile)}{B}
372 \key{naèítaj súbory (load-file)}{L}
373 \key{spusti príkaz nad súborom(mi)}{!}
375 \section{Oznaèenie súborov pre zmazanie}
377 \leftline{\bf Odznaèujúce príkazy ma¾ú znaèku pre zmazanie}
378 \key{oznaè súbor pre zmazanie}{d}
379 \key{odstráò znaèku pre zmazanie}{delete}
380 \key{oznaè v¹etky zálohy (súbory konèiace na \~{})}{\~{}}
381 \key{oznaè v¹etky zálohy (auto-save)}{\#}
382 \key{oznaè rôzne doèasné súbory}{\&}
383 \key{oznaè èíslované zálohy (konèiace na .\~{}1\~{} a~pod.)}{.}
384 \key{vyma¾ súbory oznaèené na zmazanie}{x}
385 \key{oznaè súbory vyhovujúce regulárnemu výrazu}{\% d}
387 \section{Príkazy s regulárnymi výrazmi}
389 \key{oznaè súbory vyhovujúce regulárnemu výrazu}{\% m}
390 \key{skopíruj oznaèené súbory obsahujúce regexp}{\% C}
391 \key{premenuj oznaèené súbory vyhovujúce regexp}{\% R}
392 \key{pevný odkaz}{\% H}
393 \key{symbolický odkaz}{\% S}
394 \key{symbolický odkaz s relatívnou cestou}{\% Y}
395 \key{oznaè pre zmazanie}{\% d}
397 \section{Dired a Find}
398 \metax{otvor v dired súbory vyhovujúce vzorke}{M-x find-name-dired}
399 \metax{otvor v dired súbory obsahujúce vzorku}{M-x find-grep-dired}
400 \metax{otvor v dired súbory podµa výstupu \kbd{find}}{M-x find-dired}
402 \section{Nápoveda}
404 \key{zobraz nápovedu}{h}
405 \key{prehµad príkazov dired}{?}
407 \copyrightnotice
409 \bye
411 % Local variables:
412 % compile-command: "csplain sk-dired-ref"
413 % End:
415 % arch-tag: d5b57e24-16ec-4981-9315-14d3d16d3062