What if I told you you can convert ODT to TeX files without having
Libre/OpenOffice installed?
– Simon Wilper 11/2015
People that do not want to go through the hazzle of installing a complete compiler toolchain under Windows can also download a prebuilt binary with all dependencies:
odt2tex
is a simple command line tool that converts ODT
(Libre/OpenOffice text documents) to LaTeX .tex input files. It is released
under the MIT license and written in plain
C depending only on two further libraries:
The project is in early development stage. The following features are supported yet:
Planned features:
If you have any requests feel free to set up an issue in the Github issue tracker or send me a mail.
Example of a very simple document conversion (click image for lager version):
Office Source Document | Converted Document |
A very simple test proof-of-conceptdocument: |
|
![]() |
![]() |
Math equations are written to a IEEEeqnarray : |
|
![]() |
![]() |
odt2tex
opens the ZIP file to access the contents.xml
feeding that to the expat XML parser. All embedded objects like
math or pictures are extracted first. The output is a
main.tex
file that can be processed by
pdflatex
to obtain a PDF file.
Development takes place at Github. Feel free to send pull request if interested to contribute.
Simon Wilper sxw@chronowerks.de