Skip to content

Instantly share code, notes, and snippets.

@clemsos
Created July 29, 2014 10:12
Show Gist options
  • Save clemsos/35d31c84c155a0ee7859 to your computer and use it in GitHub Desktop.
Save clemsos/35d31c84c155a0ee7859 to your computer and use it in GitHub Desktop.
Couvert Word (.odt) files to Latex
#!/bin/bash
w2l -config ./w2l-config.xml chapitre-xxx.odt chapters/chapitre-xxx.tex
<?xml version="1.0" encoding="UTF-8" ?>
<config>
<option name="no_preamble" value="true" />
<option name="use_color" value="false" />
<option name="multilingual" value="false" />
<option name="use_bibtex" value="false" />
<option name="formatting" value="convert_basic" />
<option name="page_formatting" value="convert_all" />
<heading-map max-level="4">
<heading-level-map writer-level="1" name="chapter" level="0" />
<heading-level-map writer-level="2" name="section" level="1" />
<heading-level-map writer-level="3" name="subsection"
level="2" />
<heading-level-map writer-level="4" name="subsubsection"
level="3" />
</heading-map>
<custom-preamble />
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment