diff --git a/cnam.marc/thesis/build.py b/cnam.marc/thesis/build.py index 8a7d815..8bf7709 100755 --- a/cnam.marc/thesis/build.py +++ b/cnam.marc/thesis/build.py @@ -13,7 +13,7 @@ FRENCH = 'french' LANGUAGES = [ENGLISH, FRENCH] DOCUMENTS = [ - {ENGLISH: 'topic', FRENCH: 'sujet'}, + {ENGLISH: 'subject', FRENCH: 'sujet'}, {ENGLISH: 'thesis', FRENCH: 'mémoire'}, # {ENGLISH: 'presentation', FRENCH: 'présentation'}, ] diff --git a/cnam.marc/thesis/index.rst b/cnam.marc/thesis/index.rst index 86eeccd..07a2c5b 100644 --- a/cnam.marc/thesis/index.rst +++ b/cnam.marc/thesis/index.rst @@ -10,7 +10,7 @@ Mémoire | +---------------------------------------------+-------------------------------------------------+ | | :download:`Présentation ` | :download:`Présentation ` | +----------+---------------------------------------------+-------------------------------------------------+ -| | :download:`Topic ` | :download:`Topic ` | +| | :download:`Subject ` | :download:`Subject ` | | +---------------------------------------------+-------------------------------------------------+ | English | :download:`Thesis ` | :download:`Thesis ` | | +---------------------------------------------+-------------------------------------------------+ diff --git a/cnam.marc/thesis/topic/main.tex b/cnam.marc/thesis/subject/main.tex similarity index 70% rename from cnam.marc/thesis/topic/main.tex rename to cnam.marc/thesis/subject/main.tex index 4393c1a..18e5055 100644 --- a/cnam.marc/thesis/topic/main.tex +++ b/cnam.marc/thesis/subject/main.tex @@ -1,38 +1,95 @@ \documentclass[10pt]{article} -%\usepackage{fontspec} -%\usepackage[a4paper,portrait, -%bmargin=10mm,lmargin=15mm,rmargin=15mm,tmargin=10mm]{geometry} +% manage languages ───────────────────────────────────────────────────────────── -%\pagenumbering{gobble} -%\setlength{\parindent}{0em} -%\setlength{\parskip}{0em} -%\setmainfont{DejaVu Sans} +% use package +\usepackage{polyglossia} +% use recommended package +\usepackage{csquotes} -%\newcommand{\hr}{\rule{\textwidth}{1pt}} +% set main +\setmainlanguage{\mainlanguage} +% set others +\setotherlanguages{\otherlanguages} -%\newenvironment{itmz}{\begin{itemize} -%\setlength{\itemsep}{0em} -%}{\end{itemize}} +% expand function ifstrequal +\newcommand{\ifstreq}[4]{\expandafter\ifstrequal\expandafter{#1}{#2}{#3}{#4}} +% return text, according to variable mainlanguage +% 1: english text +% 2: french text +\newcommand{\ml}[2]{% +\ifstreq{\mainlanguage}{english}{\ifstrempty{#1}{\todo}{#1}}{% +\ifstreq{\mainlanguage}{french}{\ifstrempty{#2}{\todo}{#2}}{% +ERROR% +}}% +} -%\begin{document} +% return text as english +% 1: text +\newcommand{\en}[1]{\textenglish{#1}} -\input{../settings} +% return text as french +% 1: text +\newcommand{\fr}[1]{\textfrench{#1}} -CNAM / UAMM91 \hfill Mémoire ingénieur / Sujet \hfill IRSM ↔ CYC9104A +% -Marc Beninca \hfill \textbf{\ml{Incremental Live Operating System}{Système d’exploitation autonome incrémental}} \hfill 2020 → 2021 +\usepackage{fontspec} +\usepackage[a4paper,portrait, +bmargin=10mm,lmargin=15mm,rmargin=15mm,tmargin=10mm]{geometry} + +\pagenumbering{gobble} +\setlength{\parindent}{0em} +\setlength{\parskip}{0em} +\setmainfont{DejaVu Sans} + +\newcommand{\hr}{\rule{\textwidth}{1pt}} + +\newenvironment{itmz}{\begin{itemize} +\setlength{\itemsep}{0em} +}{\end{itemize}} + +\begin{document} + +CNAM / UAMM91 +\hfill +\ml +{Master’s thesis / Subject} +{Mémoire ingénieur / Sujet} +\hfill +IRSM ↔ CYC9104A + +Marc Beninca +\hfill +\textbf{\ml +{Incremental Live Operating System} +{Système d’exploitation autonome incrémental}} +\hfill +2020 → 2021 \hr -\section{Problématique : maintenance des systèmes d’exploitation} +\ml +{\section{Problem Statement: Operating Systems maintenance}} +{\section{Problématique : maintenance des systèmes d’exploitation}} -En fonction des cas d’utilisation, maintenir des systèmes d’exploitation peut nécessiter de penser :\\ -mises à jour, indisponibilité, sauvegardes, tests, instantanés, restaurations, recettes de configuration. +\ml +{Depending on use cases, maintaining operating systems can require thinking about:\\ +updates, downtime, backups, testing, snapshots, restorations, configuration scripts.} +{En fonction des cas d’utilisation, maintenir des systèmes d’exploitation peut nécessiter de penser :\\ +mises à jour, indisponibilité, sauvegardes, tests, instantanés, restaurations, scripts de configuration.} -\subsection{Systèmes de fichiers, installés sur partitions, avec accès en écriture} +\ml +{\subsection{File Systems, installed on partitions, with write access}} +{\subsection{Systèmes de fichiers, installés sur partitions, avec accès en écriture}} -\subsubsection{Système de fichiers conventionnel : ext2, ext3, ext4, jfs, xfs} +\ml +{\subsubsection{Conventional File Systems: ext2, ext3, ext4, jfs, xfs}} +{\subsubsection{Système de fichiers conventionnel : ext2, ext3, ext4, jfs, xfs}} + +\textbf{↑ Done\\ +\hr\\ +↓ ToDo: French → English} \begin{itmz} \item{\textbf{avantages} : instantanéité de toutes les modifications apportées aux fichiers du système} diff --git a/cnam.marc/thesis/topic/settings.tex b/cnam.marc/thesis/topic/settings.tex deleted file mode 100644 index 7986231..0000000 --- a/cnam.marc/thesis/topic/settings.tex +++ /dev/null @@ -1,78 +0,0 @@ -% variables -\def\first{\ml{First}{Prénom}} -\def\last{\ml{LAST}{NOM}} -\def\org{\ml{Organization}{Organisme}} -\def\role{\ml{Role}{Fonction}} -\def\tt{\ml{Title}{Civilité}} - -% acronyms, glossary -\usepackage[acronym,toc]{glossaries} -\makeglossaries - -% tune table of contents -\usepackage{tocloft} -\setcounter{secnumdepth}{3} -\setcounter{tocdepth}{3} - -% links -\hypersetup{ -pdfinfo={ -Title={\titlelong\ - \titlesub}, -Author={\authorlong}, -Creator={XeLaTeX / report}, -}, -colorlinks, -citecolor=blue, -filecolor=blue, -linkcolor=blue, -urlcolor=blue, -} - -% adjust chapter titles -\usepackage{etoolbox} -\makeatletter -\patchcmd{\@makechapterhead}{50\p@}{0pt}{}{} -\patchcmd{\@makeschapterhead}{50\p@}{0pt}{}{} -\makeatother - -% set paper geometry -\usepackage{geometry} -\geometry{a4paper,portrait,top=20mm,bottom=20mm,left=20mm,right=20mm} - -% images -\usepackage{graphicx} - -% set fonts -\usepackage{fontspec} -% set relative sizes -\usepackage{relsize} -\setlength{\parindent}{0em} -\setlength{\parskip}{1em} -\setmainfont{DejaVu Sans} -\setmonofont{DejaVu Sans Mono} - -% set spacings -\usepackage{setspace} - -% lists of figures, tables -\usepackage{tocbibind} - -% references after polyglossia -\usepackage[sorting=anyt]{biblatex} -\bibliography{\name} - -% commands - -\newcommand{\cnam}{\includegraphics[height=1in]{../../cnam}} - -\newcommand{\hr}{\rule{\textwidth}{1pt}} - -\newcommand{\hrq}{\rule{.25\textwidth}{1pt}} - -% environments - -\newenvironment{itmz}{\begin{itemize} -%\setlength{\itemsep}{0em} -%\setlength{\parsep}{0em} -%\setlength{\parskip}{0em} -}{\end{itemize}}