Hi, I wonder whether there is an easy way to refer to section numbers in ODT export. TOCs including these numbers can be produced automatically during export. Does anybody have an idea how one could access that information inside the org file? Thanks, Martin
[-- Attachment #1: Type: text/plain, Size: 698 bytes --] Martin Gürtler <martin.guertler@gmx.de> writes: > Hi, > > I wonder whether there is an easy way to refer to section numbers in ODT > export. TOCs including these numbers can be produced automatically > during export. Does anybody have an idea how one could access that > information inside the org file? What you ask for, is currently not possible. It is easily doable though. I will add your request to my TODO list. I will let you know once I am done with it. For the sake of clarity and for my own later reference, does the attached Org file/ODT file capture what you want? One of the links in the ODT file is hand-edited with LibreOffice for the sake of illustration. -- [-- Attachment #2: xref.odt --] [-- Type: application/vnd.oasis.opendocument.text, Size: 16391 bytes --] [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #3: xref.org --] [-- Type: text/x-org, Size: 545 bytes --] #+TITLE: xref.org #+AUTHOR: Jambunathan K #+EMAIL: kjambunathan@gmail.com #+DATE: 2012-02-29 Wed #+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:dvipng skip:nil d:t todo:t pri:nil tags:t #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+XSLT: * First Headline * Second Headline This is what ODT exporter does right now - [[First%20Headline][First Headline]].This is what I want instead - .
Am Mittwoch, den 29.02.2012, 23:26 +0530 schrieb Jambunathan K:
> Martin Gürtler <martin.guertler@gmx.de> writes:
>
> > Hi,
> >
> > I wonder whether there is an easy way to refer to section numbers in ODT
> > export. TOCs including these numbers can be produced automatically
> > during export. Does anybody have an idea how one could access that
> > information inside the org file?
>
> What you ask for, is currently not possible. It is easily doable
> though. I will add your request to my TODO list. I will let you know
> once I am done with it.
>
> For the sake of clarity and for my own later reference, does the
> attached Org file/ODT file capture what you want? One of the links in
> the ODT file is hand-edited with LibreOffice for the sake of
> illustration.
Yes. I think of
As explained in Sec. [[*some_chapter]] it is highly desirable to be able
to refer to section numbers.
resulting in
As explained in Sec. 2.1.3. it is highly desirable to be able to refer
to section numbers.
Probably we need some option that tells the exporter to export section
numbers for description-less links referring to org-mode headlines.
I could also imagine the word "Sec." to trigger the insertion of a
section number, but then the thing becomes language dependent.
Thanks,
Martin
Hello,
Martin Gürtler <martin.guertler@gmx.de> writes:
> Probably we need some option that tells the exporter to export section
> numbers for description-less links referring to org-mode headlines.
It will be standard across all major back-ends in the next export engine
(which is actually experimental).
Regards,
--
Nicolas Goaziou