add package error macro
This commit is contained in:
parent
d1a269b56b
commit
536b995e79
@ -47,6 +47,7 @@ def make_default_commands(package_formatter: PackageFormatter):
|
||||
info=Args.one)
|
||||
package_formatter.add_arg_replacement(1, 'warning', r'\PackageWarning{{{name}}}{{{warning}}}',
|
||||
name=Attributes.package_name, warning=Args.one)
|
||||
package_formatter.add_arg_replacement(1, 'error', r'\PackageError{{{name}}}{{{error}}}}', name=Attributes.package_name, error=Args.one)
|
||||
package_formatter.add_replacement('end options x',
|
||||
r"\DeclareOptionX*{{\PackageWarning{{{package_name}}}"
|
||||
r"{{Unknown '\CurrentOption'}}}}" + '\n' + r'\ProcessOptionsX\relax' + '\n',
|
||||
|
Loading…
Reference in New Issue
Block a user