ODT2TeX

What if I told you you can convert ODT to TeX files without having Libre/OpenOffice installed?
– Simon Wilper 11/2015

Download

Source Snapshots

Windows Binary Build

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:

Distribution Packages

What?

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:

libzip
library for opening and reading ZIP archives since Libre/OpenOffice files are ZIP compressed archives
expat
lightweight event based XML parser

The project is in early development stage. The following features are supported yet:

Planned features:

If you have any requests feel free to send me an E-Mail.

Example of a very simple document conversion (click image for lager version):

Office Source Document Converted Document
A very simple test proof-of-concept document:
Office Source Document Converted PDFLaTeX Document
Math equations are written to a IEEEeqnarray:
Office Source Document Converted PDFLaTeX Document

How?

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.

Where?

Development takes place right here on chronowerks. If you are interested in contributing drop me a mail.

Who?

Simon Wilper s.x.w--remove-the-dots--@chronowerks.de

E-Mail Address is Jabber ID. Don't send HTML Mails!

GPG Public Key

pub   rsa4096 2013-07-28 [SC]
      E4F9C79F4F55017840CBEFAB5441232C97449D0E
uid           [ultimate] Simon Wilper <s.x.w--remove-the-dots--@chronowerks.de>
sub   rsa4096 2013-07-28 [E]
      

IRC: I normally hang out at #archlinux-{devops,releng} (Nick is sxw) on the libera network. You can drop me a query but be patient as I might not see it right away.