
foozy@708: % Bug ID.
foozy@708: \newcommand{\bug}[1]{\index{Mercurial 
foozy@708:     $B%P%0%G!<%?%Y!<%9(B!
foozy@708:     \href{http://www.selenic.com/mercurial/bts/issue#1}{$B%P%0(B~#1}
foozy@708:     }\href{http://www.selenic.com/mercurial/bts/issue#1}{Mercurial
foozy@708:     $B%P%0HV9f(B~#1}}
foozy@708: 
foozy@708: % File name in the user's home directory.
foozy@708: \newcommand{\tildefile}[1]{\texttt{\~{}/#1}}
foozy@708: 
foozy@708: % File name.
foozy@708: \newcommand{\filename}[1]{\texttt{#1}}
foozy@708: 
foozy@708: % Directory name.
foozy@708: \newcommand{\dirname}[1]{\texttt{#1}}
foozy@708: 
foozy@708: % File name, with index entry.
foozy@708: % The ``s'' prefix comes from ``special''.
foozy@708: \newcommand{\sfilename}[1]{\index{\texttt{#1} $B%U%!%$%k(B}\texttt{#1}}
foozy@708: 
foozy@708: % Directory name, with index entry.
foozy@708: \newcommand{\sdirname}[1]{\index{\texttt{#1} $B%G%#%l%/%H%j(B}\texttt{#1}}
foozy@708: 
foozy@708: % Mercurial extension.
foozy@708: \newcommand{\hgext}[1]{\index{\texttt{#1} $B%$%/%9%F%s%7%g%s(B}\texttt{#1}}
foozy@708: 
foozy@708: % Command provided by a Mercurial extension.
foozy@708: \newcommand{\hgxcmd}[2]{\index{\texttt{#2} $B%3%^%s%I(B (\texttt{#1}
foozy@708:     $B%$%/%9%F%s%7%g%s(B)
foozy@708:     }\index{\texttt{#1} $B%$%/%9%F%s%7%g%s(B!\texttt{#2} $B%3%^%s%I(B
foozy@708:     }``\texttt{hg #2}''}
foozy@708: 
foozy@708: % Mercurial command.
foozy@708: \newcommand{\hgcmd}[1]{\index{\texttt{#1} $B%3%^%s%I(B}``\texttt{hg #1}''}
foozy@708: 
foozy@708: % Mercurial command, with arguments.
foozy@708: \newcommand{\hgcmdargs}[2]{\index{\texttt{#1} $B%3%^%s%I(B}``\texttt{hg #1 #2}''}
foozy@708: 
foozy@708: \newcommand{\tplkword}[1]{\index{\texttt{#1} $B%F%s%W%l!<%H%-!<%o!<%I(B
foozy@708:     }\index{$B%F%s%W%l!<%H%-!<%o!<%I(B!\texttt{#1}}\texttt{#1}}
foozy@708: 
foozy@708: \newcommand{\tplkwfilt}[2]{
foozy@708:     \index{\texttt{#1} $B%F%s%W%l!<%H%-!<%o!<%I(B!\texttt{#2} $B%U%#%k%?(B
foozy@708:     }\index{$B%F%s%W%l!<%H%U%#%k%?(B!
foozy@708:     \texttt{#2}}\index{\texttt{#2} $B%F%s%W%l!<%H%U%#%k%?(B}\texttt{#2}}
foozy@708: 
foozy@708: \newcommand{\tplfilter}[1]{\index{$B%F%s%W%l!<%H%U%#%k%?(B!\texttt{#1}
foozy@708:     }\index{\texttt{#1} $B%F%s%W%l!<%H%U%#%k%?(B}\texttt{#1}}
foozy@708: 
foozy@708: % Shell/system command.
foozy@708: \newcommand{\command}[1]{\index{\texttt{#1} $B%7%9%F%`%3%^%s%I(B}\texttt{#1}}
foozy@708: 
foozy@708: % Shell/system command, with arguments.
foozy@708: \newcommand{\cmdargs}[2]{\index{\texttt{#1} $B%3%^%s%I(B}``\texttt{#1 #2}''}
foozy@708: 
foozy@708: % Mercurial command option.
foozy@708: \newcommand{\hgopt}[2]{\index{\texttt{#1} $B%3%^%s%I(B!\texttt{#2} $B%*%W%7%g%s(B
foozy@708:     }\texttt{#2}}
foozy@708: 
foozy@708: % Mercurial command option, provided by an extension command.
foozy@708: \newcommand{\hgxopt}[3]{
foozy@708:     \index{\texttt{#2} $B%3%^%s%I(B(\texttt{#1} $B%$%/%9%F%s%7%g%s(B)!
foozy@708:     \texttt{#3} $B%*%W%7%g%s(B
foozy@708:     }\index{\texttt{#1} $B%$%/%9%F%s%7%g%s(B!\texttt{#2} $B%3%^%s%I(B!
foozy@708:     \texttt{#3} $B%*%W%7%g%s(B}\texttt{#3}}
foozy@708: 
foozy@708: % Mercurial global option.
foozy@708: \newcommand{\hggopt}[1]{\index{$B%0%m!<%P%k%*%W%7%g%s(B!\texttt{#1} $B%*%W%7%g%s(B
foozy@708:     }\texttt{#1}}
foozy@708: 
foozy@708: % Shell/system command option.
foozy@708: \newcommand{\cmdopt}[2]{\index{\texttt{#1} $B%3%^%s%I(B!\texttt{#2} $B%*%W%7%g%s(B
foozy@708:     }\texttt{#2}}
foozy@708: 
foozy@708: % Command option.
foozy@708: \newcommand{\option}[1]{\texttt{#1}}
foozy@708: 
foozy@708: % Software package.
foozy@708: \newcommand{\package}[1]{\index{\texttt{#1} $B%Q%C%1!<%8(B}\texttt{#1}}
foozy@708: 
foozy@708: % Section name from a hgrc file.
foozy@708: \newcommand{\rcsection}[1]{\index{\texttt{hgrc} $B%U%!%$%k(B!\texttt{#1} $B%;%/%7%g%s(B
foozy@708:     }\texttt{[#1]}}
foozy@708: 
foozy@708: % Named item in a hgrc file section.
foozy@708: \newcommand{\rcitem}[2]{\index{\texttt{hgrc} $B%U%!%$%k(B!
foozy@708:     \texttt{#1} $B%;%/%7%g%s(B!\texttt{#2} $B9`L\(B}\texttt{#2}}
foozy@708: 
foozy@708: % hgrc file.
foozy@708: \newcommand{\hgrc}{\index{$B@_Dj%U%!%$%k(B!\texttt{hgrc}(Linux/Unix)
foozy@708:     }\index{\texttt{hgrc} $B@_Dj%U%!%$%k(B}\texttt{hgrc}}
foozy@708: 
foozy@708: % Mercurial.ini file.
foozy@708: \newcommand{\hgini}{\index{$B@_Dj%U%!%$%k(B!\texttt{Mercurial.ini}(Windows)
foozy@708:     }\index{\texttt{Mercurial.ini} $B@_Dj%U%!%$%k(B
foozy@708:     }\texttt{Mercurial.ini}}
foozy@708: 
foozy@708: % Hook name.
foozy@708: \newcommand{\hook}[1]{\index{\texttt{#1} $B%U%C%/(B
foozy@708:     }\index{$B%U%C%/(B!\texttt{#1}}\texttt{#1}}
foozy@708: 
foozy@708: % Environment variable.
foozy@708: \newcommand{\envar}[1]{\index{\texttt{#1} $B4D6-JQ?t(B
foozy@708:     }\index{$B4D6-JQ?t(B!\texttt{#1}}\texttt{#1}}
foozy@708: 
foozy@708: % Python module.
foozy@708: \newcommand{\pymod}[1]{\index{\texttt{#1} $B%b%8%e!<%k(B}\texttt{#1}}
foozy@708: 
foozy@708: % Python class in a module.
foozy@708: \newcommand{\pymodclass}[2]{\index{\texttt{#1} $B%b%8%e!<%k(B!\texttt{#2} $B%/%i%9(B
foozy@708:     }\texttt{#1.#2}}
foozy@708: 
foozy@708: % Python function in a module.
foozy@708: \newcommand{\pymodfunc}[2]{\index{\texttt{#1} $B%b%8%e!<%k(B!\texttt{#2} $B4X?t(B
foozy@708:     }\texttt{#1.#2}}
foozy@708: 
foozy@708: % Code sample, eating 4 characters of leading space.
foozy@708: \DefineVerbatimEnvironment{codesample4}{Verbatim}{
foozy@708:   frame=single,
foozy@708:   gobble=4,
foozy@708:   xleftmargin=0.1\textwidth,
foozy@708:   xrightmargin=0.1\textwidth,
foozy@708:   baselinestretch=0.8,
foozy@708:   numbers=left,
foozy@708:   commandchars=\\\{\}
foozy@708: }
foozy@708: 
foozy@708: % Code sample, eating 2 characters of leading space.
foozy@708: \DefineVerbatimEnvironment{codesample2}{Verbatim}{
foozy@708:   frame=single,
foozy@708:   gobble=2,
foozy@708:   xleftmargin=0.1\textwidth,
foozy@708:   xrightmargin=0.1\textwidth,
foozy@708:   baselinestretch=0.8,
foozy@708:   numbers=left,
foozy@708:   commandchars=\\\{\}
foozy@708: }
foozy@708: 
foozy@708: % Interaction from the examples directory.
foozy@708: \newcommand{\interaction}[1]{
foozy@708:   \vspace{1.5\kanjicharheight}
foozy@708:   \VerbatimInput[
foozy@708:     frame=single,
foozy@708:     xleftmargin=0.1\textwidth,
foozy@708:     xrightmargin=0.1\textwidth,
foozy@708:     baselinestretch=0.8,
foozy@708:     numbers=left,
foozy@708:     commandchars=\\\{\}
foozy@708:   ]{%
foozy@708: %    examples/#1.out
foozy@708:     examples/#1.lxo
foozy@708:   }
foozy@708:   \vspace{1.5\kanjicharheight}
foozy@708: }
foozy@708: % Example code from the examples directory.
foozy@708: \newcommand{\excode}[1]{
foozy@708:   \vspace{1.5\kanjicharheight}
foozy@708:   \VerbatimInput[
foozy@708:     frame=single,
foozy@708:     xleftmargin=0.1\textwidth,
foozy@708:     xrightmargin=0.1\textwidth,
foozy@708:     baselinestretch=0.8,
foozy@708:     numbers=left,
foozy@708:     commandchars=\\\{\}
foozy@708:   ]{../examples/#1}
foozy@708:   \vspace{1.5\kanjicharheight}
foozy@708: }
foozy@708: 
foozy@708: % Reference entry for a command.
foozy@708: \newcommand{\cmdref}[2]{\section{\hgcmd{#1}---#2}\label{cmdref:#1}
foozy@708:     \index{\texttt{#1} $B%3%^%s%I(B}}
foozy@708: 
foozy@708: % Reference entry for a command option with long and short forms.
foozy@708: \newcommand{\optref}[3]{\subsubsection{\hgopt{#1}{--#3} $B$J$$$7(B
foozy@708:     \hgopt{#1}{-#2}}}
foozy@708: 
foozy@708: % Reference entry for a command option with only long form.
foozy@708: \newcommand{\loptref}[2]{\subsubsection{\hgopt{#1}{--#2} $B%*%W%7%g%s(B}}
foozy@708: 
foozy@708: %%% Local Variables: 
foozy@708: %%% mode: latex
foozy@708: %%% TeX-master: "00book"
foozy@708: %%% End: 




