use*_*443 4 pandoc pandoc-citeproc
我假设在 YAML 元数据中插入对 BibTex 参考书目的引用足以生成引用。这就像当 .bib 文件位于 YAML 中时 pandoc 不会打印引用,这可能被误解并且还没有可接受的答案。
我有示例输入文件:
---
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
Run Code Online (Sandbox Code Playgroud)
我使用以下命令调用到乳胶的转换:
pandoc -f markdown -t pdf postWithReference.markdown -s --verbose -o postWR.pdf -w latex
Run Code Online (Sandbox Code Playgroud)
pdf 已生成,但它不包含参考文献,并且文本呈现为With a reference to [@Frank2010a] and more.表明未使用参考文件。标题和作者被插入到 pdf 中,从而读取 YAML 元数据。如果我在命令行上添加参考文件,则会使用参考列表正确生成输出。
我究竟做错了什么?我想避免在命令行上指定参考书目文件(作为重复,DRY)。是否有一个通用的切换来要求参考书目处理并将参考书目文件的选择留给文档 YAML-metada?
| 归档时间: |
|
| 查看次数: |
2034 次 |
| 最近记录: |