hbtex: Make hard brackets

Description Usage Arguments Examples

View source: R/tex.R

Description

Make hard brackets

Usage

1
hbtex(x)

Arguments

x

A tex string

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
x <- paste0("\\left( \\left( 2 \\sin \\left( x + 2\\right) \\right)  ^{2} + ",
            "\\left( a + b\\right)  ^{2}\\right)  ^{3}")
btex(x)
hbtex(x)

if (requireNamespace("Ryacas", quiet = TRUE)) {
  A <- Ryacas::ysym(matrix(1:9, 3, 3))
  x <- Ryacas::tex(A)
  x
  btex(x)
  hbtex(x)
}

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