X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo-proof_by_cases.tex;h=f2d9b90987c8b894d74f8f38c41b16a620931029;hb=c674a11f42cdf7ca05680e435abbd270ab51ae13;hp=b85daefa54a80b9e7365feb42cbcc82a30c0b460;hpb=38147a40c34416d5dbd87f44d8786e3dd73a132f;p=mjotex.git diff --git a/mjo-proof_by_cases.tex b/mjo-proof_by_cases.tex index b85daef..f2d9b90 100644 --- a/mjo-proof_by_cases.tex +++ b/mjo-proof_by_cases.tex @@ -13,15 +13,27 @@ \usepackage{enumitem} % Using the enumitem package, we define a new type of list, called -% ``pcases'' (proof by cases). +% ``pcases'' (proof by cases). Each case has a label with an arabic +% numeral (the case number), but also a \thiscase identifier. The +% macro \thiscase is defined below by the \case command, and gives the +% name or conditions or whatever that distinguish one case from +% another. \newlist{pcases}{enumerate}{1} \setlist[pcases]{ - label=\textbf{Case~\arabic*}~(\protect\thiscase)\textbf{:}, + label=\textbf{Case~\arabic*}:~\protect\thiscase\textbf{.}, ref=\arabic*, align=left, - leftmargin=\parindent} + leftmargin=0pt, + listparindent=\parindent, + parsep=\parskip, + itemsep=\baselineskip} +% The optional argument here gets stuffed into the \thiscase macro, to +% be called by pcases when it creates this list item. The \hfill is a +% hack intended to force the proof to start on a new line, rather than +% right after the colon. A \newline where the \hfill is does not work, +% so we consume the rest of the line instead. \newcommand{\case}[1][]{ \def\thiscase{#1}% - \item + \item \hfill\par\vspace{\baselineskip} }