[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Org-mode-publish: link to dedicated target accross files
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Org-mode-publish: link to dedicated target accross files |
Date: |
Sun, 29 Dec 2013 19:53:23 +0100 |
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="#target1">Go to target #1</a>
> </p>
>
> <p>
> <a href="./file2.html">Go to target #2</a>
> </p>
> </div>
> <div id="postamble" class="status">
> ...
> </div></body>
>
> The second link should read (I believe)
>
> <a href="./file2.html#target2">Go 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
- [O] Org-mode-publish: link to dedicated target accross files, Sébastien Brisard, 2013/12/29
- Re: [O] Org-mode-publish: link to dedicated target accross files,
Nicolas Goaziou <=
- Re: [O] Org-mode-publish: link to dedicated target accross files, Sébastien Brisard, 2013/12/29
- Re: [O] Org-mode-publish: link to dedicated target accross files, Nicolas Goaziou, 2013/12/30
- Re: [O] Org-mode-publish: link to dedicated target accross files, Sébastien Brisard, 2013/12/30
- Re: [O] Org-mode-publish: link to dedicated target accross files, Sébastien Brisard, 2013/12/30
- Re: [O] Org-mode-publish: link to dedicated target accross files, Nicolas Goaziou, 2013/12/30
- Re: [O] Org-mode-publish: link to dedicated target accross files, Sébastien Brisard, 2013/12/30
- Re: [O] Org-mode-publish: link to dedicated target accross files, Nicolas Goaziou, 2013/12/30
- Re: [O] Org-mode-publish: link to dedicated target accross files, Sébastien Brisard, 2013/12/31