【问题标题】:Is there a way to add a list of references/literature to ASCII-DOC (or Markdown)?有没有办法将参考文献/文献列表添加到 ASCIIDOC(与 Markdown 相比)?
【发布时间】:2015-10-09 03:11:49
【问题描述】:
我很难跟踪所有不同的降价口味。所以我决定改用 Ascii-doc,因为它提供了比 base-markdown 更多有用的功能(参见:http://powerman.name/doc/asciidoc)。
我真正缺少的一个功能是参考文献/文献列表的定义。有没有办法使用例如bibTex 文件并包含对您的文本的引用?
是否有一些用于 ascii-doc 的插件?
或者可能pandoc帮忙?
【问题讨论】:
标签:
reference
markdown
pandoc
asciidoc
【解决方案1】:
您是否在 asciidoctor 中寻找类似 @987654321@ 的东西?
_The Pragmatic Programmer_ <<prag>> should be required reading for
all developers.
[bibliography]
- [[[prag]]] Andy Hunt & Dave Thomas. The Pragmatic Programmer:
From Journeyman to Master. Addison-Wesley. 1999.
- [[[seam]]] Dan Allen. Seam in Action. Manning Publications.
2008.
【解决方案2】:
是的,Pandoc supports citations,即使来自外部 BibTex 文件。您将需要使用 YAML 元数据部分中的参考书目元数据字段或 --bibliography 命令行参数来指定参考书目文件。 pandoc markdown 语法基本上是:
my text [see @smith04]
or @smith04 says blah.