Hi,
I want to draw a fraction with an integral (with limits) in the numerator, but TLatex::DrawLatex complains about *ERROR<TLatex>: Missing denominator for #frac

Here is the MWE:

void drawl()
{
TCanvas* c1 = new TCanvas();
TH1I* h = new TH1I("h", ";X;Y", 10, 0., 10.);
h->Draw();
TLatex* l = new TLatex();
// l->DrawLatex(5, 0.5, "#frac{#int v dt}{c}");//this works
l->DrawLatex(5, 0.5, "#frac{#int^{a} v dt}{c}");//this does not work
}

The integral without limits works fine, but the integral with limits breaks something down. What’s the reason for this?

I’m particularly interested in this #color[2]{...} construction - if I replace the # with the \\, there is no colorized output. If I don’t, the # is ignored and I see the word color in the numerator and denominator.