I am trying to enter perpendicular symbol as a subscript in a TH1F object. Firstly, it looks weirdly aligned. Secondly, it’s vertical alignment isn’t changing despite using it in #lower[]{}. Can someone explain what’s going on? I tried using a different symbol, sigma, and there the alignment did change with #lower. Example code below:
void customizeHistogram() {
// Create a TH1F histogram
TH1F *hist = new TH1F("hist", "Example Histogram", 10, 0, 10);
// Using #lower command on the subscript part only
hist->GetXaxis()->SetTitle("X_{#lower[-0.3]{#perp} #perp}");
hist->GetYaxis()->SetTitle("Y_{#lower[0.3]{#sigma} #sigma}");
// Create a canvas and draw the histogram
auto c = new TCanvas();
hist->Draw();
}
I am sorry for the confusion. What I want to do is write {#perp}T in the subscript. But these two are not aligned properly. That’s why I tried to changed the vertical alignment of #perp using #lower. As seen in the figure, alignment of #sigma changes but #perp.
Also, I don’t want to re-align T in #perp T as #perp is already aligned very low.
Something like the one showed in this figure. The T and #perp are at the same level here. But that is not coming out in ROOT’s hist->GetXaxis()->SetTitle("X_{#perpT}");
Oh yes this works. Can I ask what exactly is happening here? When I use a different symbol like #sigma, the alignment is proper and also the lower command works on it. But when I use #perp, it is not the case.