summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-02-13 23:22:17 +0000
committerKarl Berry <karl@freefriends.org>2017-02-13 23:22:17 +0000
commitba74de022219d81d222baaf16a5e55c55ec4016e (patch)
treeec5eeaa065b83b8df59f416541eefeacbbb4dcdd /Master/texmf-dist/tex
parent669edaa06be6f2ba6810fb85a0c738962477cd7a (diff)
stackengine (13feb17)
git-svn-id: svn://tug.org/texlive/trunk@43221 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/stackengine/stackengine.sty20
1 files changed, 12 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/stackengine/stackengine.sty b/Master/texmf-dist/tex/latex/stackengine/stackengine.sty
index 09a6a123e0c..e7b79fb04bc 100644
--- a/Master/texmf-dist/tex/latex/stackengine/stackengine.sty
+++ b/Master/texmf-dist/tex/latex/stackengine/stackengine.sty
@@ -1,6 +1,6 @@
-\def\stackengineversionnumber{v4.00}
+\def\stackengineversionnumber{v4.01}
\ProvidesPackage{stackengine}
-[2016/10/04 \stackengineversionnumber\
+[2017/02/13 \stackengineversionnumber\
Stacking text and objects in convenient ways]
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -74,6 +74,10 @@
% V4.00 -Incorporate listofitems package methodology for parsing, requiring
% some package rewrite, primarily macro \@readMANYrows.
% -Eliminated all uses of \protected@edef.fxf
+% V4.01 -Removed unnecessary\global specifiers from \newlength and
+% \setlength, which could also cause potential problems with the
+% calc package.
+% -Changed \global\def to \gdef and \global\edef to \xdef.
\RequirePackage{etoolbox}
\RequirePackage{listofitems}% REQUIRES listofitems.sty AND listofitems.tex
\usepackage{calc}
@@ -84,7 +88,7 @@
\newlength\@boxshift
\newlength\stack@tmplength
\newlength\temp@stkl
-\global\newlength\@stackedboxwidth
+\newlength\@stackedboxwidth
\newsavebox\@addedbox
\newsavebox\@anchorbox
\newsavebox\stackedbox
@@ -125,8 +129,8 @@
%%%%% (but can invoke with \usepackage[oldsyntax]{stackengine} )
\newlength\Sstackgap\newlength\Lstackgap
\newcommand\stackgap{\if S\stacktype\the\Sstackgap\else\the\Lstackgap\fi}
-\global\setlength{\Sstackgap}{3pt}
-\global\setlength{\Lstackgap}{\normalbaselineskip}
+\setlength{\Sstackgap}{3pt}
+\setlength{\Lstackgap}{\normalbaselineskip}
\else%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% AND REPLACED WITH THE FOLLOWING %%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -162,8 +166,8 @@
%\def\usestackstrut{T}
%%%%% MODES
-\newcommand\stackMath{\global\def\stack@delim{$}}
-\newcommand\stackText{\global\def\stack@delim{}}
+\newcommand\stackMath{\gdef\stack@delim{$}}
+\newcommand\stackText{\gdef\stack@delim{}}
\stackText
\newcommand\strutlongstacks[1]{\def\@strutlongstacks{#1}}
@@ -328,7 +332,7 @@
\stackengine{#1}{}{#2}{U}{\stackalignment}{\quietstack}{F}{\stacktype}}
\newcommand*\savestack[2]{%
- \global\edef\sv@name{\stack@macro@name{#1}}%
+ \xdef\sv@name{\stack@macro@name{#1}}%
\@ifundefined{\sv@name content}{%
\expandafter\newsavebox\expandafter{\csname\sv@name content\endcsname}%
}{}%