diff options
author | Karl Berry <karl@freefriends.org> | 2013-11-16 23:52:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-11-16 23:52:52 +0000 |
commit | 36d085d3cda587a3535cad45bf4bbf1d0378f878 (patch) | |
tree | 5fa884673ccc331f8453f2a3d73f61b040d372e0 | |
parent | 9bd41c0ea62b048f9a61926ff523b1ea2b69ec9e (diff) |
stackengine (16nov13)
git-svn-id: svn://tug.org/texlive/trunk@32166 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/stackengine/stackengine.pdf | bin | 348457 -> 349047 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/stackengine/stackengine.tex | 14 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/stackengine/stackengine.sty | 23 |
3 files changed, 24 insertions, 13 deletions
diff --git a/Master/texmf-dist/doc/latex/stackengine/stackengine.pdf b/Master/texmf-dist/doc/latex/stackengine/stackengine.pdf Binary files differindex b1859d14e06..5a13c17edc4 100644 --- a/Master/texmf-dist/doc/latex/stackengine/stackengine.pdf +++ b/Master/texmf-dist/doc/latex/stackengine/stackengine.pdf diff --git a/Master/texmf-dist/doc/latex/stackengine/stackengine.tex b/Master/texmf-dist/doc/latex/stackengine/stackengine.tex index c9772b1a514..181f1ad4faa 100644 --- a/Master/texmf-dist/doc/latex/stackengine/stackengine.tex +++ b/Master/texmf-dist/doc/latex/stackengine/stackengine.tex @@ -292,7 +292,11 @@ though any character will work. There is a package option option} which sets the end-of-line symbol to be used when parsing stack arguments to \vb|\\|. When the stacking EOL is something other than a space token, leading and trailing spaces are ignored in the row data for -the four cited stacking commands. +the four cited stacking commands, as well as their derivatives +\vb|\Centerstack| and \vb|\Vectorstack|. (Note: other stacking commands +in the \vb|\stackon| / \vb|\stackunder| family will not ignore, but +retain spaces in their arguments, since there is no issue associated +with EOL seperators.) Note that these five mode-setting commands are not themselves parameters to be part of a {\ste} argument, but are instead to be issued as separate @@ -1394,14 +1398,6 @@ overcome this behavior, the stackgap must be redefined at the new fontsize, or better still, \vb|[oldsyntax]| usage needs to be relegated. -Additionally,\margcmd{usepackage\{calc\}} V3.22 officially removed its -reliance upon and any reference to the \textsf{calc} package (instead -opting to use features of the \textsf{etoolbox} package). If any of -your older source code that loaded {\ste} relied on features of the -\textsf{calc} package that were loaded implicitly by way of \ste, you -may have to explicitly add \vb|\usepackage{calc}| to your source code, -to retain those features. - \clearpage \section{Acknowledgements} 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}% |