add driver and ins file generics

This commit is contained in:
Maximilian Keßler 2022-02-17 20:03:21 +01:00
parent edacb9615c
commit f7575ccd0c

View file

@ -32,4 +32,37 @@ YAML_TEX_OUT_TYPE = 'outtype'
YAML_TEXT = 'text' YAML_TEXT = 'text'
YAML_REPO = 'repo' YAML_REPO = 'repo'
YAML_PYTEX = 'pytex' YAML_PYTEX = 'pytex'
YAML_DOCSTRIP = 'docstrip' YAML_DOCSTRIP = 'docstrip'
INS_FILE = [
r'\begingroup',
r'\input docstrip.tex',
r'\keepsilent',
r'\usedir{{{directory}}}',
r'\preamble',
r'___________________________________________________________',
r'{preamble}',
r'',
r'\endpreamble',
r'\postamble',
r'',
r'{postamble}',
r'',
r'\endpostamble',
r'\askforoverwritefalse',
r''','''
r'\generate{{\file{{{{outfile}}}{{\from{{{infile}}}{{{guards}}}}}}}',
r''','''
r'\def\tmpa{{plain}}',
r'\ifx\tmpa\fmtname\endgroup\expandafter\bye\fi',
r'\endgroup',
]
DRV_FILE = [
r'\documentclass{{{documentclass}}}',
r'{{{preamble}}}',
r'\begin{{document}}',
r'\DocInput{{{infile}}}',
r'\end{{document}}'
]