I have a plot in pdf format which I include in my LaTeX document with \includegraphics. When I use pdflatex to compile I get

pdfTeX warning: /usr/bin/pdflatex (file /usr/share/texlive/texmf-dist/fonts/type1/public/stix/STIXGeneral-Italic.pfb): glyph `afii61289' undefined

and indeed one particular symbol from the plot is gone in the pdf. (The plot was created with TMathText in ROOT, exported as eps and converted to pdf. The missing symbol is "\ell".)

Looking through the answers here, I found the \pdfmapline command. Not knowing exactly what is does I tried to include


at the beginning of my .tex file and indeed, compiling took a while and the missing symbol is now there. But. The font of the text body is now replaced by a pixel font, which obviously I don't want. (The fonts in included pdf plots are fine.)

So is there a better way to solve my original problem?



missing_ell.pdf: download here

The pdf has the \ell the output when running pdflatex doesn't.

Create the plot

To recreate the plot (note: you can just download the file from the link above), do this in ROOT6:

a = new TH1F("h","h",1,-0.5,0.5)
a->GetXaxis()->SetBinLabel(1, "\\text{VR }W+\\,\\text{jets }(m_\\text{T2}(\\ell,\\tau))")

Draw canvas as eps, convert to pdf with epstopdf.

  • Let me know in case I should add more information, e.g. the output from pdffonts etc. For the final pdf it's pretty long so I decided against including it for now, as I don't think it has additional information. KEAHSX+STIXGeneral-Italic is embedded in both the plot and the final pdf. – fuenfundachtzig Aug 2 '16 at 9:30
  • You should make a minimal example that we can use for tests. Naturally the pdf of the plot you are including is needed too. – Ulrike Fischer Aug 2 '16 at 9:38
  • I was afraid you'd ask for that as the plot is not public yet... I'll try to come up with a dummy plot. – fuenfundachtzig Aug 2 '16 at 9:53
  • I added an MWE. – fuenfundachtzig Aug 2 '16 at 12:42

Try this (it will make your pdf larger).

  • Thanks, fixes the problem, and the size increase is O(1 %). I can live with that :) – fuenfundachtzig Aug 2 '16 at 12:44
  • Unfortunately, this does not seem to work in beamer? – fuenfundachtzig Mar 21 '17 at 9:41
  • My comment above below your question is still valid. – Ulrike Fischer Mar 21 '17 at 9:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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