WrdFont
can be used to get and set the font in Word for the text to be inserted. WrdFont
returns the font at the current cursor position.WrdFont(wrd = getOption("lastWord"))
WrdFont(wrd) <- value
list(name="Arial", size=10, bold=FALSE, italic=TRUE, color=wdConst$wdColorBlack)
.GetNewWrd()
or an existing one, created by GetCurrWrd()
.
Default is the last created pointer stored in getOption("lastWord")
.wdConst$wdColor
.
The defined colors can be listed with grep("wdColor", names(wdConst), val=TRUE)
.
WrdText
, WrdPlot
, GetNewWrd
, GetCurrWrd
## Not run: # Windows-specific example
#
# wrd <- GetNewWrd()
#
# for(i in seq(10, 24, 2))
# ToWrd(gettextf("This is Arial size
#
# for(i in seq(10, 24, 2))
# ToWrd(gettextf("This is Times size
# ## End(Not run)
Run the code above in your browser using DataLab