Wolfram Research

Function Repository Resource:

MaTeXInstall

Source Notebook

Install or update the MaTeX package

Contributed by: Szabolcs Horvát  |  Szabolcs Horvat

ResourceFunction["MaTeXInstall"][]

installs the latest version of the MaTeX package.

Details and Options

MaTeX is a package for creating LaTeX-typeset labels for use in publication figures.
ResourceFunction["MaTeXInstall"] downloads and installs the latest version of MaTeX.
If MaTeX is already installed, ResourceFunction["MaTeXInstall"] will replace it with the latest version.
MaTeX requires Ghostscript and a TeX system to be installed.

Examples

Basic Examples (4) 

Install the MaTeX package:

In[1]:=
ResourceFunction["MaTeXInstall"][]
Out[1]=

Once MaTeX is installed, it can be loaded and used:

In[2]:=
Needs["MaTeX`"]

Typeset a Wolfram Language expression:

In[3]:=
MaTeX[HoldForm@Integrate[Exp[-x], {x, 0, Infinity}]]
Out[3]=

Typeset LaTeX code:

In[4]:=
MaTeX[
 "\\sum_{k=1}^{\\infty} \\frac{1}{k^2} = \\frac{\\pi^2}{6}",
 FontSize -> 24
 ]
Out[4]=

Resource History

Source Metadata

Related Resources

Author Notes

The MaTeX package makes it easy to typeset expressions using LaTeX. It takes either a Wolfram Language expression or TeX code as input, renders it using an external LaTeX system, and imports the result into Mathematica.

License Information