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:
|
for skbinput in tex_skbinputs:
|
||||||
rep = path.dirname(skbinput.group('tex'))
|
rep = path.dirname(skbinput.group('tex'))
|
||||||
rep = path.join(tex_skbconfig.group(skbinput.group('rep')), rep)
|
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)
|
dest = path.join(rep, basename)
|
||||||
if not path.isfile(dest):
|
if not path.isfile(dest):
|
||||||
if not path.isdir(rep):
|
if not path.isdir(rep):
|
||||||
print rep
|
|
||||||
makedirs(rep)
|
makedirs(rep)
|
||||||
template = jinja_env.get_template('slide')
|
template = jinja_env.get_template('frame.tex')
|
||||||
env = {'title': '', 'subtitle': ''}
|
env = {'title': '', 'subtitle': ''}
|
||||||
rendered_template = template.render(**env)
|
rendered_template = template.render(**env)
|
||||||
with open(dest, 'w') as rendered_file:
|
with open(dest, 'w') as rendered_file:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
\begin{frame}
|
\begin{frame}
|
||||||
\frametitle{(((frame.title)))}
|
\frametitle{(((title)))}
|
||||||
% contenu (pas trop long) de la diapositive
|
% contenu (pas trop long) de la diapositive
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
Loading…
Reference in New Issue