summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/base/ltcounts.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/base/ltcounts.dtx')
-rw-r--r--Master/texmf-dist/source/latex/base/ltcounts.dtx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/base/ltcounts.dtx b/Master/texmf-dist/source/latex/base/ltcounts.dtx
index 474e05ebd5e..bcb5c771562 100644
--- a/Master/texmf-dist/source/latex/base/ltcounts.dtx
+++ b/Master/texmf-dist/source/latex/base/ltcounts.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltcounts.dtx}
- [2015/06/05 v1.1i LaTeX Kernel (Counters)]
+ [2015/06/05 v1.1j LaTeX Kernel (Counters)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltcounts.dtx}
@@ -484,6 +484,7 @@
% \begin{macro}{\TextOrMath}
% \changes{v1.1h}{2015/01/11}{Add command to solve robustness
% issues (pr/3752) (latexrelease)}
+% \changes{v1.1j}{2016/10/19}{Test directly for \cs{protected}}
% When using regular \TeX, we make this command robust so that it
% always selects the correct branch in an |\ifmmode| switch with
% the usual disadvantage of ruining kerning. For the application we
@@ -495,13 +496,13 @@
% side effects.
%
% First some code for checking if we are running e\TeX\ but making
-% sure not to permanently turn |\eTeXversion| into |\relax|.
+% sure not to permanently turn |\protected| into |\relax|.
% \begin{macrocode}
%</2ekernel>
%<latexrelease>\IncludeInRelease{2015/01/01}{\TextOrMath}{\TextOrMath}%
%<*2ekernel|latexrelease>
\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname eTeXversion\endcsname\relax
+\expandafter\ifx\csname protected\endcsname\relax
% \end{macrocode}
% In case of ordinary \TeX\ we define |\TextOrMath| as a robust
% command but make sure it always grabs its arguments. If we didn't do