Mercurial > hgbook
annotate es/99defs.tex @ 781:93d19b27859c
started concepts.tex
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 12 May 2009 17:49:11 +0900 |
parents | 019040fbf5f5 |
children |
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. | |
776 | 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. |
776 | 56 \newcommand{\hgxopt}[3]{\index{\texttt{#2}, comando (extensi坦n |
57 \texttt{#1})!opci坦n \texttt{#3}}\index{\texttt{#1}, extensi坦n!comando | |
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. |
776 | 61 \newcommand{\hggopt}[1]{\index{opciones globales!opci坦n \texttt{#1}}\texttt{#1}} |
37 | 62 |
63 % Shell/system command option. | |
776 | 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. | |
776 | 73 \newcommand{\rcsection}[1]{\index{\texttt{hgrc}, fichero!secci坦n \texttt{#1}}\texttt{[#1]}} |
37 | 74 |
75 % Named item in a hgrc file section. | |
776 | 76 \newcommand{\rcitem}[2]{\index{\texttt{hgrc}, fichero!secci坦n |
607
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. | |
776 | 80 \newcommand{\hgrc}{\index{fichero de configuraci坦n!\texttt{hgrc} |
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. |
776 | 84 \newcommand{\hgini}{\index{fichero de configuraci坦n!\texttt{Mercurial.ini} |
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. |
776 | 95 \newcommand{\pymod}[1]{\index{\texttt{#1}, m坦dulo}\texttt{#1}} |
37 | 96 |
97 % Python class in a module. | |
776 | 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. |
776 | 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}% |
776 | 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. |
776 | 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. |
776 | 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 |
369 | 143 %%% Local Variables: |
144 %%% mode: yatex | |
0
76fba5835a1b
Beginnings of a build process and file layout.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
145 %%% TeX-master: "00book" |
369 | 146 %%% End: |