[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Jorge P . de Morais Neto
Subject: Re: [O] CUSTOM_ID vs ID
Date: Sat, 17 Aug 2019 21:53:01 -0300
User-agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.2.90 (x86_64-pc-linux-gnu)


Em 2019-07-28T10:10:01+0200, Nicolas Goaziou escreveu:

> Custom ID are user-defined, and only meaningful in the scope of the
> document. Also, they may appear as-is when exported, e.g., as an anchor
> in HTML.
> ID are (or should be) generated by Org, and are valid across files,
> which means they need to be absolutely unique.  
>> When would I ever have both an ID and a CUSTOM_ID property for
>> a heading?
> You may want to refer to a heading from anywhere with id:... but need
> a clean anchor in HTML export, for example.

Instead of CUSTOM_ID I prefer to use a dedicated target (between double
angular brackets).  This way the link target is conspicuous, which
reduces the chance of me inadvertently removing or moving that heading
and causing dead links.  One disadvantage is that it generates ugly HTML
anchors.  But why does Org not use the dedicated target text as an

- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free/libre software for Android: https://f-droid.org/
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]