summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stackengine
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-11-16 23:52:52 +0000
committerKarl Berry <karl@freefriends.org>2013-11-16 23:52:52 +0000
commit36d085d3cda587a3535cad45bf4bbf1d0378f878 (patch)
tree5fa884673ccc331f8453f2a3d73f61b040d372e0 /Master/texmf-dist/tex/latex/stackengine
parent9bd41c0ea62b048f9a61926ff523b1ea2b69ec9e (diff)
stackengine (16nov13)
git-svn-id: svn://tug.org/texlive/trunk@32166 c570f23f-e606-0410-a88d-b1316a301751
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}%