chiark / gitweb /
doc/sod.sty: Make `\fmtspecs' be external again.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 7 Aug 2019 14:24:46 +0000 (15:24 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 7 Aug 2019 16:31:24 +0000 (17:31 +0100)
Sadly, putting `\@...' control sequences in the index doesn't work.

doc/sod.sty

index 69b4d3d95a6de022426168ed28768a5fed9ac0ee..d6a0089962db34e635ab259c39edebd664684c35 100644 (file)
 %% Category-kind methods for `method' categories.  Collect an extra argument
 %% listing the specializers: include them in the label, and typeset them in
 %% the index.
-\def\@fmtspecs#1#2{%
-  \if!#2!\else\count@\z@\toks@{}#1\@fmtspecs@i#2,\q@,\fi}
-\def\@fmtspecs@i#1,{%
+\def\fmtspecs#1#2{%
+  \if!#2!\else\count@\z@\toks@{}#1\fmtspecs@i#2,\q@,\fi}
+\def\fmtspecs@i#1,{%
   \def\@tempa{#1}%
   \ifx\@tempa\q@%
     \ifcase\count@(no args?!)%
     \ifnum\count@>\@ne, \fi%
     \the\toks@%
     \toks@{\code{#1}}\advance\count@\@ne%
-    \expandafter\@fmtspecs@i%
+    \expandafter\fmtspecs@i%
   \fi%
 }
 \@namedef{descargs/method}#1#2{#1{{#2}}}
 \@namedef{descindex/method}#1#2#3#4{%
   \@mod@dispatch{modindex}{#2}{#3}!%
   \protect\describecategoryname[#2]{#1}%
-  \protect\@fmtspecs{ specialized at }{#4}%
+  \protect\fmtspecs{ specialized at }{#4}%
 }
 
 %% Some magic strings.