add properties for tex type and flavour
This commit is contained in:
parent
180eae4f12
commit
3f25502be4
1 changed files with 22 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue