hgbook

diff en/99defs.tex @ 133:1e013fbe35f7

Lots of filename related content. A little more command reference
work.

Added a script to make sure commands are exhaustively documented.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri Dec 29 17:54:14 2006 -0800 (2006-12-29)
parents e1e2f3e0256a
children 65f6f9d18fa1
line diff
     1.1 --- a/en/99defs.tex	Thu Dec 28 16:45:56 2006 -0800
     1.2 +++ b/en/99defs.tex	Fri Dec 29 17:54:14 2006 -0800
     1.3 @@ -117,10 +117,13 @@
     1.4  \fi
     1.5  
     1.6  % Reference entry for a command.
     1.7 -\newcommand{\cmdref}[1]{\section{#1}\label{cmdref:#1}\index{\texttt{#1} command}``\texttt{hg #1}''}
     1.8 +\newcommand{\cmdref}[2]{\section{\hgcmd{#1}---#2}\label{cmdref:#1}\index{\texttt{#1} command}}
     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 +% Reference entry for a command option with long and short forms.
    1.13 +\newcommand{\optref}[3]{\subsubsection{\hgopt{#1}{--#3}, also \hgopt{#1}{-#2}}}
    1.14 +
    1.15 +% Reference entry for a command option with only long form.
    1.16 +\newcommand{\loptref}[2]{\subsubsection{\hgopt{#1}{--#2} option}}
    1.17  
    1.18  %%% Local Variables: 
    1.19  %%% mode: latex