From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: Custom entry IDs in HTML export Date: Fri, 27 Mar 2009 13:47:34 +0100 Message-ID: <87myb7w2s9.fsf@CPU107.opentrends.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnBTP-00072m-3A for emacs-orgmode@gnu.org; Fri, 27 Mar 2009 08:47:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnBTJ-00071v-P1 for emacs-orgmode@gnu.org; Fri, 27 Mar 2009 08:47:46 -0400 Received: from [199.232.76.173] (port=35295 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnBTJ-00071s-Ma for emacs-orgmode@gnu.org; Fri, 27 Mar 2009 08:47:41 -0400 Received: from mail-fx0-f166.google.com ([209.85.220.166]:60371) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LnBTJ-00029p-AK for emacs-orgmode@gnu.org; Fri, 27 Mar 2009 08:47:41 -0400 Received: by fxm10 with SMTP id 10so977293fxm.42 for ; Fri, 27 Mar 2009 05:47:39 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode mailing list Hi, this may have been reported before; however I didn't find it in the FAQ. I would like to choose which ID each heading will have when they are expo= rted to HTML. For instance, I want the table of contents to link to the anc= hor #tutorials instead of #sec-1.4.1. In this way, external links won't dep= end on the section ordering. It is also more expressive semantically. At the moment the best I know of is: ** TODO heading #<> This is exported as: :

1.1 TODO heading <= /h3> But I want: :

1.1 TODO heading

Since entries can already have IDs (I mean the property "ID", obtained by= C-c l for instance), this could now be easier to implement.=20 As an extreme solution: If org-mode used exactly that ID to link to the e= ntry, I wouldn't mind changing the entry ID overall in my files so that the= y have meaningful names instead of random data. Maybe I wouldn't even mind = having an HTML ID called b9c1a93e-2af4-4a41-bfe3-8d2bd62c0614=E2=80=A6 (if = it starts with a letter, it's still a valid ID). In case it's too complex to do this in org, do you know of some script to= replace the IDs after export? Thanks, Daniel