Skip to content

A small python program to create multiple-language LaTeX documents (like resumes) from a single XML file

Notifications You must be signed in to change notification settings

Nijin22/resumetolatex

Repository files navigation

resumeToLatex

A small python program to create multiple-language LaTeX documents (like resumes) from a single XML file.

Prerequisites

  • python3
  • lxml (pip install lxml)

Usage

  • Create a (or modify the attached) template_LANG.tex file. Where LANG is the two-letter language code (e.g. en for English, de for German, ...). Use the Cheetah3 template engine syntax.
    • To get a printable ampersand &, use &
  • Edit your personal data in resume_data.xml
    • If you want a data field to have a different value in a certain language, use the lang="en" attribute to specify which language is meant.
  • Execute resumetolatex: python .\resumetolatex lang1 lang2 .... This will generate a file filledTemplate_LANG.tex for each language
  • Compile the file(s) with your favorite LaTeX compiler.

Full chain (example)

python .\resumetolatex de en; latexmk -pdf -silent "filledTemplate_de.tex"; latexmk -pdf -silent "filledTemplate_en.tex"; latexmk -c; rm filledTemplate_de.tex; rm filledTemplate_en.tex;

Usage as GitHub webhook

This repository also includes a hook.php file. By renaming and editing the corresponding config.php.example file, you can setup a GitHub webhook to automatically re-make your resume when the master branch changes.

About

A small python program to create multiple-language LaTeX documents (like resumes) from a single XML file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published