Plot[Sin[2.5 x], {x, 0, 2}, PlotLabel -> Framed["a=1.5" // MaTeX]]

I get the expected labeled plot:

enter image description here

However, if I just change 1.5 in the label to 2.5:

Plot[Sin[2.5 x], {x, 0, 2}, PlotLabel -> Framed["a=2.5" // MaTeX]]

I get

enter image description here

What may be the problem here and how to solve it?

  • $\begingroup$ Quitting and restarting the kernel got rid of this behavior. Yet, what may have caused in the first place? $\endgroup$ – Iosif Pinelis Aug 18 '19 at 13:39
  • $\begingroup$ It looks like your system's temporary directory got cleared out for some reason, breaking your running MaTeX session. MaTeX expects its temporary files to persist throughout the session. This has nothing to do with you changing 1.5 to 2.5. You can reset MaTeX's temporary directory by re-loading the package with Get["MaTeX`"] (no kernel restart needed but make sure you use Get and not Needs). $\endgroup$ – Szabolcs Aug 18 '19 at 13:42
  • $\begingroup$ @Szabolcs : Thank you for your comment. But why was MaTeX OK with 1.5 and not with 2.5 in the labels? $\endgroup$ – Iosif Pinelis Aug 18 '19 at 13:45
  • $\begingroup$ As I said, it has nothing to do with that. As you yourself said, it happened only once and you can't reproduce it. If you can consistently reproduce it, then something would be wrong (please let me know in that case) $\endgroup$ – Szabolcs Aug 18 '19 at 13:46
  • $\begingroup$ I still don't get it. If the MaTeX session got broken at some point, why was MaTeX working after that, repeatedly, with 1.5 but not with 2.5? $\endgroup$ – Iosif Pinelis Aug 18 '19 at 13:50

Your Answer

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

Browse other questions tagged or ask your own question.