【问题标题】:In org-mode, how to export internal links?在org-mode下,如何导出内部链接?
【发布时间】:2016-04-28 22:54:55
【问题描述】:

在组织模式下,我有一个包含内部链接的文档,即有这种格式的链接...

For more info, see [[*First%20heading][First heading]]

...指向章节标题的链接:

* First heading

这些链接不会出现在我导出的文件中,无论是 HTML 还是 tex/PDF。是否有控制此的组织模式设置?

【问题讨论】:

  • 为我工作(Org 版本 7.9.3f 和 Emacs 版本 24.3.1)。你能从emacs -q开始重试吗?
  • 当我重新启动没有自定义的 Emacs 时,它默认为 org 6.33,是的,它可以工作。但是,我正在运行 org 8.2.4。

标签: emacs org-mode


【解决方案1】:

虽然导出标题链接会很棒(并且它似乎在 8.0 之前的版本中有效),但作为一种解决方法,您可以按照the manual 的建议执行并使用任一专用目标 ,如

- one item
- <<target>>another item
Here we refer to item [[target]].

CUSTOM_ID-属性,as in

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

* Section Two
You can reference Section One with [[#sec:one]] but NOT
[[#sec:one][Section One]], i.e., the link without description
will get you the actual section number (1).

(来自How can I reference a section by number in org-mode export? 的第二个示例)。

似乎使用* link_name 是一个后备解决方案:

如果以上都没有成功,Org 将搜索与链接文本完全相同但也可能包含 TODO 关键字和标签的标题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多