2
$\begingroup$

I've managed to install MateX with all prerequisites. pdflatex and GhostScript paths are correctly specified. I am able to load it into Mathematica. However, a simple command such as MaTeX[x^2] gives me a MaTeX::texerr : LaTeX Error titled "Missing \begin{document}".

Has anyone faced a similar issue? Any help would be much appreciated..!

Thanks,

$\endgroup$
  • $\begingroup$ Please follow the instructions at the end of the troubleshooting section: szhorvat.net/pelican/latex-typesetting-in-mathematica.html Evaluate the troubleshooting notebook and send it to me. $\endgroup$ – Szabolcs Oct 14 at 7:20
  • $\begingroup$ However, I can say that almost certainly MaTeX is installed incorrectly on your computer. Double-check that you followed the installation instructions exactly, and that you did not do anything that the instructions did not explicitly ask for (if you did, undo it). Make sure you have no old versions installed and that there is no MaTeX directory in this location: SystemOpen@FileNameJoin[{$UserBaseDirectory, "Applications"}] $\endgroup$ – Szabolcs Oct 14 at 7:32
  • $\begingroup$ @Szabolcs, As you rightly pointed out, the problem was with Matex installation. I think I didn't follow the instructions when I installed it first. Thanks a ton for pointing out..!!! $\endgroup$ – Krishna Phanindra Oct 14 at 7:56
  • 1
    $\begingroup$ It might be useful if you could add a self-answer so that others who encounter the same error might find it useful. I searched my email and the only time when someone encountered this error it turned out that they had a very old (years) version of MaTeX still installed $\endgroup$ – Szabolcs Oct 14 at 8:43
2
$\begingroup$
  1. Make sure you run the paclet install in Mathematica correctly after ensuring that all the prerequisites are already in place.
  2. Specify paths to Ghostscript and pdfLatex correctly.
  3. Delete any older version of MaTeX you have on the PC.

Follow the exact procedure given in the links below:

Thanks @Szabolcs

$\endgroup$
  • 2
    $\begingroup$ Now there is a simpler installation method: just run ResourceFunction["MaTeXInstall"][] (this method requires Mathematica 11.3 or later; MaTeX works with Mathematica 10.0, but you need to use the manual installation method) $\endgroup$ – Szabolcs Oct 18 at 15:23
  • $\begingroup$ The link "The Configuring MaTeX tutorial" in the Details and Options page at resources.wolframcloud.com/FunctionRepository/resources/… is dead. $\endgroup$ – murray Oct 18 at 16:46
  • $\begingroup$ @murray I did not realize that local documentation links would be translated to online links ... of course, Wolfram does not host the MaTeX documentation, so those online links can't work. The links do work in the notebook opened with ResourceFunction["MaTeXInstall", "DocumentationNotebook"] (provided that MaTeX is installed already). This function page, which I modelled mine on, suffers from the same problems. I guess I should just remove the links because the current situation is confusing. $\endgroup$ – Szabolcs Oct 18 at 18:36
  • $\begingroup$ @Szabolcs: OK, got it now, thanks! Quite a delightful simplification for installing! $\endgroup$ – murray Oct 18 at 19:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.