From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ox-html] Why are dedicated targets automatically renamed? Date: Tue, 02 Feb 2016 17:38:12 +0100 Message-ID: <87si1bjcej.fsf@nicolasgoaziou.fr> 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]:59294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQdw9-0000Ui-Ia for emacs-orgmode@gnu.org; Tue, 02 Feb 2016 11:36:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQdw5-0002BL-0m for emacs-orgmode@gnu.org; Tue, 02 Feb 2016 11:36:17 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:45880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQdw4-0002Ad-R0 for emacs-orgmode@gnu.org; Tue, 02 Feb 2016 11:36:12 -0500 In-Reply-To: (=?utf-8?Q?=22S=C3=A9bastien?= Brisard"'s message of "Mon, 1 Feb 2016 20:59: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: > 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 anyway? If you do, you're on your own. We cannot ensure this will always work. > 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. You could insert your own targets with #+HTML or @@html:...@@ directives, e.g., #+HTML: Text Another option is to implement `org-latex-prefer-user-labels' for HTML back-end, if you want to. Regards, --=20 Nicolas Goaziou