emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Is it possible to refer to section numbers in links?
@ 2012-02-29 14:10 Martin Gürtler
  2012-02-29 17:56 ` Jambunathan K
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Gürtler @ 2012-02-29 14:10 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is it possible to refer to section numbers in links?
  2012-02-29 14:10 Is it possible to refer to section numbers in links? Martin Gürtler
@ 2012-02-29 17:56 ` Jambunathan K
  2012-02-29 20:17   ` Martin Gürtler
  0 siblings, 1 reply; 4+ messages in thread
From: Jambunathan K @ 2012-02-29 17:56 UTC (permalink / raw)
  To: Martin Gürtler; +Cc: emacs-orgmode

[-- 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 - .

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is it possible to refer to section numbers in links?
  2012-02-29 17:56 ` Jambunathan K
@ 2012-02-29 20:17   ` Martin Gürtler
  2012-02-29 20:28     ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Gürtler @ 2012-02-29 20:17 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

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 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is it possible to refer to section numbers in links?
  2012-02-29 20:17   ` Martin Gürtler
@ 2012-02-29 20:28     ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2012-02-29 20:28 UTC (permalink / raw)
  To: Martin Gürtler; +Cc: emacs-orgmode, Jambunathan K

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-29 20:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29 14:10 Is it possible to refer to section numbers in links? Martin Gürtler
2012-02-29 17:56 ` Jambunathan K
2012-02-29 20:17   ` Martin Gürtler
2012-02-29 20:28     ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).