gpt4 book ai didi

当书目文件仅在 YAML 元数据中时,pandoc 不会生成书目

转载 作者:行者123 更新时间:2023-12-05 02:14:06 24 4
gpt4 key购买 nike

我假设在 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

我调用转换为 latex :

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?

最佳答案

在较新的版本中需要 --citeproc 而不是 --filter=pandoc-citeproc

关于当书目文件仅在 YAML 元数据中时,pandoc 不会生成书目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54151267/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com