From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Org-mode-publish: link to dedicated target accross files Date: Sun, 29 Dec 2013 19:53:23 +0100 Message-ID: <87ppofqyjg.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxLU4-0003WI-Va for emacs-orgmode@gnu.org; Sun, 29 Dec 2013 13:53:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxLU0-0001NQ-VV for emacs-orgmode@gnu.org; Sun, 29 Dec 2013 13:53:08 -0500 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:55061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxLU0-0001NE-Np for emacs-orgmode@gnu.org; Sun, 29 Dec 2013 13:53:04 -0500 Received: by mail-wg0-f45.google.com with SMTP id y10so9414983wgg.0 for ; Sun, 29 Dec 2013 10:53:03 -0800 (PST) In-Reply-To: (=?utf-8?Q?=22S=C3=A9bastien?= Brisard"'s message of "Sun, 29 Dec 2013 17:20:00 +0100") 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: =?utf-8?Q?S=C3=A9bastien?= Brisard Cc: emacs-orgmode@gnu.org Hello, S=C3=A9bastien Brisard 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 > > <> 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 > > >
>

file1

>

> Target 1 >

> >

> Go to target #1 >

> >

> Go to target #2 >

>
>
> ... >
> > The second link should read (I believe) > > Go to target #2 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][...]]=20 Regards, --=20 Nicolas Goaziou