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: Fri, 3 Jan 2014 14:51:55 +0100 Message-ID: References: <87ppofqyjg.fsf@gmail.com> <87lhz2r7w3.fsf@gmail.com> <87ob3ydsvw.fsf@gmail.com> <87k3emdmfx.fsf@gmail.com> <878uuzefjz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2c59e85e48804ef11360f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz5AT-0008CV-6k for emacs-orgmode@gnu.org; Fri, 03 Jan 2014 08:52:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vz5AN-00008l-77 for emacs-orgmode@gnu.org; Fri, 03 Jan 2014 08:52:05 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:53965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz5AM-00008L-SS for emacs-orgmode@gnu.org; Fri, 03 Jan 2014 08:51:59 -0500 Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com [209.85.216.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 183F1140C7B42 for ; Fri, 3 Jan 2014 14:51:55 +0100 (CET) Received: by mail-qc0-f181.google.com with SMTP id e9so14479817qcy.40 for ; Fri, 03 Jan 2014 05:51:55 -0800 (PST) In-Reply-To: <878uuzefjz.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 --001a11c2c59e85e48804ef11360f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for this quick answer. I have never built Org-mode myself (always relied on ELPA), but will give it a go and will report. Anyway, thank you for your dedication. Org is really a great tool ! S=E9bastien 2014/1/1 Nicolas Goaziou > Hello, > > S=E9bastien Brisard writes: > > > If I instead write > > > > [[file:./references.org::HASH1962][Hashin and Shtrikman (1962)]] > > > > (without the #), then the behaviour is the exact opposite > > 3. in Emacs, the link (including the dedicated target) is found > > 4. in the exported HTML file, the link is incomplete ( > href=3D"./references.html">...) > > > > What I would like is 2 + 3... > > I have pushed a change to html back-end (in master branch) so that an > unresolved option should still appear in the exported link. IOW, > > [[file:./file.org::target][...]] > > will become > > ... > > This is slightly different from link resolution in a single buffer, > because, in the case above, a headline named "* target" will have > priority over a "<>". > > > Regards, > > -- > Nicolas Goaziou > --001a11c2c59e85e48804ef11360f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks for this quick answer. I have never built= Org-mode myself (always relied on ELPA), but will give it a go and will re= port.

Anyway, thank you for your dedication. Org is really a g= reat tool !

S=E9bastien


2014/1/1 Nicolas Goaziou <n.goaziou@gmail.com><= /span>
Hello,

S=E9bastien Brisard <sebast= ien.brisard@m4x.org> writes:

> If I instead write
>
> =A0[[file:./references.org::HASH1962][Hashin and Shtrikman (1962)]] >
> (without the #), then the behaviour is the exact opposite
> 3. in Emacs, the link (including the dedicated target) is found
> 4. in the exported HTML file, the link is incomplete (<a
> href=3D"./references.html">...</a>)
>
> What I would like is 2 + 3...

I have pushed a change to html back-end (in master branch) so that an=
unresolved option should still appear in the exported link. IOW,

=A0 [[file:./file.org::target][...]]

will become

=A0 <a href=3D"./file.html#target">...</a>

This is slightly different from link resolution in a single buffer,
because, in the case above, a headline named "* target" will have=
priority over a "<<target>>".


Regards,

--
Nicolas Goaziou

--001a11c2c59e85e48804ef11360f--