lazy.text.format {lazyWeave} | R Documentation |
Format Text
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
lazy.text.format(text, italic = FALSE, bold = FALSE, underline = FALSE,
translate = TRUE)
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
|
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
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.")
[Package lazyWeave version 3.0.2 Index]