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