alexpovel / latex-cookbook

A comprehensive LaTeX template with examples for theses, books and more, employing the 'latest and greatest' (UTF8, glossaries, fonts, ...). The PDF artifact is built using CI/CD, with a Python testing framework.
MIT License
217 stars 20 forks source link

Improve syntax highlighting #1

Closed alexpovel closed 2 years ago

alexpovel commented 2 years ago

Original issue (2021-01-20): https://collaborating.tuhh.de/alex/latex-cookbook/-/issues/3

Problem to solve

Improve syntax highlighting.

Proposal

Currently using listings, which just isn't all that great:

https://collaborating.tuhh.de/alex/latex-git-cookbook/-/blob/7038798dadae0ba954af73c850865fcc507e9445/cookbook.cls#L178

The package hasn't been updated in almost a year despite me actually sending in some working code for Python 3 (package still stuck on Python 2) and MATLAB.

Maybe use minted, although that hasn't been updated in three years.

The main reason I decided against minted originally is that it requires Python and its pygments library (see also here). However, if we facilitate Docker usage even more (aka basically force people to use it...), this is not a blocker anymore.

alexpovel commented 2 years ago

Done in 19fbd878 .