summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/cases/cases.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-03-12 03:00:57 +0000
committerNorbert Preining <norbert@preining.info>2020-03-12 03:00:57 +0000
commitc4777604044f5d7ed37fd9e47edd58b44630a66d (patch)
treefcf9b1a09a9879bafce7c9eb217995530605be0f /macros/latex/contrib/cases/cases.tex
parent5412d52974c365e2d5bc1a8320816a729f7c10ab (diff)
CTAN sync 202003120300
Diffstat (limited to 'macros/latex/contrib/cases/cases.tex')
-rw-r--r--macros/latex/contrib/cases/cases.tex26
1 files changed, 15 insertions, 11 deletions
diff --git a/macros/latex/contrib/cases/cases.tex b/macros/latex/contrib/cases/cases.tex
index f2bb343590..42a2b3efb5 100644
--- a/macros/latex/contrib/cases/cases.tex
+++ b/macros/latex/contrib/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}