emacs-orgmode
[Top][All Lists]
Advanced

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

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


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

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>

Is there something I'm missing? Thanks for your help!

NOTA: my emacs setup is such that

(setq org-link-search-must-match-exact-headline nil)

reply via email to

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