fix filename in case it contains - already in expl3 case
This commit is contained in:
parent
5abd408b38
commit
8f46af0ee8
1 changed files with 5 additions and 2 deletions
|
@ -186,9 +186,12 @@ 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:
|
||||
if self.config.tex_flavour == TeXFlavour.LaTeX3:
|
||||
return self.raw_name.replace('-', '_')
|
||||
else:
|
||||
return self.raw_name
|
||||
|
||||
|
|
Loading…
Reference in a new issue