# Superscript symbol ^ won't appear when using PadEditor and superscript won't work

**URL:** <https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018>\
**Category:** ROOT\
**Created:** [May 12, 2019, 12:53am UTC](https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018 "2019-05-12T00:53:13Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![OtaviusDecius](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/otaviusdecius/32/31051_2.png) [@OtaviusDecius](https://root-forum.cern.ch/u/OtaviusDecius)\
**Post date:** [May 12, 2019, 12:53am UTC](https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018/1 "2019-05-12T00:53:14Z")

</div>

Hi there,  
I am trying to make a superscript 2 x 10^{7} on canvas PadEditor but ^ symbol does not show up and as a consequence superscript won’t work. My Root version is 6.16/00.  
Is it a bug or am I missing something?  
Thanks in advance for the help.  
Luiz

* * *

\_ROOT Version: 6.16/00  
\_Platform: Linux Fedora 29  
\_Compiler: gcc (GCC) 8.3.1 20190223 (Red Hat 8.3.1-2)

* * *

---

<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:** [May 13, 2019, 9:29am UTC](https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018/2 "2019-05-13T09:29:24Z")

</div>

You mean from the toolbar displayed when you do show toolbar ?  
I see the same. I will check.

---

<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:** [May 13, 2019, 9:38am UTC](https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018/3 "2019-05-13T09:38:33Z")

</div>

I see the same because my keyboard is the “US International” mode.  
Is it the same for you ?

---

<div class="post-metadata">

**Author:** ![OtaviusDecius](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/otaviusdecius/32/31051_2.png) [@OtaviusDecius](https://root-forum.cern.ch/u/OtaviusDecius)\
**Post date:** [May 13, 2019, 2:03pm UTC](https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018/4 "2019-05-13T14:03:47Z")

</div>

I swap from US Int. to US keyboard layout and no luck. When I type 2x10^{-7} in the y-axis label box on PadEditor, the symbol ^ won’t appear, so I can not get the superscript number. I have also changed my whole root 6.16 install unsuccessfully. Still ^ won’t work.

---

<div class="post-metadata">

**Author:** ![ksmith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ksmith/32/12567_2.png) [@ksmith](https://root-forum.cern.ch/u/ksmith)\
**Post date:** [May 13, 2019, 2:24pm UTC](https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018/5 "2019-05-13T14:24:00Z")

</div>

When you type the caret `^` character the caption switches to a LaTeX type math mode (See [`TLatex`](https://root.cern.ch/doc/master/classTLatex.html)). This causes the sequence `^{7}` to create a superscript number seven without displaying the caret character. To stop this action and force the caret to display you need to add a backslash before the caret `\^`.

There is a bug here though, the following sequence does not provide spacing for the caret character and the subsequent character overlaps it.

```auto
2 \times 10 \^ 7

```

You can overcome this by adding a forced space `\,`, but I feel this should be done automatically.

```auto
2 \times 10 \^ \, 7

```

In addition, as I have used above I would recommend switching to using `\times` instead of `x` as it produces a cleaner read.

What is wrong with a superscript seven as opposed to a `^7`? It removes a character and produces an output that is more human readable in my opinion.

Finally, while researching this I discovered that entering `\^{}` causes a crash. And it appears that a number of other LaTeX type commands cause a crash, `\hat{}` for example.

---

<div class="post-metadata">

**Author:** ![OtaviusDecius](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/otaviusdecius/32/31051_2.png) [@OtaviusDecius](https://root-forum.cern.ch/u/OtaviusDecius)\
**Post date:** [May 13, 2019, 2:40pm UTC](https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018/6 "2019-05-13T14:40:04Z")

</div>

When I type caret symbol ^ or backslash caret ^ in the y-axis title box (PadEditor) nothing happens, caret do not show up. I am using US keyboard layout. (This page is not showing the backslash though).

---

<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:** [May 13, 2019, 3:16pm UTC](https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018/7 "2019-05-13T15:16:51Z")

</div>

That’s seems to be some Guide text filed issue. @bellenot told me it works fine for him on windows. He may have an idea.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 13, 2019, 3:34pm UTC](https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018/8 "2019-05-13T15:34:39Z")

</div>

Yes, it works fine on Windows. I’ll try on a Linux machine asap and let you know

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 13, 2019, 3:42pm UTC](https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018/9 "2019-05-13T15:42:56Z")

</div>

So the ROOT master branch works for me on a CentOS 7 machine, connected from Windows via PuTTY and Xming

---

<div class="post-metadata">

**Author:** ![ksmith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ksmith/32/12567_2.png) [@ksmith](https://root-forum.cern.ch/u/ksmith)\
**Post date:** [May 13, 2019, 5:34pm UTC](https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018/10 "2019-05-13T17:34:03Z")

</div>

> [@OtaviusDecius](#):
>
> (This page is not showing the backslash though).

You need to use code blocks to display things like backslashes:

> [@Getting the same histograms after cuts](https://root-forum.cern.ch/t/getting-the-same-histograms-after-cuts/24719/2):
>
> Remark on the way to post code snippets: When you post pieces of code on the forum enclose it with ``` . That makes your post much more readable (I systematically edit your posts that way) . So do: ``` // this is a C++ piece of code. ``` And it will display as: // this is a C++ piece of code.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 13, 2019, 6:18pm UTC](https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018/11 "2019-05-13T18:18:26Z")

</div>

Try the following. Make sure that the “Caps Lock” is off. Strike “^” (“Shift-6”) and then the “Space” bar. If it doesn’t help, strike “^” two times and then the “Space” bar.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [May 27, 2019, 6:18pm UTC](https://root-forum.cern.ch/t/superscript-symbol-wont-appear-when-using-padeditor-and-superscript-wont-work/34018/12 "2019-05-27T18:18:27Z")

</div>

Closed on May 27, 2019, 6:18pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
