From 458a507406076f4746ce1440eca59f981949e0ab Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 4 Sep 2017 21:45:19 +0000 Subject: eqparbox (4sep17) git-svn-id: svn://tug.org/texlive/trunk@45215 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/eqparbox/eqparbox.sty | 27 +++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/latex/eqparbox') 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 +%% Copyright (C) 2017 Scott Pakin %% ------------------------------------------------------- %% %% 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}% -- cgit v1.2.3