[latex3-commits] [git/LaTeX3-latex3-latex2e] doc-v3beta: drop a bug fix no longer needed (05e7a01f)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Nov 18 18:04:14 CET 2021


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

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

commit 05e7a01fc87ac514682eeb648beee70c20453979
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Nov 18 18:04:14 2021 +0100

    drop a bug fix no longer needed


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

05e7a01fc87ac514682eeb648beee70c20453979
 base/doc.dtx    | 19 +++++++------------
 base/ltxdoc.dtx |  6 +++---
 2 files changed, 10 insertions(+), 15 deletions(-)

diff --git a/base/doc.dtx b/base/doc.dtx
index 39ce7e9a..81642658 100644
--- a/base/doc.dtx
+++ b/base/doc.dtx
@@ -375,18 +375,6 @@
 %<*driver>
 \documentclass{ltxdoc}
 
-\makeatletter
-%fix for ltxdoc for now
-\def\codeline at wrindex#1{\if at filesw
-     \begingroup
-        \let\protect\noexpand
-        \immediate\write\@indexfile%
-            {\string\indexentry{#1}%
-             {\number\c at CodelineNo}}%
-      \endgroup
-    \fi}
-\makeatother
-
 \usepackage[T1]{fontenc}
 \usepackage{xspace}          
 
@@ -6286,3 +6274,10 @@
 %
 %
 \endinput
+
+
+
+%%% Local Variables: 
+%%% mode: latex
+%%% coding: utf-8-unix
+%%% End: 
diff --git a/base/ltxdoc.dtx b/base/ltxdoc.dtx
index cdc73fd1..f9051acd 100644
--- a/base/ltxdoc.dtx
+++ b/base/ltxdoc.dtx
@@ -30,7 +30,7 @@
 %
 %<class>\NeedsTeXFormat{LaTeX2e}
 %<class>\ProvidesClass{ltxdoc}
-%<class>         [2021/11/12 v2.1c Standard LaTeX documentation class]
+%<class>         [2021/11/18 v2.1d Standard LaTeX documentation class]
 %
 %<*driver>
 \documentclass{ltxdoc}
@@ -266,7 +266,7 @@
 % arguments. It can \emph{not} be use to record commands that are defined as
 %    ``|\outer|'' nor is it possible to use it on conditionals such as
 %    |\iftrue| or  defined by |\newif|.
-% |\cs{foo}| also prints |\foo|, for those who prefer that
+% |\cs{foo}| already available by \pkg{doc} also prints |\foo|, for those who prefer that
 % syntax. (This second form can be used to record all types of command so the
 %    above restrictions do not apply.
 % \begin{macro}{\cmd}
@@ -276,7 +276,7 @@
 %    \begin{macrocode}
 \def\cmd#1{\cs{\expandafter\cmd at to@cs\string#1}}
 \def\cmd at to@cs#1#2{\char\number`#2\relax}
-\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}
+\ProvideRobustCommand\cs[1]{\texttt{\char`\\#1}}     % already part of doc.sty
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}





More information about the latex3-commits mailing list.