Debian Codegraph @

man/odt_document.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/odt_document.R
3 \name{odt_document}
4 \alias{odt_document}
5 \title{Convert to an OpenDocument Text (ODT) document}
6 \usage{
7 odt_document(
8 number_sections = FALSE,
9 fig_width = 5,
10 fig_height = 4,
11 fig_caption = TRUE,
12 template = "default",
13 reference_odt = "default",
14 includes = NULL,
15 keep_md = FALSE,
16 md_extensions = NULL,
17 pandoc_args = NULL
18 )
19 }
20 \arguments{
21 \item{number_sections}{\code{TRUE} to number section headings}
22
23 \item{fig_width}{Default width (in inches) for figures}
24
25 \item{fig_height}{Default height (in inches) for figures}
26
27 \item{fig_caption}{\code{TRUE} to render figures with captions}
28
29 \item{template}{Pandoc template to use for rendering. Pass "default" to use
30 the rmarkdown package default template; pass \code{NULL} to use pandoc's
31 built-in template; pass a path to use a custom template that you've
32 created. See the documentation on
33 \href{https://pandoc.org/MANUAL.html}{pandoc online documentation} for
34 details on creating custom templates.}
35
36 \item{reference_odt}{Use the specified file as a style reference in
37 producing an odt file. For best results, the reference odt should be a
38 modified version of an odt file produced using pandoc. Pass "default"
39 to use the rmarkdown default styles.}
40
41 \item{includes}{Named list of additional content to include within the
42 document (typically created using the \code{\link{includes}} function).}
43
44 \item{keep_md}{Keep the markdown file generated by knitting.}
45
46 \item{md_extensions}{Markdown extensions to be added or removed from the
47 default definition of R Markdown. See the \code{\link{rmarkdown_format}} for
48 additional details.}
49
50 \item{pandoc_args}{Additional command line options to pass to pandoc}
51 }
52 \value{
53 R Markdown output format to pass to \code{\link{render}}
54 }
55 \description{
56 Format for converting from R Markdown to an ODT document.
57 }
58 \details{
59 See the \href{https://yihui.org/rmarkdown/opendocument-text-document.html}{online
60 documentation} for additional details on using the \code{odt_document} format.
61
62 R Markdown documents can have optional metadata that is used to generate a
63 document header that includes the title, author, and date. For more details
64 see the documentation on R Markdown \link[=rmd_metadata]{metadata}.
65
66 R Markdown documents also support citations. You can find more information on
67 the markdown syntax for citations in the
68 \href{https://pandoc.org/MANUAL.html#citations}{Bibliographies
69 and Citations} article in the online documentation.
70 }
71 \examples{
72 \dontrun{
73 library(rmarkdown)
74
75 # simple invocation
76 render("input.Rmd", odt_document())
77
78 # specify an option for syntax highlighting
79 render("input.Rmd", odt_document(highlight = "zenburn"))
80 }
81 }