r markdown - How to change pandoc option in R Studio -
installing package rmarkdown in r studio can create docx documents using rmd-file , pressing knit word
button.
the invoked command then:
"c:/program files/rstudio/bin/pandoc/pandoc" +rts -k512m -rts hallo.utf8.md --to docx --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output hallo.docx --highlight-style tango
question
how add other options? want add:
--filter ./pandoc-word-pagebreak
to get:
"c:/program files/rstudio/bin/pandoc/pandoc" +rts -k512m -rts hallo.utf8.md --to docx --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --filter ./pandoc-word-pagebreak --output hallo.docx --highlight-style tango
you can use pandoc_args
in yaml front matter:
--- title: "mytitle" output: word_document: pandoc_args: [ "--filter", "./pandoc-word-pagebreak" ] ---
see documentation here
Comments
Post a Comment