Python script to ease the translation of strings into latex files to other languages (python 3)
This script replaces non-text contents of the latex files (e.g., equation, figure, tikz) and all commands (e.g., \frametitle{.}, \section{.},
Usage:
- Code tex file:
python latextlt.py -f yourlatexfile.tex
- Translate yourlatexfile.CODED.txt using google translator or similar
- Decode translation file:
python latextlt.py -d -f yourlatexfile.tex > yourlatexfile.tlt.tex
- Manually review the output yourlatexfile.tlt.tex