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.sty11
1 files changed, 7 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/stackengine/stackengine.sty b/Master/texmf-dist/tex/latex/stackengine/stackengine.sty
index 50103f0e9b8..999f532132e 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.1}
+\def\stackengineversionnumber{v3.11}
\ProvidesPackage{stackengine}
-[2013/09/11 \stackengineversionnumber
+[2013/09/25 \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
@@ -47,6 +47,8 @@
% each row of a long stack
% -Recommend \strutshortanchors{} mode in preference to
% \def\usestackstrut{} definition (now deprecated).
+% V3.11 -Corrected bug in \stackinset which did not condition the
+% anchor when using vertical centering in \stackMath mode
\usepackage{calc}
\usepackage{ifthen}
\newcounter{@stackindex}
@@ -322,12 +324,13 @@
%\stackinset{l/c/r}{x}{b/c/t}{y}{inset}{anchor}
\newcommand*\stackinset[6]{%
\def\conditioned@inset{\stack@delim#5\stack@delim}%
+ \def\conditioned@anchor{\stack@delim#6\stack@delim}%
\ifthenelse{\equal{#4}{}}%
{\setlength{\stack@tmplength}{0pt}}%
{\setlength{\stack@tmplength}{#4}}%
\if c#3%
\setlength{\temp@stkl}{%
- \heightof{#6}+\depthof{#6}%
+ \heightof{\conditioned@anchor}+\depthof{\conditioned@anchor}%
-\heightof{\conditioned@inset}-\depthof{\conditioned@inset}}%
\addtolength{\stack@tmplength}{.5\temp@stkl}%
\fi%
@@ -340,7 +343,7 @@
\else%
\def\conditioned@inset{\stack@lroffset#5\stack@lroffset}%
\fi%
- \stackengine{-\stack@tmplength}{#6}{\conditioned@inset}%
+ \stackengine{-\stack@tmplength}{#6}{#5}%
{\inset@valign{#3}}{#1}{\quietstack}{T}{S}%
}