This commit is contained in:
Marc Beninca 2020-10-09 21:09:26 +02:00
parent 2fee7f2355
commit 0e740788d3
2 changed files with 11 additions and 2 deletions

View file

@ -6,15 +6,21 @@ import subprocess
import sys import sys
AUTHOR = 'Marc BENINCA' AUTHOR = 'Marc BENINCA'
MAIN = 'main'
TMP = 'tmp'
ENGLISH = 'en' ENGLISH = 'en'
FRENCH = 'fr' FRENCH = 'fr'
LANGUAGES = [ENGLISH, FRENCH] LANGUAGES = [ENGLISH, FRENCH]
DOCUMENTS = [ DOCUMENTS = [
{ENGLISH: 'thesis', FRENCH: 'mémoire'}, {ENGLISH: 'thesis', FRENCH: 'mémoire'},
{ENGLISH: 'presentation', FRENCH: 'présentation'}, {ENGLISH: 'presentation', FRENCH: 'présentation'},
] ]
MAIN = 'main' TITLE = {
TMP = 'tmp' ENGLISH: 'Incremental Live Operating Systems',
FRENCH: 'Systèmes d’exploitation autonomes incrémentaux',
}
def run(command): def run(command):
@ -57,6 +63,7 @@ def build(directory, sign):
'mainlanguage': language, 'mainlanguage': language,
'otherlanguages': other_languages, 'otherlanguages': other_languages,
'summaries': summaries, 'summaries': summaries,
'title': TITLE[language],
} }
# transform variables # transform variables
variables = ''.join([f'\\def\\{k}{{{v}}}' variables = ''.join([f'\\def\\{k}{{{v}}}'

View file

@ -1,6 +1,8 @@
\chapter*{} \chapter*{}
\addcontentsline{toc}{chapter}{\ml{Summaries}{Résumés}} \addcontentsline{toc}{chapter}{\ml{Summaries}{Résumés}}
\title.
\ml{CNAM Engineer thesis}{Mémoire d’Ingénieur CNAM}, Bordeaux 2021. \ml{CNAM Engineer thesis}{Mémoire d’Ingénieur CNAM}, Bordeaux 2021.
\summaries \summaries