From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [BUG] export to latex breaks Date: Fri, 27 Aug 2010 09:31:23 +0200 Message-ID: <22C0511F-F81C-4A47-931B-F9D8F229BD25@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=60884 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OotPS-0003xJ-2B for emacs-orgmode@gnu.org; Fri, 27 Aug 2010 03:31:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OotPM-00079h-RY for emacs-orgmode@gnu.org; Fri, 27 Aug 2010 03:31:33 -0400 Received: from postduif.ic.uva.nl ([145.18.40.180]:58578) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OotPM-00079Z-JE for emacs-orgmode@gnu.org; Fri, 27 Aug 2010 03:31:28 -0400 In-Reply-To: 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: Puneeth Cc: emacs-orgmode Hi, On Aug 26, 2010, at 9:17 PM, Puneeth wrote: > Hi All, > > I'm on Org-mode version 7.01trans (release_7.01h.205.ge3d2) > The LaTeX export of document test.org breaks. The headings Day 1 and > Day 2 and content under them is not visible. > [I have org-odd-levels-only set] > > Git bisect says - > > bb0a1f190be361ce1d717d79d411b88406d74c33 is the first bad commit > commit bb0a1f190be361ce1d717d79d411b88406d74c33 > Author: Stephen Eglen > Date: Tue Jul 27 20:04:42 2010 +0000 I have for now reverted Stephen's patch. Maybe you can work on a patch that will eventually work fully correctly. - Carsten > > The patch below fixes the problem partially. Export of test.org > works. But, export of test2.org breaks. The subheading Day 2 does not > show up. [test2.org produces the same output without applying the > patch, too. I'm do not think that is an acceptable output.] > > HTH, > Puneeth > > ------------------------------------------------------------------------- > PARTIAL FIX > ------------------------------------------------------------------------- > diff --git a/lisp/org-latex.el b/lisp/org-latex.el > index 4f27f42..6bc6f71 100644 > --- a/lisp/org-latex.el > +++ b/lisp/org-latex.el > @@ -966,10 +966,10 @@ If ODD Is non-nil, assume subcontent only > contains odd sections." > (number-to-string (+ (if odd 4 2) level)) > ",\\}\\) \\(.*\\)$") > nil t) > - (setq nstars (1- (- (match-end 1) (match-beginning 1)))) > + (setq nstars (- (match-end 1) (match-beginning 1))) > (setq new-level (if odd > - (/ (+ 3 nstars) 2);; not entirely sure why +3! > - nstars))) > + (- nstars 2) > + (1- nstars)))) > (if nstars > (org-export-latex-parse-global new-level odd) > nil) ; subcontent is nil > ------------------------------------------------------------------------- > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten