Anchor outline regexp during LaTeX tree export
commit8eee473f3760a3ccbdeea98e4de71d6a2464f9df
authorCarsten Dominik <carsten.dominik@gmail.com>
Wed, 15 Dec 2010 11:37:45 +0000 (15 12:37 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Wed, 15 Dec 2010 11:37:45 +0000 (15 12:37 +0100)
tree967da4ee15cad2ab3be54f49a38a5134c36396ea
parenteb0d35dd185043933a0415222adc51906579dc67
Anchor outline regexp during LaTeX tree export

* lisp/org-latex.el (org-export-latex-first-lines): Anchor outline
regexp during LaTeX tree export

Jörg Hagmann writes:

> - If you export the (new) minimal example below to latex (C-cC-e l), it works.
> - If you only export a tree (Subtree in the example; C-cC-e 1 l), the first table ends at the horizontal line and everything between it and the next node (Subsubtree) is eliminated. The second (identical) table is exported correctly.
> - If you remove the asterisk(s) in the first table, it works.
>
> This problem crept in in the last days or weeks before 7.4.
>
> It may not be a problem for most of you, but I happen to have a number of files where columns are automatically displayed as tables preceding the first subnode (#+BEGIN: columnview ...). An alternative would be to display %ITEM in column-view without the asterisks.
>
> Emacs 23.2.1 on OS X 10.6.5
> Org-mode version 7.4 (release_7.4.24.g48b11.dirty)
>
> Thanks, Jörg
>
> -------New minimal example------------
> * Subtree
>
>
> | One    | Two  | Three |
> |--------+------+-------|
> | * Test | text | text  |
> | ** One | text | text  |
>
>
> Some text
>
> ** Subsubtree
>
> | One    | Two  | Three |
> |--------+------+-------|
> | * Test | text | text  |
> | ** One | text | text  |
lisp/org-latex.el