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
\pdfmapline{KEAHSX+STIXGeneral-Italic}
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?
MWE
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=\textwidth]{missing_ell.pdf}
\end{document}
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))")
a->Draw()
Draw canvas as eps, convert to pdf with epstopdf
.
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.