COMPGROUPS.NET | Post | Groups | Users | Stream | Browse | 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
 comp.text.tex 36446 articles. 68 followers.

1 Replies
1347 Views

Similar Articles

[PageSpeed] 34

• 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 and indent
Hello, When I use latex to make a list (itemize/enumerate) the list indents by about 0.4cm. How can I stop that? I want the list to align left with the main text. Thanks! Le 13.06.13 21:29, JohnD a �crit : > Hello, > > When I use latex to make a list (itemize/enumerate) > the list indents by about 0.4cm. How can I stop that? > I want the list to align left with the main text. > > Thanks! > you can use the package enumitem (which allows to configure list), with \usepackage{enumitem} \setlist[1]{leftmargin=1em} -- Ma�eul Rouquette http://geeko...

indented enumeration
I'm trying to format a paragraph that consists of an enumeration. I have tried to employ the standard paragraph formatting tricks on it, however that produced no results. I'm thinking that it's a very simple matter, but being a novice, I just don't know what to look for. Can anyone please point me in the right direction? Thanks. ezaydens wrote / a �crit : > I'm trying to format a paragraph that consists of an enumeration. I > have tried to employ the standard paragraph formatting tricks on it, > however that produced no results. I do assume that you'...

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 ...

no indent after \list
I'd like to suppress indentation of the first line after an environment. Along the lines of \@afterheading, I've been essentially trying to use something like this: \def\@afterenv{% \everypar{% \setbox\z@\lastbox \everypar{}}} And then: \newenvironment{stuff} {% begin stuff } {% end stuff \aftergroup\@afterenv} This doesn't work if I use a \list or \trivlist in the 'stuff' environment, though. Looking at \trivlist, I fail to see why. Can somebody enlighten me and suggest a solution that will work after a \list as well? -- Sender address blackholed, ...

How to loop through a list while inside the loop, the list size may be decreased?
Hi, I have a List containing Person objects. I am going through the list using a for loop. Inside the loop, I check each Person obj, if he/she disqualifies, I want to delete the object from the list. I found that the for loop always run into out of index exception, because the list size is gradually decreased, but the for loop "remembers" the original size. for(int i=0; i < list.size(); i++) { if(..) //check { list.get(i).remove(i); //this decreases the number of objects in list, correct? } } Thank you very much. www wrote: > Hi, > > I have a List contai...

Albhabetizing a list in Latex
I have a list of words, and I would like to sort the list alphabeticly. For example, if the list is orange, apple, bannana, I would like to be displayed as apple, bannana, orange. Does anyone know can I do that in Latex. Thank On Nov 28, 1:22 pm, stanin...@hotmail.com wrote: > I have a list of words, and I would like to sort the list > alphabeticly. For example, if the list is orange, apple, bannana, I > would like to be displayed as apple, bannana, orange. Does anyone know > can I do that in Latex. > > Thank The datatool package provides macros to sort a list. Regards...

Formatting inside enumerate
I am a math teacher and create worksheets for my students using latex. I have two pages of word problems and I have used enumerate to number them sequentially. However, my problem is that latex sometime chooses to break the page in the middle of a problem. Is there an option I can pass to override this? Thanks. >>>>> "aligoodn@gmail.com" <aligoodn@gmail.com> (A) wrote: >A> I am a math teacher and create worksheets for my students using latex. >A> I have two pages of word problems and I have used enumerate to number >A> them sequentially. ...

ntheorem: List of Theorems
I wanted to create a list of theorems using the ntheorem package. The only difference I want to get from the predefined "allname" style is a tabular alignment like this: Problem 1. My First Problem . . . . . . . 1 Theorem 2. My Second Theorem . . . . . . 2 Corollary 3. My third Corollary . . . . . . 3 Proof 4. My Fourh Proof . . . . . . . . 4 I did succed in defining a tabluar layout using \newtheoremlisttype but then the dots (created using \dotfill) were too narrow and the lines didn't fill up to the right margin. Having a look into ntheorem's implementation ...

Negative indent with tabularx
I have the following table: \usepackage{tabularx} \begin{document} \begin{table}[ht] \centering \begin{tabularx}{\linewidth}{@{}llX@{}} Primitive & Complexity & Comments \\% $\textit{makeFrontHeap}(C)$ & % $\mathcal O(|C|)$ &% Organizes elements in $C$ as a heap. No additional storage is necessary; $C$ is organized in situ by swapping its elements in-place. Empty lists in $C$ are not put in the heap.\\% \end{tabularx} \caption{Heap primitives.} \label{tab:data} \end{table} \end{document} I want ...

Memoir list indention
I know I'm missing something simple with the memoir package. I have an enumerate looking like 1.1 The section | % Lines up here 1.1.1 The enumerate item 1.1.1.1 A lower enumerate I would like to shift the \listparindent over such that 1.1 The section 1.1.1 The enumerate item 1.1.1.1 A lower enumerate % they don't necessary need to line up, I just need the indention. can ocur. Since I need to do this in a large document instead of a single enumerate, I would need to make this global. I've tried changing the \li...

negative paragraph indents?
I've tried various ways of generating negatively indented paragraphs, that look like this: Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx but haven't found a good way to do it. I'm using VTeX/2 for OS/2. Tried setting a specified value for parindent (\setlength{\parindent}{2em}, then using parbox, but this didn't work at all....

Functions inside list
I have a function berekenMaxWidth[beta_] which only gives the correct output when beta is numeric so I use maxWidth[beta_?NumericQ]:=berekenMaxWidth[beta]. Otherwise I get incorrect results, for instance when trying to plot berekenMaxWidth[beta]. This function represents a curve that will be of importance between two x-values. My problem arises when I try to give the function to a list of the shape {{xLow,xHigh},relevant curve function}. If I do: {{xLow,xHigh},maxWidth[beta]} , I get {{xLow,xHigh},Infinity} in my list instead of the function. This is incorrect. I need the ...

list of theorems #2
Hi, Is there a simple way to get a list of theorems? The package "ntheorem" does not seems to work in my document. When loading, it complains about an "Undefined control sequence" "\veqno". Does any one knows a simple way to get a list of theorems? Thank you, Gurvan On Jun 13, 8:35 am, GLG <glegu...@irisa.fr> wrote: > Hi, > Is there a simple way to get a list of theorems? > The package "ntheorem" does not seems to work in my document. When > loading, it complains about an "Undefined control sequence"...

enumerating in theorem environment
Hi all! I have a problem with enumerating items in the theorem environment. The output that the enumerate command produce has italic numbers, and I want them to be without any formatting. Here you can find my preamble: \documentclass[12pt, a4paper]{report} \usepackage{toptesi} \usepackage{amsmath, amsthm, amssymb, amsfonts, enumerate} \usepackage{natbib} \usepackage[italian]{babel} and here a random theorem with this problem: \begin{theorem} Let..... \begin{enumerate}[(i)] \item XXXXXXX \item dafsdaklfjsdfka \end{enumerate} \end{theorem} I would like to get a plain (no formatting ...

Enumerate Indent Problem
Hi, I need to make a enumerate without any indents (Special thanks to our CI-Team). Has anybody a solution? Thanks Stefan stefan wrote: > Hi, > > I need to make a enumerate without any indents (Special thanks to our > CI-Team). Has anybody a solution? > > Thanks > > Stefan Hi, You can fine-tune the enumerate indent with \itemindent example: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \def\t{This is a test\space} \begin{document} \t\t\t\t\t\t\t\t\t \begin{enumerate} \itemindent=-13pt% \item 1 \item 2 \...

detecting latex from inside
Suppose a TeX file is being \input from another file. Is it possible to detect *from inside the file* whether it's being run by LaTeX? If so, what is the true-or-false global variable that can be tested? Thanks. On 12/20/2011 02:12 PM, carlos@colorado.edu wrote: > Suppose a TeX file is being \input from another file. Is it possible > to > detect *from inside the file* whether it's being run by LaTeX? If > so, > what is the true-or-false global variable that can be tested? Thanks. Check for the existence of some macro defined by the LaTeX core. PSTricks, for example...