Lad*_*zyk 4 r r-markdown bookdown
我正在使用 bookdown 包和 memoir latex 类写我的论文。当我导出为 pdf 或 html 时,一切都相对正常,但我无法将论文导出为 word 文档...
我收到以下神秘错误:
Error in files2[[format]] :
attempt to select less than one element in get1index
Run Code Online (Sandbox Code Playgroud)
但是,很难提供可重复的示例,因为我正在使用凌乱的论文存储库工作。
但这是我的 _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"
]
Run Code Online (Sandbox Code Playgroud)
任何的想法 ?
这是bookdown包的一个错误,我刚刚在 Github 上修复了它。请在那里尝试开发版本:
remotes::install_github('rstudio/bookdown')
Run Code Online (Sandbox Code Playgroud)