* linking to headings with a unique I'D exported to latex/PDF
@ 2017-02-02 15:01 Sharon Kimble
2017-02-02 15:30 ` Nicolas Goaziou
0 siblings, 1 reply; 7+ messages in thread
From: Sharon Kimble @ 2017-02-02 15:01 UTC (permalink / raw)
To: org-mode-email
[-- Attachment #1: Type: text/plain, Size: 933 bytes --]
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 -
--8<---------------cut here---------------start------------->8---
*** Alcohol
:PROPERTIES:
:ID: 542d0880-c0fd-46d5-b75d-4cc6f5fa99cc
:END:
--8<---------------cut here---------------end--------------->8---
But when exported it does not work.
So, how can I link to specific headings, preferably with a unique ID
please?
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linking to headings with a unique I'D exported to latex/PDF
2017-02-02 15:01 Sharon Kimble
@ 2017-02-02 15:30 ` Nicolas Goaziou
2017-02-02 15:43 ` Sharon Kimble
2017-02-02 16:13 ` John Hendy
0 siblings, 2 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2017-02-02 15:30 UTC (permalink / raw)
To: Sharon Kimble; +Cc: org-mode-email
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:
>
> But when exported it does not work.
What doesn't work?
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linking to headings with a unique I'D exported to latex/PDF
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
1 sibling, 1 reply; 7+ messages in thread
From: Sharon Kimble @ 2017-02-02 15:43 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: org-mode-email
[-- Attachment #1: Type: text/plain, Size: 957 bytes --]
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> 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:
>>
>> But when exported it does not work.
>
> What doesn't work?
The example that I've just given with the ID.
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linking to headings with a unique I'D exported to latex/PDF
[not found] <66200e4145f44a5dbf0625dd8986c1f1@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-02-02 15:58 ` Eric S Fraga
0 siblings, 0 replies; 7+ messages in thread
From: Eric S Fraga @ 2017-02-02 15:58 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 595 bytes --]
On Thursday, 2 Feb 2017 at 15:01, Sharon Kimble wrote:
> 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.
Try using internal links (see manual) which allow you to specify what
the link is called.
* Alcohol <<firstone>>
* Alcohol <<secondone>>
--
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linking to headings with a unique I'D exported to latex/PDF
2017-02-02 15:30 ` Nicolas Goaziou
2017-02-02 15:43 ` Sharon Kimble
@ 2017-02-02 16:13 ` John Hendy
2017-02-02 19:15 ` Nick Dokos
1 sibling, 1 reply; 7+ messages in thread
From: John Hendy @ 2017-02-02 16:13 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: org-mode-email, Sharon Kimble
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?
John
>> But when exported it does not work.
>
> What doesn't work?
>
> Regards,
>
> --
> Nicolas Goaziou
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linking to headings with a unique I'D exported to latex/PDF
2017-02-02 15:43 ` Sharon Kimble
@ 2017-02-02 16:18 ` John Hendy
0 siblings, 0 replies; 7+ messages in thread
From: John Hendy @ 2017-02-02 16:18 UTC (permalink / raw)
To: Sharon Kimble; +Cc: org-mode-email, Nicolas Goaziou
On Thu, Feb 2, 2017 at 9:43 AM, Sharon Kimble
<boudiccas@skimble.plus.com> wrote:
> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
>> 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:
>>>
>>> But when exported it does not work.
>>
>> What doesn't work?
>
> The example that I've just given with the ID.
Input: a reproducible example is best. With just pasting the id and
what the Alcohol heading says, it still leaves other things open to
chance... best would be a minimal config, minimal .org file contents,
and org version. Just my opinion. Otherwise a lot of emails are traded
just making sure everyone is on the same page. With the things I've
listed people can create an approximately matching setup to just try
it rather than guess at how to recreate what your'e describing.
John
>
> Thanks
> Sharon.
> --
> A taste of linux = http://www.sharons.org.uk
> TGmeds = http://www.tgmeds.org.uk
> Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linking to headings with a unique I'D exported to latex/PDF
2017-02-02 16:13 ` John Hendy
@ 2017-02-02 19:15 ` Nick Dokos
0 siblings, 0 replies; 7+ messages in thread
From: Nick Dokos @ 2017-02-02 19:15 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-02-02 19:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <66200e4145f44a5dbf0625dd8986c1f1@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-02-02 15:58 ` linking to headings with a unique I'D exported to latex/PDF Eric S Fraga
2017-02-02 15:01 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
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).