From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Subject: [BUG] export to latex breaks Date: Fri, 27 Aug 2010 00:47:28 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0022158c09659ea633048ebedafb Return-path: Received: from [140.186.70.92] (port=46380 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OohxT-0007pf-9W for emacs-orgmode@gnu.org; Thu, 26 Aug 2010 15:17:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OohxP-0004xu-MY for emacs-orgmode@gnu.org; Thu, 26 Aug 2010 15:17:55 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:65414) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OohxP-0004xf-HJ for emacs-orgmode@gnu.org; Thu, 26 Aug 2010 15:17:51 -0400 Received: by wyb36 with SMTP id 36so2966231wyb.0 for ; Thu, 26 Aug 2010 12:17:49 -0700 (PDT) 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: emacs-orgmode --0022158c09659ea633048ebedafb Content-Type: text/plain; charset=UTF-8 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 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 ------------------------------------------------------------------------- --0022158c09659ea633048ebedafb Content-Type: application/octet-stream; name="test.org" Content-Disposition: attachment; filename="test.org" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gdbzljis2 IytUSVRMRTogICAgIGRpYXJ5CiMrREVTQ1JJUFRJT046IAojK0tFWVdPUkRTOiAKIytMQU5HVUFH RTogIGVuCiMrT1BUSU9OUzogICBIOjMgbnVtOnQgdG9jOnQgXG46bmlsIEA6dCA6OnQgfDp0IF46 dCAtOnQgZjp0ICo6dCA8OnQKIytPUFRJT05TOiAgIFRlWDp0IExhVGVYOnQgc2tpcDpuaWwgZDpu aWwgdG9kbzp0IHByaTpuaWwgdGFnczpub3QtaW4tdG9jCiMrSU5GT0pTX09QVDogdmlldzpuaWwg dG9jOm5pbCBsdG9jOnQgbW91c2U6dW5kZXJsaW5lIGJ1dHRvbnM6MCBwYXRoOmh0dHA6Ly9vcmdt b2RlLm9yZy9vcmctaW5mby5qcwojK0xJTktfVVA6ICAgCiMrTElOS19IT01FOiAKIytYU0xUOiAK CiogRGlhcnkKCiAgU29tZSByYW5kb20gY29udGVudCBoZXJlCgoqKiogRGF5IDEKCiAgICAxLiBI ZWxsbywgV29ybGQKCiAgICAyLiBHb29kYnllLCBXb3JsZAoKKioqKiogTW9ybmluZyAxCiAgICAg ICAgUmFuZG9tCgoqKioqKiBOaWdodCAxCiAgICAgIE1vcmUgUmFuZG9tIAoKKioqIERheSAyIAoK KiBIZWxsbywgV29ybGQKCiogT3JnLW1vZGUKCiogRW1hY3MKICAKICAgIAo= --0022158c09659ea633048ebedafb Content-Type: application/octet-stream; name="test2.org" Content-Disposition: attachment; filename="test2.org" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gdbzls0c3 IytUSVRMRTogICAgIGRpYXJ5CiMrREVTQ1JJUFRJT046IAojK0tFWVdPUkRTOiAKIytMQU5HVUFH RTogIGVuCiMrT1BUSU9OUzogICBIOjMgbnVtOnQgdG9jOnQgXG46bmlsIEA6dCA6OnQgfDp0IF46 dCAtOnQgZjp0ICo6dCA8OnQKIytPUFRJT05TOiAgIFRlWDp0IExhVGVYOnQgc2tpcDpuaWwgZDpu aWwgdG9kbzp0IHByaTpuaWwgdGFnczpub3QtaW4tdG9jCiMrSU5GT0pTX09QVDogdmlldzpuaWwg dG9jOm5pbCBsdG9jOnQgbW91c2U6dW5kZXJsaW5lIGJ1dHRvbnM6MCBwYXRoOmh0dHA6Ly9vcmdt b2RlLm9yZy9vcmctaW5mby5qcwojK0xJTktfVVA6ICAgCiMrTElOS19IT01FOiAKIytYU0xUOiAK CiogRGlhcnkKCiAgU29tZSByYW5kb20gY29udGVudCBoZXJlCgoqKioqKiBEYXkgMQoKICAgICAg MS4gSGVsbG8sIFdvcmxkCgogICAgICAyLiBHb29kYnllLCBXb3JsZAoKKioqKiogTW9ybmluZyAx CiAgICAgICAgUmFuZG9tCgoqKioqKiBOaWdodCAxCiAgICAgIE1vcmUgUmFuZG9tIAoKKioqIERh eSAyIAoKKiBIZWxsbywgV29ybGQKCiogT3JnLW1vZGUKCiogRW1hY3MKICAKICAgIAo= --0022158c09659ea633048ebedafb Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --0022158c09659ea633048ebedafb--