Skip to contents

It is cumbersome to have to write left and right every time a grouping is used in LaTeX. These functions take care of that.

Usage

pths(x)
br(x)
sqbr(x)
ang(x)

Arguments

x

An object that can be passed to as.character.

Value

An object of class latex_symb whose repr is x's repr enclosed by the corresponding symbols.

Examples

al <- lsymb("\\alpha")
pths(al)
#> [1] "\\left( \\alpha \\right)"
br(al)
#> [1] "\\lbrace \\alpha \\rbrace"
sqbr(al)
#> [1] "\\left[ \\alpha \\right]"
ang(al)
#> [1] "\\langle \\alpha \\rangle"