toc.options: Set TOC options

Description Usage Arguments Details Value See Also Examples

View source: R/toc.options.R

Description

Set custom table of contents options for a document object

Usage

1
2
3
4
toc.options(doc, ...)

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

Arguments

doc

Object of class docx

...

further arguments passed to other methods

list.separator

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

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 entry 302865 of Microsoft knowledge database for more information.

Value

a document object

See Also

docx, addTOC.docx

docx, addTOC.docx

Examples

1
2
3
4
5
6
if( check_valid_java_version() ){

doc = docx( title = "title" )
doc = toc.options( doc, list.separator = "," )

}

davidgohel/ReporteRs documentation built on Dec. 4, 2018, 5:10 p.m.