我正在组织模式下工作,并尝试生成一个链接,以按其编号而不是其标题引用某节。

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

* Section Two
#+label: sec:two

I can reference Section One with  [[#sec:one]] and [[#sec:one][Section One]],
but I can't get the actual section number (1) to resolve.


我想看看

As you can see in Section 1


通过写类似

As you can see in Section [[sec:one]],


有任何想法吗?

最佳答案

我为此使用专用目标:

* Section One
  <<sec:one>>

* Section Two
  <<sec: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.


这按预期工作;请参见the orgmode documentation on internal links以供参考。

关于emacs - 如何在组织模式导出中按编号引用部分?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16346622/

10-13 09:21