[latex3-commits] [git/LaTeX3-latex3-latex2e] ltxdoc: adjust ltxdoc to process existing dtx files (b966ae57)
David Carlisle
d.p.carlisle at gmail.com
Fri Jun 3 23:20:58 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : ltxdoc
Link : https://github.com/latex3/latex2e/commit/b966ae57886703f455b0dc9bd144fe01845acb74
>---------------------------------------------------------------
commit b966ae57886703f455b0dc9bd144fe01845acb74
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Fri Jun 3 22:20:58 2022 +0100
adjust ltxdoc to process existing dtx files
>---------------------------------------------------------------
b966ae57886703f455b0dc9bd144fe01845acb74
base/doc.dtx | 2 --
base/ltxdoc.dtx | 18 +++++++++++++++++-
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/base/doc.dtx b/base/doc.dtx
index f86573a9..0f593bb7 100644
--- a/base/doc.dtx
+++ b/base/doc.dtx
@@ -148,8 +148,6 @@
%
% \newcommand\env{\texttt}
% \newcommand\opt{\texttt}
-% \newcommand\cls{\texttt}
-% \newcommand\pkg{\texttt}
% \newcommand\prg{\textsf}
%
% \newcommand\DOX{\env{DoX}\xspace}
diff --git a/base/ltxdoc.dtx b/base/ltxdoc.dtx
index 8e5fcf3e..4d854728 100644
--- a/base/ltxdoc.dtx
+++ b/base/ltxdoc.dtx
@@ -30,7 +30,7 @@
%
%<class>\NeedsTeXFormat{LaTeX2e}
%<class>\ProvidesClass{ltxdoc}
-%<class> [2022/05/27 v2.1e Standard LaTeX documentation class]
+%<class> [2022/06/03 v2.1f Standard LaTeX documentation class]
%
%<*driver>
\documentclass{ltxdoc}
@@ -631,6 +631,22 @@ Bug reports can be opened (category \texttt{#1}) at\\%
%
% \begin{macrocode}
\def\task#1#2{}
+% \end{macrocode}
+% \changes{v2.1f}{2022/06/03}{define \cs{pkg} and other commands}
+% \changes{v2.1f}{2022/06/03}{allow \_ in macro names}
+% Some feaures from l3doc.cls
+% \begin{macrocode}
+\providecommand\LuaTeX{Lua\TeX}
+\providecommand\cls{\textsf}
+\providecommand\pkg{\textsf}
+\providecommand\enquote[1]{``#1''}
+\DeclareRobustCommand\cs[1]{\texttt{\bslash\detokenize{#1}}}%
+\AtBeginDocument{%
+ \renewcommand\PrintMacroName[1]{\MacroFont\detokenize{#1}}%
+ }
+% \end{macrocode}
+%
+% \begin{macrocode}
%</class>
% \end{macrocode}
%
More information about the latex3-commits
mailing list.