【发布时间】:2019-05-09 13:59:06
【问题描述】:
我正在使用 bookdown 包和 memoir latex 类写我的论文。当我导出为 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"
]
有什么想法吗?
【问题讨论】:
标签: r r-markdown bookdown