# \\\\mathscr{P} not working

**URL:** <https://root-forum.cern.ch/t/mathscr-p-not-working/56056>\
**Category:** Newbie\
**Tags:** hist\
**Created:** [August 17, 2023, 7:23am UTC](https://root-forum.cern.ch/t/mathscr-p-not-working/56056 "2023-08-17T07:23:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hushnud](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/ea5d25/32.png) [@hushnud](https://root-forum.cern.ch/u/hushnud)\
**Post date:** [August 17, 2023, 7:23am UTC](https://root-forum.cern.ch/t/mathscr-p-not-working/56056/1 "2023-08-17T07:23:26Z")

</div>

I am trying to write \mathscr{P} as the  
Title for the x-axis of a graph. But this is not working. But for other alphabets, this is giving a calligraphic letter. Can anyone suggest me how to resolve this issue.

---

<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:** [August 17, 2023, 8:25am UTC](https://root-forum.cern.ch/t/mathscr-p-not-working/56056/2 "2023-08-17T08:25:16Z")

</div>

Welcome to the ROOT forum

What do you want to achieve exactly?

---

<div class="post-metadata">

**Author:** ![hushnud](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/ea5d25/32.png) [@hushnud](https://root-forum.cern.ch/u/hushnud)\
**Post date:** [August 17, 2023, 9:22am UTC](https://root-forum.cern.ch/t/mathscr-p-not-working/56056/3 "2023-08-17T09:22:27Z")

</div>

Thanks for your quick reply. I want to write the calligraphic font for letter P.

---

<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:** [August 17, 2023, 9:35am UTC](https://root-forum.cern.ch/t/mathscr-p-not-working/56056/4 "2023-08-17T09:35:15Z")

</div>

It seems `mathsrc` works for all letters but not for P … let me investigate.

---

<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:** [August 17, 2023, 11:24am UTC](https://root-forum.cern.ch/t/mathscr-p-not-working/56056/5 "2023-08-17T11:24:21Z")

</div>

Really weird:

```auto
void calligraphic()
{
   auto t01 = new TLatex(.1,.9,"A : \\mathscr{A}"); t01->Draw();
   auto t02 = new TLatex(.1,.8,"B : \\mathscr{B}"); t02->Draw();
   auto t03 = new TLatex(.1,.7,"C : \\mathscr{C}"); t03->Draw();
   auto t04 = new TLatex(.1,.6,"D : \\mathscr{D}"); t04->Draw();
   auto t05 = new TLatex(.1,.5,"E : \\mathscr{E}"); t05->Draw();
   auto t06 = new TLatex(.1,.4,"F : \\mathscr{F}"); t06->Draw();
   auto t07 = new TLatex(.1,.3,"G : \\mathscr{G}"); t07->Draw();
   auto t08 = new TLatex(.1,.2,"H : \\mathscr{H}"); t08->Draw();
   auto t09 = new TLatex(.1,.1,"I : \\mathscr{I}"); t09->Draw();

   auto t11 = new TLatex(.2,.9,"J : \\mathscr{J}"); t11->Draw();
   auto t12 = new TLatex(.2,.8,"K : \\mathscr{K}"); t12->Draw();
   auto t13 = new TLatex(.2,.7,"L : \\mathscr{L}"); t13->Draw();
   auto t14 = new TLatex(.2,.6,"M : \\mathscr{M}"); t14->Draw();
   auto t15 = new TLatex(.2,.5,"N : \\mathscr{B}"); t15->Draw();
   auto t16 = new TLatex(.2,.4,"O : \\mathscr{O}"); t16->Draw();
   auto t17 = new TLatex(.2,.3,"P : \\mathscr{P}"); t17->Draw();
   auto t18 = new TLatex(.2,.2,"Q : \\mathscr{Q}"); t18->Draw();
   auto t19 = new TLatex(.2,.1,"R : \\mathscr{R}"); t19->Draw();

   auto t21 = new TLatex(.3,.9,"S : \\mathscr{S}"); t21->Draw();
   auto t22 = new TLatex(.3,.8,"T : \\mathscr{T}"); t22->Draw();
   auto t23 = new TLatex(.3,.7,"U : \\mathscr{U}"); t23->Draw();
   auto t24 = new TLatex(.3,.6,"V : \\mathscr{V}"); t24->Draw();
   auto t25 = new TLatex(.3,.5,"W : \\mathscr{W}"); t25->Draw();
   auto t26 = new TLatex(.3,.4,"X : \\mathscr{X}"); t26->Draw();
   auto t27 = new TLatex(.3,.3,"Y : \\mathscr{Y}"); t27->Draw();
   auto t28 = new TLatex(.3,.2,"Z : \\mathscr{Z}"); t28->Draw();
}

```

Only P is falling:

 ![Screenshot 2023-08-17 at 13.23.38](https://root-forum.cern.ch/uploads/default/original/3X/7/1/711dd9050797cbc1ac7d29cbcab4e8b66bee1c2f.png)

---

<div class="post-metadata">

**Author:** ![hushnud](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/ea5d25/32.png) [@hushnud](https://root-forum.cern.ch/u/hushnud)\
**Post date:** [August 17, 2023, 3:28pm UTC](https://root-forum.cern.ch/t/mathscr-p-not-working/56056/6 "2023-08-17T15:28:26Z")

</div>

I am facing the same issue. The mathscr is failing.

---

<div class="post-metadata">

**Author:** ![hushnud](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/ea5d25/32.png) [@hushnud](https://root-forum.cern.ch/u/hushnud)\
**Post date:** [August 18, 2023, 6:14am UTC](https://root-forum.cern.ch/t/mathscr-p-not-working/56056/7 "2023-08-18T06:14:22Z")

</div>

Is it possible to use mathcal in ROOT6.

---

<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:** [August 18, 2023, 3:18pm UTC](https://root-forum.cern.ch/t/mathscr-p-not-working/56056/8 "2023-08-18T15:18:45Z")

</div>

I have contacted the author of this code (TMathText). I have not clue why only P is not working.
