如何在组织模式导出中引用一个数字? [英] How can I reference a section by number in org-mode export?
本文介绍了如何在组织模式导出中引用一个数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
* Section One
:PROPERTIES:
:CUSTOM_ID:sec:one
:END:
*第二部分
#+标签:秒:两个
我可以用[[#sec:one]]和[[#sec:one] [Section One]],
参考Section One,但是我无法得到实际的部分号(1)来解决。
我想看到
正如你可以在第1节中看到的那样
通过编写类似于
正如你可以在[[sec:one]]中看到的,
任何想法?
解决方案
我使用 / em>为此:
* Section One
< sec:one>>
*第二部分
< sec:two>>
我可以用[[sec:one]]和[[sec:one] [Section One]],
参考第一节,但我可以得到实际的段号(1)解决。
这样工作正常;请参阅内部链接上的orgmode文档以供参考。
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:
* 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.
I want to see
As you can see in Section 1
By writing something like
As you can see in Section [[sec:one]],
Any ideas?
解决方案
I use dedicated targets for this:
* 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.
This works as expected; see the orgmode documentation on internal links for reference.
这篇关于如何在组织模式导出中引用一个数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文