ru-refcard.tex 17.8 KB
Newer Older
1
% Copyright (C) 1997, 2002, 2003, 2004, 2005,
Glenn Morris's avatar
Glenn Morris committed
2
%   2006, 2007, 2008, 2009  Free Software Foundation, Inc.
3

Eli Zaretskii's avatar
Eli Zaretskii committed
4 5 6 7 8 9 10 11 12 13 14
\documentclass[10pt]{article}
\usepackage{multicol,tabularx}
\usepackage[a4paper,hmargin={2cm,2cm},vmargin={2cm,2cm},nohead,twoside]{geometry}
\usepackage[T2A]{fontenc}
\usepackage[koi8-r]{inputenc}
\usepackage[english,russian]{babel}
\usepackage{verbatim}
%\usepackage{enumerate,calc}
%\usepackage{indentfirst,amsmath,graphicx,citehack,floatflt}
%
%\usepackage{pscyr}
15
%\renewcommand{\rmdefault}{fha}
Eli Zaretskii's avatar
Eli Zaretskii committed
16 17 18 19 20 21

\newlength{\ColWidth}
\setlength{\ColWidth}{120mm}
\newlength{\ColThreeWidth}
\setlength{\ColThreeWidth}{25mm}

22
\newcommand{\versionnumber}[0]{2.3}
23
\newcommand{\versionemacs}[0]{22}
24
\newcommand{\nyear}[0]{2008}
Eli Zaretskii's avatar
Eli Zaretskii committed
25 26 27 28 29 30 31 32

\newcommand\shortcopyrightnotice[0]{\vskip 1ex plus 2 fill
  \centerline{\footnotesize \copyright\ \nyear\ Free Software Foundation, Inc.
  Permissions on back.  v\versionnumber}}

\newcommand\copyrightnotice[0]{
\vskip 1ex plus 2 fill\begingroup\footnotesize
\centerline{Copyright \copyright\ \nyear\ Free Software Foundation, Inc.}
Glenn Morris's avatar
Glenn Morris committed
33
\centerline{v\versionnumber{} for GNU Emacs version \versionemacs, June 2006}
Eli Zaretskii's avatar
Eli Zaretskii committed
34
\centerline{designed by Stephen Gildea}
35
\centerline{ Alex Ott <alexott@gmail.com>}
Eli Zaretskii's avatar
Eli Zaretskii committed
36 37 38 39 40 41

Permission is granted to make and distribute copies of
this card provided the copyright notice and this permission notice
are preserved on all copies.

For copies of the GNU Emacs manual, write to the Free Software
Lute Kamstra's avatar
Lute Kamstra committed
42
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
Eli Zaretskii's avatar
Eli Zaretskii committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56

\endgroup}

\hyphenation{mini-buf-fer}

\parindent 0pt
%\parskip 0.5ex plus .2ex minus .2ex

\newcommand{\kbd}[1]{\texttt{#1}}

\begin{document}

%\begin{multicols}{3}

57
\centerline{  GNU Emacs}
Glenn Morris's avatar
Glenn Morris committed
58
\centerline{(  \versionemacs)}
Eli Zaretskii's avatar
Eli Zaretskii committed
59 60 61

\section{ Emacs}

Glenn Morris's avatar
Glenn Morris committed
62
  GNU Emacs \versionemacs,    : \kbd{emacs}
Eli Zaretskii's avatar
Eli Zaretskii committed
63 64 65 66 67 68 69 70 71 72 73

\section{  Emacs}

\begin{tabular}{p{\ColWidth}p{\ColThreeWidth}p{\ColThreeWidth}}
  Emacs (       X) & \kbd{C-z} \\
  Emacs & \kbd{C-x C-c} \\
\end{tabular}

\section{}

\begin{tabular}{p{\ColWidth}p{\ColThreeWidth}p{\ColThreeWidth}}
74
{\bf }   Emacs & \kbd{C-x C-f} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
75 76 77 78 79
{\bf }     & \kbd{C-x C-s} \\
 {\bf }  & \kbd{C-x s} \\
{\bf }       & \kbd{C-x i} \\
      & \kbd{C-x C-v} \\
     & \kbd{C-x C-w} \\
80
   ``  '' & \kbd{C-x C-q} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
81 82 83 84 85
\end{tabular}

\section{ }

   . H \kbd{C-h} ( \kbd{F1}) 
86
 .         Emacs,  
87
\kbd{C-u C-h t Russian RET}   {\bf }.
Eli Zaretskii's avatar
Eli Zaretskii committed
88 89

\begin{tabular}{p{\ColWidth}p{\ColThreeWidth}p{\ColThreeWidth}}
90
   & \kbd{C-x 1} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
91 92 93
   & \kbd{C-M-v} \\

apropos:  ,   & \kbd{C-h a} \\
94 95
  ,    & \kbd{C-h k} \\
    & \kbd{C-h f} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
96 97 98 99 100 101 102 103
    & \kbd{C-h m} \\
\end{tabular}

\section{ }

\begin{tabular}{p{\ColWidth}p{\ColThreeWidth}p{\ColThreeWidth}}
{\bf }      & \kbd{C-g} \\
{\bf } ,     & \kbd{M-x recover-file} \\
104
{\bf }   & \kbd{C-x u, C-\_ {\rm } C-/} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
105 106 107 108 109 110 111 112 113
     & \kbd{M-x revert-buffer} \\
    & \kbd{C-l} \\
\end{tabular}

\section{H }

\begin{tabular}{p{\ColWidth}p{\ColThreeWidth}p{\ColThreeWidth}}
  & \kbd{C-s} \\
  & \kbd{C-r} \\
114
     & \kbd{C-M-s} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
115 116 117 118 119 120 121 122 123 124 125
     & \kbd{C-M-r} \\

    & \kbd{M-p} \\
    & \kbd{M-n} \\
   & \kbd{RET} \\
     & \kbd{DEL} \\
   & \kbd{C-g} \\
\end{tabular}

        \kbd{C-s} 
\kbd{C-r}.  Emacs    , \kbd{C-g}  
126
  .
Eli Zaretskii's avatar
Eli Zaretskii committed
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149

\section{}

\begin{tabular}{p{\ColWidth}p{\ColThreeWidth}p{\ColThreeWidth}}
{\bf  } & {\bf } & {\bf } \\
 & \kbd{C-b} & \kbd{C-f} \\
 & \kbd{M-b} & \kbd{M-f} \\
 & \kbd{C-p} & \kbd{C-n} \\
 ( )  & \kbd{C-a} & \kbd{C-e} \\
 & \kbd{M-a} & \kbd{M-e} \\
 & \kbd{M-\{} & \kbd{M-\}} \\
 & \kbd{C-x [} & \kbd{C-x ]} \\
 (sexp) & \kbd{C-M-b} & \kbd{C-M-f} \\
 & \kbd{C-M-a} & \kbd{C-M-e} \\
   ( )  & \kbd{M-<} & \kbd{M->} \\

\end{tabular}

\begin{tabular}{p{\ColWidth}l}
   & \kbd{C-v} \\
   & \kbd{M-v} \\
  & \kbd{C-x <} \\
  & \kbd{C-x >} \\
150
      & \kbd{C-u C-l} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
\end{tabular}

\section{  }

\begin{tabular}{p{\ColWidth}p{\ColThreeWidth}p{\ColThreeWidth}}
{\bf  } & {\bf } & {\bf } \\
 (,   ) & \kbd{DEL} & \kbd{C-d} \\
 & \kbd{M-DEL} & \kbd{M-d} \\
 (  ) & \kbd{M-0 C-k} & \kbd{C-k} \\
 & \kbd{C-x DEL} & \kbd{M-k} \\
 & \kbd{M-- C-M-k} & \kbd{C-M-k} \\
\end{tabular}


\begin{tabular}{p{\ColWidth}l}
 {\bf } & \kbd{C-w} \\
     & \kbd{M-w} \\
     {\it char} & \kbd{M-z {\it char}} \\

    & \kbd{C-y} \\
        & M-y \\
\end{tabular}

\section{}

\begin{tabular}{p{\ColWidth}l}
177 178
  & \kbd{C-@ {\rm } C-SPC} \\
     & \kbd{C-x C-x} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194

 {\it arg\/} {\bf } & \kbd{M-@} \\
 {\bf } & \kbd{M-h} \\
 {\bf } & \kbd{C-x C-p} \\
 {\bf } & \kbd{C-M-@} \\
 {\bf } & \kbd{C-M-h} \\
  {\bf } & \kbd{C-x h} \\
\end{tabular}

\section{  }

\begin{tabular}{p{\ColWidth}l}
    & \kbd{M-\%} \\
    & \kbd{M-x query-replace-regexp} \\
\end{tabular}

195
       :
Eli Zaretskii's avatar
Eli Zaretskii committed
196 197 198 199 200 201 202

\begin{tabular}{p{\ColWidth}l}
{\bf }  ,    & \kbd{SPC} \\
  ,   & \kbd{,} \\
{\bf }    & \kbd{DEL} \\
    & \kbd{!} \\
{\bf }    & \kbd{\^} \\
203
{\bf }   ``  '' & \kbd{RET} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
204 205 206
     (   \kbd{C-M-c}) & \kbd{C-r} \\
\end{tabular}

207
\section{  }
Eli Zaretskii's avatar
Eli Zaretskii committed
208 209

,    ,   
210
 (   ).
Eli Zaretskii's avatar
Eli Zaretskii committed
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257

\begin{tabular}{p{\ColWidth}l}
    & \kbd{C-x 1} \\
\end{tabular}

\begin{tabular}{p{\ColWidth}p{\ColThreeWidth}p{\ColThreeWidth}}
    & \kbd{C-x 2\ \ \ \ } & \kbd{C-x 5 2} \\
   & \kbd{C-x 0\ \ \ \ } & \kbd{C-x 5 0} \\

    & \kbd{C-x 3} \\

     & \kbd{C-M-v} \\
\end{tabular}

\begin{tabular}{p{\ColWidth}p{\ColThreeWidth}p{\ColThreeWidth}}
     & \kbd{C-x o} & \kbd{C-x 5 o} \\

     & \kbd{C-x 4 b} & \kbd{C-x 5 b} \\
     & \kbd{C-x 4 C-o} & \kbd{C-x 5 C-o} \\
     & \kbd{C-x 4 f} & \kbd{C-x 5 f} \\
        & \kbd{C-x 4 r} & \kbd{C-x 5 r} \\
 Dired    & \kbd{C-x 4 d} & \kbd{C-x 5 d} \\
     & \kbd{C-x 4 .} & \kbd{C-x 5 .} \\

\end{tabular}

\begin{tabular}{p{\ColWidth}l}
   & \kbd{C-x \^} \\
   & \kbd{C-x \{} \\
   & \kbd{C-x \}} \\
\end{tabular}

\section{}

\begin{tabular}{p{\ColWidth}l}
    {\bf } (   ) & \kbd{TAB} \\
   {\bf } (   ) & \kbd{C-M-$\backslash$} \\
   {\bf } (   ) & \kbd{C-M-q} \\
    {\it arg\/}  & \kbd{C-x TAB} \\

     & \kbd{C-o} \\
     & \kbd{C-M-o} \\
     & \kbd{C-x C-o} \\
    (  arg) & \kbd{M-\^} \\
     & \kbd{M-$\backslash$} \\
       & \kbd{M-SPC} \\

258
   & \kbd{M-q} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
259 260 261
   & \kbd{C-x f} \\
     & \kbd{C-x .} \\

262
  (face) & \kbd{M-g} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
\end{tabular}

\section{ }

\begin{tabular}{p{\ColWidth}l}
    & \kbd{M-u} \\
    & \kbd{M-l} \\
     & \kbd{M-c} \\

    & \kbd{C-x C-u} \\
    & \kbd{C-x C-l} \\
\end{tabular}

\section{}

  ()   .

\begin{tabular}{p{\ColWidth}l}
   & \kbd{TAB} \\
    & \kbd{SPC} \\
   & \kbd{RET} \\
   & \kbd{?} \\
285 286
      & \kbd{M-p} \\
      & \kbd{M-n} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
         & \kbd{M-r} \\
         & \kbd{M-s} \\
  & \kbd{C-g} \\
\end{tabular}

 \kbd{C-x ESC ESC}     
   .  \kbd{F10},   
     .

\section{}

\begin{tabular}{p{\ColWidth}l}
   & \kbd{C-x b} \\
    & \kbd{C-x C-b} \\
  & \kbd{C-x k} \\
\end{tabular}

304
\section{ }
Eli Zaretskii's avatar
Eli Zaretskii committed
305 306 307 308 309 310 311 312

\begin{tabular}{p{\ColWidth}l}
  {\bf } & \kbd{C-t} \\
   {\bf } & \kbd{M-t} \\
   {\bf } & \kbd{C-x C-t} \\
   {\bf } & \kbd{C-M-t} \\
\end{tabular}

313
\section{ }
Eli Zaretskii's avatar
Eli Zaretskii committed
314 315 316 317 318 319 320 321 322 323 324 325

\begin{tabular}{p{\ColWidth}l}
   & \kbd{M-\$} \\
     & \kbd{M-x ispell-region} \\
    & \kbd{M-x ispell-buffer} \\
\end{tabular}

\section{}

\begin{tabular}{p{\ColWidth}l}
   & \kbd{M-.} \\
    & \kbd{C-u M-.} \\
326
     & \kbd{M-x visit-tags-table} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396

       & \kbd{M-x tags-search} \\
 query-replace    & \kbd{M-x tags-query-replace} \\
   -  & \kbd{M-,} \\
\end{tabular}

\section{ }

\begin{tabular}{p{\ColWidth}l}
    & \kbd{M-!} \\
      & \kbd{M-|} \\
       & \kbd{C-u M-|} \\
     \kbd{*shell*} & \kbd{M-x shell} \\
\end{tabular}

\section{ }

\begin{tabular}{p{\ColWidth}l}
     & \kbd{C-x r r} \\
   & \kbd{C-x r k} \\
     & \kbd{C-x r y} \\
  ,    & \kbd{C-x r o} \\
   & \kbd{C-x r c} \\
     & \kbd{C-x r t} \\
\end{tabular}

\section{}

\begin{tabular}{p{\ColWidth}l}
   & \kbd{C-x a g} \\
     & \kbd{C-x a l} \\
      & \kbd{C-x a i g} \\
       & \kbd{C-x a i l} \\
     & \kbd{C-x a e} \\

    & \kbd{M-/} \\
\end{tabular}

\section{ }

\begin{tabular}{p{\ColWidth}l}
   (    ) & \kbd{. {\rm(dot)}} \\
    & \kbd{*} \\
    & \kbd{+} \\
    & \kbd{?} \\
   {\it c\/} & \kbd{$\backslash${\it c}} \\
   (``'') & \kbd{$\backslash|$} \\
 & \kbd{$\backslash$( {\rm$\ldots$} $\backslash$)} \\
  {\it n\/}-  & \kbd{$\backslash${\it n}} \\
  & \kbd{$\backslash$b} \\
   & \kbd{$\backslash$B} \\
\end{tabular}

\begin{tabular}{p{\ColWidth}p{\ColThreeWidth}p{\ColThreeWidth}}
{\bf } & {\bf  } & {\bf  } \\
 & \kbd{\^} & \kbd{\$} \\
 & \kbd{$\backslash$<} & \kbd{$\backslash$>} \\
 & \kbd{$\backslash$`} & \kbd{$\backslash$'} \\
\end{tabular}

\begin{tabular}{p{\ColWidth}p{\ColThreeWidth}p{\ColThreeWidth}}
{\bf  } & {\bf \- } & {\bf \- } \\
  & \kbd{[ {\rm$\ldots$} ]} & \kbd{[\^ {\rm$\ldots$} ]} \\
- & \kbd{$\backslash$w} & \kbd{$\backslash$W} \\
   {\it c} & \kbd{$\backslash$s{\it c}} & \kbd{$\backslash$S{\it c}} \\
\end{tabular}

\section{  }

\begin{tabular}{p{\ColWidth}l}
397
  & \kbd{C-x RET l} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
398 399 400 401 402 403 404 405 406 407 408
     & \kbd{M-x list-input-methods} \\
     & \kbd{C-$\backslash$} \\
      & \kbd{C-x RET c} \\
     & \kbd{M-x list-coding-systems} \\
    & \kbd{M-x prefer-coding-system} \\
\end{tabular}

\section{ ( Info)}

\begin{tabular}{p{\ColWidth}l}
     & \kbd{C-h i} \\
409
       & \kbd{C-h S} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425
\end{tabular}

   ():

\begin{tabular}{p{\ColWidth}l}
  & \kbd{SPC} \\
  & \kbd{DEL} \\
    & \kbd{. {\rm (dot)}} \\
\end{tabular}

  :

\begin{tabular}{p{\ColWidth}l}
{\bf }  & \kbd{n} \\
{\bf }  & \kbd{p} \\
  {\bf }  & \kbd{u} \\
426
     & \kbd{m} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
427
 {\it n\/}-     (1--9) & \kbd{{\it n}} \\
428
   (   \kbd{l}) & \kbd{f} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
429 430
     & \kbd{l} \\
  - & \kbd{d} \\
431
     & \kbd{t} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
432 433 434 435 436 437 438
  ,   & \kbd{g} \\
\end{tabular}

 :

\begin{tabular}{p{\ColWidth}l}
 {\bf }    & \kbd{h} \\
439
    & \kbd{i} \\
440
       & \kbd{s} \\
Eli Zaretskii's avatar
Eli Zaretskii committed
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483
{\bf  }   & \kbd{q} \\
\end{tabular}

\section{}

\begin{tabular}{p{\ColWidth}l}
    & \kbd{C-x r s} \\
     & \kbd{C-x r i} \\

     & \kbd{C-x r SPC} \\
   ,    & \kbd{C-x r j} \\
\end{tabular}

\section{ }

\begin{tabular}{p{\ColWidth}l}
{\bf }    & \kbd{C-x (} \\
{\bf }    & \kbd{C-x )} \\
{\bf }    & \kbd{C-x e} \\
    & \kbd{C-u C-x (} \\
      & \kbd{M-x name-last-kbd-macro} \\
       Lisp & \kbd{M-x insert-kbd-macro} \\
\end{tabular}

\section{,   Emacs Lisp}

\begin{tabular}{p{\ColWidth}l}
 {\bf }   & \kbd{C-x C-e} \\
   {\bf defun} & \kbd{C-M-x} \\
 {\bf }   & \kbd{M-x eval-region} \\
      & \kbd{M-:} \\
     & \kbd{M-x load-library} \\
\end{tabular}

\section{ }

\begin{tabular}{p{\ColWidth}l}
    (faces) & \kbd{M-x customize} \\
\end{tabular}

% The intended audience here is the person who wants to make simple
% customizations and knows Lisp syntax.

484
    ()  Emacs Lisp ():
Eli Zaretskii's avatar
Eli Zaretskii committed
485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518

\begin{verbatim}
(global-set-key "\C-cg" 'goto-line)
(global-set-key "\M-#" 'query-replace-regexp)
\end{verbatim}

\section{ }

\begin{verbatim}
(defun <command-name> (<args>)
  "<documentation>" (interactive "<template>")
  <body>)
\end{verbatim}

:

\begin{verbatim}
(defun this-line-to-top-of-window (line)
  "Reposition line point is on to top of window.
With ARG, put point on line ARG."
  (interactive "P")
  (recenter (if (null line)
                0
              (prefix-numeric-value line))))
\end{verbatim}

 \kbd{interactive}   ,    
.     \kbd{C-h f interactive}.

\copyrightnotice

%\end{multicols}

\end{document}
519 520

% Local variables:
521
% compile-command: "pdflatex ru-refcard"
522 523
% coding: cyrillic-koi8
% End:
524 525

% arch-tag: 868a12f6-4339-4a14-a56e-4a3937277a9e