add_la_te_x_equation method

add_la_te_x_equation(self, top_row, top, left_column, left, height, width, latex)

Adds an equation object to the worksheet using LaTeX format strings.

Returns


def add_la_te_x_equation(self, top_row, top, left_column, left, height, width, latex):
    ...
ParameterTypeDescription
top_rowintThe top row index.
topintThe vertical offset its top row, in unit of pixel.
left_columnintThe left column index.
leftintThe horizontal offset from its left column, in unit of pixel.
heightintThe height of equation, in unit of pixel.
widthintThe width of equation, in unit of pixel.
latexSystem.StringLaTeX format string

Example


#  LaTeX format string.
latex = "\\alpha +  \\frac{\\partial^2}{\\partial x_1\\partial x_2}y - \\left ( a + b \\right )+_{a}^{b}\\beta"
#  Adds an equation object to the worksheet.
textBox = shapes.add_la_te_x_equation(1, 0, 1, 0, 100, 300, latex)

See Also