merging pdf is more clean
This commit is contained in:
parent
772d6f16af
commit
8c4312aafe
14
DS_gene.py
14
DS_gene.py
@ -38,11 +38,14 @@ def main(options):
|
||||
|
||||
output = output.name
|
||||
|
||||
tmp_pdf = []
|
||||
|
||||
for infos in list_infos:
|
||||
#print("_______" + str(infos))
|
||||
dest = path(str(infos['num']) + output)
|
||||
tmp_pdf.append(dest.namebase + ".pdf")
|
||||
with open( dest, 'w') as f:
|
||||
f.write(template.render( RdExpression = RdExpression , infos = infos, type=type))
|
||||
f.write(template.render( RdExpression = RdExpression , infos = infos))
|
||||
|
||||
if not options.no_compil:
|
||||
os.system("pdflatex " + dest)
|
||||
@ -51,9 +54,12 @@ def main(options):
|
||||
os.system("rm *.aux *.log")
|
||||
|
||||
if not options.no_join:
|
||||
os.system("pdfjam *.pdf -o all" + path(output).namebase + ".pdf")
|
||||
for infos in list_infos:
|
||||
os.system("rm " + path(str(infos['num']) + output).namebase + ".pdf")
|
||||
print(path("./").abspath())
|
||||
print("pdfjam "+ " ".join(tmp_pdf) + " -o all" + path(output).namebase + ".pdf")
|
||||
os.system("pdfjam "+ " ".join(tmp_pdf) + " -o all" + path(output).namebase + ".pdf")
|
||||
#os.system("pdfjam *.pdf -o all" + path(output).namebase + ".pdf")
|
||||
print("rm " + " ".join(tmp_pdf))
|
||||
os.system("rm " + " ".join(tmp_pdf))
|
||||
|
||||
cwd.cd()
|
||||
|
||||
|
@ -1,57 +0,0 @@
|
||||
\documentclass[a4paper,10pt]{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/tools/style/classDS}
|
||||
\usepackage{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/2013_2014}
|
||||
|
||||
% Title Page
|
||||
\titre{Calcul littéral et statistiques}
|
||||
% \quatreC \quatreD \troisB \troisPro
|
||||
\classe{\troisB}
|
||||
\date{26 septemble 2013}
|
||||
% DS DSCorr DM DMCorr Corr
|
||||
\typedoc{DS}
|
||||
\duree{1 heure}
|
||||
\sujet{}
|
||||
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
\Calc
|
||||
Le barème est donné à titre indicatif, il pourra être modifié.
|
||||
|
||||
\begin{Exo}[4.5]
|
||||
|
||||
|
||||
|
||||
Développer et réduire les expressions suivantes:
|
||||
\begin{equation*}
|
||||
A = \frac{ ( -8 ) }{ 2 } + 2 \\
|
||||
A = <class 'pymath.expression.Expression'> \\
|
||||
B = \frac{ ( -8 ) }{ 2 } + 4
|
||||
\end{equation*}
|
||||
|
||||
Solutions:
|
||||
\begin{eqnarray*}
|
||||
A & = & \frac{ ( -8 ) }{ 2 } + 2 \\
|
||||
A & = & \frac{ -8 }{ 2 } + 2 \\
|
||||
A & = & ( -4 ) + 2 \\
|
||||
A & = & -2
|
||||
\end{eqnarray*}
|
||||
|
||||
\begin{eqnarray*}
|
||||
B & = & \frac{ ( -8 ) }{ 2 } + 4 \\
|
||||
B & = & \frac{ -8 }{ 2 } + 4 \\
|
||||
B & = & ( -4 ) + 4 \\
|
||||
B & = & 0
|
||||
\end{eqnarray*}
|
||||
|
||||
\end{Exo}
|
||||
|
||||
|
||||
\end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: "master"
|
||||
%%% End:
|
||||
|
||||
|
Binary file not shown.
@ -1,25 +0,0 @@
|
||||
Classe;Nom;Prenom;identifiant;mdp
|
||||
6A;ASSAOUA;Najwa;nassaoua;zajulu
|
||||
6A;AUDINOT;Lea;laudinot;padito
|
||||
6A;CARVALHO GOUVEIA;Ana Filipa;acarvalhogo;fekovo
|
||||
6A;CASALTA;Marine;mcasalta9;wufuzu
|
||||
6A;CASU;Stella-Maria;scasu;jixuyu
|
||||
6A;DEBLY;Laura;ldebly;cazema
|
||||
6A;ERNANDES;Carla;cernandes;kahisi
|
||||
6A;ETIENNE;Melvin;metienne2;jimico
|
||||
6A;GAILLARD;Dorian;dgaillard;lazofi
|
||||
6A;GUIDONI;Dominique;dguidoni4;zojihi
|
||||
6A;HAMMAMI;Oumaïma;ohammami;sugaga
|
||||
6A;KHEZAMI;Mohamed;mkhezami2;pomeve
|
||||
6A;KUREK-PINELLI;Ristituda;rkurekpinel;xawunu
|
||||
6A;LARROQUE;Nino;nlarroque;jivanu
|
||||
6A;MABIRE;Luca;lmabire;menazi
|
||||
6A;MATIC;Veljko;vmatic;pijofa
|
||||
6A;MOUAOU;Saâd;smouaou;ruroyo
|
||||
6A;PERRIN;Nicolas;nperrin4;xenige
|
||||
6A;PIRES NASCIMENTO;Guillaume;gpiresnasci;yixone
|
||||
6A;QUARDELLE;Olivier;oquardelle;yekezo
|
||||
6A;RANCUREL;Fabio;francurel;dowabo
|
||||
6A;SPINOSI;ALEXANDRE;aspinosi;pebidi
|
||||
6A;VERBEKE;Hugo;hverbeke;xucibo
|
||||
6A;WATIN;Anthony;awatin;sucavo
|
|
Loading…
Reference in New Issue
Block a user