[latex3-commits] [git/LaTeX3-latex3-latex2e] master: Index entries may need protection within the documentation (dfeb2e3)
Frank Mittelbach
frank.mittelbach at latex-project.org
Thu Mar 15 09:08:25 CET 2018
Repository : https://github.com/latex3/latex2e
On branch : master
Link : https://github.com/latex3/latex2e/commit/dfeb2e3c66cef604d2eec8dc64e3cca3df8ea816
>---------------------------------------------------------------
commit dfeb2e3c66cef604d2eec8dc64e3cca3df8ea816
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Thu Mar 15 09:08:25 2018 +0100
Index entries may need protection within the documentation
>---------------------------------------------------------------
dfeb2e3c66cef604d2eec8dc64e3cca3df8ea816
base/changes.txt | 4 ++++
base/ltxdoc.dtx | 9 +++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 80f889e..67a203c 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -4,6 +4,10 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
=======================================================================
+2018-03-15 <Frank.Mittelbach at latex-project.org>
+
+ * ltxdoc.dtx: Set up \protect in index entries
+
2018-03-08 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
* ltcounts.dtx: added \@removefromreset, \counterwithin and
diff --git a/base/ltxdoc.dtx b/base/ltxdoc.dtx
index 526fcc7..f6bdd4c 100644
--- a/base/ltxdoc.dtx
+++ b/base/ltxdoc.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright 1993-2017
+% Copyright 1993-2018
% The LaTeX3 Project and any individual authors listed elsewhere
% in this file.
%
@@ -30,7 +30,7 @@
%
%<class>\NeedsTeXFormat{LaTeX2e}
%<class>\ProvidesClass{ltxdoc}
-%<class> [2017/11/16 v2.0w Standard LaTeX documentation class]
+%<class> [2018/03/15 v2.0x Standard LaTeX documentation class]
%
%<*driver>
\documentclass{ltxdoc}
@@ -460,8 +460,13 @@
\else\@nameuse{cp@#1}\fi\let\@auxout\@mainaux}
% \end{macrocode}
%
+% \changes{v2.0x}{2018/03/15}{Set up \cs{protect} in index entries}
% \begin{macrocode}
\gdef\codeline at wrindex#1{\if at filesw
+% \end{macrocode}
+% Set \cs{protect} to a suitable value in the index entries.
+% \begin{macrocode}
+ \set at display@protect
\immediate\write\@indexfile
{\string\indexentry{#1}%
{\filesep\number\c at CodelineNo}}\fi}%
More information about the latex3-commits
mailing list