# Getting MaTeX working on a Mac with TeXShop

I'm generating figures in Mathematica to insert into an article I'm writing in LaTeX. I want to be able to label the objects in my figures with the notation that agrees with my article. This rest of this post has been altered to focus on my specific problem trying to do this.

As per the comment from @J.M. below, I'm trying to install MaTeX on my computer as described here, but without success. I apologize for any incompetence on my part here -- I've always been more of a pencil-and-paper kind of mathematician.

Anyway, I downloaded the file "MaTeX-1.7.2.paclet" and put it in a new folder in my Applications directory, called Mathematica-add-ons. I also downloaded "Ghostscript 9.21" for Macintosh from here successfully. (Note that this is not mentioned in the instructions, rather they gives links to download for Linux and PC, and says Ghostscript comes included with MacTex, however I don't use that.)

I did not have trouble installing MaTeX in Mathematica, and to confirm if I type

PacletFind["MaTeX"]


it says

{Paclet[MaTeX, 1.7.2, <>]}


and if I copy and past that into here we get

{
PacletManagerPaclet[
"Name" -> "MaTeX", "Version" -> "1.7.2",
"MathematicaVersion" -> "10.0+",
"Description" -> "Create LaTeX-typeset labels within Mathematica.",
"Creator" -> "Szabolcs Horvát <szhorvat@gmail.com>",
"URL" -> "https://github.com/szhorvat/MaTeX",
"Thumbnail" -> "Logo.png",
"Extensions" -> {{
"Documentation", "Language" -> All,
"MainPage" -> "Guides/MaTeX"}, {
"Kernel", "Root" -> ".", "Context" -> "MaTeX"}},
"Location" -> "/Users/j0equ1nn/Library/Mathematica/Paclets/\
Repository/MaTeX-1.7.2"]}


But the program does not work.

If I type

MaTeX


it tells me

Syntax::sntxi: Incomplete expression; more input is needed .


and if I type

MaTeX["x^2"]


the output is just

MaTeX[x^2]


.

What am I missing?

• I presume you've seen this? – J. M. will be back soon Sep 23 '17 at 23:15
• @J.M. Yeah, I've been trying to get that work without success. But I'm continuing to mess with it right now. – j0equ1nn Sep 23 '17 at 23:19
• Make the axis labels strings, as in AxesLabel->{"x_1", "x_2"}. But, of course you don't want an underscore so when you type the underscore, hold down the CTRL key, then type the 1 or the 2, then type CTRL-spacebar. – LouisB Sep 23 '17 at 23:40
• @j0equ1nn You have made a major revision to your question to the extent that the question is completely different. Given that the question is still new, it may be ok. But in the future, please just ask a new question. – QuantumDot Sep 24 '17 at 0:37
• You really need to follow the instructions precisely. As a mathematician, you live on precise explanations. Can you point out what exactly is confusing in the installation instructions? – Szabolcs Sep 24 '17 at 9:07

I'm trying to install MaTeX on my computer as described here

Anyway, I downloaded the file "MaTeX-1.7.2.paclet" and put it in a new folder in my Applications directory, called Mathematica-add-ons.

This is not what the instructions you linked to say you should do. You need to use the PacletInstall function with the downloaded file, precisely as shown in the installation instructions and as also explained here:

There is also an automatic installation script in MaTeX's README file on GitHub.

If I type MaTeX it tells me Syntax::sntxi: Incomplete expression; more input is needed.

According to the instructions, you must use

<<MaTeX


and not

MaTeX


That << makes a huge difference. Please see Get and Needs.

Getting MaTeX working on a Mac with TeXShop

TeXShop is an editor for TeX files. It is not a TeX system, and does not include the components necessary to convert a .tex file into a PDF. On a Mac, you need to install MacTeX. TeXShop itself does not suffice.