[latex3-commits] [latex3/latex2e] various-doc-fixes: multicol doc corrections (d26b5f3f)

github at latex-project.org github at latex-project.org
Wed Nov 8 00:26:38 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : various-doc-fixes
Link       : https://github.com/latex3/latex2e/commit/d26b5f3f9bc4156fbb7ddbbd48128b5a3ded374e

>---------------------------------------------------------------

commit d26b5f3f9bc4156fbb7ddbbd48128b5a3ded374e
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Wed Nov 8 00:26:38 2023 +0100

    multicol doc corrections


>---------------------------------------------------------------

d26b5f3f9bc4156fbb7ddbbd48128b5a3ded374e
 required/tools/multicol.dtx | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/required/tools/multicol.dtx b/required/tools/multicol.dtx
index 2676d03a..2be7b90c 100644
--- a/required/tools/multicol.dtx
+++ b/required/tools/multicol.dtx
@@ -99,7 +99,7 @@
 %<driver> \ProvidesFile{multicol.drv}
 % \fi
 %         \ProvidesFile{multicol.dtx}
-          [2023/03/30 v1.9f  multicolumn formatting (FMi)]
+          [2023/11/08 v1.9f  multicolumn formatting (FMi)]
 %
 %
 %%
@@ -919,9 +919,22 @@
 %    And we don't show macro names in the margin.
 %    \begin{macrocode}
 \setcounter{IndexColumns}{4}
-\let\DescribeMacro\SpecialUsageIndex
-\let\DescribeEnv\SpecialEnvIndex
-\renewcommand\PrintMacroName[1]{}
+%    \end{macrocode}
+%
+%    The following redefinitions have to be moved until after the
+%    preamble because version 3 of \pkg{doc} resets them after the
+%    premable (this is tmp, because \pkg{hypdoc} is not yet
+%    integrated, but as we all know, tmp solutions have a tendency to
+%    survive for a long time\ldots).
+%    \begin{macrocode}
+\AddToHook{begindocument}{%
+  \let\DescribeMacro\SpecialUsageIndex
+  \let\DescribeEnv\SpecialEnvIndex
+  \renewcommand\PrintMacroName[1]{}%
+}
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 \CodelineIndex
 %\DisableCrossrefs           % Partial index
 \RecordChanges               % Change log
@@ -1082,7 +1095,7 @@
 %    better test for this situation. Otherwise, we will get a \TeX{}
 %    stack overflow as this would generate a self-referencing definition.
 % \changes{v1.6e}{2004/02/14}{Avoid self-referencing definition of
-%    \cs{@footnotetext} (pr/3618)}.
+%    \cs{@footnotetext} (pr/3618)}
 %    \begin{macrocode}
      \ifx\@footnotetext\mult at footnotetext
      \else





More information about the latex3-commits mailing list.