org-odt.el: Render links to outline headings as section nos
commit4120d6fcf741f04673e90133ee8fb98a879c8e1d
authorJambunathan K <kjambunathan@gmail.com>
Tue, 20 Mar 2012 08:02:23 +0000 (20 13:32 +0530)
committerJambunathan K <kjambunathan@gmail.com>
Tue, 20 Mar 2012 08:02:23 +0000 (20 13:32 +0530)
treec25bbf7aeabb5436dd85239fe220c22118920c54
parentc983bc24002f7e9c2cbd2ba244a51f1b735a2e4a
org-odt.el: Render links to outline headings as section nos

* lisp/org-lparse.el (org-do-lparse): Make effective setting
of `org-export-headline-levels' available to the ODT exporter.
Also remove some stale comments.

* lisp/org-odt.el (org-odt-format-link): Add support for
generating cross-references to chapter numbers.
(org-odt-format-org-link): Resolve links to outline headings
as section numbers.  This special case resolution kicks in
only if the Org link has no description and the target outline
is not listified i.e., it is at a level within
`org-export-headline-levels'.

Fix for the following request:
http://lists.gnu.org/archive/html/emacs-orgmode/2012-02/msg01035.html

The above change is in conformity with the way links to
headlines will be treated in new ODT exporter that will be
built on top of Nicolas' org-element/org-export
infrastructure.
lisp/org-lparse.el
lisp/org-odt.el