
bos@37: % Bug ID.
bos@38: \newcommand{\bug}[1]{\index{Mercurial bug
bos@38:     database!\href{http://www.selenic.com/mercurial/bts/issue#1}{bug
bos@38:       ~#1}}\href{http://www.selenic.com/mercurial/bts/issue#1}{Mercurial
bos@38:     bug no.~#1}}
bos@37: 
bos@37: % File name in the user's home directory.
bos@4: \newcommand{\tildefile}[1]{\texttt{\~{}/#1}}
bos@37: 
bos@37: % File name.
bos@2: \newcommand{\filename}[1]{\texttt{#1}}
bos@37: 
bos@37: % Directory name.
bos@16: \newcommand{\dirname}[1]{\texttt{#1}}
bos@37: 
bos@37: % File name, with index entry.
bos@37: % The ``s'' prefix comes from ``special''.
bos@16: \newcommand{\sfilename}[1]{\index{\texttt{#1} file}\texttt{#1}}
bos@37: 
bos@37: % Directory name, with index entry.
bos@16: \newcommand{\sdirname}[1]{\index{\texttt{#1} directory}\texttt{#1}}
bos@37: 
bos@37: % Mercurial extension.
bos@16: \newcommand{\hgext}[1]{\index{\texttt{#1} extension}\texttt{#1}}
bos@37: 
bos@37: % Mercurial command.
bos@16: \newcommand{\hgcmd}[1]{\index{\texttt{#1} command}``\texttt{hg #1}''}
bos@37: 
bos@37: % Mercurial command, with arguments.
bos@37: \newcommand{\hgcmdargs}[2]{\index{\texttt{#1} command}``\texttt{hg #1 #2}''}
bos@37: 
bos@37: % Shell/system command.
bos@16: \newcommand{\command}[1]{\index{\texttt{#1} command}\texttt{#1}}
bos@37: 
bos@37: % Shell/system command, with arguments.
bos@26: \newcommand{\cmdargs}[2]{\index{\texttt{#1} command}``\texttt{#1 #2}''}
bos@37: 
bos@37: % Mercurial command option.
bos@17: \newcommand{\hgopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
bos@37: 
bos@37: % Mercurial global option.
bos@37: \newcommand{\hggopt}[1]{\index{global options!\texttt{#1} option}\texttt{#1}}
bos@37: 
bos@37: % Shell/system command option.
bos@19: \newcommand{\cmdopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
bos@37: 
bos@37: % Command option.
bos@27: \newcommand{\option}[1]{\texttt{#1}}
bos@37: 
bos@37: % Software package.
bos@16: \newcommand{\package}[1]{\index{\texttt{#1} package}\texttt{#1}}
bos@37: 
bos@37: % Section name from a hgrc file.
bos@34: \newcommand{\rcsection}[1]{\index{\texttt{hgrc} file!\texttt{#1} section}\texttt{[#1]}}
bos@37: 
bos@37: % Named item in a hgrc file section.
bos@34: \newcommand{\rcitem}[2]{\index{\texttt{hgrc} file!\texttt{#1}
bos@34:     section!\texttt{#2} entry}\texttt{#1.#2}}
bos@37: 
bos@37: % hgrc file.
bos@34: \newcommand{\hgrc}{\index{\texttt{hgrc} file}\texttt{hgrc}}
bos@37: 
bos@37: % Hook name.
bos@34: \newcommand{\hook}[1]{\index{\texttt{#1} hook}\index{hooks!\texttt{#1}}\texttt{#1}}
bos@37: 
bos@37: % Environment variable.
bos@34: \newcommand{\envar}[1]{\index{\texttt{#1} environment
bos@34:     variable}\index{environment variables!\texttt{#1}}\texttt{#1}}
bos@0: 
bos@37: % Python module.
bos@37: \newcommand{\pymod}[1]{\index{\texttt{#1} module}\texttt{#1}}
bos@37: 
bos@37: % Python class in a module.
bos@37: \newcommand{\pymodclass}[2]{\index{\texttt{#1} module!\texttt{#2}
bos@37:     class}\texttt{#1.#2}}
bos@37: 
bos@37: % Note: blah blah.
bos@7: \newsavebox{\notebox}
bos@11: \newenvironment{note}%
bos@11:   {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Note:}\space}%
bos@11:   {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}
bos@7: 
bos@37: % Code sample, eating 4 characters of leading space.
bos@4: \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}}
bos@37: 
bos@37: % Code sample, eating 2 characters of leading space.
bos@37: \DefineVerbatimEnvironment{codesample2}{Verbatim}{frame=single,gobble=2,numbers=left,commandchars=\\\{\}}
bos@37: 
bos@37: % Interaction from the examples directory.
bos@4: \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.out}}
bos@3: 
bos@37: % Graphics inclusion.
bos@11: \ifpdf
jeffpc@48:   \newcommand{\grafix}[1]{\includegraphics{#1.pdf}}
bos@11: \else
bos@11:   \newcommand{\grafix}[1]{\includegraphics{#1.png}}
bos@11: \fi
bos@11: 
bos@0: %%% Local Variables: 
bos@0: %%% mode: latex
bos@0: %%% TeX-master: "00book"
bos@0: %%% End: 




