paragraph: Create a WordProcesssingML Paragraph Node

View source: R/code.R

paragraphR Documentation

Create a WordProcesssingML Paragraph Node

Description

This function creates a paragraph node (according to the OOXML/WordProcessingML Specification) with specified properties.

Usage

paragraph(style = NA, align = NA, italic = NA, bold = NA, properties)

Arguments

style

a character vector containing the id of a paragraph-based style which should be added to the created paragraph node.

align

a character vector containing the desired alignment of text and objects in the paragraph.

italic

a logical value indicating whether text in the paragraph should be italicized.

bold

a logical value indicating whether text in the paragraph should be in bold.

properties

currently ignored.

Value

This function returns an XML node which defines a paragraph according to the OOXML/WordProcessingML specification.

Note

Currently, no check is made to ensure that the style indicated in the style argument exists. It is advisable to call lookupStyle before calling this function with a non-NA style parameter.

Author(s)

Duncan Temple Lang

References

ISO/Microsoft OOXML Specification

See Also

lookupStyle, addStyleToNode


duncantl/RWordXML documentation built on Nov. 23, 2023, 4:23 p.m.