COMPGROUPS.NET | Browse | Post | Groups | Users | Stream | About | |

### latex: Negative indent in an enumerated list inside a theorem?

• Email
• Follow

How do I do in latex, a negative indent on an enumerated list inside a Theorem?

I have a math book where sometimes the theorems are written like this:

----------
Theorem.
If all cows are spherical and either:
(1) the moon is made of green cheese,
or (2) there are canals on Mars
then pluto is a planet.
----------

How do I copy this style in latex, specificly the negative indent
on the "or"?

--
Paul Elliott                               1(512)837-1096
pelliott@BlackPatchPanel.com               PMB 181, 11900 Metric Blvd Suite J
http://www.free.blackpatchpanel.com/pme/   Austin TX 78758-3117

 0

See related articles to this posting

In article <slrni1ijv6.88c.pelliott@hrnowl.blackpatchpanel.com>,
Paul Elliott <pelliott@blackpatchpanel.com> wrote:

> How do I do in latex, a negative indent on an enumerated list inside a
> Theorem?
>
> I have a math book where sometimes the theorems are written like this:
>
> ----------
> Theorem.
> If all cows are spherical and either:
>          (1) the moon is made of green cheese,
>       or (2) there are canals on Mars
> then pluto is a planet.
> ----------
>
> How do I copy this style in latex, specificly the negative indent
> on the "or"?

There may be a more elegant way to do this, but here's one way:

\documentclass{article}
\usepackage{enumitem,amsthm}
\setenumerate{label={(\arabic*)},leftmargin=.75in}
\newcommand*{\OR}{\hspace{-3em}or\hspace{2.1em}}
\newtheoremstyle{logic}%
{3pt}{3pt}{\normalfont}{}{\bfseries}{.}{\newline}{}
\theoremstyle{logic}
\newtheorem{theorem}{Theorem}
\begin{document}
\begin{theorem}
If all cows are spherical and either:
\begin{enumerate}
\item the moon is made of green cheese,
\item \OR there are canals on Mars
\end{enumerate}
then pluto is a planet.
\end{theorem}

\end{document}

Alan

 0

1 Replies
1211 Views

Similar Articles

[PageSpeed] 28

• Email
• Follow

Similar Artilces:

Indenting a list in LaTeX
Sorry for the newbie question. I've pounded my brains out going through my LaTeX books. I have a description list (\begin{description}...\end{description}) that I need to indent a small amount on the left margin, from the preceding text. This corresponds to slightly increasing the default \leftmargin amount shown on p. 145 in "The LaTeX Companion." Is there a clean, simple way to do this? Rithban <rithban@yahoo.com> writes: > text. This corresponds to slightly increasing the default \leftmargin amount > Is there a clean, simple way to do this? \addtolength{\l...

How to indent inside lists
In the example below, how can I get indentation of "YYY", "ZZZ" aligned with "XXX": -------------------- \documentclass{article} \usepackage{enumitem} \usepackage[T1]{fontenc} \begin{document} \begin{enumerate} \item page 35 - XXX\\ YYY\\ ZZZ \item page 56 - AAA\\ BBB \item page 110 \end{enumerate} \end{document} -------------------- Many thanks in advance, Cesar Cesar Romani wrote: > In the example below, how can I get indentation of "YYY", "ZZZ" aligned > with &...

LaTeX-indent-environment-list -- and (old.nabble forum)
Dear emacs+latex experts: I want to remove "table" and "table*" from the LaTeX-indent-environment-list in the .emacs init file. How can I do this? fwiw, table on this list seems to be an odd choice. I understand that tabular should not be messed up by filling (M-q), but why table? it can easily contain paragraphs. in fact, most tables are probably a combination of tabulars and paragraphs, and the former would be messed up. but not the latter. what makes this even stranger is that figure is not on the list, but table is. help appreciated. /iaw PS: the old nabble f...

figure environment inside an enumerate environment messes up indentation of the items
I would like to have figures side by side with text. I achieve this with minipages, one of which contains the text, the other the figure. The text is part of a longer enumerate environment. I want enumeration and indentation to be kept properly. But if I want to give the figure a caption, I need to put it inside a figure environment, which in turn I am not allowed to put inside the minipage. So I would have to include the entire enumration environment in the figure environment, which makes placement of a huge figure nearly impossible. Any help is appreciated! abrose@math.ucla.edu wro...

Ordered list inside ordered list
I'm wondering if there's a way to support ordered list inside an ordered list. In other words, the ability to create multi-level structures such as 1. Products 1.1 Pen 1.2 Computer 1.n Food 2. Users 2.1 Generic consumers 2.2 College students 2.n ... 3 Comments .... Browsers: IE7? IE8? Firefox 3.5? I've tried to even create the second level manually, e.g. 1.1, bla bla, 1.2 more bla bla. Had some success with Firefox 3.5 two nights ago but completely out of luck with IE7, tried Firefox again today but failed. The web page uses frame with execCommand of ...

Outline inside Outline or list inside ist
Here, question: how to allow Outline almost like what Word would allow one to do? Primary browser to support is Firefox for now. Currently I'm using the execCommand function and the InsertOrderedList command identifier, so, it is able to create ordered list (just consider it as outline for now), and it looks like this: 1. apple 2.orange 3.banana What I'd like to do is, to go a step further, to achieve the following: 1. apple 1.1 apple cyder 1.2 apple pie ... 2.orange 3.banana But I'm unable to accomplish it. Thought or pointer would be much appreciate. On Mar 3, 7:...

[listings BUG ?] LaTeX listings format multiple dashes
Hi ! As demonstrated by the example below, an lstlisting of, say three dashes formats them in the usual LaTeX way. I would consider it a bug because the purpose of listings is to actually see the code, which you don't in that case. So is this a bug or am I missing something ? I can I overcome it ? Thanks ! PS: I'm using version 1.2, but at a first glance (at the 1.3 doc), things wouldn't be so different with 1.3 -- Didier Verna, didier@lrde.epita.fr, http://www.lrde.epita.fr/~didier EPITA / LRDE, 14-16 rue Voltaire Tel.+33 (1) 44 08 01 85 94276 Le Kremlin-Bic�tre...

Single LaTeX document producing list and descriptive list
I'm trying to figure out a way of creating a single LaTeX document that when output will produce two different files. One file being a simple checklist (easily doable as a list environment), the second being the same items as the checklist but with a description attached to each one (more of a description environment). I hate to have to maintain two separate documents or retype both items. The checklist will be printed many times (once for each job), while the description of each item only once or twice for each new operator or change in workflow. So having perfect consistency between bot...

list of theorems
(Hopefully) a quick question: How does one generate a list of theorems in latex? I am 'overloading' the theorem definition for 'Lemma', 'Definition' in the following way: \newtheorem{thm}{Theorem}[chapter] \newtheorem{lemma}[thm]{Lemma} \newtheorem{prop}[thm]{Proposition} \newtheorem{cor}[thm]{Corollary} \theoremstyle{definition} % use "definition-style" font for the rest \newtheorem{Defn}[thm]{Definition} \newtheorem{example}[thm]{Example} \newtheorem{conj}[thm]{Conjecture} \newtheorem{rmk}[thm]{Remark} \newtheorem{Assn}[thm]{Assumption} and would also ...