Allow mixed export of numbered and unnumbered sections in LaTeX
commit087d94b4882f8118a6e48436b0abc0ba4e79900f
authorLawrence Mitchell <wence@gmx.li>
Tue, 22 Mar 2011 19:26:14 +0000 (22 19:26 +0000)
committerBastien Guerry <bzg@altern.org>
Wed, 23 Mar 2011 14:04:27 +0000 (23 15:04 +0100)
tree038e12c4b411bf6a015e080526f8f16c693d0f17
parentac6e4c28b8081fd16e3de7b459d1a8e21f2c4ea7
Allow mixed export of numbered and unnumbered sections in LaTeX

* lisp/org-latex.el (org-export-latex-subcontent): Deal specially with
the case that NUM is an integer.

We would sometimes like to have numbered \sections in LaTeX export but
unnumbered \subsections and so forth.  That is, use the starred
equivalents for all sectioning commands below a certain level.
Previously, the num: option specification could only specify whether
sections should be numbered or unnumbered at all levels.  We now treat
an integer value specially, if num:N is supplied then the highest N
levels are numbered, and lower levels are exported without numbering.
lisp/org-latex.el