summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/base/exscale.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/base/exscale.dtx')
-rw-r--r--Master/texmf-dist/source/latex/base/exscale.dtx18
1 files changed, 16 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/base/exscale.dtx b/Master/texmf-dist/source/latex/base/exscale.dtx
index 983ac95d1cf..49e53ca5f87 100644
--- a/Master/texmf-dist/source/latex/base/exscale.dtx
+++ b/Master/texmf-dist/source/latex/base/exscale.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright 1993-2016
+% Copyright 1993-2018
% The LaTeX3 Project and any individual authors listed elsewhere
% in this file.
%
@@ -33,7 +33,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{exscale}
%<fd, >\ProvidesFile{OMXcmex.fd}
-%<package,fd> [2014/09/29 v2.1h
+%<package,fd> [2018/09/24 v2.1i
%<package> Standard LaTeX package exscale]
%<fd, > exscale package font definitions]
%<*driver>
@@ -173,13 +173,27 @@
% \end{macrocode}
% Now we can define the macros. Note: |\n@space| sets the internal
% variables |\nulldelimiterspace| and |\mathsurround| to zero length.
+%
+% Older kernels (e.g in roll back didn't have LR-mode with the
+% these commands) so we test for the support comment. This only works
+% if the rollback request is before loading this package but that is
+% where it should be.
+% \changes{v2.1i}{2018/09/24}{Start LR-mode if necessary (git/49)}
% \begin{macrocode}
+\ifx\leavevmode@ifvmode\@undefined
\def\bBigg@#1#2{%
{\hbox{$\left#2\vcenter to#1\big@size{}\right.\n@space$}}}
+\else
+\def\bBigg@#1#2{\leavevmode@ifvmode
+ {\hbox{$\left#2\vcenter to#1\big@size{}\right.\n@space$}}}
+\fi
\def\big{\bBigg@\@ne}
\def\Big{\bBigg@{1.5}}
\def\bigg{\bBigg@\tw@}
\def\Bigg{\bBigg@{2.5}}
+% \end{macrocode}
+%
+% \begin{macrocode}
%</package>
% \end{macrocode}
%