settings
This commit is contained in:
parent
471d2886a2
commit
1168c66b44
4 changed files with 7 additions and 7 deletions
|
@ -1,56 +0,0 @@
|
|||
% 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}
|
||||
|
||||
% imports
|
||||
|
||||
\input{settings}
|
||||
|
||||
% 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}}
|
||||
|
||||
% begin document
|
||||
|
||||
\begin{document}
|
Loading…
Add table
Add a link
Reference in a new issue