Skip to content
Snippets Groups Projects
Commit f4506507 authored by Olivier Couet's avatar Olivier Couet
Browse files

Treat \mbox as \hbox to improve the compatibility with TTexDump.

parent 9d5c4b7e
No related branches found
No related tags found
No related merge requests found
...@@ -630,7 +630,7 @@ void TMathText::PaintMathText(Double_t x, Double_t y, Double_t angle, ...@@ -630,7 +630,7 @@ void TMathText::PaintMathText(Double_t x, Double_t y, Double_t angle,
if (newText.Length() == 0) return; if (newText.Length() == 0) return;
// Compatibility with TLatex // Compatibility with TLatex and Latex
newText.ReplaceAll("\\omicron","o"); newText.ReplaceAll("\\omicron","o");
newText.ReplaceAll("\\Alpha","A"); newText.ReplaceAll("\\Alpha","A");
newText.ReplaceAll("\\Beta","B"); newText.ReplaceAll("\\Beta","B");
...@@ -646,6 +646,7 @@ void TMathText::PaintMathText(Double_t x, Double_t y, Double_t angle, ...@@ -646,6 +646,7 @@ void TMathText::PaintMathText(Double_t x, Double_t y, Double_t angle,
newText.ReplaceAll("\\Tau","T"); newText.ReplaceAll("\\Tau","T");
newText.ReplaceAll("\\Chi","X"); newText.ReplaceAll("\\Chi","X");
newText.ReplaceAll("\\varomega","\\varpi"); newText.ReplaceAll("\\varomega","\\varpi");
newText.ReplaceAll("\\mbox","\\hbox");
if (newText.Contains("\\frac")) { if (newText.Contains("\\frac")) {
Int_t len,i1,i2; Int_t len,i1,i2;
TString str; TString str;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment