TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am creating a PDF using pdfTeX. Alas, the publisher's requirement is that all glyphs therein are mapped to one or more Unicode code points. I got this working for most, but not all glyphs:

\input glyphtounicode.tex

For two glyphs, namely \nexists (U+2204) and \leftarrowtail (U+21A2) from amssymb, it looks like an need to manually add a \pdfglyphtounicode. But I can't find out what to pass as its first parameter, i.e., for the glyph name. Any pointers?

share|improve this question
Try using the updated version of glyphtounicode.tex that is distributed with lcdf typetools lcdf.org/type – Lev Bishop Sep 20 '11 at 19:30

I think you need to consult the Unicode Code Charts

These two particular cases would appear to be theredoesnotexist (2204) and leftwardsarrowwithtail (21A2).

These code points also appear in texglyphlist.txt, as notexistential and arrowtailleft respectively. Although this file appears in TeXLive as


I can't find it on CTAN.

I must also confess I can't see much point in having two sets of names.

share|improve this answer

The following works on a TeX Live distribution:

  \immediate\pdfobj stream file {umsa.cmap}
  {\usefont{U}{msa}{m}{n}\pdffontattr\font{/ToUnicode \the\pdflastobj\space 0 R}}
  \immediate\pdfobj stream file {umsb.cmap}
  {\usefont{U}{msb}{m}{n}\pdffontattr\font{/ToUnicode \the\pdflastobj\space 0 R}}

The code binds the MSA and MSB fonts with the appropriate CMAP resources.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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