latex: LaTeX printing

Description Usage Arguments Examples

Description

Displaying objects of the appropriate type, typeset in LaTeX. For use with knitr/sweave.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
latex(object, ...)

## S3 method for class 'matrix'
latex(object, inline = FALSE, digits = 3,
  showName = TRUE, asTranspose = FALSE, system = FALSE, ..., dispname)

## S3 method for class 'numeric'
latex(object, inline = FALSE, digits = 3,
  showName = TRUE, asTranspose = FALSE, ...)

## S3 method for class 'bfs'
latex(object, inline = FALSE, digits = 3, ...)

## S3 method for class 'ep'
latex(object, inline = FALSE, digits = 3, coordinates,
  xchar = "x", ...)

## S3 method for class 'lp_solution'
latex(object, digits = 3, coordinates, ...)

Arguments

object

Object to print in LaTeX.

...

Additional arguments.

inline

Logical; should the latex be written inline (TRUE), i.e. you have started math mode yourself, or not inline (FALSE), i.e. an align* environment is set up for you.

digits

Number of rounding digits

showName

Logical; should the name of the matrix be printed?

asTranspose

Display as the transpose?

system

Logical; is this a system of equations? If so, a pipe is added to separate the last column as a right hand side.

dispname

Optional display name.

coordinates

An integer value from 1 to the length of any ep. Restricts the display (so you can throw away non-basic variables). If missing, all are displayed.

xchar

Character (or string I guess!) to name the solution for display purposes.

Examples

1
2
x <- matrix(1:25, 5)
latex(x)

wrathematics/lptools documentation built on May 4, 2019, 10:52 a.m.