summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/cases
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-11 21:17:10 +0000
committerKarl Berry <karl@freefriends.org>2020-03-11 21:17:10 +0000
commitde16b2c2ef67a75ad90e96bf94cb043c1d7553c2 (patch)
tree2015e5e382d850cb8277e9dccdeb20e23205095e /Master/texmf-dist/doc/latex/cases
parent4408697195e981b694bc08b5a04a5ffc9af9dc60 (diff)
cases (11mar20)
git-svn-id: svn://tug.org/texlive/trunk@54238 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/cases')
-rw-r--r--Master/texmf-dist/doc/latex/cases/README2
-rw-r--r--Master/texmf-dist/doc/latex/cases/cases.pdfbin334794 -> 335164 bytes
-rw-r--r--Master/texmf-dist/doc/latex/cases/cases.tex26
3 files changed, 16 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/cases/README b/Master/texmf-dist/doc/latex/cases/README
index ee694332bfb..5ddd34b8a4a 100644
--- a/Master/texmf-dist/doc/latex/cases/README
+++ b/Master/texmf-dist/doc/latex/cases/README
@@ -1,4 +1,4 @@
-cases.sty version 3.0 2020/02/22
+cases.sty version 3.1 2020/03/10
Copyright 1993, 1994, 1995, 2000, 2002, 2020 by Donald Arseneau,
asnd@triumf.ca, Vancouver, Canada.
diff --git a/Master/texmf-dist/doc/latex/cases/cases.pdf b/Master/texmf-dist/doc/latex/cases/cases.pdf
index 21e48d54ff8..168e8488fc7 100644
--- a/Master/texmf-dist/doc/latex/cases/cases.pdf
+++ b/Master/texmf-dist/doc/latex/cases/cases.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/cases/cases.tex b/Master/texmf-dist/doc/latex/cases/cases.tex
index f2bb343590b..42a2b3efb59 100644
--- a/Master/texmf-dist/doc/latex/cases/cases.tex
+++ b/Master/texmf-dist/doc/latex/cases/cases.tex
@@ -23,9 +23,9 @@
%\addtokomafont{title}{\rmfamily}
\title{The \pkg{cases} package%
- \textnormal{\thanks{~~This manual corresponds to \pkg{cases}~v3.0, dated 2020/02/22.}}}
+ \textnormal{\thanks{~~This manual corresponds to \pkg{cases}~v3.1, dated 2020/03/10.}}}
\author{Donald Arseneau\\\mail{asnd@triumf.ca}}
-\date{Feb 2020}
+\date{Mar 2020}
\begin{document}
@@ -69,7 +69,7 @@ case. In a \env{subnumcases} environment, a \cmd{\label} in the \meta{left side}
equation gives the overall equation number, without any letter.
To use this package,
-include "\usepackage{cases}" after \cmd{\documentclass}, and also after
+include "\usepackage{cases}" after \cmd{\documentclass}, and also after
"\usepackage{amsmath}" if you are using that.
\fancybreak
@@ -89,7 +89,7 @@ this package.
\item[\opt{subnum}] Force all \env{numcases} environments to be treated as
\env{subnumcases}.
\item[\opt{amsstyle}] For compatibility with \pkg{amsmath}'s \env{cases}, make \env{numcases}
- use cramped math style ("\textstyle"), and put explanations in the same math style.
+ use cramped math style (\cmd{\textstyle}), and put explanations in the same math style.
\item[\opt{casesstyle}] Change \pkg{amsmath}'s \env{cases} environment to work in the text/math style
of \env{numcases}.
\item[\opt{cases}] Define a \env{cases} environment for use without \pkg{amsmath}. (This
@@ -114,8 +114,8 @@ A simple example is:
Giving:
%
\begin{numcases} {|x|=}
- x, & for $x \geq 0$\\
- -x, & for $x < 0$
+ x, & for $x \geq 0$\label{x}\\
+ -x, & for $x < 0$\label{-x}
\end{numcases}
\fancybreak
@@ -185,10 +185,14 @@ which produces
To get this more compact layout with \env{numcases} you can insert "\textstyle"
at the beginning of each case, as needed, or use the \pkg{cases}
package option \opt{amsstyle}.
-To have the \env{cases} environment give the more open layout of eq.~(\ref{weqn})
-you can put "\displaystyle" at the beginning of each case, or use the
-option \opt{casesstyle} for the \pkg{cases} package. (Yes these go with the cases package, they
-are not options for amsmath.)
+To have the (unnumbered) \env{cases} environment give the more open layout of
+eq.~(\ref{weqn}) you can put "\displaystyle" at the beginning of each case, or use
+the option \opt{casesstyle} for the \pkg{cases} package. (Yes these go with the
+\pkg{cases} package, they are not options for \pkg{amsmath}.)
+
+Another slight difference is that the cases within \env{numcases} can be right-justified by
+inserting \cmd{\hfill} at the beginning of each, which might be desired in rare situations,
+like maybe the absolute value example numbered (\ref{x}) and (\ref{-x}) above.
For full disclosure, even without any relevant package options, cases.sty will
slightly adjust the \env{cases} environment from \pkg{amsmath}, by adding a little
@@ -205,6 +209,6 @@ sub-numbering style can be controlled more easily by defining
\begin{verbatim}
\renewcommand\thesubequation{\themainequation.\Alph{equation}} % 13.C
\end{verbatim}
-
+(noting that the counter to reference is `equation' not `subequation').
\end{document}