emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: emacs-orgmode@gnu.org
Subject: Re: Custom <<anchor>> possibility?
Date: Thu, 20 May 2021 21:59:25 +0200	[thread overview]
Message-ID: <87pmxlyy5e.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <YKa3p8fR6s53+A0+@protected.localdomain> (Jean Louis's message of "Thu, 20 May 2021 22:25:27 +0300")

Hello,

Jean Louis <bugs@gnu.support> writes:

> Is it possible to create a custom <<anchor>>:
>
> From: (info "(org) Internal Links")
>
>      1. one item
>      2. <<target>>another item
>      Here we refer to item [[target]].
>
> That is fine, however, in the HTML output the <<target>> will become
> something like: <li><a id="orgc0c2c98"></a>another item</li>
>
> As I am developing finely grained referenced Org outputs I would need
> the id="orgc0c2c98" to be defined how I wish it and not interpolated
> into something random.
>
> Is there a possibility to tell Org, that <<target>> really remains
> "target" as in id="target" instead of a random ID?

See `org-html-prefer-user-labels'.

Regards.

-- 
Nicolas Goaziou


  reply	other threads:[~2021-05-20 20:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-20 19:25 Custom <<anchor>> possibility? Jean Louis
2021-05-20 19:59 ` Nicolas Goaziou [this message]
2021-05-20 20:19   ` Jean Louis
2021-05-20 22:18     ` Samuel Wales
2021-05-20 23:00       ` Jean Louis
2021-05-20 23:50         ` Samuel Wales
2021-05-21 12:51       ` Nicolas Goaziou
2021-05-21 19:28         ` Samuel Wales

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=87pmxlyy5e.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.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).