From e812c742aa1caaaa6dd1ffdd6feefc56de23745b Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 7 Aug 2019 15:24:46 +0100 Subject: [PATCH] doc/sod.sty: Make `\fmtspecs' be external again. Sadly, putting `\@...' control sequences in the index doesn't work. --- doc/sod.sty | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/sod.sty b/doc/sod.sty index 69b4d3d..d6a0089 100644 --- a/doc/sod.sty +++ b/doc/sod.sty @@ -307,9 +307,9 @@ %% 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?!)% @@ -322,7 +322,7 @@ \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}}} @@ -331,7 +331,7 @@ \@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. -- 2.11.0