xkeyval process options: also parse options from document class

This commit is contained in:
Maximilian Keßler 2021-10-08 20:01:23 +02:00
parent 6c0dee2511
commit 4409c94af5

View file

@ -56,7 +56,7 @@ def make_default_commands(formatter: Formatter, latex_file_type: str):
name=Attributes.name_lowercase, error=Args.one, Type=latex_file_type.capitalize())
formatter.add_replacement('end options x',
r"\DeclareOptionX*{{\{Type}Warning{{{name_lowercase}}}"
r"{{Unknown '\CurrentOption'}}}}" + '\n' + r'\ProcessOptionsX\relax' + '\n',
r"{{Unknown '\CurrentOption'}}}}" + '\n' + r'\ProcessOptionsX*\relax' + '\n',
name_lowercase=Attributes.name_lowercase, Type=latex_file_type.capitalize())
formatter.add_replacement('end options',
r"\DeclareOption*{{\{Type}Warning{{{name_lowercase}}}"