From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?S=E9bastien_Brisard?= Subject: Re: Org-mode-publish: link to dedicated target accross files Date: Sun, 29 Dec 2013 20:17:44 +0100 Message-ID: References: <87ppofqyjg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134890a9361cc04eeb12e8d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxLs1-0000rW-DP for emacs-orgmode@gnu.org; Sun, 29 Dec 2013 14:17:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxLrw-0007qj-Se for emacs-orgmode@gnu.org; Sun, 29 Dec 2013 14:17:53 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:47361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxLrw-0007pe-IF for emacs-orgmode@gnu.org; Sun, 29 Dec 2013 14:17:48 -0500 Received: from mail-qc0-f170.google.com (mail-qc0-f170.google.com [209.85.216.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id EEA14140912E2 for ; Sun, 29 Dec 2013 20:17:45 +0100 (CET) Received: by mail-qc0-f170.google.com with SMTP id x13so10389639qcv.29 for ; Sun, 29 Dec 2013 11:17:44 -0800 (PST) In-Reply-To: <87ppofqyjg.fsf@gmail.com> 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 --001a1134890a9361cc04eeb12e8d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, that's what I feared... I know it works with the CUSTOM_ID property. Unfortunately, I'd like to link to an item in a list. Is there a (possibly dirty) work around? Best regards, S=E9bastien 2013/12/29 Nicolas Goaziou > Hello, > > S=E9bastien 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][...]] > > > Regards, > > -- > Nicolas Goaziou > --001a1134890a9361cc04eeb12e8d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
that's what I feared... I = know it works with the CUSTOM_ID property. Unfortunately, I'd like to l= ink to an item in a list.
Is there a (possibly dirty) work around?=

Best regards,
S=E9bastien
=

2013/12/29 Nicolas Goaziou <n.goaziou= @gmail.com>
Hello,

S=E9bastien Brisard <sebast= ien.brisard@m4x.org> 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
>
> <<target1>> Target 1
>
> [[target1][Go to target #1]]
>
> [[file:./file2.org::target2][Go to target #2]]
>
> while file2.org loo= ks 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>
> =A0 <div id=3D"content">
> =A0 =A0 <h1 class=3D"title">file1</h1>
> =A0 =A0 <p>
> =A0 =A0 =A0 <a id=3D"target1" name=3D"target1"&= gt;</a> Target 1
> =A0 =A0 </p>
>
> =A0 =A0 <p>
> =A0 =A0 =A0 <a href=3D"#target1">Go to target #1</a= >
> =A0 =A0 </p>
>
> =A0 =A0 <p>
> =A0 =A0 =A0 <a href=3D"./file2.html">Go to target #2&l= t;/a>
> =A0 =A0 </p>
> =A0 </div>
> =A0 <div id=3D"postamble" class=3D"status"><= br> > =A0 =A0 ...
> =A0 </div></body>
>
> The second link should read (I believe)
>
> <a href=3D"./file2.html#target2">Go to target #2</a= >

There's no support for exporting links to targets across fi= les. You can
only target a headline, through its custom-id, e.g.,

=A0 [[file:./file2.org::#custom-id][...]]

or through its title

=A0 [[file:/file2.org::*Headline title][...]]


Regards,

--
Nicolas Goaziou

--001a1134890a9361cc04eeb12e8d--