【发布时间】:2019-01-11 17:21:50
【问题描述】:
我假设在 YAML 元数据中插入对 BibTex 书目的引用足以生成引用。这就像pandoc does not print references when .bib file is in YAML,可能被误解了,还没有被接受的答案。
我有示例输入文件:
---
title: Ontologies of what?
author: auf
date: 2010-07-29
keywords: homepage
abstract: |
What are the objects ontologists talk about.
Inconsistencies become visible if one models real objects (cats) and children playthings.
bibliography: "BibTexExample.bib"
---
An example post. With a reference to [@Frank2010a] and more.
## References
我调用转换为乳胶:
pandoc -f markdown -t pdf postWithReference.markdown -s --verbose -o postWR.pdf -w latex
生成了 pdf,但它不包含引用,并且文本呈现为 With a reference to [@Frank2010a] and more.,表明未使用引用文件。标题和作者被插入到 pdf 中,因此 YAML 元数据被读取。如果我在命令行上添加参考文件,则输出将与参考列表一起正确生成。
我做错了什么?我想避免在命令行上指定参考书目文件(作为重复,DRY)。是否有一般的切换来要求书目处理并将书目文件的选择留给文档 YAML-metada?
【问题讨论】: