hgbook

view ja/99defs.tex @ 890:2887b61fa4fe

Change fields to fieldsets in the Comment admin model. The 'date'
field isn't working properly for an unknown reason, so it has been
removed from the interface temporarily.
author dukebody <dukebody@gmail.com>
date Sun Oct 11 21:12:46 2009 +0200 (2009-10-11)
parents
children
line source
1 % Bug ID.
2 \newcommand{\bug}[1]{\index{Mercurial
3 $B%P%0%G!<%?%Y!<%9(B!
4 \href{http://www.selenic.com/mercurial/bts/issue#1}{$B%P%0(B~#1}
5 }\href{http://www.selenic.com/mercurial/bts/issue#1}{Mercurial
6 $B%P%0HV9f(B~#1}}
8 % File name in the user's home directory.
9 \newcommand{\tildefile}[1]{\texttt{\~{}/#1}}
11 % File name.
12 \newcommand{\filename}[1]{\texttt{#1}}
14 % Directory name.
15 \newcommand{\dirname}[1]{\texttt{#1}}
17 % File name, with index entry.
18 % The ``s'' prefix comes from ``special''.
19 \newcommand{\sfilename}[1]{\index{\texttt{#1} $B%U%!%$%k(B}\texttt{#1}}
21 % Directory name, with index entry.
22 \newcommand{\sdirname}[1]{\index{\texttt{#1} $B%G%#%l%/%H%j(B}\texttt{#1}}
24 % Mercurial extension.
25 \newcommand{\hgext}[1]{\index{\texttt{#1} $B%$%/%9%F%s%7%g%s(B}\texttt{#1}}
27 % Command provided by a Mercurial extension.
28 \newcommand{\hgxcmd}[2]{\index{\texttt{#2} $B%3%^%s%I(B (\texttt{#1}
29 $B%$%/%9%F%s%7%g%s(B)
30 }\index{\texttt{#1} $B%$%/%9%F%s%7%g%s(B!\texttt{#2} $B%3%^%s%I(B
31 }``\texttt{hg #2}''}
33 % Mercurial command.
34 \newcommand{\hgcmd}[1]{\index{\texttt{#1} $B%3%^%s%I(B}``\texttt{hg #1}''}
36 % Mercurial command, with arguments.
37 \newcommand{\hgcmdargs}[2]{\index{\texttt{#1} $B%3%^%s%I(B}``\texttt{hg #1 #2}''}
39 \newcommand{\tplkword}[1]{\index{\texttt{#1} $B%F%s%W%l!<%H%-!<%o!<%I(B
40 }\index{$B%F%s%W%l!<%H%-!<%o!<%I(B!\texttt{#1}}\texttt{#1}}
42 \newcommand{\tplkwfilt}[2]{
43 \index{\texttt{#1} $B%F%s%W%l!<%H%-!<%o!<%I(B!\texttt{#2} $B%U%#%k%?(B
44 }\index{$B%F%s%W%l!<%H%U%#%k%?(B!
45 \texttt{#2}}\index{\texttt{#2} $B%F%s%W%l!<%H%U%#%k%?(B}\texttt{#2}}
47 \newcommand{\tplfilter}[1]{\index{$B%F%s%W%l!<%H%U%#%k%?(B!\texttt{#1}
48 }\index{\texttt{#1} $B%F%s%W%l!<%H%U%#%k%?(B}\texttt{#1}}
50 % Shell/system command.
51 \newcommand{\command}[1]{\index{\texttt{#1} $B%7%9%F%`%3%^%s%I(B}\texttt{#1}}
53 % Shell/system command, with arguments.
54 \newcommand{\cmdargs}[2]{\index{\texttt{#1} $B%3%^%s%I(B}``\texttt{#1 #2}''}
56 % Mercurial command option.
57 \newcommand{\hgopt}[2]{\index{\texttt{#1} $B%3%^%s%I(B!\texttt{#2} $B%*%W%7%g%s(B
58 }\texttt{#2}}
60 % Mercurial command option, provided by an extension command.
61 \newcommand{\hgxopt}[3]{
62 \index{\texttt{#2} $B%3%^%s%I(B(\texttt{#1} $B%$%/%9%F%s%7%g%s(B)!
63 \texttt{#3} $B%*%W%7%g%s(B
64 }\index{\texttt{#1} $B%$%/%9%F%s%7%g%s(B!\texttt{#2} $B%3%^%s%I(B!
65 \texttt{#3} $B%*%W%7%g%s(B}\texttt{#3}}
67 % Mercurial global option.
68 \newcommand{\hggopt}[1]{\index{$B%0%m!<%P%k%*%W%7%g%s(B!\texttt{#1} $B%*%W%7%g%s(B
69 }\texttt{#1}}
71 % Shell/system command option.
72 \newcommand{\cmdopt}[2]{\index{\texttt{#1} $B%3%^%s%I(B!\texttt{#2} $B%*%W%7%g%s(B
73 }\texttt{#2}}
75 % Command option.
76 \newcommand{\option}[1]{\texttt{#1}}
78 % Software package.
79 \newcommand{\package}[1]{\index{\texttt{#1} $B%Q%C%1!<%8(B}\texttt{#1}}
81 % Section name from a hgrc file.
82 \newcommand{\rcsection}[1]{\index{\texttt{hgrc} $B%U%!%$%k(B!\texttt{#1} $B%;%/%7%g%s(B
83 }\texttt{[#1]}}
85 % Named item in a hgrc file section.
86 \newcommand{\rcitem}[2]{\index{\texttt{hgrc} $B%U%!%$%k(B!
87 \texttt{#1} $B%;%/%7%g%s(B!\texttt{#2} $B9`L\(B}\texttt{#2}}
89 % hgrc file.
90 \newcommand{\hgrc}{\index{$B@_Dj%U%!%$%k(B!\texttt{hgrc}(Linux/Unix)
91 }\index{\texttt{hgrc} $B@_Dj%U%!%$%k(B}\texttt{hgrc}}
93 % Mercurial.ini file.
94 \newcommand{\hgini}{\index{$B@_Dj%U%!%$%k(B!\texttt{Mercurial.ini}(Windows)
95 }\index{\texttt{Mercurial.ini} $B@_Dj%U%!%$%k(B
96 }\texttt{Mercurial.ini}}
98 % Hook name.
99 \newcommand{\hook}[1]{\index{\texttt{#1} $B%U%C%/(B
100 }\index{$B%U%C%/(B!\texttt{#1}}\texttt{#1}}
102 % Environment variable.
103 \newcommand{\envar}[1]{\index{\texttt{#1} $B4D6-JQ?t(B
104 }\index{$B4D6-JQ?t(B!\texttt{#1}}\texttt{#1}}
106 % Python module.
107 \newcommand{\pymod}[1]{\index{\texttt{#1} $B%b%8%e!<%k(B}\texttt{#1}}
109 % Python class in a module.
110 \newcommand{\pymodclass}[2]{\index{\texttt{#1} $B%b%8%e!<%k(B!\texttt{#2} $B%/%i%9(B
111 }\texttt{#1.#2}}
113 % Python function in a module.
114 \newcommand{\pymodfunc}[2]{\index{\texttt{#1} $B%b%8%e!<%k(B!\texttt{#2} $B4X?t(B
115 }\texttt{#1.#2}}
117 % Code sample, eating 4 characters of leading space.
118 \DefineVerbatimEnvironment{codesample4}{Verbatim}{
119 frame=single,
120 gobble=4,
121 xleftmargin=0.1\textwidth,
122 xrightmargin=0.1\textwidth,
123 baselinestretch=0.8,
124 numbers=left,
125 commandchars=\\\{\}
126 }
128 % Code sample, eating 2 characters of leading space.
129 \DefineVerbatimEnvironment{codesample2}{Verbatim}{
130 frame=single,
131 gobble=2,
132 xleftmargin=0.1\textwidth,
133 xrightmargin=0.1\textwidth,
134 baselinestretch=0.8,
135 numbers=left,
136 commandchars=\\\{\}
137 }
139 % Interaction from the examples directory.
140 \newcommand{\interaction}[1]{
141 \vspace{1.5\kanjicharheight}
142 \VerbatimInput[
143 frame=single,
144 xleftmargin=0.1\textwidth,
145 xrightmargin=0.1\textwidth,
146 baselinestretch=0.8,
147 numbers=left,
148 commandchars=\\\{\}
149 ]{%
150 % examples/#1.out
151 examples/#1.lxo
152 }
153 \vspace{1.5\kanjicharheight}
154 }
155 % Example code from the examples directory.
156 \newcommand{\excode}[1]{
157 \vspace{1.5\kanjicharheight}
158 \VerbatimInput[
159 frame=single,
160 xleftmargin=0.1\textwidth,
161 xrightmargin=0.1\textwidth,
162 baselinestretch=0.8,
163 numbers=left,
164 commandchars=\\\{\}
165 ]{../examples/#1}
166 \vspace{1.5\kanjicharheight}
167 }
169 % Reference entry for a command.
170 \newcommand{\cmdref}[2]{\section{\hgcmd{#1}---#2}\label{cmdref:#1}
171 \index{\texttt{#1} $B%3%^%s%I(B}}
173 % Reference entry for a command option with long and short forms.
174 \newcommand{\optref}[3]{\subsubsection{\hgopt{#1}{--#3} $B$J$$$7(B
175 \hgopt{#1}{-#2}}}
177 % Reference entry for a command option with only long form.
178 \newcommand{\loptref}[2]{\subsubsection{\hgopt{#1}{--#2} $B%*%W%7%g%s(B}}
180 %%% Local Variables:
181 %%% mode: latex
182 %%% TeX-master: "00book"
183 %%% End: