Thierry Dumont 1 month ago
parent
commit
89f17cce0a
3 changed files with 9 additions and 12 deletions
  1. 1 1
      Jinja/titre.jin
  2. 4 4
      progs/dolinks.py
  3. 4 7
      progs/extr.py

+ 1 - 1
Jinja/titre.jin

@@ -1,5 +1,5 @@
 % Template pour générer le titre de chaque article.
-% En principe appelé par makeTitre.py (python makeTitre.py) depuis le
+% En principe appelé par "makeTitre"  depuis le
 % répertoire de l'article.
 %
 % Le fichier fabriqué (titre.tex) doit être inséré par \input{titre} .

+ 4 - 4
progs/dolinks.py

@@ -1,7 +1,9 @@
 #
 # Pour recréer les liens dans venv/bin
-# 
-import os,glob,subprocess
+#
+# A LANCER DEPUIS ICI ! (progs/)
+#
+import os,glob
 #
 pwd=os.getcwd()
 bin= pwd.replace("progs","venv/bin/")
@@ -12,8 +14,6 @@ shells= glob.glob("*.sh")
 tex=glob.glob("*.tex")
 
 fichs= py+shells+tex
-
 #
-
 for f in fichs:
     os.symlink(f"{pwd}/{f}",f"{bin}{f.replace(".py","")}")

+ 4 - 7
progs/extr.py

@@ -18,6 +18,9 @@ def fancyshort(s,t):
     # s (le nom de l'orateur, par exemple) est toujours affiché.
     # t est éventuellement raccourci.
     #
+    # NOTE : ne devrait plus être utile, car on définira plutôt
+    # ----   un "titre court"
+    #
     limit =75 #taille max en caratères
     if len(s+t)<limit:
         return s,t
@@ -115,10 +118,7 @@ fich=lt["fichier"].strip()
 titre_elements="}{".join([lt[x].replace("\n","") for x in data_yml_order])
 
 s,t=fancyshort(lt['auteur'],lt['titre'])
-#titre_elements= titre_elements+"}{"+t
-#le_titre= f"\\titre{{{titre_elements}}}\n"
-
-
+#
 #--------------------------------------------------------------------
 template=sys.path[0]+"/tpl.tex" # le template
 #---------------------------------------------------------------------
@@ -170,7 +170,6 @@ with open(futurTex,"w") as f:
     rp0,rp1= repPath
     for l in L1:
         if has_bib and "addbibresource{}" in l:
-            #bibfile=lt['biblio']
             l=l.replace("{","{"+bibfile)
         while (q:=rechgrac.search(l)) != None:
             l=l.replace(rp0,rp1)
@@ -180,8 +179,6 @@ with open(futurTex,"w") as f:
         if "@@fin" in l:
             
             if has_bib:
-                #f.write("\\begin{center}\\textbf{Bibliographie}\\end{center}\n")
-                #f.write("\\citeall[\\fullcite]\n")
                 f.write("\\section*{Bibliographie}")
                 if citeall:
                     f.write(nocite_all(bibfile)+"\n")