[英]Separate bibliographies per chapter in Quarto (PDF output)
我喜欢在 Quarto 文档(PDF 输出)中有多个参考书目。 你能给我提示一下这段代码有什么问题吗? (我已经尝试过refsection
的biblatex
每章单独的参考书目? )
---
title: "resize image"
bibliography: refs.bib
format: pdf
header-includes:
\usepackage{biblatex}
---
\begin{refsection}
Text \cite{ref1}
\printbibliography
\end{refsection}
产生奇怪的 output 像:Text [ref1]
基于 LaTeX 的解决方案的替代方法是使用Quarto 扩展。 部分书目过滤器应该满足您的需求,同时还支持其他 output 格式。 有关使用说明,请参见此处: https://github.com/pandoc-ext/section-bibliographies#quarto
使用由@tarleb 提供的pandoc过滤器部分书目作为 Quarto 扩展,可以更整齐地创建分节书目。
---
title: "Sectionwise Bibliography"
bibliography: pkg.bib
format: pdf
keep-tex: true
filters:
- section-bibliographies
reference-section-title: References
---
# Quarto
Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.
[see @R-knitr]
# Running Code
When you click the **Render** button a document will be generated that includes both content and the output of embedded code.
[see @R-ggplot2]
# More section
Quarto 本身有一个选项cite-method
来指定使用biblatex
作为引文管理器。
---
title: "resize image"
bibliography: pkg.bib
format: pdf
cite-method: biblatex
biblatexoptions:
- citestyle = authoryear
---
\begin{refsection}
Text \cite{R-knitr}
\printbibliography
\end{refsection}
相关pkg.bib文件的内容,
@Manual{R-ggplot2,
title = {ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics},
author = {Hadley Wickham and Winston Chang and Lionel Henry and Thomas Lin Pedersen and Kohske Takahashi and Claus Wilke and Kara Woo and Hiroaki Yutani and Dewey Dunnington},
year = {2022},
note = {https://ggplot2.tidyverse.org},
}
@Manual{R-knitr,
title = {knitr: A General-Purpose Package for Dynamic Report Generation in R},
author = {Yihui Xie},
year = {2022},
note = {R package version 1.39},
url = {https://yihui.org/knitr/},
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.