[latex3-commits] [git/LaTeX3-latex3-latex2e] doc-v3beta: bit more documentation (9d939112)

Frank Mittelbach frank.mittelbach at latex-project.org
Fri Nov 26 13:46:24 CET 2021


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

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

commit 9d939112ed2b770deacb96703c089cb11c6295ce
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Fri Nov 26 13:46:24 2021 +0100

    bit more documentation


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

9d939112ed2b770deacb96703c089cb11c6295ce
 base/doc.dtx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/base/doc.dtx b/base/doc.dtx
index 58a17829..ac84d7cb 100644
--- a/base/doc.dtx
+++ b/base/doc.dtx
@@ -5580,7 +5580,13 @@
       \let\special at index\HD at page@wrindex
     \fi
   \fi
-\pdfstringdefDisableCommands{\let\env\@empty }%
+%    \end{macrocode}
+%    The \pkg{amsmath} documentation uses \cs{env} in headings and
+%    with \pkg{ hyperref} enabled this causes trouble in bookmarks.
+% \fmi{fix elsewhere eventually}
+%    \begin{macrocode}
+  \AddToHook{class/amsdtx/after}{%
+     \pdfstringdefDisableCommands{\let\env\@empty }}%
 %    \end{macrocode}
 %    That package also adds extra code into |\index| entries but it doesn't
 %    know about all the stuff that \DOC does (now). So we need to provide





More information about the latex3-commits mailing list.