emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-mode-publish: link to dedicated target accross files
@ 2013-12-29 16:20 Sébastien Brisard
  2013-12-29 18:53 ` Nicolas Goaziou
  0 siblings, 1 reply; 12+ messages in thread
From: Sébastien Brisard @ 2013-12-29 16:20 UTC (permalink / raw)
  To: emacs-orgmode

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

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)

[-- Attachment #2: Type: text/html, Size: 4077 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-01-03 13:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-29 16:20 Org-mode-publish: link to dedicated target accross files Sébastien Brisard
2013-12-29 18:53 ` Nicolas Goaziou
2013-12-29 19:17   ` Sébastien Brisard
2013-12-30  9:43     ` Nicolas Goaziou
2013-12-30 17:00       ` Sébastien Brisard
2013-12-30 17:16         ` Sébastien Brisard
2013-12-30 19:46           ` Nicolas Goaziou
2013-12-30 20:28             ` Sébastien Brisard
2013-12-30 22:05               ` Nicolas Goaziou
2013-12-31 17:44                 ` Sébastien Brisard
2014-01-01 18:13                   ` Nicolas Goaziou
2014-01-03 13:51                     ` Sébastien Brisard

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