Reference to this is here.

The easierst is to use CUSTOM_ID as the example below and refer to it with text [[#sec:one][Section 1]] or reference with number only [[#sec:one]].

* Section One
:PROPERTIES:
:CUSTOM_ID: sec:one
:END:

The link with text will be '..refer to it with text Section 1' and the link with number will be '..refer to it with text (1)'.

Reference to table or figure

Use #+NAME: to reference an element within the buffer. Name should be put in the line before the element it refers to.

#+NAME: tbl_target
| a |  item|
|---+------|
| 1 | text |

Then refer to it with See table [[tbl_target]] or [[tbl_target][Name of something]].

Dedicated target

When no description, then this will be linked as number and text link when description is added.

1. Item one
2. <<target>>Item two

Here we refer to item [[target]] or [[target][My target]]

The last sentence will appear as 'Here we refer to item 2 or My target' when exported.

Use org-mode function org-store-link. Doom key uses SPC-m-n in normal mode or M-SPC-m-n in insert mode. Then insert the link with org-insert-link key C-c C-l or doom key SPC-m-l-l in normal mode or prefix M in insert mode.

comments powered by Disqus