From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ox-html] Why are dedicated targets automatically renamed? Date: Thu, 20 Oct 2016 18:51:32 +0200 Message-ID: <874m47yne3.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxGZ4-0002ub-Oq for emacs-orgmode@gnu.org; Thu, 20 Oct 2016 12:51:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxGZ3-0004nY-Tp for emacs-orgmode@gnu.org; Thu, 20 Oct 2016 12:51:34 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:40024) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bxGZ3-0004m2-O6 for emacs-orgmode@gnu.org; Thu, 20 Oct 2016 12:51:33 -0400 In-Reply-To: (D. C. Toedt's message of "Tue, 18 Oct 2016 10:46:40 -0500") 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" To: "D. C. Toedt" Cc: emacs-orgmode@gnu.org Hello, "D. C. Toedt" writes: > I'm late to this thread but found it in researching a similar problem. I > use designated targets to create a permanently-named internal HTML anchor > that I can use in providing a precisely-targeted complete URL that points > to a specific paragraph (as opposed to a section). Example: In the file > index.org, the org-mode dedicated target <> should export to > HTML as: http://www.example.com/index.html#ThisTarget. The name #ThisTarget > needs to be permanent because the document in question is a work in > progress. > > Based on Nicolas's suggestion (downthread) about using #+HTML: or @@html: , > I did a couple of quickie macros to create anchors and links, but > that's a pain and clutters up the on-screen display in org-mode. For the record, any implementation of `org-html-prefer-user-labels', similar to `org-latex-prefer-user-labels' is welcome, as long it is isn't active by default. Regards, -- Nicolas Goaziou