test if 'lmodern' exists

This commit is contained in:
romjerome 2019-12-14 19:10:51 +01:00 committed by GitHub
parent e8b63987ac
commit fe0f125ad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,7 +350,9 @@ class TreeDocBase(BaseDoc, TreeDoc):
if lang in LANG_SUPPORT: if lang in LANG_SUPPORT:
self.write(0, '\\gtrset{language=%s}\n' % lang) self.write(0, '\\gtrset{language=%s}\n' % lang)
if lang in LATIN: if lang in LATIN:
self.write(0, '\\usepackage{lmodern}\n') self.write(0, '\\IfFileExists{lmodern.sty}{\n')
self.write(0, ' \\usepackage{lmodern}\n')
self.write(0, '}{}\n')
self.write(0, '\\begin{document}\n') self.write(0, '\\begin{document}\n')
if self.nodecolor == 'preferences': if self.nodecolor == 'preferences':