emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Puneeth <punchagan@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: [BUG] export to latex breaks
Date: Fri, 27 Aug 2010 00:47:28 +0530	[thread overview]
Message-ID: <AANLkTik=JYejMTMutBH+EfGU0_+ey3hgPByMBk9_prQ3@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1610 bytes --]

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 <S.J.Eglen@damtp.cam.ac.uk>
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
-------------------------------------------------------------------------

[-- Attachment #2: test.org --]
[-- Type: application/octet-stream, Size: 557 bytes --]

#+TITLE:     diary
#+DESCRIPTION: 
#+KEYWORDS: 
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT: 

* Diary

  Some random content here

*** Day 1

    1. Hello, World

    2. Goodbye, World

***** Morning 1
        Random

***** Night 1
      More Random 

*** Day 2 

* Hello, World

* Org-mode

* Emacs
  
    

[-- Attachment #3: test2.org --]
[-- Type: application/octet-stream, Size: 563 bytes --]

#+TITLE:     diary
#+DESCRIPTION: 
#+KEYWORDS: 
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT: 

* Diary

  Some random content here

***** Day 1

      1. Hello, World

      2. Goodbye, World

***** Morning 1
        Random

***** Night 1
      More Random 

*** Day 2 

* Hello, World

* Org-mode

* Emacs
  
    

[-- Attachment #4: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

             reply	other threads:[~2010-08-26 19:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-26 19:17 Puneeth [this message]
2010-08-27  7:31 ` [BUG] export to latex breaks Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTik=JYejMTMutBH+EfGU0_+ey3hgPByMBk9_prQ3@mail.gmail.com' \
    --to=punchagan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).