fix filename in case it contains - already in expl3 case

This commit is contained in:
Maximilian Keßler 2022-02-19 16:42:46 +01:00
parent 5abd408b38
commit 8f46af0ee8

View file

@ -186,11 +186,14 @@ class PyTeXFormatter(FormatterIF, ABC):
if self.config.tex_flavour == TeXFlavour.LaTeX2e:
return self.shortauthor + '@' + self.raw_name
elif self.config.tex_flavour == TeXFlavour.LaTeX3:
return self.shortauthor + '_' + self.raw_name
return self.shortauthor + '_' + self.raw_name.replace('-', '_')
else:
raise NotImplementedError
else:
return self.raw_name
if self.config.tex_flavour == TeXFlavour.LaTeX3:
return self.raw_name.replace('-', '_')
else:
return self.raw_name
@property
def name(self):