rev |
line source |
bos@37
|
1 % Bug ID.
|
bos@38
|
2 \newcommand{\bug}[1]{\index{Mercurial bug
|
bos@38
|
3 database!\href{http://www.selenic.com/mercurial/bts/issue#1}{bug
|
bos@38
|
4 ~#1}}\href{http://www.selenic.com/mercurial/bts/issue#1}{Mercurial
|
bos@38
|
5 bug no.~#1}}
|
bos@37
|
6
|
bos@37
|
7 % File name in the user's home directory.
|
bos@4
|
8 \newcommand{\tildefile}[1]{\texttt{\~{}/#1}}
|
bos@37
|
9
|
bos@37
|
10 % File name.
|
bos@2
|
11 \newcommand{\filename}[1]{\texttt{#1}}
|
bos@37
|
12
|
bos@37
|
13 % Directory name.
|
bos@16
|
14 \newcommand{\dirname}[1]{\texttt{#1}}
|
bos@37
|
15
|
bos@37
|
16 % File name, with index entry.
|
bos@37
|
17 % The ``s'' prefix comes from ``special''.
|
bos@16
|
18 \newcommand{\sfilename}[1]{\index{\texttt{#1} file}\texttt{#1}}
|
bos@37
|
19
|
bos@37
|
20 % Directory name, with index entry.
|
bos@16
|
21 \newcommand{\sdirname}[1]{\index{\texttt{#1} directory}\texttt{#1}}
|
bos@37
|
22
|
bos@37
|
23 % Mercurial extension.
|
bos@16
|
24 \newcommand{\hgext}[1]{\index{\texttt{#1} extension}\texttt{#1}}
|
bos@37
|
25
|
bos@230
|
26 % Command provided by a Mercurial extension.
|
bos@230
|
27 \newcommand{\hgxcmd}[2]{\index{\texttt{#2} command (\texttt{#1}
|
bos@230
|
28 extension)}\index{\texttt{#1} extension!\texttt{#2} command}``\texttt{hg #2}''}
|
bos@230
|
29
|
bos@37
|
30 % Mercurial command.
|
bos@16
|
31 \newcommand{\hgcmd}[1]{\index{\texttt{#1} command}``\texttt{hg #1}''}
|
bos@37
|
32
|
bos@37
|
33 % Mercurial command, with arguments.
|
bos@37
|
34 \newcommand{\hgcmdargs}[2]{\index{\texttt{#1} command}``\texttt{hg #1 #2}''}
|
bos@37
|
35
|
bos@80
|
36 \newcommand{\tplkword}[1]{\index{\texttt{#1} template keyword}\index{template keywords!\texttt{#1}}\texttt{#1}}
|
bos@80
|
37
|
bos@80
|
38 \newcommand{\tplkwfilt}[2]{\index{\texttt{#1} template keyword!\texttt{#2}
|
bos@80
|
39 filter}\index{template filters!\texttt{#2}}\index{\texttt{#2}
|
bos@80
|
40 template filter}\texttt{#2}}
|
bos@80
|
41
|
bos@80
|
42 \newcommand{\tplfilter}[1]{\index{template
|
bos@80
|
43 filters!\texttt{#1}}\index{\texttt{#1} template
|
bos@80
|
44 filter}\texttt{#1}}
|
bos@80
|
45
|
bos@37
|
46 % Shell/system command.
|
bos@237
|
47 \newcommand{\command}[1]{\index{\texttt{#1} system command}\texttt{#1}}
|
bos@37
|
48
|
bos@37
|
49 % Shell/system command, with arguments.
|
faheem@283
|
50 \newcommand{\cmdargs}[2]{\index{\texttt{#1} system command}``\texttt{#1 #2}''}
|
bos@37
|
51
|
bos@37
|
52 % Mercurial command option.
|
bos@17
|
53 \newcommand{\hgopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
|
bos@37
|
54
|
bos@230
|
55 % Mercurial command option, provided by an extension command.
|
bos@230
|
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}}
|
bos@230
|
57
|
bos@37
|
58 % Mercurial global option.
|
bos@37
|
59 \newcommand{\hggopt}[1]{\index{global options!\texttt{#1} option}\texttt{#1}}
|
bos@37
|
60
|
bos@37
|
61 % Shell/system command option.
|
bos@19
|
62 \newcommand{\cmdopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
|
bos@37
|
63
|
bos@37
|
64 % Command option.
|
bos@27
|
65 \newcommand{\option}[1]{\texttt{#1}}
|
bos@37
|
66
|
bos@37
|
67 % Software package.
|
bos@16
|
68 \newcommand{\package}[1]{\index{\texttt{#1} package}\texttt{#1}}
|
bos@37
|
69
|
bos@37
|
70 % Section name from a hgrc file.
|
bos@34
|
71 \newcommand{\rcsection}[1]{\index{\texttt{hgrc} file!\texttt{#1} section}\texttt{[#1]}}
|
bos@37
|
72
|
bos@37
|
73 % Named item in a hgrc file section.
|
bos@34
|
74 \newcommand{\rcitem}[2]{\index{\texttt{hgrc} file!\texttt{#1}
|
bos@62
|
75 section!\texttt{#2} entry}\texttt{#2}}
|
bos@37
|
76
|
bos@37
|
77 % hgrc file.
|
bos@184
|
78 \newcommand{\hgrc}{\index{configuration file!\texttt{hgrc}
|
bos@184
|
79 (Linux/Unix)}\index{\texttt{hgrc} configuration file}\texttt{hgrc}}
|
bos@184
|
80
|
bos@184
|
81 % Mercurial.ini file.
|
bos@184
|
82 \newcommand{\hgini}{\index{configuration file!\texttt{Mercurial.ini}
|
bos@184
|
83 (Windows)}\index{\texttt{Mercurial.ini} configuration file}\texttt{Mercurial.ini}}
|
bos@37
|
84
|
bos@37
|
85 % Hook name.
|
bos@34
|
86 \newcommand{\hook}[1]{\index{\texttt{#1} hook}\index{hooks!\texttt{#1}}\texttt{#1}}
|
bos@37
|
87
|
bos@37
|
88 % Environment variable.
|
bos@34
|
89 \newcommand{\envar}[1]{\index{\texttt{#1} environment
|
bos@34
|
90 variable}\index{environment variables!\texttt{#1}}\texttt{#1}}
|
bos@0
|
91
|
bos@37
|
92 % Python module.
|
bos@37
|
93 \newcommand{\pymod}[1]{\index{\texttt{#1} module}\texttt{#1}}
|
bos@37
|
94
|
bos@37
|
95 % Python class in a module.
|
bos@37
|
96 \newcommand{\pymodclass}[2]{\index{\texttt{#1} module!\texttt{#2}
|
bos@37
|
97 class}\texttt{#1.#2}}
|
bos@37
|
98
|
bos@62
|
99 % Python function in a module.
|
bos@62
|
100 \newcommand{\pymodfunc}[2]{\index{\texttt{#1} module!\texttt{#2}
|
bos@62
|
101 function}\texttt{#1.#2}}
|
bos@62
|
102
|
bos@37
|
103 % Note: blah blah.
|
bos@7
|
104 \newsavebox{\notebox}
|
bos@11
|
105 \newenvironment{note}%
|
jerojasro@350
|
106 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Nota:}\space}%
|
bos@11
|
107 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}
|
jeffpc@56
|
108 \newenvironment{caution}%
|
jerojasro@350
|
109 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Precaución:}\space}%
|
jeffpc@56
|
110 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}
|
bos@7
|
111
|
bos@37
|
112 % Code sample, eating 4 characters of leading space.
|
bos@4
|
113 \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}}
|
bos@37
|
114
|
bos@37
|
115 % Code sample, eating 2 characters of leading space.
|
bos@37
|
116 \DefineVerbatimEnvironment{codesample2}{Verbatim}{frame=single,gobble=2,numbers=left,commandchars=\\\{\}}
|
bos@37
|
117
|
bos@37
|
118 % Interaction from the examples directory.
|
bos@146
|
119 \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.lxo}}
|
bos@106
|
120 % Example code from the examples directory.
|
bos@106
|
121 \newcommand{\excode}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{../examples/#1}}
|
bos@106
|
122
|
bos@37
|
123 % Graphics inclusion.
|
bos@11
|
124 \ifpdf
|
jerojasro@390
|
125 \newcommand{\grafix}[2][]{\includegraphics[#1]{#2}}
|
bos@11
|
126 \else
|
bos@11
|
127 \newcommand{\grafix}[1]{\includegraphics{#1.png}}
|
bos@11
|
128 \fi
|
bos@11
|
129
|
bos@132
|
130 % Reference entry for a command.
|
bos@133
|
131 \newcommand{\cmdref}[2]{\section{\hgcmd{#1}---#2}\label{cmdref:#1}\index{\texttt{#1} command}}
|
bos@132
|
132
|
bos@133
|
133 % Reference entry for a command option with long and short forms.
|
bos@133
|
134 \newcommand{\optref}[3]{\subsubsection{\hgopt{#1}{--#3}, also \hgopt{#1}{-#2}}}
|
bos@133
|
135
|
bos@133
|
136 % Reference entry for a command option with only long form.
|
bos@133
|
137 \newcommand{\loptref}[2]{\subsubsection{\hgopt{#1}{--#2} option}}
|
bos@132
|
138
|
jerojasro@348
|
139 % command to generate a footnote to be used as a translator's note
|
jerojasro@348
|
140 \newcommand{\ndt}[1]{\footnote{\textbf{N. del T.} #1}}
|
jerojasro@348
|
141
|
jerojasro@348
|
142
|
bos@0
|
143 %%% Local Variables:
|
bos@0
|
144 %%% mode: latex
|
bos@0
|
145 %%% TeX-master: "00book"
|
bos@0
|
146 %%% End:
|