3

I can't get the XeTeXglyphname command to produce any output. My code is shown below. I suppose that this command produces a string as output; do I need to do something special to make this string part of my document??

\documentclass{article}
\pagestyle{empty}
\usepackage{fontspec}
\setmainfont{Latin Modern Math}

\begin{document}

\font\latin="Latin Modern Math"\latin

\XeTeXglyph 34  hello \XeTeXglyphname\latin 34 goodbye

\XeTeXglyph 519 hello \XeTeXglyphname\latin 519 goodbye

\end{document}

1 Answer 1

3

With up-to-date TeXLive 2014

\documentclass{article}
\usepackage{fontspec}
\begin{document}
\font\latin="Latin Modern Math"\latin
\XeTeXglyph34:  \XeTeXglyphname\font34

\XeTeXglyph519: \XeTeXglyphname\font519

\XeTeXglyph999: \XeTeXglyphname\font999
\end{document}

enter image description here

3
  • Thanks. Has the command changed? From reading the XeTeX reference manual, I was expecting that I'd need \XeTeXglyphname\latin34, not \XeTeXglyphname\font34.
    – bubba
    Commented Dec 29, 2014 at 7:01
  • That makes no difference \font uses the current font
    – user2478
    Commented Dec 29, 2014 at 7:53
  • I see. I updated my MikTeX installation and it works, now. Thanks again.
    – bubba
    Commented Dec 29, 2014 at 8:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .