emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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-03  9:21 ` SOLVED - Re: linking to headings with a unique ID " Sharon Kimble
  0 siblings, 2 replies; 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 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:13   ` John Hendy
  2017-02-03  9:21 ` SOLVED - Re: linking to headings with a unique ID " Sharon Kimble
  1 sibling, 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
  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

* SOLVED - Re: linking to headings with a unique ID exported to latex/PDF
  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-03  9:21 ` Sharon Kimble
  1 sibling, 0 replies; 7+ messages in thread
From: Sharon Kimble @ 2017-02-03  9:21 UTC (permalink / raw)
  To: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]

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.
>
> So, how can I link to specific headings, preferably with a unique ID
> please?

Nothing that I tried worked, yes, I was using 'org-id', but it was still
failing, so I set about building a MWE.

And then I found the problem - the latex package called 'titlesec' when
used with org-mode to latex is incompatible with org-mode and stops
org-id from working. Comment it out and org-id works perfectly again.
What 'titlesec' does is compress the space around each header, so its a
latex problem not an org-mode problem, so I shall look for a latex
solution to compressing the header spaces.

Thanks for all the suggestions and ideas to solve the problem.

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

end of thread, other threads:[~2017-02-03  9:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2017-02-03  9:21 ` SOLVED - Re: linking to headings with a unique ID " Sharon Kimble

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).