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-- 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 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-- 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: Mon, 30 Dec 2013 10:43:40 +0100 Message-ID: <87lhz2r7w3.fsf@gmail.com> References: <87ppofqyjg.fsf@gmail.com> 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]:44502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxZNl-000174-47 for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 04:43:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxZNf-0002ru-EI for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 04:43:33 -0500 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:43807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxZNf-0002rp-7D for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 04:43:27 -0500 Received: by mail-wi0-f182.google.com with SMTP id en1so11397668wid.15 for ; Mon, 30 Dec 2013 01:43:26 -0800 (PST) In-Reply-To: (=?utf-8?Q?=22S=C3=A9bastien?= Brisard"'s message of "Sun, 29 Dec 2013 20:17:44 +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: > 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? You may use a custom-id syntax pointing to your target: [[file:./file2.org::#item-target][...]] Though, you will not get item number if you do not provide a description. Regards, --=20 Nicolas Goaziou 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: Mon, 30 Dec 2013 18:00:20 +0100 Message-ID: References: <87ppofqyjg.fsf@gmail.com> <87lhz2r7w3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1133bfaa03986304eec361e6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxgCc-0002yY-Mk for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 12:00:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxgCW-0003xQ-IP for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 12:00:30 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:38065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxgCW-0003wF-8M for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 12:00:24 -0500 Received: from mail-qc0-f179.google.com (mail-qc0-f179.google.com [209.85.216.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 5C80F140912FF for ; Mon, 30 Dec 2013 18:00:21 +0100 (CET) Received: by mail-qc0-f179.google.com with SMTP id i8so10926742qcq.38 for ; Mon, 30 Dec 2013 09:00:20 -0800 (PST) In-Reply-To: <87lhz2r7w3.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 --001a1133bfaa03986304eec361e6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, thanks for your answer. This indeed works. Is was sure I had already tested this solution, with no success... Thanks a lot!!! S=E9bastien 2013/12/30 Nicolas Goaziou > Hello, > > S=E9bastien Brisard writes: > > > 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? > > You may use a custom-id syntax pointing to your target: > > [[file:./file2.org::#item-target][...]] > > Though, you will not get item number if you do not provide > a description. > > > Regards, > > -- > Nicolas Goaziou > --001a1133bfaa03986304eec361e6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
thanks for your answer. This indeed= works. Is was sure I had already tested this solution, with no success... = Thanks a lot!!!

S=E9bastien


2013/12/30 Nicolas Goaziou <n.goaziou@gma= il.com>
Hello,

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

> that's what I feared... I know it works wi= th the CUSTOM_ID property.
> Unfortunately, I'd like to link to an item in a list.
> Is there a (possibly dirty) work around?

You may use a custom-id syntax pointing to your target:

=A0 [[file:./file2.org::#item-target][...]]

Though, you will not get item number if you do not provide
a description.


Regards,

--
Nicolas Goaziou

--001a1133bfaa03986304eec361e6-- 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: Mon, 30 Dec 2013 18:16:05 +0100 Message-ID: References: <87ppofqyjg.fsf@gmail.com> <87lhz2r7w3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc8aa4579aa804eec39936 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxgRr-0002Cw-9C for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 12:16:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxgRl-0000O0-9k for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 12:16:15 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:40402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxgRk-0000Nq-LW for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 12:16:09 -0500 Received: from mail-qc0-f174.google.com (mail-qc0-f174.google.com [209.85.216.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 658D5140912F8 for ; Mon, 30 Dec 2013 18:16:06 +0100 (CET) Received: by mail-qc0-f174.google.com with SMTP id n7so11201140qcx.33 for ; Mon, 30 Dec 2013 09:16:05 -0800 (PST) In-Reply-To: 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 --047d7bdc8aa4579aa804eec39936 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Correction: CUSTOM_ID does not seem to work with description lists (it seems it only works with headings, *, **, ***, ...). S=E9bastien 2013/12/30 S=E9bastien Brisard > Hi, > thanks for your answer. This indeed works. Is was sure I had already > tested this solution, with no success... Thanks a lot!!! > > S=E9bastien > > > 2013/12/30 Nicolas Goaziou > >> Hello, >> >> S=E9bastien Brisard writes: >> >> > 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? >> >> You may use a custom-id syntax pointing to your target: >> >> [[file:./file2.org::#item-target][...]] >> >> Though, you will not get item number if you do not provide >> a description. >> >> >> Regards, >> >> -- >> Nicolas Goaziou >> > > --047d7bdc8aa4579aa804eec39936 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Correction: CUSTOM_ID does not seem to work with desc= ription lists (it seems it only works with headings, *, **, ***, ...).
<= /div>S=E9bastien


2013/12/30 S=E9bastien Brisard <sebastien.brisard@m4x.org><= /span>
Hi,
thanks for= your answer. This indeed works. Is was sure I had already tested this solu= tion, with no success... Thanks a lot!!!

S=E9bastien
=


2013/12/30 Nicolas Goaziou <n.goaziou@gma= il.com>
Hello,

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

> 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?

You may use a custom-id syntax pointing to your target:

=A0 [[file:./file2.org::#item-target][...]]

Though, you will not get item number if you do not provide
a description.


Regards,

--
Nicolas Goaziou


--047d7bdc8aa4579aa804eec39936-- 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: Mon, 30 Dec 2013 20:46:11 +0100 Message-ID: <87ob3ydsvw.fsf@gmail.com> References: <87ppofqyjg.fsf@gmail.com> <87lhz2r7w3.fsf@gmail.com> 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]:32818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vximk-0001Zy-FO for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 14:46:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vxime-0000FC-Tc for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 14:45:58 -0500 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:43214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vxime-0000F7-Mj for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 14:45:52 -0500 Received: by mail-wg0-f45.google.com with SMTP id y10so10501752wgg.12 for ; Mon, 30 Dec 2013 11:45:50 -0800 (PST) In-Reply-To: (=?utf-8?Q?=22S=C3=A9bastien?= Brisard"'s message of "Mon, 30 Dec 2013 18:16:05 +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: > Correction: CUSTOM_ID does not seem to work with description lists (it > seems it only works with headings, *, **, ***, ...). It would be useful to know what you wrote in your Org file, what the output is, and what you expected. Regards, --=20 Nicolas Goaziou 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: Mon, 30 Dec 2013 21:28:18 +0100 Message-ID: References: <87ppofqyjg.fsf@gmail.com> <87lhz2r7w3.fsf@gmail.com> <87ob3ydsvw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0158cb54c2144d04eec64862 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxjRq-0002S6-C9 for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 15:28:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxjRl-0003XM-Or for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 15:28:26 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:59622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxjRl-0003XF-Eb for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 15:28:21 -0500 Received: from mail-qa0-f49.google.com (mail-qa0-f49.google.com [209.85.216.49]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 8C27A140912F7 for ; Mon, 30 Dec 2013 21:28:19 +0100 (CET) Received: by mail-qa0-f49.google.com with SMTP id ii20so10970777qab.8 for ; Mon, 30 Dec 2013 12:28:18 -0800 (PST) In-Reply-To: <87ob3ydsvw.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 --089e0158cb54c2144d04eec64862 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello, yes, that might help. Org-file =3Dreferences.org=3D is a list of bibliograp= hic references. Each entry is actually an item in a description list, like so #+BEGIN_SRC - <> [[http://dx.doi.org/10.1016/0022-5096(62)90004-2][Hashinand Shtrikman (1962)]] :: Z. Hashin and S. Shtrikman, /On some variational principles in anisotropic and nonhomogeneous elasticity/, Journal of the Mechanics and Physics of Solids 10(4):335-342, 1962 #+END_SRC Then, in other org files, I'd like to refer to one of the items in the list. For example, I would like to write something like Using the energy principle of Hashin and Shtrikman (1962), an upper bound on the elastic moduli can be derived. Once exported to html, I would like the text 'Hashin [...] (1962)' to be a hyperlink which should point to references.html#HASH1962. Do you need more details? How can I achieve that result? S=E9bastien 2013/12/30 Nicolas Goaziou > Hello, > > S=E9bastien Brisard writes: > > > Correction: CUSTOM_ID does not seem to work with description lists (it > > seems it only works with headings, *, **, ***, ...). > > It would be useful to know what you wrote in your Org file, what the > output is, and what you expected. > > > Regards, > > -- > Nicolas Goaziou > --089e0158cb54c2144d04eec64862 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

yes, that might help. O= rg-file =3Dreferences.org=3D is a lis= t of bibliographic references. Each entry is actually an item in a descript= ion list, like so

#+BEGIN_SRC
=A0 - <<HASH1962>> [[http://dx.doi.org/1= 0.1016/0022-5096(62)90004-2][Hashin and Shtrikman (1962)]] :: Z. Hashin= and S. Shtrikman, /On some variational principles in anisotropic and nonho= mogeneous elasticity/, Journal of the Mechanics and Physics of Solids 10(4)= :335-342, 1962
#+END_SRC

Then, in other org files, I'd like to = refer to one of the items in the list. For example, I would like to write s= omething like

Using the energy principle of Hashin and Sh= trikman (1962), an upper bound on the elastic moduli can be derived.

Once exported to html, I wo= uld like the text 'Hashin [...] (1962)' to be a hyperlink which sho= uld point to references.html#HASH1962.

Do you need more details? How can I ac= hieve that result?

S=E9bastien
<= /div>

2013/12/30 N= icolas Goaziou <n.goaziou@gmail.com>
Hello,

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

> Correction: CUSTOM_ID does not seem to work wi= th description lists (it
> seems it only works with headings, *, **, ***, ...).

It would be useful to know what you wrote in your Org file, what the<= br> output is, and what you expected.


Regards,

--
Nicolas Goaziou

--089e0158cb54c2144d04eec64862-- 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: Mon, 30 Dec 2013 23:05:22 +0100 Message-ID: <87k3emdmfx.fsf@gmail.com> References: <87ppofqyjg.fsf@gmail.com> <87lhz2r7w3.fsf@gmail.com> <87ob3ydsvw.fsf@gmail.com> 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]:56048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxkxP-0005dk-CL for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 17:05:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxkxK-0004s9-Ui for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 17:05:07 -0500 Received: from mail-we0-x235.google.com ([2a00:1450:400c:c03::235]:45455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxkxK-0004rM-NP for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 17:05:02 -0500 Received: by mail-we0-f181.google.com with SMTP id x55so10649423wes.12 for ; Mon, 30 Dec 2013 14:05:01 -0800 (PST) In-Reply-To: (=?utf-8?Q?=22S=C3=A9bastien?= Brisard"'s message of "Mon, 30 Dec 2013 21:28:18 +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 S=C3=A9bastien Brisard writes: > yes, that might help. Org-file =3Dreferences.org=3D is a list of bibliogr= aphic > references. Each entry is actually an item in a description list, like so > > #+BEGIN_SRC > - <> > [[http://dx.doi.org/10.1016/0022-5096(62)90004-2][Hashinand Shtrikman > (1962)]] :: Z. Hashin and S. Shtrikman, /On some variational > principles in anisotropic and nonhomogeneous elasticity/, Journal of the > Mechanics and Physics of Solids 10(4):335-342, 1962 > #+END_SRC > > Then, in other org files, I'd like to refer to one of the items in the > list. For example, I would like to write something like > > Using the energy principle of Hashin and Shtrikman (1962), an upper bound > on the elastic moduli can be derived. > > Once exported to html, I would like the text 'Hashin [...] (1962)' to be a > hyperlink which should point to references.html#HASH1962. > > Do you need more details? How can I achieve that result? What happens if you write [[file:./references.org::#HASH1962][Hashin and Shtrikman (1962)]] in other Org files? Regards, --=20 Nicolas Goaziou 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: Tue, 31 Dec 2013 18:44:40 +0100 Message-ID: References: <87ppofqyjg.fsf@gmail.com> <87lhz2r7w3.fsf@gmail.com> <87ob3ydsvw.fsf@gmail.com> <87k3emdmfx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc0628693cd004eed81d0d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vy3N4-0006pr-9o for emacs-orgmode@gnu.org; Tue, 31 Dec 2013 12:44:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vy3My-0000iv-Kn for emacs-orgmode@gnu.org; Tue, 31 Dec 2013 12:44:50 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:45587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vy3My-0000ig-B5 for emacs-orgmode@gnu.org; Tue, 31 Dec 2013 12:44:44 -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 A866814091321 for ; Tue, 31 Dec 2013 18:44:41 +0100 (CET) Received: by mail-qc0-f170.google.com with SMTP id x13so12240558qcv.15 for ; Tue, 31 Dec 2013 09:44:40 -0800 (PST) In-Reply-To: <87k3emdmfx.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 --047d7bdc0628693cd004eed81d0d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello, > yes, that might help. Org-file =3Dreferences.org=3D is a list of bibliogr= aphic > > references. Each entry is actually an item in a description list, like = so > > > > #+BEGIN_SRC > > - <> > > [[http://dx.doi.org/10.1016/0022-5096(62)90004-2][Hashinand Shtrikman > > (1962)]] :: Z. Hashin and S. Shtrikman, /On some variational > > principles in anisotropic and nonhomogeneous elasticity/, Journal of th= e > > Mechanics and Physics of Solids 10(4):335-342, 1962 > > #+END_SRC > > > > Then, in other org files, I'd like to refer to one of the items in the > > list. For example, I would like to write something like > > > > Using the energy principle of Hashin and Shtrikman (1962), an upper bou= nd > > on the elastic moduli can be derived. > > > > Once exported to html, I would like the text 'Hashin [...] (1962)' to b= e > a > > hyperlink which should point to references.html#HASH1962. > > > > Do you need more details? How can I achieve that result? > > What happens if you write > > [[file:./references.org::#HASH1962][Hashin and Shtrikman (1962)]] > > in other Org files? > There are two answers 1. in Emacs, clicking on the link opens the file references.org, but I get "No match" in the minibuffer 2. in the exported HTML file, the link is correct (something like ...) 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 (...) What I would like is 2 + 3... S=E9bastien --047d7bdc0628693cd004eed81d0d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,



> yes, that might help. Org-file =3Dreferences.org=3D is a list of bibliographic
> references. Each entry is actually an item in a description list, like= so
>
> #+BEGIN_SRC
> =A0 - <<HASH1962>>
> [[http://dx.doi.org/10.1016/0022-5096(62)90004-2][H= ashinand Shtrikman
> (1962)]] :: Z. Hashin and S. Shtrikman, /On some var= iational
> principles in anisotropic and nonhomogeneous elasticity/, Journal of t= he
> Mechanics and Physics of Solids 10(4):335-342, 1962
> #+END_SRC
>
> Then, in other org files, I'd like to refer to one of the items in= the
> list. For example, I would like to write something like
>
> Using the energy principle of Hashin and Shtrikman (1962), an upper bo= und
> on the elastic moduli can be derived.
>
> Once exported to html, I would like the text 'Hashin [...] (1962)&= #39; to be a
> hyperlink which should point to references.html#HASH1962.
>
> Do you need more details? How can I achieve that result?

What happens if you write

=A0 [[file:./references.org::#HASH1962][Hashin and Shtrikman (1962)]]

in other Org files?

=
There are two answers
1. in Emacs, clicking on the link = opens the file references.org, but I = get "No match" in the minibuffer
2. in the exported HTML file, the link is correct (something lik= e <a href=3D"./references.html#HASH1962">...</a>)
=
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...

S=E9bastien<= br>
--047d7bdc0628693cd004eed81d0d-- 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: Wed, 01 Jan 2014 19:13:20 +0100 Message-ID: <878uuzefjz.fsf@gmail.com> References: <87ppofqyjg.fsf@gmail.com> <87lhz2r7w3.fsf@gmail.com> <87ob3ydsvw.fsf@gmail.com> <87k3emdmfx.fsf@gmail.com> 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]:35797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VyQI2-000775-B0 for emacs-orgmode@gnu.org; Wed, 01 Jan 2014 13:13:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VyQHw-0004nX-OV for emacs-orgmode@gnu.org; Wed, 01 Jan 2014 13:13:10 -0500 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:33054) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VyQHw-0004nQ-Hl for emacs-orgmode@gnu.org; Wed, 01 Jan 2014 13:13:04 -0500 Received: by mail-we0-f169.google.com with SMTP id w61so12017419wes.14 for ; Wed, 01 Jan 2014 10:13:03 -0800 (PST) In-Reply-To: (=?utf-8?Q?=22S=C3=A9bastien?= Brisard"'s message of "Tue, 31 Dec 2013 18:44:40 +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: Rick Frankel , emacs-orgmode@gnu.org Hello, S=C3=A9bastien 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, --=20 Nicolas Goaziou 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--