Wolfram Research

Function Repository Resource:

MaTeXInstall

Source Notebook

Install or update the MaTeX package

Contributed by: Szabolcs Horvát

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.
After installation, read the MaTeX Guide Page in the Documentation Center.
MaTeX requires Ghostscript and a TeX system to be installed. The Configuring MaTeX tutorial explains how to set up MaTeX.

Examples

Basic Examples

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