hgbook

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