Script de création des diapositives

This commit is contained in:
Benjamin Bohard 2015-07-06 15:06:57 +02:00
parent 62a39c31bc
commit acabd531bb
2 changed files with 3 additions and 4 deletions

View File

@ -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:

View File

@ -1,4 +1,4 @@
\begin{frame}
\frametitle{(((frame.title)))}
\frametitle{(((title)))}
% contenu (pas trop long) de la diapositive
\end{frame}