JelteF / PyLaTeX

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

pylatex.Package should default to NoEscape #327

Open mmarras opened 3 years ago

mmarras commented 3 years ago

Would it make sense to have pylatex.Package use NoEscape by default?

Otherwise all packages with - in the title need special enclosure in pylatex.NoEscape().

There are plenty of packages that are affected, for example all pgf-* or pst-* packages or many Font-type packages ending in *-otf. Package names otherwise should behave well and not contain special characters by default anyways.