From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: named anchors in HTML export Date: Sat, 19 Aug 2017 10:50:09 +0200 Message-ID: <877ey0lz5q.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dizSR-0004zs-VF for emacs-orgmode@gnu.org; Sat, 19 Aug 2017 04:50:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dizSN-0006OT-Tw for emacs-orgmode@gnu.org; Sat, 19 Aug 2017 04:50:15 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:40437) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dizSN-0006NY-Ja for emacs-orgmode@gnu.org; Sat, 19 Aug 2017 04:50:11 -0400 In-Reply-To: (Adam Spiers's message of "Fri, 18 Aug 2017 22:43:08 +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" To: Adam Spiers Cc: org-mode mailing list Hello, Adam Spiers writes: > I was also expecting to be able to use #+NAME: foo in front of a > headline You cannot use a NAME keyword to a headline (or an inlinetask). CUSTOM_ID is morally equivalent, though. > or even other elements like paragraphs, but this doesn't > work. Is this a bug, or am I misreading the manual? Currently, "ox-html" doesn't create an anchor for named paragraphs, unless the paragraph consists of an image only. However, you can put targets anywhere in a paragraph using <> syntax. > Is there any way of creating an anchor for an arbitrary element, > short of some ugly "+HTML" hack? Note that internal references are... internal. You can use them across documents only when using Org publishing mechanism. IOW, <> doesn't create anchor, but something like . Regards, -- Nicolas Goaziou