chiark
/
gitweb
/
~mdw
/
sod
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2a31a5
)
doc/sod.sty: Don't convert `_' to `-' in `\descref' text.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 24 Aug 2019 16:11:34 +0000
(17:11 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 24 Aug 2019 16:18:12 +0000
(17:18 +0100)
The conversion is necessary in the label, but not the text.
doc/sod.sty
patch
|
blob
|
blame
|
history
diff --git
a/doc/sod.sty
b/doc/sod.sty
index 81e51d50efac9a027cf32390a0c2f7ece76d3162..eacd977ae93e57b715724e743833179f3bb901b2 100644
(file)
--- 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]