Mercurial > hgbook
annotate es/99defs.tex @ 454:5e325122bea5
translated 2 paragraphs
author | jerojasro@localhost |
---|---|
date | Tue, 21 Oct 2008 21:53:39 -0500 |
parents | 74224b4f6928 |
children | 11d7896cd2ac |
rev | line source |
---|---|
37 | 1 % Bug ID. |
38
b49a7dd4e564
More content for hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
37
diff
changeset
|
2 \newcommand{\bug}[1]{\index{Mercurial bug |
b49a7dd4e564
More content for hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
37
diff
changeset
|
3 database!\href{http://www.selenic.com/mercurial/bts/issue#1}{bug |
b49a7dd4e564
More content for hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
37
diff
changeset
|
4 ~#1}}\href{http://www.selenic.com/mercurial/bts/issue#1}{Mercurial |
b49a7dd4e564
More content for hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
37
diff
changeset
|
5 bug 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''. | |
16
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
18 \newcommand{\sfilename}[1]{\index{\texttt{#1} file}\texttt{#1}} |
37 | 19 |
20 % Directory name, with index entry. | |
16
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
21 \newcommand{\sdirname}[1]{\index{\texttt{#1} directory}\texttt{#1}} |
37 | 22 |
23 % Mercurial extension. | |
16
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
24 \newcommand{\hgext}[1]{\index{\texttt{#1} extension}\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. |
f83281da4122
Add new commands for commands and options provided by extensions.
Bryan O'Sullivan <bos@serpentine.com>
parents:
184
diff
changeset
|
27 \newcommand{\hgxcmd}[2]{\index{\texttt{#2} command (\texttt{#1} |
f83281da4122
Add new commands for commands and options provided by extensions.
Bryan O'Sullivan <bos@serpentine.com>
parents:
184
diff
changeset
|
28 extension)}\index{\texttt{#1} extension!\texttt{#2} command}``\texttt{hg #2}''} |
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. |
16
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
31 \newcommand{\hgcmd}[1]{\index{\texttt{#1} command}``\texttt{hg #1}''} |
37 | 32 |
33 % Mercurial command, with arguments. | |
34 \newcommand{\hgcmdargs}[2]{\index{\texttt{#1} command}``\texttt{hg #1 #2}''} | |
35 | |
80
ea951cfb5cd9
Much template-related content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
62
diff
changeset
|
36 \newcommand{\tplkword}[1]{\index{\texttt{#1} template keyword}\index{template keywords!\texttt{#1}}\texttt{#1}} |
ea951cfb5cd9
Much template-related content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
62
diff
changeset
|
37 |
ea951cfb5cd9
Much template-related content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
62
diff
changeset
|
38 \newcommand{\tplkwfilt}[2]{\index{\texttt{#1} template keyword!\texttt{#2} |
ea951cfb5cd9
Much template-related content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
62
diff
changeset
|
39 filter}\index{template filters!\texttt{#2}}\index{\texttt{#2} |
ea951cfb5cd9
Much template-related content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
62
diff
changeset
|
40 template filter}\texttt{#2}} |
ea951cfb5cd9
Much template-related content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
62
diff
changeset
|
41 |
ea951cfb5cd9
Much template-related content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
62
diff
changeset
|
42 \newcommand{\tplfilter}[1]{\index{template |
ea951cfb5cd9
Much template-related content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
62
diff
changeset
|
43 filters!\texttt{#1}}\index{\texttt{#1} template |
ea951cfb5cd9
Much template-related content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
62
diff
changeset
|
44 filter}\texttt{#1}} |
ea951cfb5cd9
Much template-related content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
62
diff
changeset
|
45 |
37 | 46 % Shell/system command. |
237
28bd9ab3edbf
Distinguish system from Mercurial commands in the index.
Bryan O'Sullivan <bos@serpentine.com>
parents:
230
diff
changeset
|
47 \newcommand{\command}[1]{\index{\texttt{#1} system command}\texttt{#1}} |
37 | 48 |
49 % Shell/system command, with arguments. | |
283
4ed483f08e33
Mention how to define mq alias.
Faheem Mitha <faheem@email.unc.edu>
parents:
237
diff
changeset
|
50 \newcommand{\cmdargs}[2]{\index{\texttt{#1} system command}``\texttt{#1 #2}''} |
37 | 51 |
52 % Mercurial command option. | |
17
2668e15c76e9
MQ: write up patch rebasing.
Bryan O'Sullivan <bos@serpentine.com>
parents:
16
diff
changeset
|
53 \newcommand{\hgopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\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. |
f83281da4122
Add new commands for commands and options provided by extensions.
Bryan O'Sullivan <bos@serpentine.com>
parents:
184
diff
changeset
|
56 \newcommand{\hgxopt}[3]{\index{\texttt{#2} command (\texttt{#1} extension)!\texttt{#3} option}\index{\texttt{#1} extension!\texttt{#2} command!\texttt{#3} option}\texttt{#3}} |
f83281da4122
Add new commands for commands and options provided by extensions.
Bryan O'Sullivan <bos@serpentine.com>
parents:
184
diff
changeset
|
57 |
37 | 58 % Mercurial global option. |
59 \newcommand{\hggopt}[1]{\index{global options!\texttt{#1} option}\texttt{#1}} | |
60 | |
61 % Shell/system command option. | |
19
187702df428b
Piles of new content for MQ chapter - cookbook stuff.
Bryan O'Sullivan <bos@serpentine.com>
parents:
17
diff
changeset
|
62 \newcommand{\cmdopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}} |
37 | 63 |
64 % Command option. | |
27
535e87792eb1
More MQ content and examples.
Bryan O'Sullivan <bos@serpentine.com>
parents:
26
diff
changeset
|
65 \newcommand{\option}[1]{\texttt{#1}} |
37 | 66 |
67 % Software package. | |
16
81454425eee9
Progress on a few fronts, mainly indexing and MQ chapter content
Bryan O'Sullivan <bos@serpentine.com>
parents:
14
diff
changeset
|
68 \newcommand{\package}[1]{\index{\texttt{#1} package}\texttt{#1}} |
37 | 69 |
70 % Section name from a hgrc file. | |
34
c0979ed1eabd
Get started on hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
27
diff
changeset
|
71 \newcommand{\rcsection}[1]{\index{\texttt{hgrc} file!\texttt{#1} section}\texttt{[#1]}} |
37 | 72 |
73 % Named item in a hgrc file section. | |
34
c0979ed1eabd
Get started on hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
27
diff
changeset
|
74 \newcommand{\rcitem}[2]{\index{\texttt{hgrc} file!\texttt{#1} |
62
8806b2875f10
Finish off a big whack of content for the hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
59
diff
changeset
|
75 section!\texttt{#2} entry}\texttt{#2}} |
37 | 76 |
77 % hgrc file. | |
184
7b812c428074
Document the ssh protocol, URL syntax, and configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents:
146
diff
changeset
|
78 \newcommand{\hgrc}{\index{configuration file!\texttt{hgrc} |
7b812c428074
Document the ssh protocol, URL syntax, and configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents:
146
diff
changeset
|
79 (Linux/Unix)}\index{\texttt{hgrc} configuration file}\texttt{hgrc}} |
7b812c428074
Document the ssh protocol, URL syntax, and configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents:
146
diff
changeset
|
80 |
7b812c428074
Document the ssh protocol, URL syntax, and configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents:
146
diff
changeset
|
81 % Mercurial.ini file. |
7b812c428074
Document the ssh protocol, URL syntax, and configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents:
146
diff
changeset
|
82 \newcommand{\hgini}{\index{configuration file!\texttt{Mercurial.ini} |
7b812c428074
Document the ssh protocol, URL syntax, and configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents:
146
diff
changeset
|
83 (Windows)}\index{\texttt{Mercurial.ini} configuration file}\texttt{Mercurial.ini}} |
37 | 84 |
85 % Hook name. | |
34
c0979ed1eabd
Get started on hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
27
diff
changeset
|
86 \newcommand{\hook}[1]{\index{\texttt{#1} hook}\index{hooks!\texttt{#1}}\texttt{#1}} |
37 | 87 |
88 % Environment variable. | |
34
c0979ed1eabd
Get started on hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
27
diff
changeset
|
89 \newcommand{\envar}[1]{\index{\texttt{#1} environment |
c0979ed1eabd
Get started on hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
27
diff
changeset
|
90 variable}\index{environment variables!\texttt{#1}}\texttt{#1}} |
0
76fba5835a1b
Beginnings of a build process and file layout.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
91 |
37 | 92 % Python module. |
93 \newcommand{\pymod}[1]{\index{\texttt{#1} module}\texttt{#1}} | |
94 | |
95 % Python class in a module. | |
96 \newcommand{\pymodclass}[2]{\index{\texttt{#1} module!\texttt{#2} | |
97 class}\texttt{#1.#2}} | |
98 | |
62
8806b2875f10
Finish off a big whack of content for the hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
59
diff
changeset
|
99 % Python function in a module. |
8806b2875f10
Finish off a big whack of content for the hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
59
diff
changeset
|
100 \newcommand{\pymodfunc}[2]{\index{\texttt{#1} module!\texttt{#2} |
8806b2875f10
Finish off a big whack of content for the hook chapter.
Bryan O'Sullivan <bos@serpentine.com>
parents:
59
diff
changeset
|
101 function}\texttt{#1.#2}} |
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 |
103 | 125 \newcommand{\grafix}[1]{\includegraphics{#1}} |
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. |
133
1e013fbe35f7
Lots of filename related content. A little more command reference
Bryan O'Sullivan <bos@serpentine.com>
parents:
132
diff
changeset
|
131 \newcommand{\cmdref}[2]{\section{\hgcmd{#1}---#2}\label{cmdref:#1}\index{\texttt{#1} command}} |
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. |
1e013fbe35f7
Lots of filename related content. A little more command reference
Bryan O'Sullivan <bos@serpentine.com>
parents:
132
diff
changeset
|
134 \newcommand{\optref}[3]{\subsubsection{\hgopt{#1}{--#3}, also \hgopt{#1}{-#2}}} |
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. |
1e013fbe35f7
Lots of filename related content. A little more command reference
Bryan O'Sullivan <bos@serpentine.com>
parents:
132
diff
changeset
|
137 \newcommand{\loptref}[2]{\subsubsection{\hgopt{#1}{--#2} option}} |
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: |