From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: latex enumeration issue Date: Wed, 3 Feb 2010 11:34:26 +0100 Message-ID: References: <4B68A26A.3030509@comcast.net> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NccZ5-0005qm-86 for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 05:34:31 -0500 Received: from [199.232.76.173] (port=37924 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NccZ4-0005qO-Oa for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 05:34:30 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NccZ3-0001Ro-T7 for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 05:34:30 -0500 Received: from mail-ew0-f228.google.com ([209.85.219.228]:60572) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NccZ3-0001Rk-HH for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 05:34:29 -0500 Received: by ewy28 with SMTP id 28so1181803ewy.8 for ; Wed, 03 Feb 2010 02:34:28 -0800 (PST) In-Reply-To: <4B68A26A.3030509@comcast.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Mark Elston Cc: org-mode emacs-orgmode Hi Mark, On Feb 2, 2010, at 11:08 PM, Mark Elston wrote: > A year ago Flavio de Souza asked a question about latex enumerations > that is similar to a problem I now have. The answer given then was a > workaround that doesn't apply in my case. > > This stems from my project of using a single file to maintain source > for generating my class notes *and* student handouts for my classes. > This allows me to take advantage of the common outline and common > text while specifying text that should go into only one or the other > document. > > I manage to do this by something like: > > * Common heading > > Some common text > > ** A common subheading > > More common text > > *** :handouts: > Something for handouts only > > *** :both: > More common text > > *** :notes: > My class notes text > > *** :both: > More common text > > > I have a makefile which creates a temporary .org file by > prepending a specific header on this file for each type of > output (handouts or notes), exporting to a latex file, running > a perl script to remove any (sub)+sections with just the > tags in them, and running pdflatex to generate the output. > > So far, so good. > > However, I ran into a problem with enumerations. Sometimes I > have enumerations in my original org file which are separated by > the 'empty' sectioning commands. This ends the enumeration and > the next enumerated item starts a new one. The result is a set > of enumerations with a single element in it. I get something > like: > > 1. Blah > > handout-specific text > > 1. More Blah > > etc. These should really have been 1, 2, etc. I don't understand. Why is the text "handout-specific text" still there? Do you need it between the items? Do you want to make it part of the item (indentation would solve this). > > The only workaround I have so far is to make all these items lists > instead of enumerations. This works OK but they would make much more > sense as enumerations. How does this help? - Carsten