From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?S=C3=A9bastien_Brisard?= Subject: Re: [ox-html] Why are dedicated targets automatically renamed? Date: Mon, 1 Feb 2016 20:59:05 +0100 Message-ID: References: <87h9ht1kob.fsf@nicolasgoaziou.fr> 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]:34545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQKd2-0003Wf-5A for emacs-orgmode@gnu.org; Mon, 01 Feb 2016 14:59:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQKcx-0002mk-IA for emacs-orgmode@gnu.org; Mon, 01 Feb 2016 14:59:16 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:51739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQKcx-0002mR-8B for emacs-orgmode@gnu.org; Mon, 01 Feb 2016 14:59:11 -0500 Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 7320E565532 for ; Mon, 1 Feb 2016 20:59:06 +0100 (CET) Received: by mail-oi0-f45.google.com with SMTP id r14so97139522oie.0 for ; Mon, 01 Feb 2016 11:59:06 -0800 (PST) In-Reply-To: <87h9ht1kob.fsf@nicolasgoaziou.fr> 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 Hello, thanks for your answer! > >> I have noticed that org-mode now renames dedicated targets. More >> precisely, the following org file >> >> =3D=3D=3D=3D=3D beginning of a.org =3D=3D=3D=3D=3D >> - <>Item 1 >> - <>Item 2 >> =3D=3D=3D=3D=3D end of a.org =3D=3D=3D=3D=3D >> >> gets exported to html as >> >> =3D=3D=3D=3D=3D beginning of a.html (extract) =3D=3D=3D=3D=3D >> >>
>>
    >>
  • Item 1
  • >>
  • Item 2
  • >>
>>
>>
>>

Author: S=C3=A9bastien Brisard

>>

Created: 2016-01-21 Thu 07:38

>>

> href=3D"http://www.gnu.org/software/emacs/">Emacs 24.5.1 (> href=3D"http://orgmode.org">Org mode 8.3.3)

>>

> href=3D"http://validator.w3.org/check?uri=3Dreferer">Validate

>>
>> >> =3D=3D=3D=3D=3D end of a.html =3D=3D=3D=3D=3D >> >> Notice that the targets were renamed item1 -> orgtarget1 and item2 -> >> orgtarget2. Why is that? > > It allows using any kind of character for a target without knowing > HTML's forbidden ones. > Yes, that's what I found on this ML, but I am not sure I follow the logics. >> With org-publish, it messes up links across files. > > What do you mean? <<...>> are internal targets, and by no mean meant to > link across documents. > Oh really? It does work, though. I use this feature on my blog to link to bibrefs that are in another page. Links like [[file:../pages/references.org::#TARI2008][Tariel et al., 2008]] get exported correctly. Only, the HTML target name is orgtargetXX. Which means that if I add a new bibliographic reference in the references.org file, I need to reexport the whole website, rather than the pages that have changed. But, if I understand correctly, I should not be using this kind of links an= yway? >> Is there an option that allows to preserve the user's target name on >> export? > > No, there isn't. "ox-latex" provides one, but not "ox-html". Note that > custom ID are always preserved, tho. > Yeah, I have explored a solution using custom IDs. They don't work with lists, though (I use description lists for my references). Then I need to define every new bib entry as a header. It's doable, and if you confirm that what I do at the moment should not be working at all, then I will switch to this option. Best, S=C3=A9bastien