Re: [O] Always use \hyperref for internal Links in PDF export?

2014-06-30 Thread Nicolas Goaziou
Hello,

Bernd Haug bernd.h...@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



[O] Always use \hyperref for internal Links in PDF export?

2014-06-29 Thread Bernd Haug
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