hgbook

annotate en/99defs.tex @ 194:a8cc7fa833a3

Add missed files.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon Apr 16 14:41:41 2007 -0700 (2007-04-16)
parents 65f6f9d18fa1
children f83281da4122
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@37 26 % Mercurial command.
bos@16 27 \newcommand{\hgcmd}[1]{\index{\texttt{#1} command}``\texttt{hg #1}''}
bos@37 28
bos@37 29 % Mercurial command, with arguments.
bos@37 30 \newcommand{\hgcmdargs}[2]{\index{\texttt{#1} command}``\texttt{hg #1 #2}''}
bos@37 31
bos@80 32 \newcommand{\tplkword}[1]{\index{\texttt{#1} template keyword}\index{template keywords!\texttt{#1}}\texttt{#1}}
bos@80 33
bos@80 34 \newcommand{\tplkwfilt}[2]{\index{\texttt{#1} template keyword!\texttt{#2}
bos@80 35 filter}\index{template filters!\texttt{#2}}\index{\texttt{#2}
bos@80 36 template filter}\texttt{#2}}
bos@80 37
bos@80 38 \newcommand{\tplfilter}[1]{\index{template
bos@80 39 filters!\texttt{#1}}\index{\texttt{#1} template
bos@80 40 filter}\texttt{#1}}
bos@80 41
bos@37 42 % Shell/system command.
bos@16 43 \newcommand{\command}[1]{\index{\texttt{#1} command}\texttt{#1}}
bos@37 44
bos@37 45 % Shell/system command, with arguments.
bos@26 46 \newcommand{\cmdargs}[2]{\index{\texttt{#1} command}``\texttt{#1 #2}''}
bos@37 47
bos@37 48 % Mercurial command option.
bos@17 49 \newcommand{\hgopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
bos@37 50
bos@37 51 % Mercurial global option.
bos@37 52 \newcommand{\hggopt}[1]{\index{global options!\texttt{#1} option}\texttt{#1}}
bos@37 53
bos@37 54 % Shell/system command option.
bos@19 55 \newcommand{\cmdopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
bos@37 56
bos@37 57 % Command option.
bos@27 58 \newcommand{\option}[1]{\texttt{#1}}
bos@37 59
bos@37 60 % Software package.
bos@16 61 \newcommand{\package}[1]{\index{\texttt{#1} package}\texttt{#1}}
bos@37 62
bos@37 63 % Section name from a hgrc file.
bos@34 64 \newcommand{\rcsection}[1]{\index{\texttt{hgrc} file!\texttt{#1} section}\texttt{[#1]}}
bos@37 65
bos@37 66 % Named item in a hgrc file section.
bos@34 67 \newcommand{\rcitem}[2]{\index{\texttt{hgrc} file!\texttt{#1}
bos@62 68 section!\texttt{#2} entry}\texttt{#2}}
bos@37 69
bos@37 70 % hgrc file.
bos@184 71 \newcommand{\hgrc}{\index{configuration file!\texttt{hgrc}
bos@184 72 (Linux/Unix)}\index{\texttt{hgrc} configuration file}\texttt{hgrc}}
bos@184 73
bos@184 74 % Mercurial.ini file.
bos@184 75 \newcommand{\hgini}{\index{configuration file!\texttt{Mercurial.ini}
bos@184 76 (Windows)}\index{\texttt{Mercurial.ini} configuration file}\texttt{Mercurial.ini}}
bos@37 77
bos@37 78 % Hook name.
bos@34 79 \newcommand{\hook}[1]{\index{\texttt{#1} hook}\index{hooks!\texttt{#1}}\texttt{#1}}
bos@37 80
bos@37 81 % Environment variable.
bos@34 82 \newcommand{\envar}[1]{\index{\texttt{#1} environment
bos@34 83 variable}\index{environment variables!\texttt{#1}}\texttt{#1}}
bos@0 84
bos@37 85 % Python module.
bos@37 86 \newcommand{\pymod}[1]{\index{\texttt{#1} module}\texttt{#1}}
bos@37 87
bos@37 88 % Python class in a module.
bos@37 89 \newcommand{\pymodclass}[2]{\index{\texttt{#1} module!\texttt{#2}
bos@37 90 class}\texttt{#1.#2}}
bos@37 91
bos@62 92 % Python function in a module.
bos@62 93 \newcommand{\pymodfunc}[2]{\index{\texttt{#1} module!\texttt{#2}
bos@62 94 function}\texttt{#1.#2}}
bos@62 95
bos@37 96 % Note: blah blah.
bos@7 97 \newsavebox{\notebox}
bos@11 98 \newenvironment{note}%
bos@11 99 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Note:}\space}%
bos@11 100 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}
jeffpc@56 101 \newenvironment{caution}%
jeffpc@56 102 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Caution:}\space}%
jeffpc@56 103 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}
bos@7 104
bos@37 105 % Code sample, eating 4 characters of leading space.
bos@4 106 \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}}
bos@37 107
bos@37 108 % Code sample, eating 2 characters of leading space.
bos@37 109 \DefineVerbatimEnvironment{codesample2}{Verbatim}{frame=single,gobble=2,numbers=left,commandchars=\\\{\}}
bos@37 110
bos@37 111 % Interaction from the examples directory.
bos@146 112 \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.lxo}}
bos@106 113 % Example code from the examples directory.
bos@106 114 \newcommand{\excode}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{../examples/#1}}
bos@106 115
bos@37 116 % Graphics inclusion.
bos@11 117 \ifpdf
bos@103 118 \newcommand{\grafix}[1]{\includegraphics{#1}}
bos@11 119 \else
bos@11 120 \newcommand{\grafix}[1]{\includegraphics{#1.png}}
bos@11 121 \fi
bos@11 122
bos@132 123 % Reference entry for a command.
bos@133 124 \newcommand{\cmdref}[2]{\section{\hgcmd{#1}---#2}\label{cmdref:#1}\index{\texttt{#1} command}}
bos@132 125
bos@133 126 % Reference entry for a command option with long and short forms.
bos@133 127 \newcommand{\optref}[3]{\subsubsection{\hgopt{#1}{--#3}, also \hgopt{#1}{-#2}}}
bos@133 128
bos@133 129 % Reference entry for a command option with only long form.
bos@133 130 \newcommand{\loptref}[2]{\subsubsection{\hgopt{#1}{--#2} option}}
bos@132 131
bos@0 132 %%% Local Variables:
bos@0 133 %%% mode: latex
bos@0 134 %%% TeX-master: "00book"
bos@0 135 %%% End: