add properties for tex type and flavour

This commit is contained in:
Maximilian Keßler 2022-02-09 11:39:58 +01:00
parent 180eae4f12
commit 3f25502be4

View file

@ -390,6 +390,27 @@ class FormattingConfig(Config):
else: else:
return self._escape_character return self._escape_character
@property
def tex_type(self) -> TeXType:
if self._tex_type is None:
return TeXType.TeXClass
else:
return self._tex_type
@tex_type.setter
def tex_type(self, tex_type: TeXType):
self._tex_type = tex_type
@property
def tex_flavour(self) -> TeXFlavour:
if self._tex_flavour is None:
return TeXFlavour.LaTeX2e
else:
return self._tex_flavour
@tex_flavour.setter
def tex_flavour(self, tex_flavour: TeXFlavour) -> None:
self._tex_flavour = tex_flavour
class DocFormattingConfig: class DocFormattingConfig:
def __init__(self): def __init__(self):