summaries
This commit is contained in:
parent
2849d4871e
commit
f7103914c9
4 changed files with 33 additions and 5 deletions
|
@ -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}}}'
|
||||||
|
|
|
@ -3,4 +3,6 @@
|
||||||
|
|
||||||
\textbf{Bordeaux, 2021}
|
\textbf{Bordeaux, 2021}
|
||||||
|
|
||||||
|
\summaries
|
||||||
|
|
||||||
\thispagestyle{empty}
|
\thispagestyle{empty}
|
||||||
|
|
11
cnam/travaux/mémoire/thesis/summary.en.tex
Normal file
11
cnam/travaux/mémoire/thesis/summary.en.tex
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
\hr
|
||||||
|
|
||||||
|
\textbf{SUMMARY}
|
||||||
|
|
||||||
|
.
|
||||||
|
|
||||||
|
…
|
||||||
|
|
||||||
|
\textbf{Key words: ?, ?, ?, ?,\\
|
||||||
|
?, ?, ?, ?.}
|
11
cnam/travaux/mémoire/thesis/summary.fr.tex
Normal file
11
cnam/travaux/mémoire/thesis/summary.fr.tex
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
\hr
|
||||||
|
|
||||||
|
\textbf{RÉSUMÉ}
|
||||||
|
|
||||||
|
.
|
||||||
|
|
||||||
|
…
|
||||||
|
|
||||||
|
\textbf{Mots clés : ?, ?, ?, ?,\\
|
||||||
|
?, ?, ?, ?.}
|
Loading…
Add table
Add a link
Reference in a new issue