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,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):
|
||||
|
|
Loading…
Reference in a new issue