Latex document generator