summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/stackengine/stackengine.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/stackengine/stackengine.sty')
-rw-r--r--macros/latex/contrib/stackengine/stackengine.sty15
1 files changed, 9 insertions, 6 deletions
diff --git a/macros/latex/contrib/stackengine/stackengine.sty b/macros/latex/contrib/stackengine/stackengine.sty
index d99282df7d..4e37b5e2dd 100644
--- a/macros/latex/contrib/stackengine/stackengine.sty
+++ b/macros/latex/contrib/stackengine/stackengine.sty
@@ -1,6 +1,6 @@
-\def\stackengineversionnumber{v4.1}
+\def\stackengineversionnumber{v4.11}
\ProvidesPackage{stackengine}
-[2021/07/15 \stackengineversionnumber\
+[2021/07/22 \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
@@ -88,6 +88,9 @@
% -Introduce \lstackMath and \lstackText as local versions of
% \stackMath and \stackText (which are global).
% -Eliminated \usestackstrut (became internal \@usestackstrut)
+% V4.11 -Renamed \@backgroundbox to \se@backgroundbox, to avoid
+% conflict with adjustbox package. Thanks to
+% samuel.wein AT uni-tuebingen.de for the tip.
\RequirePackage{etoolbox}
\RequirePackage{listofitems}% REQUIRES listofitems.sty AND listofitems.tex
\usepackage{calc}
@@ -102,7 +105,7 @@
\newsavebox\@addedbox
\newsavebox\@anchorbox
\newsavebox\@insetbox
-\newsavebox\@backgroundbox
+\newsavebox\se@backgroundbox
\newsavebox\stackedbox
\newsavebox{\@centerbox}
\newcounter{ROWcellindex@}
@@ -363,13 +366,13 @@
%\stackinset{l/c/r}{x}{b/c/t}{y}{inset}{anchor}
\newcommand*\stackinset[6]{%
- \sbox\@backgroundbox{\stack@delim#6\stack@delim}%
+ \sbox\se@backgroundbox{\stack@delim#6\stack@delim}%
\sbox\@insetbox{\stack@delim#5\stack@delim}%
\ifstrequal{#4}{}%
{\setlength{\stack@tmplength}{0pt}}%
{\setlength{\stack@tmplength}{#4}}%
\if c#3%
- \setlength{\temp@stkl}{\ht\@backgroundbox+\dp\@backgroundbox%
+ \setlength{\temp@stkl}{\ht\se@backgroundbox+\dp\se@backgroundbox%
-\ht\@insetbox-\dp\@insetbox}%
\addtolength{\stack@tmplength}{.5\temp@stkl}%
\fi%
@@ -381,7 +384,7 @@
\else%
\def\conditioned@inset{\stack@lroffset\usebox{\@insetbox}\stack@lroffset}%
\fi%
- \stackengine{-\stack@tmplength}{\usebox{\@backgroundbox}}%
+ \stackengine{-\stack@tmplength}{\usebox{\se@backgroundbox}}%
{\conditioned@inset}{\inset@valign{#3}}{#1}{\quietstack}{T}{S}%
}