diff --git a/cnam.marc/thesis/build.py b/cnam.marc/thesis/build.py index 8bf7709..8a7d815 100755 --- a/cnam.marc/thesis/build.py +++ b/cnam.marc/thesis/build.py @@ -13,7 +13,7 @@ FRENCH = 'french' LANGUAGES = [ENGLISH, FRENCH] DOCUMENTS = [ - {ENGLISH: 'subject', FRENCH: 'sujet'}, + {ENGLISH: 'topic', 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 07a2c5b..86eeccd 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:`Subject ` | :download:`Subject ` | +| | :download:`Topic ` | :download:`Topic ` | | +---------------------------------------------+-------------------------------------------------+ | English | :download:`Thesis ` | :download:`Thesis ` | | +---------------------------------------------+-------------------------------------------------+ diff --git a/cnam.marc/thesis/subject/main.tex b/cnam.marc/thesis/topic/main.tex similarity index 70% rename from cnam.marc/thesis/subject/main.tex rename to cnam.marc/thesis/topic/main.tex index 18e5055..4393c1a 100644 --- a/cnam.marc/thesis/subject/main.tex +++ b/cnam.marc/thesis/topic/main.tex @@ -1,95 +1,38 @@ \documentclass[10pt]{article} -% manage languages ───────────────────────────────────────────────────────────── +%\usepackage{fontspec} +%\usepackage[a4paper,portrait, +%bmargin=10mm,lmargin=15mm,rmargin=15mm,tmargin=10mm]{geometry} -% use package -\usepackage{polyglossia} -% use recommended package -\usepackage{csquotes} +%\pagenumbering{gobble} +%\setlength{\parindent}{0em} +%\setlength{\parskip}{0em} +%\setmainfont{DejaVu Sans} -% set main -\setmainlanguage{\mainlanguage} -% set others -\setotherlanguages{\otherlanguages} +%\newcommand{\hr}{\rule{\textwidth}{1pt}} -% 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% -}}% -} +%\newenvironment{itmz}{\begin{itemize} +%\setlength{\itemsep}{0em} +%}{\end{itemize}} -% return text as english -% 1: text -\newcommand{\en}[1]{\textenglish{#1}} +%\begin{document} -% return text as french -% 1: text -\newcommand{\fr}[1]{\textfrench{#1}} +\input{../settings} -% +CNAM / UAMM91 \hfill Mémoire ingénieur / Sujet \hfill IRSM ↔ CYC9104A -\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 +Marc Beninca \hfill \textbf{\ml{Incremental Live Operating System}{Système d’exploitation autonome incrémental}} \hfill 2020 → 2021 \hr -\ml -{\section{Problem Statement: Operating Systems maintenance}} -{\section{Problématique : maintenance des systèmes d’exploitation}} +\section{Problématique : maintenance des systèmes d’exploitation} -\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.} +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 -{\subsection{File Systems, installed on partitions, with write access}} -{\subsection{Systèmes de fichiers, installés sur partitions, avec accès en écriture}} +\subsection{Systèmes de fichiers, installés sur partitions, avec accès en écriture} -\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} +\subsubsection{Système de fichiers conventionnel : ext2, ext3, ext4, jfs, xfs} \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 new file mode 100644 index 0000000..7986231 --- /dev/null +++ b/cnam.marc/thesis/topic/settings.tex @@ -0,0 +1,78 @@ +% 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}}