我正在写我的论文使用预订包和回忆录乳胶课。当我导出到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"
]知道吗?
发布于 2019-05-09 18:27:32
这是bookdown包的一个bug,这个包是Github上的我刚修好了包。请在此试用开发版本:
remotes::install_github('rstudio/bookdown')https://stackoverflow.com/questions/56061122
复制相似问题