JelteF / PyLaTeX

A Python library for creating LaTeX files
https://jeltef.github.io/PyLaTeX/
MIT License
2.24k stars 287 forks source link

Modern defaults for pylatex.Document #343

Open Erotemic opened 2 years ago

Erotemic commented 2 years ago

I just spent some time debugging an issue that ultimately stems from pylatex.Document defaults that don't seem to be needed with modern latex distributions.

The lovely people on Tex Stack Exchange helped me a lot in figuring this out: https://tex.stackexchange.com/questions/627493/latex-rendering-unicode-plus-minus-%c2%b1-symbol-incorrectly

The gist as far as I understand it, is that inputenc, lmodern, and textcomp are no longer needed. In fact, they can produce incorrect results if they are loaded (see the above issue).

It might make sense to either change their defaults or detect if a modern latex compiler is used and warn if these packages exist in the document.

rmattes commented 10 months ago

Any news on this? This is biting me as well.