Mercurial > hgbook
annotate es/99defs.tex @ 727:0e3d8f66bbb7
Rename en/figs to en/images
author | Dongsheng Song <dongsheng.song@gmail.com> |
---|---|
date | Thu, 12 Mar 2009 15:58:38 +0800 |
parents | c054534808e6 |
children | 019040fbf5f5 |
rev | line source |
---|---|
37 | 1 % Bug ID. |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
2 \newcommand{\bug}[1]{\index{Base de datos de fallos de Mercurial |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
3 !\href{http://www.selenic.com/mercurial/bts/issue#1}{fallo |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
4 ~#1}}\href{http://www.selenic.com/mercurial/bts/issue#1}{Fallo de |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
5 Mercurial No.~#1}} |
37 | 6 |
7 % File name in the user's home directory. | |
4
33a2e7b9978d
Make it possible to include example input and output from real programs.
Bryan O'Sullivan <bos@serpentine.com>
parents:
3
diff
changeset
|
8 \newcommand{\tildefile}[1]{\texttt{\~{}/#1}} |
37 | 9 |
10 % File name. | |
2 | 11 \newcommand{\filename}[1]{\texttt{#1}} |
37 | 12 |
13 % Directory name. | |
16
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
14 \newcommand{\dirname}[1]{\texttt{#1}} |
37 | 15 |
16 % File name, with index entry. | |
17 % The ``s'' prefix comes from ``special''. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
18 \newcommand{\sfilename}[1]{\index{\texttt{#1}, fichero}\texttt{#1}} |
37 | 19 |
20 % Directory name, with index entry. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
21 \newcommand{\sdirname}[1]{\index{\texttt{#1}, directorio}\texttt{#1}} |
37 | 22 |
23 % Mercurial extension. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
24 \newcommand{\hgext}[1]{\index{\texttt{#1}, extensi\'on}\texttt{#1}} |
37 | 25 |
230
f83281da4122
Add new commands for commands and options provided by extensions.
Bryan O'Sullivan <bos@serpentine.com>
parents:
184
diff
changeset
|
26 % Command provided by a Mercurial extension. |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
27 \newcommand{\hgxcmd}[2]{\index{\texttt{#2}, comando (extensi\'on |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
28 \texttt{#1})}\index{\texttt{#1}, extensi\'on!comando \texttt{#2}}``\texttt{hg #2}''} |
230
f83281da4122
Add new commands for commands and options provided by extensions.
Bryan O'Sullivan <bos@serpentine.com>
parents:
184
diff
changeset
|
29 |
37 | 30 % Mercurial command. |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
31 \newcommand{\hgcmd}[1]{\index{\texttt{#1}, comando}``\texttt{hg #1}''} |
37 | 32 |
33 % Mercurial command, with arguments. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
34 \newcommand{\hgcmdargs}[2]{\index{\texttt{#1}, comando}``\texttt{hg #1 #2}''} |
37 | 35 |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
36 \newcommand{\tplkword}[1]{\index{\texttt{#1}, palabra clave de |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
37 plantilla}\index{palabras clave de plantilla!\texttt{#1}}\texttt{#1}} |
80
ea951cfb5cd9
Much template-related content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
62
diff
changeset
|
38 |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
39 \newcommand{\tplkwfilt}[2]{\index{\texttt{#1}, palabra clave de plantilla!filtro |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
40 \texttt{#2}}\index{filtros de plantilla!\texttt{#2}}\index{\texttt{#2}, filtro |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
41 de plantilla}\texttt{#2}} |
80
ea951cfb5cd9
Much template-related content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
62
diff
changeset
|
42 |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
43 \newcommand{\tplfilter}[1]{\index{filtros de |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
44 plantilla!\texttt{#1}}\index{\texttt{#1}, filtro de plantilla}\texttt{#1}} |
80
ea951cfb5cd9
Much template-related content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
62
diff
changeset
|
45 |
37 | 46 % Shell/system command. |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
47 \newcommand{\command}[1]{\index{\texttt{#1}, comando de sistema}\texttt{#1}} |
37 | 48 |
49 % Shell/system command, with arguments. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
50 \newcommand{\cmdargs}[2]{\index{\texttt{#1} comando de sistema}``\texttt{#1 #2}''} |
37 | 51 |
52 % Mercurial command option. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
53 \newcommand{\hgopt}[2]{\index{\texttt{#1}, comando!opción \texttt{#2}}\texttt{#2}} |
37 | 54 |
230
f83281da4122
Add new commands for commands and options provided by extensions.
Bryan O'Sullivan <bos@serpentine.com>
parents:
184
diff
changeset
|
55 % Mercurial command option, provided by an extension command. |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
56 \newcommand{\hgxopt}[3]{\index{\texttt{#2}, comando (extensión |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
57 \texttt{#1})!opción \texttt{#3}}\index{\texttt{#1}, extensión!comando |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
58 \texttt{#2}!opción\texttt{#3}}\texttt{#3}} |
230
f83281da4122
Add new commands for commands and options provided by extensions.
Bryan O'Sullivan <bos@serpentine.com>
parents:
184
diff
changeset
|
59 |
37 | 60 % Mercurial global option. |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
61 \newcommand{\hggopt}[1]{\index{opciones globales!opción \texttt{#1}}\texttt{#1}} |
37 | 62 |
63 % Shell/system command option. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
64 \newcommand{\cmdopt}[2]{\index{\texttt{#1}, comando!opción \texttt{#2}}\texttt{#2}} |
37 | 65 |
66 % Command option. | |
27
535e87792eb1
More MQ content and examples.
Bryan O'Sullivan <bos@serpentine.com>
parents:
26
diff
changeset
|
67 \newcommand{\option}[1]{\texttt{#1}} |
37 | 68 |
69 % Software package. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
70 \newcommand{\package}[1]{\index{\texttt{#1}, paquete}\texttt{#1}} |
37 | 71 |
72 % Section name from a hgrc file. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
73 \newcommand{\rcsection}[1]{\index{\texttt{hgrc}, fichero!sección \texttt{#1}}\texttt{[#1]}} |
37 | 74 |
75 % Named item in a hgrc file section. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
76 \newcommand{\rcitem}[2]{\index{\texttt{hgrc}, fichero!sección |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
77 \texttt{#1}!entrada \texttt{#2}}\texttt{#2}} |
37 | 78 |
79 % hgrc file. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
80 \newcommand{\hgrc}{\index{fichero de configuración!\texttt{hgrc} |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
81 (Linux/Unix)}\index{\texttt{hgrc}, fichero de configuración}\texttt{hgrc}} |
184
7b812c428074
Document the ssh protocol, URL syntax, and configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents:
146
diff
changeset
|
82 |
7b812c428074
Document the ssh protocol, URL syntax, and configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents:
146
diff
changeset
|
83 % Mercurial.ini file. |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
84 \newcommand{\hgini}{\index{fichero de configuración!\texttt{Mercurial.ini} |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
85 (Windows)}\index{\texttt{Mercurial.ini}, fichero de configuración}\texttt{Mercurial.ini}} |
37 | 86 |
87 % Hook name. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
88 \newcommand{\hook}[1]{\index{\texttt{#1}, gancho}\index{ganchos!\texttt{#1}}\texttt{#1}} |
37 | 89 |
90 % Environment variable. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
91 \newcommand{\envar}[1]{\index{\texttt{#1}, variable de entorno}\index{variables |
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
92 de entorno!\texttt{#1}}\texttt{#1}} |
0
76fba5835a1b
Beginnings of a build process and file layout.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
93 |
37 | 94 % Python module. |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
95 \newcommand{\pymod}[1]{\index{\texttt{#1}, módulo}\texttt{#1}} |
37 | 96 |
97 % Python class in a module. | |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
98 \newcommand{\pymodclass}[2]{\index{\texttt{#1}, módulo!clase \texttt{#2}}\texttt{#1.#2}} |
37 | 99 |
62
8806b2875f10
Finish off a big whack of content for the hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
59
diff
changeset
|
100 % Python function in a module. |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
101 \newcommand{\pymodfunc}[2]{\index{\texttt{#1}, módulo!función \texttt{#2}}\texttt{#1.#2}} |
62
8806b2875f10
Finish off a big whack of content for the hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
59
diff
changeset
|
102 |
37 | 103 % Note: blah blah. |
7
339e75288632
More progress on MQ chapter and general support.
Bryan O'Sullivan <bos@serpentine.com>
parents:
4
diff
changeset
|
104 \newsavebox{\notebox} |
11 | 105 \newenvironment{note}% |
449
74224b4f6928
this file was a symlink; this was intended to keep track of the file on any
jerojasro@localhost
parents:
447
diff
changeset
|
106 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Nota:}\space}% |
11 | 107 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}} |
56
b8539d91c84d
Begining of concepts chapter
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
34
diff
changeset
|
108 \newenvironment{caution}% |
449
74224b4f6928
this file was a symlink; this was intended to keep track of the file on any
jerojasro@localhost
parents:
447
diff
changeset
|
109 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Precaución:}\space}% |
56
b8539d91c84d
Begining of concepts chapter
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
34
diff
changeset
|
110 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}} |
7
339e75288632
More progress on MQ chapter and general support.
Bryan O'Sullivan <bos@serpentine.com>
parents:
4
diff
changeset
|
111 |
37 | 112 % Code sample, eating 4 characters of leading space. |
4
33a2e7b9978d
Make it possible to include example input and output from real programs.
Bryan O'Sullivan <bos@serpentine.com>
parents:
3
diff
changeset
|
113 \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}} |
37 | 114 |
115 % Code sample, eating 2 characters of leading space. | |
116 \DefineVerbatimEnvironment{codesample2}{Verbatim}{frame=single,gobble=2,numbers=left,commandchars=\\\{\}} | |
117 | |
118 % Interaction from the examples directory. | |
146
65f6f9d18fa1
Oops! I forgot that I need the undoctored output files in the book!
Bryan O'Sullivan <bos@serpentine.com>
parents:
133
diff
changeset
|
119 \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.lxo}} |
106
9cbc5d0db542
Finish off advanced MQ chapter (maybe).
Bryan O'Sullivan <bos@serpentine.com>
parents:
103
diff
changeset
|
120 % Example code from the examples directory. |
9cbc5d0db542
Finish off advanced MQ chapter (maybe).
Bryan O'Sullivan <bos@serpentine.com>
parents:
103
diff
changeset
|
121 \newcommand{\excode}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{../examples/#1}} |
9cbc5d0db542
Finish off advanced MQ chapter (maybe).
Bryan O'Sullivan <bos@serpentine.com>
parents:
103
diff
changeset
|
122 |
37 | 123 % Graphics inclusion. |
11 | 124 \ifpdf |
489
c3a867bba34a
modified definitions to allow optional arguments for the inclusion of images.
Javier Rojas <jerojasro@devnull.li>
parents:
453
diff
changeset
|
125 \newcommand{\grafix}[2][]{\includegraphics[#1]{#2}} |
11 | 126 \else |
127 \newcommand{\grafix}[1]{\includegraphics{#1.png}} | |
128 \fi | |
129 | |
132
e1e2f3e0256a
Start command reference, with the diff command.
Bryan O'Sullivan <bos@serpentine.com>
parents:
106
diff
changeset
|
130 % Reference entry for a command. |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
131 \newcommand{\cmdref}[2]{\section{\hgcmd{#1}---#2}\label{cmdref:#1}\index{\texttt{#1}, comando}} |
132
e1e2f3e0256a
Start command reference, with the diff command.
Bryan O'Sullivan <bos@serpentine.com>
parents:
106
diff
changeset
|
132 |
133
1e013fbe35f7
Lots of filename related content. A little more command reference
Bryan O'Sullivan <bos@serpentine.com>
parents:
132
diff
changeset
|
133 % Reference entry for a command option with long and short forms. |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
134 \newcommand{\optref}[3]{\subsubsection{\hgopt{#1}{--#3}, también \hgopt{#1}{-#2}}} |
133
1e013fbe35f7
Lots of filename related content. A little more command reference
Bryan O'Sullivan <bos@serpentine.com>
parents:
132
diff
changeset
|
135 |
1e013fbe35f7
Lots of filename related content. A little more command reference
Bryan O'Sullivan <bos@serpentine.com>
parents:
132
diff
changeset
|
136 % Reference entry for a command option with only long form. |
607
c054534808e6
translated a bunch of definitions, index entries and latex commands
Javier Rojas <jerojasro@devnull.li>
parents:
489
diff
changeset
|
137 \newcommand{\loptref}[2]{\subsubsection{opción \hgopt{#1}{--#2}}} |
132
e1e2f3e0256a
Start command reference, with the diff command.
Bryan O'Sullivan <bos@serpentine.com>
parents:
106
diff
changeset
|
138 |
447
0896fcbccdec
command to define how to enter translator's notes. Sorry about previous commit message
jerojasro@localhost
parents:
283
diff
changeset
|
139 % command to generate a footnote to be used as a translator's note |
0896fcbccdec
command to define how to enter translator's notes. Sorry about previous commit message
jerojasro@localhost
parents:
283
diff
changeset
|
140 \newcommand{\ndt}[1]{\footnote{\textbf{N. del T.} #1}} |
0896fcbccdec
command to define how to enter translator's notes. Sorry about previous commit message
jerojasro@localhost
parents:
283
diff
changeset
|
141 |
0896fcbccdec
command to define how to enter translator's notes. Sorry about previous commit message
jerojasro@localhost
parents:
283
diff
changeset
|
142 |
0
76fba5835a1b
Beginnings of a build process and file layout.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
143 %%% Local Variables: |
76fba5835a1b
Beginnings of a build process and file layout.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
144 %%% mode: latex |
76fba5835a1b
Beginnings of a build process and file layout.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
145 %%% TeX-master: "00book" |
76fba5835a1b
Beginnings of a build process and file layout.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
146 %%% End: |