enclosing: 'LaTeX' Enclosings

pthsR Documentation

LaTeX Enclosings

Description

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)
br(al)
sqbr(al)
ang(al)

latexSymb documentation built on June 17, 2025, 9:12 a.m.