emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Disambiguate internal links?


From: Diego Zamboni
Subject: Re: Disambiguate internal links?
Date: Wed, 3 Jun 2020 16:20:54 +0200

I almost always use a CUSTOM_ID property for this, e.g.

* topic1
See topic [[#topic2][topic2]].
See glossary [[#glossary_topic2][topic2]].

* topic2
:PROPERTIES:
:CUSTOM_ID: topic2
:END:

* glossary
** topic1
:PROPERTIES:
:CUSTOM_ID: glossary_topic2
:END:
** topic2
:PROPERTIES:
:CUSTOM_ID: glossary_topic2
:END:

On Wed, Jun 3, 2020 at 4:06 PM Budiman Snowman <budimansnowman@gmail.com> wrote:
>
> I have this document:
>
> * topic1
> See topic [[topic2]].
> See glossary [[topic2]].
>
> * topic2
> * glossary
> ** topic1
> ** topic2
>
> What are ways to disambiguate the internal links? The first link should link 
> to the topic2 first-level entry, while the second link should go to the 
> topic2 entry under glossary. They both have the same title. One way I know is 
> using a unique dedicated target, e.g.:
>
> * topic1
> See topic [[topic2]].
> See glossary [[glossary topic2][topic2]].
>
> * topic2
> * glossary
> ** <<glossary topic1>> topic1
> ** <<glossary topic2>> topic2
>
> What are other ways available?
>
> Regards,
> BS



reply via email to

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