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.

closed as too broad by Máté Juhász, fixer1234, bertieb, Ƭᴇcʜιᴇ007, Kamil Maciorowski Nov 30 '18 at 17:17

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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 Dec 19 '13 at 14:40
  • 2
    Your 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 Nov 28 '18 at 7:27
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

Not the answer you're looking for? Browse other questions tagged or ask your own question.