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
{
PacletManager`Paclet[
"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?
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. $\endgroup$