[latex3-commits] [git/LaTeX3-latex3-latex2e] doc-v3beta: another tmp fix for amsdtx this time (61d93faf)
Frank Mittelbach
frank.mittelbach at latex-project.org
Mon Nov 15 09:27:29 CET 2021
Repository : https://github.com/latex3/latex2e
On branch : doc-v3beta
Link : https://github.com/latex3/latex2e/commit/61d93faf36ca497aeb29b6777b632cb9c09b5e81
>---------------------------------------------------------------
commit 61d93faf36ca497aeb29b6777b632cb9c09b5e81
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Mon Nov 15 09:27:29 2021 +0100
another tmp fix for amsdtx this time
>---------------------------------------------------------------
61d93faf36ca497aeb29b6777b632cb9c09b5e81
base/doc.dtx | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/base/doc.dtx b/base/doc.dtx
index dd5ad14b..c4f47da9 100644
--- a/base/doc.dtx
+++ b/base/doc.dtx
@@ -6168,6 +6168,22 @@
% \begin{macrocode}
\DeclareRobustCommand\cs[1]{\texttt{\bslash #1}}
% \end{macrocode}
+% \class{amsdtx} has its own definition for \cs{cs} but that now
+% gets overwritten because the class loads \pkg{doc} afterwards. So
+% for now we reinstall it here.
+% \fmi{fix elsewhere}
+% \begin{macrocode}
+\AddToHook{class/amsdtx/after}{%
+ \DeclareRobustCommand\cs[1]{%
+ \@boxorbreak{%
+ \ntt
+ \addbslash#1\@empty
+ \@xp\@xp\@xp\@indexcs\@xp\@nobslash\string#1\@nil
+ }%
+ }%
+ \let\cn\cs
+}
+% \end{macrocode}
% \end{imacro}
More information about the latex3-commits
mailing list.