Is there a package to convert Mathematica graphics to TikZ code (for inclusion in LaTeX source files)?

Such a package, dated 2016-01-30, is described at http://library.wolfram.com/infocenter/MathSource/9554/ , but there seems to be no link there to any actual files.

I am aware of Mathematica2tikz an equivalent function.

I tried using eps an an intermediary but could not complete the process. Namely, I exported a simple graph Plot[Sin[x], {x, 0, 2Pi}] to EPS format. Then I tried to use the command-line utility eps2pgf, but that failed with Postscript error: "Feature not (yet) implemented: type 42 fonts"

  • 2
    $\begingroup$ Did you get this answer by other means? I'm interested too. $\endgroup$
    – LCarvalho
    Commented Jul 16, 2017 at 18:26
  • 1
    $\begingroup$ No, no answer so far. $\endgroup$
    – murray
    Commented Jul 16, 2017 at 20:27
  • $\begingroup$ even better: the Wolfram MathSource URL lists 'Will Thomson' at the University of Birmingham as its author. Internal director at UoB doesn't find him. $\endgroup$ Commented Apr 5, 2022 at 16:35
  • $\begingroup$ The converter used within the ...2TikZ uses a frontend that unstands much but not all of Adobe PostScript language. Once the frontend knows the next graphics command to be executed, it then outputs the equivalent TikZ command. Unfortunately, Type 42 font definition commands are part of what is missing. I strongly suggest using \includegraphics of a PDF instead. $\endgroup$
    – anon
    Commented Mar 19, 2023 at 21:46


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.