Skip to contents

Facilitates applying the same latex formatting to different words in a row.

Usage

gloss_format_words(text, formatting)

Arguments

text

Character vector of length 1.

formatting

Latex formatting code, e.g. textit or textsc.

Value

Reformatted string

Examples

gloss_format_words("Many words to apply italics on.", "textit")
#> [1] "\\textit{Many} \\textit{words} \\textit{to} \\textit{apply} \\textit{italics} \\textit{on.}"