From: Mark Wooding Date: Sat, 24 Aug 2019 16:11:34 +0000 (+0100) Subject: doc/sod.sty: Don't convert `_' to `-' in `\descref' text. X-Git-Url: https://git.distorted.org.uk/~mdw/sod/commitdiff_plain/3934b7ee2c441fc30d64e401facd0e798fe4978f doc/sod.sty: Don't convert `_' to `-' in `\descref' text. The conversion is necessary in the label, but not the text. --- diff --git a/doc/sod.sty b/doc/sod.sty index 81e51d5..eacd977 100644 --- a/doc/sod.sty +++ b/doc/sod.sty @@ -582,9 +582,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]