From b2e901a65dd5aed336ee6bbda51ceb5dc7229e65 Mon Sep 17 00:00:00 2001 From: joseph Date: Wed, 19 Oct 2016 08:10:49 +0000 Subject: [PATCH] Test directly for \protected git-svn-id: http://www.latex-project.org/svnroot/latex2e-public@1246 8685b20e-f38a-4a74-812f-bec00e2e18bd --- trunk/base/ltcounts.dtx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/trunk/base/ltcounts.dtx b/trunk/base/ltcounts.dtx index 474e05e..bcb5c77 100644 --- a/trunk/base/ltcounts.dtx +++ b/trunk/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} % %\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 -- 2.11.4.GIT