R Bookdown生成的PDF中的引用不正确
我正在用笔记本做一本书。HTML版本完全按照我的预期呈现 例如R Bookdown生成的PDF中的引用不正确,r,bookdown,citations,R,Bookdown,Citations,我正在用笔记本做一本书。HTML版本完全按照我的预期呈现 例如 5. Read Chapter 7 of Myers [-@myers_2013_qualitativeresearchbusiness p. 73--91] — 60 minutes. 正确呈现为: 阅读迈尔斯的第7章(2013年,第73-91页)-60分钟 但是,在PDF版本中,引用被呈现为bibtex键;i、 e 5. Read Chapter 7 of Myers (myers_2013_quali
5. Read Chapter 7 of Myers
[-@myers_2013_qualitativeresearchbusiness p. 73--91] — 60 minutes.
正确呈现为:
5. Read Chapter 7 of Myers (myers_2013_qualitativeresearchbusiness) — 60 minutes.
我的脚本执行以下操作来生成pdf
Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::pdf_book')"
我的_output.yml如下所示:
bookdown::gitbook:
css: style.css
split_bib: no
config:
toc:
collapse: section
before: |
<li><a href="./">Qualitative Research Methods</a></li>
after: |
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
edit: https://github.com/psmith1303/business705/edit/master/%s
download: ["pdf", "epub"]
bookdown::pdf_book:
includes:
in_header: preamble.tex
latex_engine: lualatex
citation_package: biblatex
keep_tex: yes
bookdown::epub_book: default
我怀疑我需要再次运行latex“引擎”以获得正确的引用,但我不知道如何做到这一点。因此,修复方法似乎已经从
pdflatex
转移到Xeletex
作为latex引擎。我是通过改变output.yml来实现的
bookdown::gitbook:
css: style.css
split_bib: no
config:
toc:
collapse: section
before: |
<li><a href="./">Qualitative Research Methods</a></li>
after: |
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
edit: https://github.com/psmith1303/business705/edit/master/%s
download: ["pdf", "epub"]
bookdown::pdf_book:
includes:
in_header: preamble.tex
latex_engine: xelatex
citation_package: biblatex
keep_tex: yes
bookdown::epub_book: default
bookdown::gitbook:
css:style.css
分开围兜:不
配置:
目标为:
折叠:截面
之前:|
之后:|
编辑:https://github.com/psmith1303/business705/edit/master/%s
下载:[“pdf”,“epub”]
bookdown::pdf\U图书:
包括:
in_头:preamble.tex
乳胶引擎:Xeletex
引文包:biblatex
泰克斯:是的
bookdown::epub_book:默认值
(这对我来说是一个非常重要的练习,我必须扔掉我的texlive
安装,然后切换到TinyTex
,才能让biber
正常工作)
bookdown::gitbook:
css: style.css
split_bib: no
config:
toc:
collapse: section
before: |
<li><a href="./">Qualitative Research Methods</a></li>
after: |
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
edit: https://github.com/psmith1303/business705/edit/master/%s
download: ["pdf", "epub"]
bookdown::pdf_book:
includes:
in_header: preamble.tex
latex_engine: xelatex
citation_package: biblatex
keep_tex: yes
bookdown::epub_book: default