add driver and ins file generics
This commit is contained in:
parent
edacb9615c
commit
f7575ccd0c
1 changed files with 34 additions and 1 deletions
|
@ -32,4 +32,37 @@ YAML_TEX_OUT_TYPE = 'outtype'
|
|||
YAML_TEXT = 'text'
|
||||
YAML_REPO = 'repo'
|
||||
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}}'
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue