Hello,
I'm trying to figure out how to modify the horizontal alignment of an equation using Equation() in the report generator and also embed it into a paragraph or table.
The code is similar to the following:
import mlreportgen.dom.*;
import mlreportgen.report.*
d=Report('Myreport','pdf');
open(d);
Equ=Equation();
Equ.Content='10\leq\beta\leq40';
Equ.FontSize = 12;
The problem is, the equation is always placed at the center of a line, while in my report it's required to put it inline with other texts or in a table. I already used "append" and "add" together but it didn't work.
A code that doesn't work is similar to:
tablequ=Table({Equ});
tablequ.TableEntriesVAlign=('middle');
tablequ.TableEntriesHAlign=('left');
add(d,tablequ);
close(d);
What is desplayed is : "[1×1 mlreportgen.report.Equation]"
Any help is most appreciated.
Yasser
Best Answer