Kaynağa Gözat

petites modifs

Thierry Dumont 1 ay önce
ebeveyn
işleme
f7dc9fae8d
4 değiştirilmiş dosya ile 21 ekleme ve 17 silme
  1. 2 0
      All/nettex.sh
  2. 13 14
      All/tout.py
  3. 5 0
      TODO
  4. 1 3
      tpl.tex

+ 2 - 0
All/nettex.sh

@@ -0,0 +1,2 @@
+#!/bin/sh
+rm -f *.aux *.md *.log *.toc *.bcf *.run.xml

+ 13 - 14
All/tout.py

@@ -1,39 +1,37 @@
 
 #-------------------------------------------            
 def addpath(x,ajout):
+    # if faut transformesr les chemins vers les images
     if "includegraphics" in x:
         return x.replace("{",ajout)
     else:
         return x
-#
-templat= "../tpl.tex"
-#
+
 # Récupérer la liste des textes à introduire
 #
 with open("all_texts") as f:
     lf= f.readlines()
+
+templat= "../tpl.tex"
 #
-#on récupère le template
 with open(templat) as f:
     Ltmpl=f.readlines()
-# 
+# ne garder du template que le début
 Lall=[]
 for l in Ltmpl:
     if "%@@debut" in l:
         break
     else:
         Lall.append(l)
-
-bound1= "pagestyle"
-bound2= "tableofcontents"
-
-
+#
+# parcourir les fichiers à assembler:
+#
 for l in lf:
     lok="../"+l.replace("\n","")
     print(lok)
     with open(lok) as g:
         LL=g.readlines()
-    #Z= getlines(LL,"debut","fin")
+    # insérer ce qui entre %@@debut et "%@@fin":
     start= False
     Z= []
     for x in LL:
@@ -43,14 +41,15 @@ for l in lf:
             break
         if start:
             Z.append(x)
-    # graphiques
+    # graphiques: modifier les chemins:
     ajout="{../"+l.split("/")[0]+"/"
-    
     Lall+=[addpath(x,ajout) for x in Z if not "newcounter" in x]
     Lall.append("\\eject\n")
-    
+#
+# sauver le resultat....
 with open("final.tex","w") as f:
     for x in Lall[:-1]:
         f.write(x)
+#-----------------------------------------------------------
     f.write("\\tableofcontents\n")
     f.write("\\end{document}\n")

+ 5 - 0
TODO

@@ -0,0 +1,5 @@
+* vérifier le layout
+
+* garamond ?
+
+* \ieme

+ 1 - 3
tpl.tex

@@ -69,12 +69,10 @@ total={130mm,212mm},
 \newcommand{\mysection}[2]{\section*{ #2}}
 
 \newcommand{\titre}[5]{% date / type /auteur/ membre/ titre
-  %\section*[{\bfseries #1.} \capitalisewords{#2} par #3, #4.\\#5]{}%
-  %{\raggedright\sl\bfseries #1}%
   {\raggedright{\textsl{\bfseries\large \capitalisewords{#1}}}}\\%
   {\raggedright{\bfseries\large \capitalisewords{{#2}} de #3,} \textsl{#4}}%
    \addcontentsline{toc}{section}{{\bfseries #1.} \capitalisewords{#2}
-     par #3, #4.\\\textsl{#5}}%
+     de #3, #4.\\\textsl{#5}}%
   \vspace*{24pt}%
   \begin{center}{\Large\bfseries #5}\end{center}%
   \vspace*{5mm}%