Usage
word_document(toc = FALSE, toc_depth = 3, fig_width = 5, fig_height = 4, fig_caption = TRUE, highlight = "default", reference_docx = "default", keep_md = FALSE, md_extensions = NULL, pandoc_args = NULL)
Arguments
toc
TRUE
to include a table of contents in the output
toc_depth
Depth of headers to include in table of contents
fig_width
Default width (in inches) for figures
fig_height
Default width (in inches) for figures
fig_caption
TRUE
to render figures with captions
highlight
Syntax highlighting style. Supported styles include
"default", "tango", "pygments", "kate", "monochrome", "espresso",
"zenburn", and "haddock". Pass NULL
to prevent syntax highlighting.
reference_docx
Use the specified file as a style reference in
producing a docx file. For best results, the reference docx should be a
modified version of a docx file produced using pandoc. Pass "default"
to use the rmarkdown default styles.
keep_md
Keep the markdown file generated by knitting.
md_extensions
Markdown extensions to be added or removed from the
default definition or R Markdown. See the rmarkdown_format
for
additional details. pandoc_args
Additional command line options to pass to pandoc