2021-10-18 15:08:58 +02:00
|
|
|
import PyTeX.formatter
|
|
|
|
import PyTeX.base
|
|
|
|
import PyTeX.macros
|
|
|
|
|
|
|
|
|
|
|
|
class PackageFormatter(PyTeX.formatter.TexFormatter):
|
2021-12-17 15:09:04 +01:00
|
|
|
def __init__(self, package_name: str, author: str, extra_header: [str] = [],
|
|
|
|
latex_name: str = 'prepend-author'):
|
|
|
|
PyTeX.formatter.TexFormatter.__init__(self, package_name, author, extra_header, '.sty', latex_name)
|
2021-10-18 15:08:58 +02:00
|
|
|
|
|
|
|
def make_default_macros(self):
|
|
|
|
PyTeX.macros.make_default_macros(self, 'package')
|