emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Org-mode-publish: link to dedicated target accross files


From: Sébastien Brisard
Subject: Re: [O] Org-mode-publish: link to dedicated target accross files
Date: Sun, 29 Dec 2013 20:17:44 +0100

Hi,
that's what I feared... I know it works with the CUSTOM_ID property. Unfortunately, I'd like to link to an item in a list.
Is there a (possibly dirty) work around?

Best regards,
Sébastien


2013/12/29 Nicolas Goaziou <address@hidden>
Hello,

Sébastien Brisard <address@hidden> writes:

> I'm facing a problem with links accross multiple org files, when I publish
> to HTML. Here is a minimal working example. file1.org looks like
>
> <<target1>> Target 1
>
> [[target1][Go to target #1]]
>
> [[file:./file2.org::target2][Go to target #2]]
>
> while file2.org looks like
>
> <<target2>> Target 2
>
> In emacs, when I click on the second link, it opens file2.org all right.
> However, when I export to html, here is what file1.html looks like
>
> <body>
>   <div id="content">
>     <h1 class="title">file1</h1>
>     <p>
>       <a id="target1" name="target1"></a> Target 1
>     </p>
>
>     <p>
>       <a href="" to target #1</a>
>     </p>
>
>     <p>
>       <a href="" to target #2</a>
>     </p>
>   </div>
>   <div id="postamble" class="status">
>     ...
>   </div></body>
>
> The second link should read (I believe)
>
> <a href="" to target #2</a>

There's no support for exporting links to targets across files. You can
only target a headline, through its custom-id, e.g.,

  [[file:./file2.org::#custom-id][...]]

or through its title

  [[file:/file2.org::*Headline title][...]]


Regards,

--
Nicolas Goaziou


reply via email to

[Prev in Thread] Current Thread [Next in Thread]