No blank space after latex command

Hello experts,
I am trying to set a title of an axis like this:

Ax->SetTitle(“#mu b”)
The problem is that this is compiled as “µ b” instead of “µb”.
Is there any way to solve this?
Thanks,
Emil

Hi,
try

Ax->SetTitle("#mub")

instead of

Ax->SetTitle("#mu b")

That was easier than expected, thank you!

TLatex, unlike TMathText, does not ignore the blanks.
TMathText way: Ax->SetTitle("\\mu b")

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