zaz/doc/build/_sources/main/examples_writer.rst.txt

25 lines
435 B
Plaintext
Raw Normal View History

2021-06-25 22:55:52 -05:00
For Writer
2021-07-11 22:31:59 -05:00
----------
2021-06-25 22:55:52 -05:00
Set autostyle in table
2021-07-11 22:31:59 -05:00
~~~~~~~~~~~~~~~~~~~~~~
2021-06-25 22:55:52 -05:00
.. code-block:: python
def writer_table_set_style():
doc = app.active
table = doc.tables[0]
table.style = 'Academic'
return
2021-07-11 22:31:59 -05:00
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)