Problem
When I include 'reference_docx' in yaml header, knit fails.
Here is the yaml failed.
output: bookdown::word_document2
(indenced) reference_docx: chapter_style.docx
bibliography: library.bib
csl: apa.csl
This generates the error message as below:
Error in yaml::yaml.load(..., eval.expr = TRUE) :
Scanner error: mapping values are not allowed in this context at line 2, column 17
Calls: ... parse_yaml_front_matter -> yaml_load ->
Execution halted
Without reference_docs, it works
Here is the yaml that works fine.
output: bookdown::word_document2
(indensed, deactivated) # reference_docx: chapter_style.docx
bibliography: library.bib
csl: apa.csl
Here is the successful result:
processing file: chapter_game_industry.Rmd
|.................................................................| 100%
ordinary text without R codeoutput file: chapter_game_industry.knit.md
/Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS chapter_game_industry.utf8.md --to docx --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash+smart --output chapter_game_industry.docx --highlight-style tango --filter /Applications/RStudio.app/Contents/MacOS/pandoc/pandoc-citeproc
Output created: chapter_game_industry.docx
Does anyone know how to use .docx with the bibliography option?