TeXLiP (La)TeX language-agnostic literate programming tool How to use Run python texlip.py INPUT.TEX Have a look at sample-input.tex, then run: python texlip.py sample-input.tex and check the files and directories TeXLiP that created.