3
$\begingroup$

This is a simple plot, it looks fine in Mathematica. But after exporting it to pdf file, the display of vertical frame label has an error. The "33" in the subscript "epsilon33" becomes somewhat a superscript. It appears this error only occurs on vertical label with Greek letter as subscript. Assume the following simple plot

Plot[x, {x, 0, 1}, 
 Frame -> True, 
 FrameLabel -> {
   Style["\!\(\*SubscriptBox[\(a\), \(\[Epsilon]33\)]\)", 20], 
   Style["\!\(\*SubscriptBox[\(a\), \(\[Epsilon]33\)]\)", 20]
 }]

(Note that the Style is not related and is only for making the bug better visible)

This is the plot in Mathematica

Mathematica graphics

In the exported pdf file, the label on the y-axis (and we should emphasis that it is only this vertical label!) of the frame has somehow turned the "33" into a superscript:

enter image description here

I use 10.0 version on Window 7 system and halirutan can confirm this behaviour on Mac OS X with Mathematica 10.0.2.

$\endgroup$
6
  • $\begingroup$ Is this Helpful? $\endgroup$
    – user9660
    Jan 7, 2015 at 9:15
  • $\begingroup$ I have simplified the example of your code. Now there is a greater chance someone comes up with an explanation. $\endgroup$
    – halirutan
    Jan 7, 2015 at 9:27
  • $\begingroup$ Another finding: If you use Rotate[Style["\!\*SubscriptBox[\(a\), \(\[Epsilon]33\)]\)", 20],Pi/2] as x-label, the subscript is destroyed as well. And when you use a normal character like b instead of epsilon, it works. $\endgroup$
    – halirutan
    Jan 7, 2015 at 9:44
  • $\begingroup$ Same on Linux 10.0.1. Works fine on v8.0.4. $\endgroup$
    – Öskå
    Jan 7, 2015 at 11:33
  • $\begingroup$ There were some posts a couple of weeks ago about bugs in V10 with left frame labels. $\endgroup$ Jan 7, 2015 at 21:52

1 Answer 1

1
$\begingroup$

I originally developed MaTeX to deal with various similar formatting issues. What pushed me over the line was noticing how exporting to PDF sometimes changes the formatting. While many of these issues have been fixed or improved since then (and since your post), I would still recommend MaTeX to achieve high-quality formatting that is guaranteed not to change upon export.

$\endgroup$

Your Answer

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

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