|
@@ -25,7 +25,7 @@ with open("all_texts") as f:
|
|
|
forbiblatex={}
|
|
forbiblatex={}
|
|
|
for f in lf:
|
|
for f in lf:
|
|
|
forbiblatex[f]=",".join([x for x
|
|
forbiblatex[f]=",".join([x for x
|
|
|
- in glob.glob(f"../Sources/Courante/{f[0].split("/")[0]}/*.bib")])
|
|
|
|
|
|
|
+ in glob.glob(f"../{f[0].split("/")[0]}/*.bib")])
|
|
|
allbibfiles=[forbiblatex[k] for k in forbiblatex.keys() if forbiblatex[k]!=""]
|
|
allbibfiles=[forbiblatex[k] for k in forbiblatex.keys() if forbiblatex[k]!=""]
|
|
|
|
|
|
|
|
print("\nFichiers bib",allbibfiles,"\n")
|
|
print("\nFichiers bib",allbibfiles,"\n")
|
|
@@ -52,19 +52,21 @@ for l in Ltmpl:
|
|
|
#
|
|
#
|
|
|
for x in allbibfiles:
|
|
for x in allbibfiles:
|
|
|
Lall.append(f"\\addbibresource{{{x}}}\n")
|
|
Lall.append(f"\\addbibresource{{{x}}}\n")
|
|
|
- T=[f'{{../Sources/Courante/{x[0].split("/")[0]}}}' for x in lf]
|
|
|
|
|
|
|
+ T=[f'{{../{x[0].split("/")[0]}}}' for x in lf]
|
|
|
T=f"\\graphicspath{{ {''.join(T)} }}\n"
|
|
T=f"\\graphicspath{{ {''.join(T)} }}\n"
|
|
|
Lall.append(T)
|
|
Lall.append(T)
|
|
|
Lall.append(l)
|
|
Lall.append(l)
|
|
|
|
|
|
|
|
|
|
+
|
|
|
#
|
|
#
|
|
|
# parcourir les fichiers à assembler:
|
|
# parcourir les fichiers à assembler:
|
|
|
#
|
|
#
|
|
|
for l in lf:
|
|
for l in lf:
|
|
|
do_eject= len(l) == 1 or (len(l)>1 and not "noeject" in l[1])
|
|
do_eject= len(l) == 1 or (len(l)>1 and not "noeject" in l[1])
|
|
|
do_vfill= len(l) == 1 or (len(l)>1 and not "novfill" in l[1])
|
|
do_vfill= len(l) == 1 or (len(l)>1 and not "novfill" in l[1])
|
|
|
- lok="../Sources/Courante/"+l[0].replace("\n","")
|
|
|
|
|
|
|
+ lok="../"+l[0].replace("\n","")
|
|
|
print("On traite :",lok)
|
|
print("On traite :",lok)
|
|
|
|
|
+
|
|
|
with open(lok) as g:
|
|
with open(lok) as g:
|
|
|
LL=g.readlines()
|
|
LL=g.readlines()
|
|
|
# insérer ce qui entre %@@debut et "%@@fin":
|
|
# insérer ce qui entre %@@debut et "%@@fin":
|
|
@@ -82,7 +84,7 @@ for l in lf:
|
|
|
|
|
|
|
|
print("--> nl:",len(Z))
|
|
print("--> nl:",len(Z))
|
|
|
# graphiques: modifier les chemins:
|
|
# graphiques: modifier les chemins:
|
|
|
- ajout="{../Sources/Courante/"+l[0].split("/")[0]+"/"
|
|
|
|
|
|
|
+ ajout="{../"+l[0].split("/")[0]+"/"
|
|
|
#ajout=""
|
|
#ajout=""
|
|
|
|
|
|
|
|
Lall+=[addpath(x,ajout) for x in Z if not "newcounter" in x]
|
|
Lall+=[addpath(x,ajout) for x in Z if not "newcounter" in x]
|