lazy.text.format: Format Text

Description Usage Arguments Details Author(s) Examples

View source: R/lazy.text.format.R

Description

Applies italic, bold, or underlining to a piece of text. May be used within lazy.text to add emphasis when the entire paragraph does not need to be formatted

Usage

1
2

Arguments

text

Text to be formatted

italic

Logical. Specifies if text should be italic

bold

Logical. Specifies if text should be bold

underline

Logical. Specifies if text should be underlined

translate

Logical. Specifies if text should be passed through latexTranslate before printing

Details

This function differs from lazy.text in that lazy.text produces a paragraph of formatted text while lazy.text.format produces smaller blocks. This allows for smaller bits of text to be formatted for emphasis (see the last example below).

Author(s)

Benjamin Nutter

Examples

1
2
3
4
5
6
7
8
lazy.text.format("This is the text")
lazy.text.format("This is the text", italic=TRUE)
lazy.text.format("This is the text", bold=TRUE)
lazy.text.format("This is the text", italic=TRUE, bold=TRUE)

lazy.text("The percentage of defective lightbulbs in this sample was ", 
          lazy.text.format("30\%", italic=TRUE),
          ". Clearly, this is unacceptable.")

nutterb/lazyWeave documentation built on May 24, 2019, 10:52 a.m.