Rationale: Imagine you would like to create a publication quality figure in Mathematica, from under Linux. Naturally, it will contain text/labels.
Problem: Here is a simple string "Amin,new"
.
Export it into pdf with Export command, and get instead: $\text{Amin ,new}$
Note that space before comma!
Question: How to avoid it?
Some ideas:
As pointed out here: The space in default output of `ExportString` to Latex
It seems like mathematica inserts extra spaces into strings when it recognizes command-like structures.
For example, this string "Xgkx,new"
gets exported rather successfully with no extra spaces.
Additionally, the extra space does not occur if "," is removed, but does occur if "," is replaced by ":", ";" or probably other thin symbols.
This way, avoiding certain string sequences circumvents the problem, but is there a better way to solve it?
System: Ubuntu 14.04, Mathematica 10.0.2
Note: The problem does not occur on Mac, Windows, or in (Linux + Mathematica 9). Hence, it must be a bug (Wolfram support informed).