xbe: Begin or end LaTeX math environment.

Description Usage Arguments Details Value Author(s)

Description

xb will begin, xb will end a math environment.

Usage

1
2
3
xb(e = NA, label = NULL)

xe(e = 1)

Arguments

e

Math environment to use (numeric or string). If NA the default is used as defined in mat2tex_options()$mathenv. If set to NULL, no environment is added, just the plain math code is returned. See details.

label

Optional LaTeX equation label

Details

The available math environments are 1=$$, 2=$, 3=equation, 4=equation*, 5=align, 6=align*, 7=gather, 8=gather*, 9=multiline, 10=multiline*, 11=split. You can either supply the corresponding numeric or the name of the math environment in argument e. For Rmd file only math environment (argument e) 1 and 2 are relevant. When using Rnw files make sure to include the amsmath package the document preamble as most environments are defined in it.

Value

Object of class texcode.

Author(s)

Mark Heckmann


markheckmann/mat2tex documentation built on May 21, 2019, 12:06 p.m.