How can I write an .odt programmatically?

2

I would like to write an .odt file programmatically e.g. include figures from a directory or use different style writing code (like a LaTeX document).

I wonder how can I compile an .odt file and if there are any, which is the best python libraries to do that.

G M

Posted 2013-12-19T14:33:44.427

Reputation: 197

Question was closed 2018-11-30T17:17:16.863

2Your question is off-topic here now. It's about programming (-> stackoverflow), but also too broad as the topic you ask is just too long to be answered correctly. Regarding the best library to use it's software / tool recommendation, which is again off-topic here. – Máté Juhász – 2018-11-28T07:27:25.147

Related: How to convert .tex into .odt? on Ask Ubuntu Or try Google for "latex2odt" which brought me plenty of interesting-looking hits.

– a CVn – 2013-12-19T14:40:17.647

Answers

2

Writing a library to do this would be considerably harder then your are anticipating.

Instead, convert the .tex file into an intermediary format, such as HTML (or PDF) and then convert it again into .odt using already existing tools.

Source/Example

David

Posted 2013-12-19T14:33:44.427

Reputation: 6 593