il {latexSymb}R Documentation

LaTeX Environments

Description

Equations and symbols in LaTeX can be either inline or on their own. il wraps expressions for the former, lenv for the latter.

Usage

il(x)
lenv(name, rows)

Arguments

x

An object of class latex_symb

name

The name of the LaTeX environment. For instance, align or gather

.

rows

A list of objects that can be passed to as.character.

Value

Examples

al <- lsymb("\\alpha")
be <- lsymb("\\beta")
il(al)
lenv("align", 
    c(
      lsymb(al^2 - be^2, "&=", 0, "\\\\"),
      lsymb(pths(al - be)*pths(al + be), "&=", 0)
     )
) 

[Package latexSymb version 1.0.0 Index]