2

I would like to format a dichotomy in the following way:

Let blah blah blah blah....

Then either one has

(I) case A

or (II) case B

I would like the numbers (1) and (2) aligned as in an enumerate environment, with a slight indent to the right so that the "or" sits to the left of (2). Many thanks in advance for any suggestions!

3
  • Are you going to use this format a lot of times or only once?
    – Sigur
    Dec 19, 2018 at 15:28
  • 2
    Anyway, \item[or (II)] case B should work.
    – Sigur
    Dec 19, 2018 at 15:35
  • Nice idea thanks! Unfortunately this method leaves the "or" sticking out a bit into the margin Dec 19, 2018 at 20:47

1 Answer 1

3

This is a solution using the enumitem package. I define a new enumerate counter style \dicho which prints either "(I)" or an "or" before larger numbers. Then, I define a new list type dichotomy with this style and some extra margin to not have the "or" stick out of the page. This also works with more than two cases.

\documentclass{article}
\usepackage{lipsum}

\usepackage{enumitem}
\makeatletter
\def\dicho#1{\expandafter\@dicho\csname c@#1\endcsname}
\def\@dicho#1{\ifnum#1>1 or \else\fi(\@Roman#1)}
\makeatother
\AddEnumerateCounter{\dicho}{\@dicho}{or (III)}
\newlist{dichotomy}{enumerate}{1}
\setlist[dichotomy]{label=\dicho*,leftmargin=1.5cm}

\begin{document}

\lipsum*[1] Then either one has
\begin{dichotomy}
\item case A
\item case B
\end{dichotomy}

\end{document}

enter image description here

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .