diff options
Diffstat (limited to 'macros/latex/base/ltxdoc.dtx')
-rw-r--r-- | macros/latex/base/ltxdoc.dtx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/macros/latex/base/ltxdoc.dtx b/macros/latex/base/ltxdoc.dtx index f68c45ee36..46c324c590 100644 --- a/macros/latex/base/ltxdoc.dtx +++ b/macros/latex/base/ltxdoc.dtx @@ -30,7 +30,7 @@ % %<class>\NeedsTeXFormat{LaTeX2e} %<class>\ProvidesClass{ltxdoc} -%<class> [2022/06/14 v2.1g Standard LaTeX documentation class] +%<class> [2022/06/22 v2.1h Standard LaTeX documentation class] % %<*driver> \documentclass{ltxdoc} @@ -294,10 +294,12 @@ % \changes{v2.0k}{1994/05/21}{New definition, so \cmd\{ works.} % \begin{macro}{\cs} % \changes{v2.0d}{1994/03/17}{Add \cs{cs}} +% \changes{v2.1h}{2022/06/22}{Update \cs{cmd} definition to work with new \cs{cs}} % \begin{macrocode} -\def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}} +%\DeclareRobustCommand\cs[1]... % defined later +%\def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}} % can't use with new \cs +\def\cmd#1{\texttt{\char`\\\expandafter\cmd@to@cs\string#1}} \def\cmd@to@cs#1#2{\char\number`#2\relax} -%\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} % already part of doc.sty % \end{macrocode} % \end{macro} % \end{macro} |