diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/eqparbox/eqparbox.sty | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/eqparbox/eqparbox.sty b/Master/texmf-dist/tex/latex/eqparbox/eqparbox.sty index 2f9749cb4f1..68aaf6daca3 100644 --- a/Master/texmf-dist/tex/latex/eqparbox/eqparbox.sty +++ b/Master/texmf-dist/tex/latex/eqparbox/eqparbox.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2013 Scott Pakin <scott+eqp@pakin.org> +%% Copyright (C) 2017 Scott Pakin <scott+eqp@pakin.org> %% ------------------------------------------------------- %% %% This package may be distributed and/or modified under the @@ -21,7 +21,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{eqparbox} - [2013/03/15 v4.0 Create equal-widthed boxes] + [2017/09/03 v4.1 Create equal-widthed boxes] \newlength{\eqp@tempdima} \newlength{\eqp@tempdimb} \def\eqp@taglist{} @@ -132,6 +132,27 @@ \eqp@tempdima=\csname eqp@this@#1\endcsname\relax \eqp@produce@box{\eqp@tempdima}{#2}% } +\def\eqp@set@min@width#1#2{% + \expandafter\ifx\csname eqp@this@#1\endcsname\relax + \global\eqp@must@reruntrue + \expandafter\xdef\csname eqp@this@#1\endcsname{#2}% + \expandafter\xdef\csname eqp@next@#1\endcsname{#2}% + \else + \eqp@tempdima=\csname eqp@this@#1\endcsname\relax + \eqp@tempdimb=#2\relax + \ifdim\eqp@tempdima<\eqp@tempdimb + \expandafter\xdef\csname eqp@this@#1\endcsname{\the\eqp@tempdimb}% + \fi + \eqp@tempdima=\csname eqp@next@#1\endcsname\relax + \ifdim\eqp@tempdima<\eqp@tempdimb + \expandafter\xdef\csname eqp@next@#1\endcsname{\the\eqp@tempdimb}% + \fi + \fi + \@ifundefined{eqp@seen@#1}{% + \expandafter\gdef\csname eqp@seen@#1\endcsname{}% + \@cons\eqp@taglist{{#1}}% + }{}% +} \DeclareRobustCommand{\eqparbox}{% \@ifnextchar[%] {\eqparbox@i}% @@ -212,6 +233,7 @@ \newcommand{\eqsetminwidth}[2]{% \@tempdima=#2\relax \expandafter\xdef\csname eqp@minwd@#1\endcsname{\the\@tempdima}% + \eqp@set@min@width{#1}{\csname eqp@minwd@#1\endcsname}% } \newcommand{\eqsetmaxwidth}[2]{% \@tempdima=#2\relax @@ -220,6 +242,7 @@ \newcommand{\eqsetminwidthto}[2]{% \eqp@settowidth{\@tempdima}{#2}% \expandafter\xdef\csname eqp@minwd@#1\endcsname{\the\@tempdima}% + \eqp@set@min@width{#1}{\csname eqp@minwd@#1\endcsname}% } \newcommand{\eqsetmaxwidthto}[2]{% \eqp@settowidth{\@tempdima}{#2}% |