Inject R matrices into LaTeX formulas

The mat2tex package was written to facilitate the combination of matrices and LaTeX code.


To install the mat2tex package from github enter


into the console. Windows users have to make sure that Rtools is installed.

mat2tex is a mini-language with several operators and functions to allow to combine LaTeX code and R objects. An introduction can be found in the package vignettes as well as here (

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