Closed Fubaxiusz closed 3 years ago
Apparently listings
package substitutes *
for \textasteriskcentered
.
For workaround, \renewcommand{\textasteriskcentered}{*}
Or as suggested here https://tex.stackexchange.com/questions/127710/problem-with-listings-package-using-stix-fonts
\renewcommand{\textasteriskcentered}{\ensuremath{*}}
Note that this may make the asterisk too low
This is very interesting. I have a similar problem. I am writing a document using the eskdx package in Russian. In math mode, all the minuses become asterisks. And actually, when I put an asterisk in, it becomes something that looks quite like the \guilsinglleft symbol. Fortunately, I don't need the asterisks, but I do need minuses. If I comment out \usepackage{stix}, the minus signs are represented correctly.
To be precise, the packages I am using are: eskdtext style, with options russian, utf8, floatsection, equationsection, pointsection fontspec xecyr xunicode xltxtra amsmath stix polyglossia graphicx url
@davidmjones Is this issue specific to some flavour(s) of TeX? Do we need to do anything in the fonts?
Looks like the OP was using the Type1 version of stix2, in which \textasteriskcentered
probably has no mapped character.
The unicode version of the font works fine without the workaround.
The russian issue above is probably something with Type1 again, and it's for the old stix fonts.
Thanks. Closing.
When using package listings with stix2 asterisk * is missing, only blank space displayed.
Here is code to reproduce the issue: