22

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"

murray
  • 11,888
  • 2
  • 26
  • 50
  • 2
    Did you get this answer by other means? I'm interested too. – LCarvalho Jul 16 '17 at 18:26
  • 1
    No, no answer so far. – murray Jul 16 '17 at 20:27
  • 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. – Colin Rowat Apr 05 '22 at 16:35
  • 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. –  Mar 19 '23 at 21:46

0 Answers0