emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Brisard" <sebastien.brisard@m4x.org>
To: emacs-orgmode@gnu.org
Subject: Org-mode-publish: link to dedicated target accross files
Date: Sun, 29 Dec 2013 17:20:00 +0100	[thread overview]
Message-ID: <CAGRH7HpEvELencEF86MHQtJphRmn_imXNjCt0Uvhe2JyJiaX8Q@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2013-12-29 16:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-29 16:20 Sébastien Brisard [this message]
2013-12-29 18:53 ` Org-mode-publish: link to dedicated target accross files 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGRH7HpEvELencEF86MHQtJphRmn_imXNjCt0Uvhe2JyJiaX8Q@mail.gmail.com \
    --to=sebastien.brisard@m4x.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).