2021-10-18 15:08:58 +02:00
|
|
|
import PyTeX.formatter
|
|
|
|
import PyTeX.base
|
|
|
|
import PyTeX.macros
|
|
|
|
|
|
|
|
|
|
|
|
class PackageFormatter(PyTeX.formatter.TexFormatter):
|
2021-10-22 14:45:32 +02:00
|
|
|
def __init__(self, package_name: str, author: str, extra_header: [str] = []):
|
2021-10-18 15:55:26 +02:00
|
|
|
PyTeX.formatter.TexFormatter.__init__(self, package_name, author, extra_header, '.sty')
|
2021-10-18 15:08:58 +02:00
|
|
|
|
|
|
|
def make_default_macros(self):
|
|
|
|
PyTeX.macros.make_default_macros(self, 'package')
|