我想知道这是否可以用于书籍的四开本(PDF)。我的想法是为我的书的每一章都有一个参考部分,在他们的 qmd 文件中有一个参考部分。
我尝试将以下内容作为 _quarto.yml 文件,但它不起作用
project:
type: book
book:
title: "Test"
author: "name"
date: "15.06.2023"
chapters:
- index.qmd
- part: "part1"
chapters:
- Article1.qmd
- Article2.qmd
- part: "part2"
chapters:
- Chapter1.qmd
filters:
- multibib
bibliography:
Art1: refArt1.bib
Art2: refArt2.bib
format:
html:
theme: cosmo
pdf:
documentclass: scrreprt
editor: visual
在 Article1.qmd 中我有一个参考部分
## References {.unnumbered}
::: {#refs-Art1}
:::
与Article2.qmd中的原则相同。
知道这如何可能或我接下来可以尝试什么吗?
这是直接使用原始乳胶命令的解决方案。
project:
type: book
book:
title: "Mybook"
author: "Norah Jones"
date: "8/22/2023"
chapters:
- index.qmd
- part: "Part 1"
chapters:
- intro.qmd
- part: "Part 2"
chapters:
- summary.qmd
format:
pdf:
documentclass: scrreprt
include-in-header:
text: |
\usepackage[natbib=true,citestyle=authoryear,refsegment=chapter]{biblatex}
\addbibresource{references.bib}
\addbibresource{pkg.bib}
简介.qmd
# Introduction
This is a book created from markdown and executable code.
See \citep{knuth84} for additional discussion of literate programming.
\printbibliography[heading=subbibintoc, segment=\therefsegment]
摘要.qmd
# Summary
In summary, this book has no content whatsoever. See \citep{R-dplyr}
\printbibliography[heading=subbibliography, segment=\therefsegment]
参考文献。围兜
@article{knuth84,
author = {Knuth, Donald E.},
title = {Literate Programming},
year = {1984},
issue_date = {May 1984},
publisher = {Oxford University Press, Inc.},
address = {USA},
volume = {27},
number = {2},
issn = {0010-4620},
url = {https://doi.org/10.1093/comjnl/27.2.97},
doi = {10.1093/comjnl/27.2.97},
journal = {Comput. J.},
month = may,
pages = {97–111},
numpages = {15}
}
pkg.bib
@Manual{R-dplyr,
title = {dplyr: A Grammar of Data Manipulation},
author = {Hadley Wickham and Romain François and Lionel Henry and Kirill Müller and Davis Vaughan},
year = {2023},
note = {https://dplyr.tidyverse.org},
}