From 16559ce13a74c7a182875559b379cac00b07efda Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 9 Jun 2022 03:01:00 +0000 Subject: CTAN sync 202206090300 --- macros/latex/base/source2edoc.cls | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'macros/latex/base/source2edoc.cls') diff --git a/macros/latex/base/source2edoc.cls b/macros/latex/base/source2edoc.cls index bef81d995d..f0f1479cac 100644 --- a/macros/latex/base/source2edoc.cls +++ b/macros/latex/base/source2edoc.cls @@ -2,9 +2,11 @@ % This class is buggy and needs fixing \ProvidesClass{source2edoc} - [2021/01/14 v0.2b Quick hack to typeset source2.tex + [2022/04/03 v0.2c Quick hack to typeset source2.tex (not usable for anything else and buggy -- will vanish again)!] + + \LoadClass{l3doc} \RemoveFromHook{begindocument}[l3doc] % drop the standard setting making " a shortverb @@ -18,7 +20,7 @@ \ExplSyntaxOn % in 2e we have a lot of functions that have no ``user-level'' documentation so we disable -% a bogus backref in that case. Over time the sources should be clean up to have such documentation. +% a bogus backref in that case. Over time the sources should be cleaned up to have such documentation. \cs_set_protected:Npn \__codedoc_print_documented: { @@ -169,7 +171,10 @@ t\or u\or v\or w\or x\or y\or z\or A\or B\or C\or D\or E\or F\or G\or H\or I\or J\or K\or L\or M\or N\or O\or P\or Q\or R\or S\or T\or U\or V\or W\or - X\or Y\or Z\else\@ctrerr\fi} + X\or Y\or Z\or + aa\or bb\or cc\or % we are getting definitely too many modules + dd% + \else\@ctrerr\fi} \def\docincludeaux{% \def\thepart{\aalph{part}}\def\filesep{\thepart-}% \let\filekey\@gobble @@ -293,6 +298,11 @@ Bug reports can be opened (category \texttt{#1}) at\\% \fi}% \endgroup% + +% don't run tocs when they are in some module files +\AddToHook{cmd/tableofcontents/after}{\global\let\tableofcontents\relax} + + \InputIfFileExists{ltxdoc.cfg} {\typeout{*************************************^^J% * Local config file ltxdoc.cfg used^^J% @@ -300,6 +310,7 @@ Bug reports can be opened (category \texttt{#1}) at\\% {} + \errorstopmode \batchmode -- cgit v1.2.3