0

Is there any way to export plots as pdfs correctly on Ubuntu?

An example of the problem:

ListPlot[{{1, 1}, {2, 2}}, AxesLabel -> {"\[CapitalDelta]", "#"}, 
 PlotLabel -> 
  "characters don't export well: \[Gamma] \!\(\*SubscriptBox[\(\
\[CapitalOmega]\), \(mn\)]\)."]
Export["exampleExportBugPDF.pdf", %];

Produces:

enter image description here

Is there any work-around? If that is not possible, what is the closest way to export plots such that they looked good when zoomed in.

There are previous questions on this subject such as Problem with special characters when exporting to pdf but they were apparently fixed in 12.2. Now in 13.2 I have same symptoms.

Other suggestions such as below don't change anything:

SetOptions[EvaluationNotebook[], 
  PrivateFontOptions -> {"OperatorSubstitution" -> False}];

SetOptions[$FrontEndSession, StyleDefinitions -> Notebook[{Cell[StyleData[StyleDefinitions -> "Default.nb"]], Cell[StyleData["TraditionalForm"], PrivateFontOptions -> {"OperatorSubstitution" -> False}]}]];

Exporting as .eps has the same artifacts.


"13.2.0 for Linux x86 (64-bit) (December 7, 2022)"

Kvothe
  • 4,419
  • 9
  • 28
  • Using 13.2.1 for Linux x86 (64-bit) (January 28, 2023) installed on Ubuntu on Windows, I cannot reproduce your issue – Lukas Lang Apr 20 '23 at 13:28
  • There is a recent similar question on this topic (with one hackery solution). Also, this looks like a very clear bug, and I strongly suggest you report it to Wolfram Technical Support. – Domen Apr 20 '23 at 14:20
  • @LukasLang, Thanks I will look whether it is possible for me to upgrade again. – Kvothe Apr 20 '23 at 14:30
  • @Domen, yes I was actually thinking that a performing the export on the Cloud might help. I have a slightly different applications though (single plot vs document) so I don't think this is a duplicate. Also I prefer programmatic solutions if possible. I imagine it might be possible to do the export on the cloud programmatically but I am not that familiar with those functionalities. – Kvothe Apr 20 '23 at 14:32
  • I cannot reproduce on Fedora 37 using 13.2.1 for Linux x86 (64-bit) (January 27, 2023). – b.gates.you.know.what Apr 20 '23 at 17:09

0 Answers0