Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/mdwtools
authorMark Wooding <mdw@distorted.org.uk>
Thu, 24 Sep 2015 23:18:41 +0000 (00:18 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 24 Sep 2015 23:18:41 +0000 (00:18 +0100)
* 'master' of git.distorted.org.uk:~mdw/publish/public-git/mdwtools:
  configure.in: Explicit AC_CONFIG_AUX_DIR.

syntax.dtx

index c6f04db..1b1965f 100644 (file)
 % commands.  Well, almost \dots
 %
 %    \begin{macrocode}
-\newcommand{\grammarlabel}[2]{%
-  \synt{#1} \hfill#2%
+\newcommand{\grammarlabel}[3][]{%
+  \synt{#2}#1 \hfill#3%
 }
 %    \end{macrocode}
 %
 % strut just makes sure that I know exactly how high the line is.
 %
 %    \begin{macrocode}
-\def\gr@implitem<#1> #2 {%
-  \sbox\z@{\hskip\labelsep\grammarlabel{#1}{#2}}%
+\def\gr@implitem<#1>#2 #3 {%
+  \sbox\z@{\hskip\labelsep\grammarlabel[{#2}]{#1}{#3}}%
   \strut\@@par%
   \vskip-\parskip%
   \vskip-\baselineskip%