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 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-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 right here on chronowerks. If you are interested in contributing drop me a mail.
Simon Wilper s.x.w--remove-the-dots--@chronowerks.de
E-Mail Address is Jabber ID. Don't send HTML Mails!
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.