X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/12a6d10db2263d22c743939a08ab3d60f67fc2b2..a985964182dbe5ea2e2ecda240fc862f13008820:/doc/sod.sty diff --git a/doc/sod.sty b/doc/sod.sty index 81e51d5..c35e110 100644 --- a/doc/sod.sty +++ b/doc/sod.sty @@ -73,7 +73,8 @@ %% Diagram settings. \tikzset{ every picture/.style={>=stealth, thick}, - lit/.style={font=\sffamily} + lit/.style={font=\sffamily}, + dashed/.style={dash pattern=on 2.19pt off 2.19pt} } %% Metavariables are italics without decoration. @@ -106,8 +107,8 @@ %% Intercept grammar typesetting and replace the vertical bar with the %% maths-font version. -\let\@@grammar\grammar -\def\grammar{\def\textbar{\hbox{$|$}}\@@grammar} +\let\@@syn@shorts\syn@shorts +\def\syn@shorts{\def\textbar{\hbox{$|$}}\@@syn@shorts} %% Collect super- and subscripts. (Note that underscores are active for the %% most part.) When we're done, end maths mode if we entered it @@ -582,9 +583,9 @@ \begingroup% \let\protect\@empty\def\@uscore{-\@gobble}% \edef\temp@{\@desc@dispatch{desclabel}{#5}{#4}{#5}#6{#7}}% - \hyperref[\temp@]{\code{#7}}#8% - #1#2{\temp@}#3% - \endgroup% + \edef\next@##1##2##3{\endgroup% + \noexpand\hyperref[\temp@]{##1}##2{\temp@}##3}% + \next@{\code{#7}}{#8#1#2}{#3}% } %% \descindex[MOD]{CAT}{...}...{LABEL}[SUFFIX]