* Always use \hyperref for internal Links in PDF export?
@ 2014-06-29 21:42 Bernd Haug
2014-06-30 12:43 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Haug @ 2014-06-29 21:42 UTC (permalink / raw)
To: emacs-orgmode
Hello Orgmoders,
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}
…
—
Cheers, Bernd
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Always use \hyperref for internal Links in PDF export?
2014-06-29 21:42 Always use \hyperref for internal Links in PDF export? Bernd Haug
@ 2014-06-30 12:43 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2014-06-30 12:43 UTC (permalink / raw)
To: Bernd Haug; +Cc: emacs-orgmode
Hello,
Bernd Haug <bernd.haug@xaidat.com> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-30 12:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-29 21:42 Always use \hyperref for internal Links in PDF export? Bernd Haug
2014-06-30 12:43 ` 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).