diff --git a/DS_gene.py b/DS_gene.py index f43cf89..e061c1d 100755 --- a/DS_gene.py +++ b/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() diff --git a/example/1_example.tex b/example/1_example.tex deleted file mode 100644 index 76c3ca6..0000000 --- a/example/1_example.tex +++ /dev/null @@ -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 = \\ - 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: - - \ No newline at end of file diff --git a/example/all_example.pdf b/example/all_example.pdf deleted file mode 100644 index df50b89..0000000 Binary files a/example/all_example.pdf and /dev/null differ diff --git a/example/csv_example.csv b/example/csv_example.csv deleted file mode 100644 index d8aacc1..0000000 --- a/example/csv_example.csv +++ /dev/null @@ -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