2021-10-08 16:12:48 +02:00
|
|
|
from formatter import Formatter
|
2021-10-06 18:23:41 +02:00
|
|
|
from config import DEFAULT_AUTHOR
|
2021-10-08 16:12:48 +02:00
|
|
|
from replacements import make_default_commands
|
2021-10-06 17:08:53 +02:00
|
|
|
|
|
|
|
|
2021-10-08 16:12:48 +02:00
|
|
|
class PackageFormatter(Formatter):
|
|
|
|
def __init__(self, package_name: str, author: str = DEFAULT_AUTHOR, extra_header: str = ''):
|
|
|
|
Formatter.__init__(self, package_name, author, extra_header, '.sty')
|
2021-10-06 17:08:53 +02:00
|
|
|
|
2021-10-08 16:12:48 +02:00
|
|
|
def make_default_macros(self):
|
|
|
|
make_default_commands(self, 'package')
|
2021-10-06 17:08:53 +02:00
|
|
|
|