[latex3-commits] [git/LaTeX3-latex3-latex2e] doc-v3beta: fix a bug/defficiency in hypdoc (should be fixed there eventually) (bbaadde6)

Frank Mittelbach frank.mittelbach at latex-project.org
Mon Nov 15 00:01:22 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : doc-v3beta
Link       : https://github.com/latex3/latex2e/commit/bbaadde6d1c1d17f68714347716f1e1ce7cfca97

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

commit bbaadde6d1c1d17f68714347716f1e1ce7cfca97
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Mon Nov 15 00:01:22 2021 +0100

    fix a bug/defficiency in hypdoc (should be fixed there eventually)


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

bbaadde6d1c1d17f68714347716f1e1ce7cfca97
 base/doc.dtx | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/base/doc.dtx b/base/doc.dtx
index 547232e0..dd5ad14b 100644
--- a/base/doc.dtx
+++ b/base/doc.dtx
@@ -5493,7 +5493,17 @@
   \def\doc at providetarget{\HD at target}
   \def\doc at handleencap#1{\encapchar hdclindex{\the\c at HD@hypercount}{#1}}
 %    \end{macrocode}
-%    If that package is not loaded these helpers do little to nothing
+%    If that package is not loaded these helpers do little to nothing.
+%
+%    \pkg{hypdoc} sets up support for \cs{autoindex} defined by the
+%    amsmath documentation class, but it forgot to add it to the
+%    commands to disable in pdfstrings, as a result the amsmath
+%    documentation blew up when hyperref got added (and a package was
+%    mentioned in a title). So we do that here for now.
+%  \fmi{fix in the right place}
+%    \begin{macrocode}
+\pdfstringdefDisableCommands{\let\autoindex\@gobble }
+%    \end{macrocode}
 %    \begin{macrocode}
 \else
   \let\doc at providetarget\@empty





More information about the latex3-commits mailing list.