summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/eqparbox
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-09-04 21:45:19 +0000
committerKarl Berry <karl@freefriends.org>2017-09-04 21:45:19 +0000
commit458a507406076f4746ce1440eca59f981949e0ab (patch)
treed7b091dab1e7ab52c4d0d99b092a8cf8d2dad382 /Master/texmf-dist/tex/latex/eqparbox
parent2326d8a8cff16ab14b59a3ddc5dc15b4a9e8dfa4 (diff)
eqparbox (4sep17)
git-svn-id: svn://tug.org/texlive/trunk@45215 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/eqparbox')
-rw-r--r--Master/texmf-dist/tex/latex/eqparbox/eqparbox.sty27
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}%