summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/cases/cases.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/cases/cases.sty')
-rw-r--r--macros/latex/contrib/cases/cases.sty15
1 files changed, 7 insertions, 8 deletions
diff --git a/macros/latex/contrib/cases/cases.sty b/macros/latex/contrib/cases/cases.sty
index 13d2effa54..ddee362c63 100644
--- a/macros/latex/contrib/cases/cases.sty
+++ b/macros/latex/contrib/cases/cases.sty
@@ -1,4 +1,4 @@
-% C A S E S . S T Y ver 3.1 Mar 2020
+% C A S E S . S T Y ver 3.2 Mar 2020
%
% Copyright (C) 1993,1994,1995,2000,2002,2020 by Donald Arseneau
% asnd@triumf.ca
@@ -30,7 +30,7 @@
%
% For detailed description and package options, see cases.pdf (cases.tex).
-\ProvidesPackage{cases}[2020/03/10 ver 3.1]
+\ProvidesPackage{cases}[2020/03/29 ver 3.2]
\newdimen\numc@numwid
@@ -72,10 +72,10 @@
\setbox\tw@\vbox\bgroup
\everycr{}\let\\\@eqncr \let\@@eqncr\@@numc@cr
\tabskip\@tempskipa
- \halign to\dimen@ii \bgroup % white space for LHS followed by RHS
- \kern\wd\z@ \kern10\p@ % assume (and force) width of brace
+ \halign to \ifx\numc@left\mathindent \linewidth \else \displaywidth \fi \bgroup
+ \kern\wd\z@ \kern10\p@ % white space for LHS; assume (and force) width of brace
\global\let\iftag@=\iffalse % for amsmath (make sure this is not in \if block)
- \global\@eqcnt\@ne $\numc@dispstyle ##\relax$\hfil
+ \global\@eqcnt\@ne $\numc@dispstyle ##\relax$\hfil % RHS
\tabskip\z@skip &% explanation
\global\@eqcnt\tw@
\numc@expstyle\quad ##\unskip\numc@expstyle\hfil % \unskip removes quad if no explanation
@@ -208,7 +208,7 @@ $$\global\@ignoretrue}
}% end amsmath branch
\def\numc@left{\@centering}
-\def\numc@opts{\dimen@ii\displaywidth}
+\def\numc@opts{}
\def\numc@forcenumwid{\numc@numwid}
\DeclareOption{subnum}{%
@@ -218,8 +218,7 @@ $$\global\@ignoretrue}
\DeclareOption{fleqn}{
\let\numc@left\mathindent
- \def\numc@opts{\displaywidth\linewidth
- \dimen@ii\linewidth }
+ \def\numc@opts{\displaywidth\linewidth}
}
\DeclareOption{leqno}{