ReporteRs (version 0.6.9)

toc.options.docx: Set TOC options

Description

set options for custom table of contents of a docx object.

Usage

# S3 method for docx
toc.options(doc, list.separator, ...)

Arguments

doc

Object of class docx

list.separator

list separator (should be the same than in computer's regional settings)

...

further arguments passed to other methods - not used.

Details

This function is to be used if TOC cannot be built. It is occuring when list separator used when building the TOC is different from the list separator in your computer's regional settings.

see http://support.microsoft.com/kb/302865/EN-US

See Also

docx, addTOC.docx

Examples

Run this code
# NOT RUN {
#START_TAG_TEST
doc = docx( title = "title" )
doc = toc.options( doc, list.separator = "," )
#STOP_TAG_TEST
# }

Run the code above in your browser using DataCamp Workspace