hgbook

changeset 230:f83281da4122

Add new commands for commands and options provided by extensions.
Should improve indexing a bit.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun May 27 09:39:27 2007 -0700 (2007-05-27)
parents 0a20b03559bf
children 28ddbf9f3729
files en/99defs.tex
line diff
     1.1 --- a/en/99defs.tex	Sat May 26 12:07:03 2007 -0700
     1.2 +++ b/en/99defs.tex	Sun May 27 09:39:27 2007 -0700
     1.3 @@ -23,6 +23,10 @@
     1.4  % Mercurial extension.
     1.5  \newcommand{\hgext}[1]{\index{\texttt{#1} extension}\texttt{#1}}
     1.6  
     1.7 +% Command provided by a Mercurial extension.
     1.8 +\newcommand{\hgxcmd}[2]{\index{\texttt{#2} command (\texttt{#1}
     1.9 +      extension)}\index{\texttt{#1} extension!\texttt{#2} command}``\texttt{hg #2}''}
    1.10 +
    1.11  % Mercurial command.
    1.12  \newcommand{\hgcmd}[1]{\index{\texttt{#1} command}``\texttt{hg #1}''}
    1.13  
    1.14 @@ -48,6 +52,9 @@
    1.15  % Mercurial command option.
    1.16  \newcommand{\hgopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
    1.17  
    1.18 +% Mercurial command option, provided by an extension command.
    1.19 +\newcommand{\hgxopt}[3]{\index{\texttt{#2} command (\texttt{#1} extension)!\texttt{#3} option}\index{\texttt{#1} extension!\texttt{#2} command!\texttt{#3} option}\texttt{#3}}
    1.20 +
    1.21  % Mercurial global option.
    1.22  \newcommand{\hggopt}[1]{\index{global options!\texttt{#1} option}\texttt{#1}}
    1.23