emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: linking to headings with a unique I'D exported to latex/PDF
Date: Thu, 02 Feb 2017 14:15:51 -0500	[thread overview]
Message-ID: <87lgto4d5k.fsf@gmail.com> (raw)
In-Reply-To: CA+M2ft_OCNNZCC+dB673m6k1FCdqnx2c31RV94jtYOPcSiFuDg@mail.gmail.com

John Hendy <jw.hendy@gmail.com> writes:

> On Thu, Feb 2, 2017 at 9:30 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>> Hello,
>>
>> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>>
>>> I'm writing a document which is exported to latex and then built into a
>>> PDF where I might have 'Alcohol', just as an example, mentioned several
>>> times in different level headings. Currently I'm using org links like
>>> this [[*Alcohol][Alcohol]] but that only allows me to link to one
>>> heading only.
>>>
>>> I've tried using links like this
>>> [[id:542d0880-c0fd-46d5-b75d-4cc6f5fa99cc][Alcohol]] and under the
>>> heading that I'm linking to it says -
>>>
>>> *** Alcohol
>>> :PROPERTIES:
>>> :ID:     542d0880-c0fd-46d5-b75d-4cc6f5fa99cc
>>> :END:
>>>
>
> This works for me:
>
> #+begin_example
>
> * Alcohol
>   :PROPERTIES:
>   :ID:       c8f90f00-4e36-41b7-b7fe-e52966e36d1d
>   :END:
>
> Something
>
> \newpage
>
> * Another heading
>
> Blah blah blah, see [[id:c8f90f00-4e36-41b7-b7fe-e52966e36d1d][Alcohol]]
>
> #+end_example
>
> From page 2 I jump up to the page 1 alcohol heading.
>
> Not sure if you need it, but I'm assuming you load org-id?
>
>

I ran into a problem like this a week or two ago, where [id:xxx] links
were not working.  Michael Welle suggested loading org-id and that
resolved my problem.

I do think however that the message I was getting was unhelpful
(something like "Link not found. Create a new heading?"), even though
there was nothing wrong with the link.

-- 
Nick

  reply	other threads:[~2017-02-02 19:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-02 15:01 linking to headings with a unique I'D exported to latex/PDF Sharon Kimble
2017-02-02 15:30 ` Nicolas Goaziou
2017-02-02 15:43   ` Sharon Kimble
2017-02-02 16:18     ` John Hendy
2017-02-02 16:13   ` John Hendy
2017-02-02 19:15     ` Nick Dokos [this message]
2017-02-03  9:21 ` SOLVED - Re: linking to headings with a unique ID " Sharon Kimble
     [not found] <66200e4145f44a5dbf0625dd8986c1f1@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-02-02 15:58 ` linking to headings with a unique I'D " Eric S Fraga

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=87lgto4d5k.fsf@gmail.com \
    --to=ndokos@gmail.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).