[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Always use \hyperref for internal Links in PDF export?
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Always use \hyperref for internal Links in PDF export? |
Date: |
Mon, 30 Jun 2014 14:43:58 +0200 |
Hello,
Bernd Haug <address@hidden> writes:
> Given a Document:
>
> —
> [[Section 1]]
>
> Bla, bla
>
> [[Section 2]]
>
> The blah blah is [[Section1][covered well above]], so let me just say:
> [[Section 1]]!
> —
>
> I get:
>
> —
> …
> The blah blah is \hyperref[Section 1]{covered well above}, so let me
> just say: \ref{Section 1}
> …
> —
>
> Is there a any way (without just always writing [[Section 1][Section
> 1]]) to always get the former behaviour, but just repeating the Title
> itself if no explicit link text was provided? That is:
>
> —
> …
> The blah blah is \hyperref[Section 1]{covered well above}, so let me
> just say: \hyperref[Section 1]{Section 1}
Not out of the box: this is a feature. Though, you can write a macro for
that:
#+MACRO: sec [[$1][$1]]
and, instead of writing
[[Section 1]]
you will use
{{{sec(Section 1)}}}
Obviously, it only works if the value is exactly the same if both
arguments.
Regards,
--
Nicolas Goaziou