Maximilian Keßler
315e3647ab
Option --name can now be set to either raw or prepend-author this controls the derivation of the name of the formatted package from the source file read in.
12 lines
446 B
Python
12 lines
446 B
Python
import PyTeX.formatter
|
|
import PyTeX.base
|
|
import PyTeX.macros
|
|
|
|
|
|
class ClassFormatter(PyTeX.formatter.TexFormatter):
|
|
def __init__(self, class_name: str, author: str, extra_header: [str] = [],
|
|
latex_name: str = 'prepend-author'):
|
|
PyTeX.formatter.TexFormatter.__init__(self, class_name, author, extra_header, '.cls', latex_name)
|
|
|
|
def make_default_macros(self):
|
|
PyTeX.macros.make_default_macros(self, 'class')
|