pytex/package_formatter.py

13 lines
408 B
Python
Raw Normal View History

from formatter import Formatter
from config import DEFAULT_AUTHOR
from replacements import make_default_commands
2021-10-06 17:08:53 +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
def make_default_macros(self):
make_default_commands(self, 'package')
2021-10-06 17:08:53 +02:00