From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?S=E9bastien_Brisard?= Subject: Org-mode-publish: link to dedicated target accross files Date: Sun, 29 Dec 2013 17:20:00 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0149cf80ef31c704eeaeb298 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxJ60-00073x-KA for emacs-orgmode@gnu.org; Sun, 29 Dec 2013 11:20:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxJ5v-0005CR-TO for emacs-orgmode@gnu.org; Sun, 29 Dec 2013 11:20:08 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:35961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxJ5v-0005AI-J5 for emacs-orgmode@gnu.org; Sun, 29 Dec 2013 11:20:03 -0500 Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 6CBDD140912E0 for ; Sun, 29 Dec 2013 17:20:01 +0100 (CET) Received: by mail-qa0-f54.google.com with SMTP id f11so10030452qae.6 for ; Sun, 29 Dec 2013 08:20:00 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --089e0149cf80ef31c704eeaeb298 Content-Type: text/plain; charset=ISO-8859-1 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 <> Target 1 [[target1][Go to target #1]] [[file:./file2.org::target2][Go to target #2]] while file2.org looks like <> 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
...
The second link should read (I believe) Go to target #2 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) --089e0149cf80ef31c704eeaeb298 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

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

<&l=
t;target1>> Target 1

[[target1][Go to target #1]]

[[file:./file2.org::target2][Go to target #2]]

while file2.org looks like=

<&l=
t;target2>> Target 2

In emacs, when I click on the second link, it opens file2.org all right. However, when I export to ht= ml, here is what file1.html looks like

<body>
  <div id=3D"content&q=
uot;>
    <h1 class=3D"title=
">file1</h1>
    <p>
      <a id=3D"target1=
" name=3D"target1"></a> Target 1
    </p>

    <p>
      <a href=3D"#targ=
et1">Go to target #=
1</a>
    </p>

    <p>
      <a href=3D"./fil=
e2.html">Go to targ=
et #2</a>
    </p>
  </div>
  <div id=3D"postamble=
" class=3D"status">
    ...
  </div>
</body>

The second link should read (I believe)

<a =
href=3D"./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)
--089e0149cf80ef31c704eeaeb298--