summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/base/ltxdoc.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/base/ltxdoc.dtx')
-rw-r--r--Master/texmf-dist/source/latex/base/ltxdoc.dtx20
1 files changed, 15 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/base/ltxdoc.dtx b/Master/texmf-dist/source/latex/base/ltxdoc.dtx
index a5ed7073348..329353d1235 100644
--- a/Master/texmf-dist/source/latex/base/ltxdoc.dtx
+++ b/Master/texmf-dist/source/latex/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.
%
@@ -11,7 +11,7 @@
% conditions of the LaTeX Project Public License, either version 1.3c
% of this license or (at your option) any later version.
% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
+% https://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
@@ -30,7 +30,7 @@
%
%<class>\NeedsTeXFormat{LaTeX2e}
%<class>\ProvidesClass{ltxdoc}
-%<class> [2017/03/13 v2.0v Standard LaTeX documentation class]
+%<class> [2018/03/15 v2.0x Standard LaTeX documentation class]
%
%<*driver>
\documentclass{ltxdoc}
@@ -460,11 +460,21 @@
\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@wrindex#1{\if@filesw
+% \end{macrocode}
+% Set \cs{protect} to a suitable value in the index entries (we
+% can't use |\set@display@protect| as that would result in different
+% numer of spaces after a command depending on the number of
+% expansion happening prior to writing the index).
+% \begin{macrocode}
+ \begingroup
+ \let\protect\noexpand
\immediate\write\@indexfile
{\string\indexentry{#1}%
- {\filesep\number\c@CodelineNo}}\fi}%
+ {\filesep\number\c@CodelineNo}}%
+ \endgroup\fi}
% \end{macrocode}
% \end{macro}
%
@@ -534,7 +544,7 @@
{\gdef\@maintainedby{%
This file is maintained by the \LaTeX{} Project team.\\%
Bug reports can be opened (category \texttt{#1}) at\\%
-\url{http://latex-project.org/bugs.html}.}}}
+\url{https://latex-project.org/bugs.html}.}}}
% \end{macrocode}
%
% \begin{macrocode}