From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Bernd Haug <bernd.haug@xaidat.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Always use \hyperref for internal Links in PDF export?
Date: Mon, 30 Jun 2014 14:43:58 +0200 [thread overview]
Message-ID: <87egy6musx.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAKjxQA1KrXpu=Om6OOS9PG_HcE0T7_iVH8EdLGhWeEcMjSsxNA@mail.gmail.com> (Bernd Haug's message of "Sun, 29 Jun 2014 23:42:26 +0200")
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
prev parent reply other threads:[~2014-06-30 12:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-29 21:42 Always use \hyperref for internal Links in PDF export? Bernd Haug
2014-06-30 12:43 ` Nicolas Goaziou [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87egy6musx.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=bernd.haug@xaidat.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).