hgbook

diff en/99defs.tex @ 132:e1e2f3e0256a

Start command reference, with the diff command.
author Bryan O'Sullivan <bos@serpentine.com>
date Thu Dec 28 16:45:56 2006 -0800 (2006-12-28)
parents 9cbc5d0db542
children 1e013fbe35f7
line diff
     1.1 --- a/en/99defs.tex	Mon Oct 23 15:43:04 2006 -0700
     1.2 +++ b/en/99defs.tex	Thu Dec 28 16:45:56 2006 -0800
     1.3 @@ -116,6 +116,12 @@
     1.4    \newcommand{\grafix}[1]{\includegraphics{#1.png}}
     1.5  \fi
     1.6  
     1.7 +% Reference entry for a command.
     1.8 +\newcommand{\cmdref}[1]{\section{#1}\label{cmdref:#1}\index{\texttt{#1} command}``\texttt{hg #1}''}
     1.9 +
    1.10 +% Reference entry for a command option.
    1.11 +\newcommand{\optref}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
    1.12 +
    1.13  %%% Local Variables: 
    1.14  %%% mode: latex
    1.15  %%% TeX-master: "00book"