summaries

This commit is contained in:
Marc Beninca 2020-10-09 08:10:17 +02:00
parent 2849d4871e
commit f7103914c9
4 changed files with 33 additions and 5 deletions

View file

@ -31,12 +31,15 @@ def build(directory, sign):
tmp = os.path.join(directory, TMP) tmp = os.path.join(directory, TMP)
# for each language # for each language
for language in LANGUAGES: for language in LANGUAGES:
# other languages # languages
other_languages = ','.join( other_languages = [lang for lang in LANGUAGES if lang is not language]
[lang for lang in LANGUAGES if lang is not language]) languages = [language, *other_languages]
other_languages = ','.join(other_languages)
summaries = ''.join(
[f'\input{{summary.{lang}}}' for lang in languages])
# display languages # display languages
print() for item in ['', language, other_languages, languages, summaries]:
print(language, other_languages) print(item)
# for each document # for each document
for document in DOCUMENTS: for document in DOCUMENTS:
# display language # display language
@ -53,6 +56,7 @@ def build(directory, sign):
'author': AUTHOR, 'author': AUTHOR,
'mainlanguage': language, 'mainlanguage': language,
'otherlanguages': other_languages, 'otherlanguages': other_languages,
'summaries': summaries,
} }
# transform variables # transform variables
variables = ''.join([f'\\def\\{k}{{{v}}}' variables = ''.join([f'\\def\\{k}{{{v}}}'

View file

@ -3,4 +3,6 @@
\textbf{Bordeaux, 2021} \textbf{Bordeaux, 2021}
\summaries
\thispagestyle{empty} \thispagestyle{empty}

View file

@ -0,0 +1,11 @@
\hr
\textbf{SUMMARY}
.
\textbf{Key words: ?, ?, ?, ?,\\
?, ?, ?, ?.}

View file

@ -0,0 +1,11 @@
\hr
\textbf{RÉSUMÉ}
.
\textbf{Mots clés : ?, ?, ?, ?,\\
?, ?, ?, ?.}