summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stackengine
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/stackengine')
-rw-r--r--Master/texmf-dist/tex/latex/stackengine/stackengine.sty23
1 files changed, 19 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/stackengine/stackengine.sty b/Master/texmf-dist/tex/latex/stackengine/stackengine.sty
index a70e627f521..88fae292c58 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{v3.22}
+\def\stackengineversionnumber{v3.23}
\ProvidesPackage{stackengine}
-[2013/11/06 \stackengineversionnumber\
+[2013/11/14 \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
@@ -58,7 +58,16 @@
% V3.22 -Removed \usepackage{calc}
% -Corrected \@STRT placement to not inadvertantly force a \mathop
% on rows beginning with a minus sign.
+% V3.23 -Made EOL-separated stacks (i.e., \Longstack, \Shortstack,
+% \Centerstack, \Vectorstack, etc.) work properly when a single
+% (unstacked) row is input.
+% -Noted in documentation that while EOL-separated stacks
+% ignore leading/trailing spaces in their arguments (unless the
+% EOL itself is a space token), the \stackon / \stackunder
+% family of macros do not ignore spaces in their arguments.
+% -Reinstated \usepackage{calc} (Oops!)
\RequirePackage{etoolbox}
+\usepackage{calc}
\newtoggle{@doneROWreads}
\newtoggle{stackloop@done}
@@ -258,11 +267,17 @@
\def\@stacksign{}%
\def\@stackcondition{\the@stackindex < \narg}%
\fi%
+ \def\@STRT{}%
+ \if T\@strutlongstacks\if L#4\def\@STRT{\strut}\fi\fi%
\sbox{\stackedbox}{%
- \stack@delim\ignorespaces%
+ \@STRT\stack@delim\ignorespaces%
\csname arg\roman{@stackindex}\endcsname%
\unskip\stack@delim}%
- \togglefalse{stackloop@done}%
+ \ifnum\narg>1%
+ \togglefalse{stackloop@done}%
+ \else%
+ \toggletrue{stackloop@done}%
+ \fi%
\whileboolexpr{test {\nottoggle{stackloop@done}}}{%
\addtocounter{@stackindex}{\@stacksign 1}%
\stackengine{\csname#4stackgap\endcsname}%