How can I reference a section by number in org-mode export?

前端 未结 3 1022
深忆病人
深忆病人 2021-02-07 08:20

I\'m working in org-mode and trying to generate a link to reference a section by its number, not its title.

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


        
3条回答
  •  粉色の甜心
    2021-02-07 08:52

    I use dedicated targets for this:

    * Section One
      <>
    
    * Section Two
      <>
    
    I can reference Section One with  [[sec:one]] and [[sec:one][Section One]],
    but I can get the actual section number (1) to resolve.
    

    This works as expected; see the orgmode documentation on internal links for reference.

提交回复
热议问题