JelteF / PyLaTeX

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

Error in appending Package #276

Open MShirazAhmad opened 4 years ago

MShirazAhmad commented 4 years ago

python command: doc.packages.append(Package('exam-randomizechoices')) dumps: \usepackage{exam{-}randomizechoices}%

How to remove curly brackets around '-'?

JelteF commented 4 years ago

I think this should work:

doc.packages.append(Package(NoEscape('exam-randomizechoices')))