From ad9f9da66a5459b5b58caf5de7af2309b97bf185 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 26 Sep 2013 22:25:51 +0000 Subject: stackengine (26sep13) git-svn-id: svn://tug.org/texlive/trunk@31778 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/stackengine/stackengine.sty | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/tex/latex/stackengine') 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}% } -- cgit v1.2.3