pytex/default_formatters/package_formatter.py
Maximilian Keßler 315e3647ab handle package naming style
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.
2021-12-17 15:09:04 +01:00

12 lines
454 B
Python

import PyTeX.formatter
import PyTeX.base
import PyTeX.macros
class PackageFormatter(PyTeX.formatter.TexFormatter):
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)
def make_default_macros(self):
PyTeX.macros.make_default_macros(self, 'package')