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: Wed, 3 Feb 2016 08:27:17 +0100 Message-ID: References: <87h9ht1kob.fsf@nicolasgoaziou.fr> <87si1bjcej.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]:54580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQrqY-0006Pu-FK for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 02:27:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQrqU-0005IC-Dy for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 02:27:26 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:33996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQrqU-0005Gb-6y for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 02:27:22 -0500 Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) (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 44DE75647D6 for ; Wed, 3 Feb 2016 08:27:18 +0100 (CET) Received: by mail-ob0-f178.google.com with SMTP id xk3so18146056obc.2 for ; Tue, 02 Feb 2016 23:27:18 -0800 (PST) In-Reply-To: <87si1bjcej.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 again, > > > 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. > Fair enough. I did not realize that, I will no longer this feature, then. > > > 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 > I'd rather use a "pure org" option. My solution is as follows. Replace all description list items, like - <> [[http://www.ing.unitn.it/~bigoni/paper/eigenvalues.pdf][Bigoni and Zaccaria (1994)]] :: D. Bigoni and D. Zaccaria, /On the eigenvalues of the acoustic tensor in elastoplasticity/, European Journal of Mechanics - A/Solids 13(5):621-638, 1994 With headings * [[http://www.ing.unitn.it/~bigoni/paper/eigenvalues.pdf][Bigoni and Zaccaria (1994)]] :PROPERTIES: :CUSTOM_ID: BIGO1994 :HTML_CONTAINER_CLASS: sb-bib :END: The trick being to use HTML_CONTAINER_CLASS to tune the appearance of these headings from the CSS file. Although a bit more verbose, this solution exports links correctly. > > Another option is to implement `org-latex-prefer-user-labels' for HTML > back-end, if you want to. > ... Which is way beyond my elisp capabilities!!! Anyway, thanks for this very helpful answer. Orgmode is great! Best regards, S=C3=A9bastien