# Latin l with TMathText and pdf issue

**URL:** <https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205>\
**Category:** Newbie\
**Created:** [March 18, 2019, 10:18am UTC](https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205 "2019-03-18T10:18:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![djamin](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/8baadc/32.png) [@djamin](https://root-forum.cern.ch/u/djamin)\
**Post date:** [March 18, 2019, 10:18am UTC](https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205/1 "2019-03-18T10:18:38Z")

</div>

Dear Root users and experts,  
I am facing an issue with latin l( \ell of TMathText) in pdf. When I look at the pdf file alone generated by my script, I can see my the latin l. Then I put this plot on an overleaf document and the display shows me the latin l. Then I download the document pdf and the latin l disappears… What is happening ??  
Best regards, David Jamin.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 18, 2019, 10:26am UTC](https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205/2 "2019-03-18T10:26:00Z")

</div>

TMathText does not render in PDF files. It works with PostScript.

---

<div class="post-metadata">

**Author:** ![djamin](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/8baadc/32.png) [@djamin](https://root-forum.cern.ch/u/djamin)\
**Post date:** [March 18, 2019, 10:35am UTC](https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205/3 "2019-03-18T10:35:02Z")

</div>

OK. I have tried to make the output of my macro to make a eps. Here I see the latin l.  
Then I convert epstopdf and here I see the latin l in my pdf file. But in the end I have the exact same issue as described above when I go in latex document.  
How can I have in the end this plot into a pdf file (from latex or overleaf) with the latin l visible?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 18, 2019, 11:44am UTC](https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205/4 "2019-03-18T11:44:31Z")

</div>

When generating the PS file try:

```auto
canvas->Print("example.eps","EmbedFonts");

```

---

<div class="post-metadata">

**Author:** ![djamin](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/8baadc/32.png) [@djamin](https://root-forum.cern.ch/u/djamin)\
**Post date:** [March 18, 2019, 11:54am UTC](https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205/5 "2019-03-18T11:54:49Z")

</div>

It seems not to help, now I see #ell in the display.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 18, 2019, 12:18pm UTC](https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205/6 "2019-03-18T12:18:02Z")

</div>

It works for me.

I have the following macro

```auto
{
   TLatex * tex = new TLatex(0.5,0.5,"\\ell");
   tex->SetTextSize(0.5);
   tex->Draw();
   gPad->Print("ell.eps")
}

```

which generates the attached file `ell.eps` . I include this eps file like in the following  
.tex file (ell.tex).

```auto
\documentclass{article}
\usepackage{xcolor}
\usepackage{graphicx}
\pagestyle{empty}
\begin{document}
\pagecolor{yellow!30}
\begin{center}
\includegraphics[scale=0.5]{ell.eps}
\end{center}
Image included as a eps file showing "ell".
\end{document}

```

Running pidflatex on it it gives me a pdf file which shows the “ell”.

```auto
$ pdflatex ell.tex

```

 ![44](https://root-forum.cern.ch/uploads/default/original/3X/b/b/bbe1a7ff013eea8ee5f3f7ef7e2007fd5fceca64.png)  
[ell.pdf](https://root-forum.cern.ch/uploads/default/original/3X/f/b/fb22045b75887cb59b90d6f5db7c1d76b76b2ccb.pdf) (26.6 KB)

---

<div class="post-metadata">

**Author:** ![djamin](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/8baadc/32.png) [@djamin](https://root-forum.cern.ch/u/djamin)\
**Post date:** [March 18, 2019, 12:34pm UTC](https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205/7 "2019-03-18T12:34:16Z")

</div>

Many thanks for the example. I have used your macro to get the eps file and then I pushed it in my overleaf example. This is the screen-shot

 ![Screenshot%20from%202019-03-18%2013-32-07](https://root-forum.cern.ch/uploads/default/original/3X/7/5/756bf9a256263d6acb960dc5d7b31623849b2a88.png)  
and then if I get the pdf file of the project I have an empty figure … See attached pdf.  
[Standalone\_\_\_David.pdf](https://root-forum.cern.ch/uploads/default/original/3X/1/6/1620d72a443ecd2fd2c6aed9fddc064eb560c836.pdf) (50.8 KB)  
So it looks like an overleaf issue.

---

<div class="post-metadata">

**Author:** ![djamin](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/8baadc/32.png) [@djamin](https://root-forum.cern.ch/u/djamin)\
**Post date:** [March 18, 2019, 1:36pm UTC](https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205/8 "2019-03-18T13:36:30Z")

</div>

I just got a try with your ell.tex and the generated eps figure. My output pdf of pdflatex is not displaying the latin l.  
[ell.pdf](https://root-forum.cern.ch/uploads/default/original/3X/2/9/29aa3ba1877408442e92274ea20dde93362f5747.pdf) (17.6 KB)  
I am not clear about what is happening but I am not able to reproduce what you explain above.

---

<div class="post-metadata">

**Author:** ![djamin](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/8baadc/32.png) [@djamin](https://root-forum.cern.ch/u/djamin)\
**Post date:** [March 18, 2019, 1:54pm UTC](https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205/9 "2019-03-18T13:54:21Z")

</div>

In the elog I found that the unicode of the latin l is problematic :  
glyph `afii61289’ undefined  
a fix found on internet is to set this in the beginning of the document :  
\pdfinclusioncopyfonts=1  
and now it works.  
Sorry for the troubles.

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [June 5, 2026, 12:31pm UTC](https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205/10 "2026-06-05T12:31:16Z")

</div>

PDF output might be potentially achievable with newer version of mathtext which has fontembedpdf.cc file  
See [[mathtext] mv to bultin subdir, isolate from ROOT and sync with upstream by ferdymercury · Pull Request #22476 · root-project/root · GitHub](https://github.com/root-project/root/pull/22476)
