Bug: possible bug in latex export [7.01trans (release_6.36.735.g15ca.dirty)]
commitbb0a1f190be361ce1d717d79d411b88406d74c33
authorStephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
Tue, 27 Jul 2010 20:04:42 +0000 (27 20:04 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Sun, 15 Aug 2010 06:34:26 +0000 (15 08:34 +0200)
tree0a8f275a12745947c1e3aa498e7ba92b1bcd498a
parent2b28ba88007022d33c91ba4260b89e4949eb8698
Bug: possible bug in latex export [7.01trans (release_6.36.735.g15ca.dirty)]

> FYI: This is a know limitation of the LaTeX exporter[1] and the
> current state of this issue (dealing with skipped levels) is that
> patches for the problem are welcome.  I agree that even if
> skipped-level-headlines are not allowed, they shouldn't be silently
> droped neither.
>
> Best,
>   -- David
>
> [1] http://thread.gmane.org/gmane.emacs.orgmode/26413

I think I have a patch for this, see below.  I've tested it briefly to
see that it works with both oddeven and odd level headings, but I would
appreciate other people taking a closer look/checking that it doesn't
break other things.  I think I found the problem, in that if you have a
structure like

* A

*** B

(i.e. a level one and a level 3)

after it has found the level 1 content, it expects to find a level 2
subtree, whereas in fact there could be a level 2+ tree.  See the
comment in the code for the change I made.

Stephen
lisp/org-latex.el