emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Internal link with custom caption
@ 2013-05-17 13:31 Baptiste
  2013-05-17 18:01 ` visayafan
  0 siblings, 1 reply; 2+ messages in thread
From: Baptiste @ 2013-05-17 13:31 UTC (permalink / raw)
  To: Emacs-orgmode@gnu.org

Hi,

I would like to be able to  manage internal link that is exported with a
custom reference text. I mean define somewhere an anchor *plus the reference caption* and then use link mechanism to create a reference to this point with its given caption.

I do not find a way to do so.

Has I imagine it, it would look like

#+BEGIN_EXAMPLE
* Books
Presentation of the <<ref_book_1|/Important Book/>>.
… some text …

* What you have to read
… you should have a look at [[ref_book_1]] …

… some text …

* Where to find books
… [[ref_book_1]] is a free book from …
#+END_EXAMPLE

that would export as
#+BEGIN_EXAMPLE
* Books
Presentation of the /Important Book/.
… some text …

* What you have to read
… you should have a look at /Important Book/ …  ### (as a link to <<ref_book_1>>)

… some text …

* Where to find books
… /Important Book/ is a free book from …        ### (as a link to <<ref_book_1>>)
#+END_EXAMPLE

Did I miss something and there is a way to achieve this ? Or am-I the only one looking for such a function ?

Thank you

--

: ~^v^~ Bat

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

* Re: Internal link with custom caption
  2013-05-17 13:31 Internal link with custom caption Baptiste
@ 2013-05-17 18:01 ` visayafan
  0 siblings, 0 replies; 2+ messages in thread
From: visayafan @ 2013-05-17 18:01 UTC (permalink / raw)
  To: emacs-orgmode

Baptiste <bateast@bat.fr.eu.org> writes:

Hello, Baptiste


> I would like to be able to  manage internal link that is exported with a
> custom reference text. I mean define somewhere an anchor *plus the
> reference caption* and then use link mechanism to create a reference
> to this point with its given caption.

>
> I do not find a way to do so.
>

I don't think there is such a function but you can do it in this way:

#+BEGIN_EXAMPLE
* Books
Presentation of the <<ref_book_1>> /Important Book/.
& some text &

* What you have to read
& you should have a look at /[[ref_book_1][Important Book]]/ &

& some text &

* Where to find books
& /[[ref_book_1][Important Book]]/ is a free book from &
#+END_EXAMPLE

Hope it helps.

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

end of thread, other threads:[~2013-05-17 18:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-17 13:31 Internal link with custom caption Baptiste
2013-05-17 18:01 ` visayafan

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