Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The LaTeX Template Generator

The LaTeX Template Generator

This talk presents the idea behing the "LaTeX Template Generator" (LTG). The LTG generates LaTeX templates based on "best practices" in package usage. It is available at https://github.com/latextemplates/generator-latex-template.

Oliver Kopp

November 20, 2022
Tweet

More Decks by Oliver Kopp

Other Decks in Programming

Transcript

  1. The LaTeX Template Generator Dr. Oliver Kopp JabRef Maintainer https://github.com/koppor/

  2. 2 About Me  LaTeX since beginning of 2000 

    JabRef developer since 2011  Maintainer of JabRef  Maintainer of LaTeX templates
  3. 3 Scientific Thesis Template http://latextemplates.github.io/scientific-thesis-template/

  4. 4 LNCS Template https://latextemplates.github.io/LNCS/

  5. 5 IEEE https://latextemplates.github.io/IEEE/

  6. 6 University of Stuttgart Dissertation Template

  7. 7 University of Applied Sciences Esslingen

  8. 8 Template Confusion https://github.com/johannesbottcher/templateConfusion

  9. 9 Creative CV Template

  10. 10 What about minimal working examples for each package?

  11. 11 Proposed Solution

  12. 12 Roles and Artifacts of Proposed Solution microtype hyperref cmap

    selnolig babel hypcap LNCS IEEE Master Thesis Dissertation main.tex README.md .latexmkrc .gitignore package expert tooling expert template expert content expert latexmk
  13. 14 User Experience

  14. 15 Installation  Install NodeJS  Windows with Chocolatey: choco

    install nodejs  npm install -g yo generator-latex-template
  15. 16 User experience: Start generator

  16. 17 User experience: Choice of LaTeX Compiler

  17. 18 User experience: Choice of BibTeX tool

  18. 19 User experience: Document language

  19. 20 User experience: Use Cleveref?

  20. 21 User experience: File generation

  21. 22 LaTeX Compilation

  22. 23 Implementation How to Contriute?

  23. 24 Technical Details: Use Yeoman As Template Generator Context and

    Problem Statement We want to generate the template automatically Considered Options  Yeoman - proposed by @miwurster. Currently in use in different projects  Andi-Lo/generator-latex  LeoColomb/generator-latex  Jinja2 - recommended by @mfa, also because of http://eosrei.net/articles/2015/11/latex-templates-python-and-jinja2-generate-pdfs  Cheetah - recommended at tex.stackexchange.com/q/41875/9075  Apache Velocity - recommended by http://tex-talk.net/2012/03/generating-latex-code- with-a-template-engine  lualatex - recommended by @Stefan-Kottwitz at http://tex- talk.net/2012/03/generating-latex-code-with-a-template-engine/#comment-231 Decision Outcome Chosen option: “Yeoman”, because it seems to be the most easy to use generator.
  24. 25 Templates for README.md README.en.md README.de.md Template syntax: https://ejs.co/

  25. 26 Template for main.tex

  26. 27 Template: cleveref.en.preamble.tex

  27. 28 Template: figure.en.example.tex

  28. 29 Questions: Listed in index.js

  29. 30 Result: main.tex

  30. 31 Summary and Outlook

  31. 32 Roles and Artifacts of Proposed Solution microtype hyperref cmap

    selnolig babel hypcap LNCS IEEE Master Thesis Dissertation main.tex README.md .latexmkrc .gitignore package expert tooling expert template expert content expert latexmk
  32. 33 Summary and Outlook https://github.com/latextemplates/generator-latex-template | https://github.com/koppor/

  33. 34 Summary and Outlook https://github.com/latextemplates/generator-latex-template | https://github.com/koppor/ • First MVP

    • Release on npm • Support • LNCS • IEEE • LNI • Dissertation • Scientific Thesis Template