我正在使用 bookdown 包和回忆录乳胶类来写我的论文。当我导出到 pdf 或 html 时,一切都相对正常,但我无法将论文导出到 word 文档......
我收到以下神秘错误:
Error in files2[[format]] :
attempt to select less than one element in get1index
不过,很难提供一个可重现的例子,因为我正在我凌乱的论文存储库中工作。
但这是我的 _output.yml 文件(的一部分):
bookdown::pdf_book:
includes:
in_header: latex/preamble.tex # defines style and latex options
before_body: latex/before_body.tex # defines cover page
latex_engine: xelatex # lualatex or xelatex
citation_package: none # needs to be "none" in order to use the csl file
keep_tex: true # keeps the .tex file
dev: "cairo_pdf"
toc: false # deactivates default table of contents
highlight: pygments # code highlighting
pandoc_args: [ "--csl", "./csl/apa6.csl" ] # specifies the csl file to be used
bookdown::word_document2:
pandoc_args: [
"--csl", "./csl/apa6.csl",
"--bibliography", "./bib/packages.bib",
"--bibliography", "./bib/thesis.bib",
#"--reference-doc", "./assets/2018-05-17-aim1-draft.docx",
"--filter", "pandoc-citeproc"
#"--filter", "./assets/fix-apa-ampersands.py"
]
任何想法 ?
这是一个错误bookdown包,其中我刚刚修好 https://github.com/rstudio/bookdown/commit/25ea15435a3a0898556d22b7fa2e232f5f5e3cb1在 Github 上。请尝试那里的开发版本:
remotes::install_github('rstudio/bookdown')
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)