JelteF / PyLaTeX

A Python library for creating LaTeX files
https://jeltef.github.io/PyLaTeX/
MIT License
2.27k stars 288 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 1 year ago

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