我正在使用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"
]
有什么想法吗?
答案 0 :(得分:2)
这是 bookdown 软件包的错误,该软件包在Github上I just fixed。请在那里尝试开发版本:
remotes::install_github('rstudio/bookdown')