For Writer

Set autostyle in table

def writer_table_set_style():
    doc = app.active
    table = doc.tables[0]
    table.style = 'Academic'
    return

Insert math formula

formula = '%LAMBDA_{deg","t}=1 + %alpha_deg SQRT {M_t over M_{(t=0)}-1}~"."'
text = app.selection
text.insert_math(formula)