- base_format
a scalar character, format to be used as a base document for
officedown. default to word_document but
can also be word_document2 from bookdown.
When the base_format used is bookdown::word_document2, the number_sections
parameter is automatically set to FALSE. Indeed, if you want numbered titles,
you are asked to use a Word document template with auto-numbered titles (the title
styles of the default `rdocx_document' template are already set to FALSE).
- tables
a list that can contain few items to style tables and table captions.
Missing items will be replaced by default values. Possible items are the following:
style: the Word stylename to use for tables.
layout: 'autofit' or 'fixed' algorithm. See table_layout.
width: value of the preferred width of the table in percent (base 1).
topcaption: caption will appear before (on top of) the table,
tab.lp: caption table sequence identifier. All table captions are supposed
to have the same identifier. It makes possible to insert list of tables. It is
also used to prefix your 'bookdown' cross-reference call; if tab.lp is set to
"tab:", a cross-reference to table with id "xxxxx" is written as \@ref(tab:xxxxx).
It is possible to set the value to your default Word value (in French for example it
is "Tableau", in German it is "Tabelle"), you can then add manually a list of
tables (go to the "References" tab and select menu "Insert Table of Figures").
caption; caption options, i.e.:
style: Word stylename to use for table captions.
pre: prefix for numbering chunk (default to "Table ").
sep: suffix for numbering chunk (default to ": ").
tnd: (only applies if positive. )Inserts the number of the last title of level tnd (i.e. 4.3-2 for figure 2 of chapter 4.3).
tns: separator to use between title number and table number. Default is "-".
fp_text: text formatting properties to apply to caption prefix - see fp_text_lite().
conditional: a list of named logical values:
first_row and last_row: apply or remove formatting from the first or last row in the table
first_column and last_column: apply or remove formatting from the first or last column in the table
no_hband and no_vband: don't display odd and even rows or columns with alternating shading for ease of reading.
Default value is (in YAML format):
style: Table
layout: autofit
width: 1.0
topcaption: true
tab.lp: 'tab:'
caption:
style: Table Caption
pre: 'Table '
sep: ': '
tnd: 0
tns: '-'
fp_text: !expr officer::fp_text_lite(bold = TRUE)
conditional:
first_row: true
first_column: false
last_row: false
last_column: false
no_hband: false
no_vband: true
- plots
a list that can contain few items to style figures and figure captions.
Missing items will be replaced by default values. Possible items are the following:
style: the Word stylename to use for plots.
align: alignment of figures in the output document (possible values are 'left',
'right' and 'center').
topcaption: caption will appear before (on top of) the figure,
fig.lp: caption figure sequence identifier. All figure captions are supposed
to have the same identifier. It makes possible to insert list of figures. It is
also used to prefix your 'bookdown' cross-reference call; if fig.lp is set to
"fig:", a cross-reference to figure with id "xxxxx" is written as \@ref(fig:xxxxx).
It is possible to set the value to your default Word value (in French for example it
is "Figure"), you can then add manually a list of
figures (go to the "References" tab and select menu "Insert Table of Figures").
caption; caption options, i.e.:
style: Word stylename to use for figure captions.
pre: prefix for numbering chunk (default to "Figure ").
sep: suffix for numbering chunk (default to ": ").
tnd: (only applies if positive. )Inserts the number of the last title of level tnd (i.e. 4.3-2 for figure 2 of chapter 4.3).
tns: separator to use between title number and figure number. Default is "-".
fp_text: text formatting properties to apply to caption prefix - see fp_text_lite().
Default value is (in YAML format):
style: Normal
align: center
topcaption: false
fig.lp: 'fig:'
caption:
style: Image Caption
pre: 'Figure '
sep: ': '
tnd: 0
tns: '-'
fp_text: !expr officer::fp_text_lite(bold = TRUE)
- lists
a list containing two named items ol.style and
ul.style, values are the stylenames to be used to replace the style of ordered
and unordered lists created by pandoc. If NULL, no replacement is made.
Default value is list(ol.style = NULL, ul.style = NULL):
ol.style: null
ul.style: null
- mapstyles
a named list of style to be replaced in the generated
document. list("Normal" = c("Author", "Date")) will result in a document where
all paragraphs styled with stylename "Date" and "Author" will be then styled with
stylename "Normal".
- page_size, page_margins
default page and margins dimensions, these values are used to define the default Word section.
See page_size() and page_mar().
- reference_num
if TRUE, text for references to sections will be
the section number (e.g. '3.2'). If FALSE, text for references to sections
will be the text (e.g. 'section title').
- ...
arguments used by word_document