【发布时间】:2012-04-29 15:28:52
【问题描述】:
我正在使用 Emacs 23 和 Org 7.8.04。我的代码结构如下:
#+TITLE: hello, world!
#+BEGIN_SRC python :tangle yes :noweb yes
<<go_function>>
if __name__ == "__main__":
go()
#+END_SRC
Define =go_function= as follows.
#+name:go_function
#+BEGIN_SRC python
def go:
print "hello, world!"
#+END_SRC
当我尝试编织文档时,第一个代码块中的<<go_function>> 也被导出为 html,因此我有两个<<go_function>> 的 html 导出。我想将<<go_function>> 导出为指向文档末尾实际定义的链接。我该怎么做?
【问题讨论】:
标签: emacs org-mode literate-programming org-babel