xx: Concatenate 'texcode' chunks.

View source: R/texcode.r

xxR Documentation

Concatenate texcode chunks.

Description

Concatenate texcode chunks.

Usage

xx(..., e = NA, label = NULL, digits = NA, mtype = NA, round = NA,
  na = NA)

Arguments

...

texcode objects or objects that can ce converted into texcode objects. Enter any number of chunks seperated by commas.

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

A label for the equation in case an environment is used that supports labels, e.g. equation. Only applicable to Rnw documents.

digits

Number of digits to display (if matrix is numeric).

mtype

LaTeX matrix type, i.e. round braces, curly braces etc. Available types are "matrix", "pmatrix", "bmatrix", "Bmatrix", "vmatrix", "Vmatrix", "bordermatrix".

round

Logical. Round numbers? If not numbers are trimmed only.

na

How to replace NA values? (default is "").

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 July 29, 2023, 7:45 p.m.