From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Adam Spiers <orgmode@adamspiers.org>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: named anchors in HTML export
Date: Sat, 19 Aug 2017 10:50:09 +0200 [thread overview]
Message-ID: <877ey0lz5q.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAOkDyE9y6cpq04f3rWO_3joEtp9A68-y+B=_tVNi-r02uBpE=g@mail.gmail.com> (Adam Spiers's message of "Fri, 18 Aug 2017 22:43:08 +0100")
Hello,
Adam Spiers <orgmode@adamspiers.org> 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 <<target>>
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, <<target>>
doesn't create <a id="target"></a> anchor, but something like <a
id="org1234567"></a>.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2017-08-19 8:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-18 21:43 named anchors in HTML export Adam Spiers
2017-08-19 8:50 ` Nicolas Goaziou [this message]
2017-08-19 22:43 ` Adam Spiers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877ey0lz5q.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=orgmode@adamspiers.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).