lhtext: lhtext

Description Usage Arguments

Description

Simple way to create word document using loop of from t list. Type lhtext and copy the template to R workspace and start writing.

Usage

1
lhtext(doc, t, save = NULL, heading = "HD")

Arguments

doc

doc created by read_docx or lhstartdoc with template. See lhtext_example.

t

list of items. see example.

toc.level

maximimum toc level

template

Word document template could be used for styles. Styles should be mapped in style.to.map. Template is also available at github: to load it, just run lhtemp() once to download and store the templates in your PC at "c:lhtemplate. Note that the templates and logo are also used in xptdef package.

style.to.map

Map the styles in template to be used. Ex: mypar is for footnote (font size)


leonpheng/lhwordtool documentation built on May 21, 2019, 2:06 p.m.