Script de création des diapositives
This commit is contained in:
parent
62a39c31bc
commit
acabd531bb
|
@ -91,13 +91,12 @@ def main():
|
|||
for skbinput in tex_skbinputs:
|
||||
rep = path.dirname(skbinput.group('tex'))
|
||||
rep = path.join(tex_skbconfig.group(skbinput.group('rep')), rep)
|
||||
basename = '{0}.tex'.format(skbinput.group('tex'))
|
||||
basename = '{0}.tex'.format(path.basename(skbinput.group('tex')))
|
||||
dest = path.join(rep, basename)
|
||||
if not path.isfile(dest):
|
||||
if not path.isdir(rep):
|
||||
print rep
|
||||
makedirs(rep)
|
||||
template = jinja_env.get_template('slide')
|
||||
template = jinja_env.get_template('frame.tex')
|
||||
env = {'title': '', 'subtitle': ''}
|
||||
rendered_template = template.render(**env)
|
||||
with open(dest, 'w') as rendered_file:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
\begin{frame}
|
||||
\frametitle{(((frame.title)))}
|
||||
\frametitle{(((title)))}
|
||||
% contenu (pas trop long) de la diapositive
|
||||
\end{frame}
|
||||
|
|
Loading…
Reference in New Issue