25 lines
435 B
Plaintext
25 lines
435 B
Plaintext
|
|
||
|
For Writer
|
||
|
----------
|
||
|
|
||
|
Set autostyle in table
|
||
|
~~~~~~~~~~~~~~~~~~~~~~
|
||
|
|
||
|
.. code-block:: python
|
||
|
|
||
|
def writer_table_set_style():
|
||
|
doc = app.active
|
||
|
table = doc.tables[0]
|
||
|
table.style = 'Academic'
|
||
|
return
|
||
|
|
||
|
|
||
|
Insert math formula
|
||
|
~~~~~~~~~~~~~~~~~~~
|
||
|
|
||
|
.. code-block:: python
|
||
|
|
||
|
formula = '%LAMBDA_{deg","t}=1 + %alpha_deg SQRT {M_t over M_{(t=0)}-1}~"."'
|
||
|
text = app.selection
|
||
|
text.insert_math(formula)
|