btex: Bracket controlled tex output

Description Usage Arguments Examples

View source: R/tex.R

Description

Make brackets to different types.

Usage

1
btex(x, brackets = list(c("\\{", "\\}"), c("[", "]"), c("(", ")")))

Arguments

x

A tex string

brackets

Symbols to use as brackets. Reused as necesary.

Examples

1
2
3
4
x <- paste0("\\left( \\left( 2 \\sin \\left( x + 2\\right) \\right)  ^{2} + ",
            "\\left( a + b\\right)  ^{2}\\right)  ^{3}")
btex(x)
hbtex(x)

r-cas/iomath documentation built on May 28, 2021, 11:10 p.m.