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

  • Permalink
  • submit to reddit
  • 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
Reply Paul 6/16/2010 10:27:51 PM

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
Reply Alan 6/16/2010 11:13:56 PM
comp.text.tex 36788 articles. 71 followers. Post

1 Replies
1512 Views

Similar Articles

[PageSpeed] 36


  • Permalink
  • submit to reddit
  • Email
  • Follow


Reply:

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

List of lists of lists of lists...
I would like to have a list of lists N times deep, and my solution is (in pseudocode): def deep(x): a=[x] return a mylist=[] for N: mylist=deep(mylist) Is there a more elegant way to do it? The maine idea is: from a list having the numbre of steps along N dimensions, generate a list with an item at each possible point. Example 1: N=2 list=[2,3] result=[[1,2],[1,2],[1,2]] Example 2: N=3 list=[3,1,2] result=[[[1,2,3]],[[1,2,3]]] -- Ángel Gutiérrez Rodríguez - agr@fq.uniovi.es Instituto de Ciencia de los Materiales de Madrid - CSIC SpLine - European Syncrothorn Radiat...

list of lists of lists ....
Hi, I have a list of data (type A) my list can includes element of type A or a lists, these list can includes element of type A or a lists, and so on ... is there a simple way to obtain a single list of all the elemets of type A ? thanks yomgui I forgot the most important, I am looking for a non recursive method. thanks yomgui yomgui wrote: > > Hi, > > I have a list of data (type A) > my list can includes element of type A or a lists, > these list can includes element of type A or a lists, and so on ... > > is there a simple way to obtain a single list of all...

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

Sort a List, in a List of Lists of Lists
Dear Mathgroup, I have a lsit of Lists of Lists: {{{1,2},{2,1},{1,1}},{{1,1},{1,1},{1,2}},{{2,1},{2,2},{1,2}},{{2,2},{1,2},{2,2}},{{1,1},{2,1},{1,2}},{{1,2},{2,2},{2,2}}} I would like to sort the elements in the lowest level of brackets to give {{{1, 2}, {1, 2}, {1, 1}}, {{1, 1}, {1, 1}, {1, 2}}, {{1, 2}, {2, 2}, {1, 2}}, {{2, 2}, {1, 2}, {2, 2}}, {{1, 1}, {1, 2}, {1, 2}}, {{1, 2}, {2, 2}, {2, 2}}} i.e retaining the same structure with the paired elements in the original order. I can't seem to get the syntax right to do this apart from the obvious {{Sort[{1,...

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

Re: Sort a List, in a List of Lists of Lists
On 11/13/10 at 12:59 AM, leigh.pascoe@inserm.fr wrote: >I have a lsit of Lists of Lists: >{{{1,2},{2,1},{1,1}},{{1,1},{1,1},{1,2}},{{2,1},{2,2},{1,2}},{{2,2}, >{1,2},{2,2}},{{1,1},{2,1},{1,2}},{{1,2},{2, 2},{2,2}}} >I would like to sort the elements in the lowest level of brackets to >give >{{{1, 2}, {1, 2}, {1, 1}}, {{1, 1}, {1, 1}, {1, 2}}, {{1, 2}, {2, >2}, {1, 2}}, {{2, 2}, {1, 2}, {2, 2}}, {{1, 1}, {1, 2}, {1, 2}}, >{{1, 2}, {2, 2}, {2, 2}}} >i.e retaining the same structure with the paired elements in the >original order. I can't seem...

[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 Atom or List of List??
how can detect some element of list is list o Atom?? for example when i try head (head p1) where p1=[[1,2],2] return 1 but when try head (head p1) where p1=[1,2] it returns Error plz help me..it my project and i have just 2 hours..:( i want to replace on Atom by another in list..for example: replace 1 2 [1,2] => [2,2] but sometime i have replace 1 2 [[1,2],2]=>[[2,2],2] i want to detect if first element of list is list then recurcively call head on that element.. is there any solutions?? On 8 Apr 2007 02:46:25 -0700, kheirandish.amin@gmail.com wrote: >how can detect some eleme...

convert list of lists to list
Is there a way to convert list_of_listsA to list_of_listsB, where one list in listof lists A is one element of listB? list_of_listsA: [['klas*', '*', '*'], ['mooi*', '*', '*', '*'], ['koe'], ['arm*', '*', '*(haar)'], ['groei*', '*', '*', '*', '*']] listB: ['klas* * *', 'mooi* * * *, 'koe', 'arm* * * (haar)', 'groei* * * * *'] Thankx! antar2 wrote: > Is there a way to convert list_of_listsA to list_of_listsB, where one >...

Extracting a List from a List of lists
Hi, I have an ArrayList of ArrayLists. I want to extract all the lists, but I dont know how many ArrayLists will be in the ArrayList. I know I can do it if i know how many lists are there using the ArrayList get() method. this is how i'm doing it List<String> list1 = new ArrayList<String>(); list1 = res.get(0); List<String> list1 = new ArrayList<String>(); list2 = res.get(1); List<String> list1 = new ArrayList<String>(); list3 = res.get(2); But if theres only two lists in the list i get a NullPointerException Is there any way i can loop through the l...

How to have a list of lists (or array of lists)
Hi, I want to have many lists, such as list0, list1, list2, ..., each one holding different number of items. Is there something like list[0] list[1] list[2] so that I can iterate through this list of lists? Thanks! bahoo On Apr 3, 7:12 pm, "bahoo" <b83503...@yahoo.com> wrote: > Hi, > > I want to have many lists, such as list0, list1, list2, ..., each one > holding different number of items. > Is there something like > list[0] > list[1] > list[2] > > so that I can iterate through this list of lists? > > Thanks! > bahoo listOfLists = [...

Copying a List to a List of Lists
Hi, I am having trouble with the following: I wish to have a list of lists of type Double called A. I then have a separate List of Doubles called B which i wish to add to A. I then want to be able to clear B and reuse it without clearing what I have added to A. Currently my code looks like: for(int i=0;i<seqLength;i++) { B.clear(); for(int j=i+1;j<seqLength;j++) { if(fourGameteTest(i,j)) { B.add(segPositions.get(j)); } } A.get(i).add(B); } However, it seems that due to, I guess the element held in A being a reference to the same pl...

lists of lists
I'm using C++ and I'm trying to create a list of a list and it won't let me create an iterator for it. if I do a list of an int, everything is fine. my syntax is list<list<string> > some_list; and my iterator would be someting like list<list>::Iterator blah; or maybe list<list<string> >::Iterator blah; ?? neither work, ofcourse. basicaly I'm trying to parse a text file, each line is token that contains tokens and I have a function that takes a string and returns the list of the tokens. so I have my the parent list to contain lists to t...

Lists of list
Hi All I am having problem with delete line if its belong to another one , example ['0132442\n', '13\n', '24\n'] the 2nd and 3rd are already in the first line , how can do this !!! Thanks Mohammed Altaj wrote: > Hi All > > I am having problem with delete line if its belong to another one , example I think, you mean to remove all lines that are substrings of another line. l = ['0132442\n', '13\n', '24\n'] l = [e.strip() for e in l] i = 0 while True: try: for j in range(len(l)): if i == j: continue if l[j]...

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

list*list
There must be a better way to multiply the elements of one list by another: a = [1,2,3] b = [1,2,3] c = [] for i in range(len(a)): c.append(a[i]*b[i]) a = c print a [1, 4, 9] Perhaps a list comprehension or is this better addressed by NumPy? Thanks, jab > There must be a better way to multiply the elements of one list by > another: > > a = [1,2,3] > b = [1,2,3] > c = [] > for i in range(len(a)): > c.append(a[i]*b[i]) > a = c > print a > [1, 4, 9] > > Perhaps a list comprehension or is this better addressed by NumPy? First of all: it's ...

When is a List not a List?
g[x_, n_] := x^n FullForm[Table[g[x, n], {n, 1, 2}]] FullForm[{g[x, 1], g[x, 2]}] Plot[{g[x, 1], g[x, 2]}, {x, 0, 1}, PlotStyle -> {Red, Blue}] Plot[Table[g[x, n], {n, 1, 2}], {x, 0, 1}, PlotStyle -> {Red, Blue}] The FullForm[]s are identical. One Plot[] has red and blue curves; the other has two blue curves. Quirky! AES wrote: > g[x_, n_] := x^n > FullForm[Table[g[x, n], {n, 1, 2}]] > FullForm[{g[x, 1], g[x, 2]}] > Plot[{g[x, 1], g[x, 2]}, {x, 0, 1}, PlotStyle -> {Red, Blue}] > Plot[Table[g[x, n], {n, 1, 2}], {x, 0,...

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