hgbook
diff en/99defs.tex @ 143:f2aabd15dd50
Fix another regexp.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue Mar 06 21:43:30 2007 -0800 (2007-03-06) |
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 Tue Mar 06 21:43:30 2007 -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