56 lines
1.3 KiB
TeX
56 lines
1.3 KiB
TeX
% variables
|
|
|
|
\def\authorname{BENINCA}
|
|
\def\authorshort{M. \authorname}
|
|
\def\authorlong{Marc \authorname}
|
|
|
|
\def\dateshort{2021}
|
|
\def\datelong{\ml{Month DD, \dateshort}{JJ Mois \dateshort}}
|
|
|
|
\def\instituteshort{CNAM}
|
|
\def\institutelong{Conservatoire National des Arts et Métiers}
|
|
|
|
\def\typeshort{\ml{Thesis}{Mémoire}}
|
|
\def\typelong{\ml{\instituteshort\ Master's \typeshort}
|
|
{\typeshort\ d’Ingénieur \instituteshort}}
|
|
|
|
% set languages
|
|
\usepackage{polyglossia}
|
|
% recommended
|
|
\usepackage{csquotes}
|
|
\setmainlanguage{\mainlanguage}
|
|
\setotherlanguages{\otherlanguages}
|
|
|
|
% handle multiple languages
|
|
|
|
\newcommand{\ifstreq}[4]{\expandafter\ifstrequal\expandafter{#1}{#2}{#3}{#4}}
|
|
|
|
\def\todo{TODO}
|
|
|
|
\newcommand{\ml}[2]{%
|
|
\ifstreq{\mainlanguage}{english}{\ifstrempty{#1}{\todo}{#1}}{%
|
|
\ifstreq{\mainlanguage}{french}{\ifstrempty{#2}{\todo}{#2}}{%
|
|
ERROR%
|
|
}}%
|
|
}
|
|
|
|
\newcommand{\en}[1]{\textenglish{#1}}
|
|
|
|
\newcommand{\fr}[1]{\textfrench{#1}}
|
|
|
|
% variables
|
|
|
|
\def\titleshort{\ml{Incremental Live OS}{SE autonomes incrémentaux}}
|
|
\ml
|
|
{\def\titlelong{Incremental Live Operating Systems}
|
|
\def\titlesub{a reversal of conventional approaches}}
|
|
{\def\titlelong{Systèmes d’Exploitation autonomes incrémentaux}
|
|
\def\titlesub{une inversion des approches conventionnelles}}
|
|
|
|
% imports
|
|
|
|
\input{settings}
|
|
|
|
% begin document
|
|
|
|
\begin{document}
|