Commit 836efee5 authored by Corentin Guezenoc's avatar Corentin Guezenoc
Browse files

Style fix: font styles specific to front/back covers and chapter headings are now applied locally

Default font for the whole document used to be the same as in the front and back covers, i.e. Arial. Now the document's default font remains untouched.
parent 25f70375
......@@ -68,7 +68,14 @@
\frenchspacing
\FrenchFootnotes
% Define commands to set fonts throughout the document
\newcommand*{\fontfrontcover}{\fontfamily{phv}\selectfont} % Font style used in front cover
\newcommand*{\fontbackcover}{\fontfamily{phv}\selectfont} % Font style used in back cover
\newcommand*{\fontchapheads}{\fontfamily{phv}\selectfont} % Font style used chapter headings
% Override default font here if you want
%\renewcommand{\rmdefault}{qpl}
%\renewcommand{\sfdefault}{qpl}
%%%%%%%%%%%%%% En-tete chap %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
......@@ -79,7 +86,7 @@
\scshape \@chapapp{} \thechapter
\par\nobreak
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\fontchapheads \Huge \bfseries #1\par\nobreak
%\vspace*{1\p@}%
\hrulefill
\par\nobreak
......@@ -91,7 +98,7 @@
\scshape \vphantom{\@chapapp{} \thechapter}
\par\nobreak
\interlinepenalty\@M
\Huge \bfseries #1 \par\nobreak
\fontchapheads \Huge \bfseries #1 \par\nobreak
%\vspace*{1\p@}%
\hrulefill
\par\nobreak
......@@ -123,9 +130,6 @@
\partnumberfont{\sc\normalsize}
\renewcommand{\rmdefault}{phv} % Arial
\renewcommand{\sfdefault}{phv} % Arial
%%%%%%%%%%%%%%%% COULEURS RGB de l'ED%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definecolor{grisfonce}{RGB}{49,49,49}
\definecolor{grisclair}{RGB}{111,111,111}
......@@ -269,10 +273,11 @@
};
\node at (current page.center)
{\parbox{17.6cm}{
\fontfrontcover % Set front font locally (in this parbox)
\vspace{4.2cm}
\sffamily
{\Huge \textsc{Th\`{e}se de doctorat de}} \\
{\fontfrontcover \Huge \textsc{Th\`{e}se de doctorat de}} \\ % Front font needs to be selected locally in every pair of braces
%\begin{huge}
......@@ -281,33 +286,33 @@
\vspace{2.2cm}
{\setlength{\baselineskip}{0.9\baselineskip} {\large \@unite} \\
{\textsc{\@ubl}} \\
{\setlength{\baselineskip}{0.9\baselineskip} {\fontfrontcover \large \@unite} \\
{\fontfrontcover \textsc{\@ubl}} \\
\par}
\vspace{0.01cm}
{\setlength{\baselineskip}{0.7\baselineskip}
{\textsc{\@ecoledoc}} \\
\textit{\@nomecole} \\
{\fontfrontcover \textsc{\@ecoledoc}} \\
\fontfrontcover \textit{\@nomecole} \\
\@spec
\vspace{0.5cm}
\hspace{0.6cm}Par \vspace{0.3cm}
\par}
\hspace{0.6cm}{\LARGE\textbf{\@author}} \vspace{0.5cm}
\hspace{0.6cm}{\fontfrontcover \LARGE\textbf{\@author}} \vspace{0.5cm}
{\Large\textbf{\@title}} \vspace{0.5cm}
{\fontfrontcover \Large\textbf{\@title}} \vspace{0.5cm}
{\large{\@lesoustitre}} \vspace{0.5cm}
{\fontfrontcover \large{\@lesoustitre}} \vspace{0.5cm}
\begin{spacing}{1}
\small \textbf{Th\`{e}se pr\'{e}sent\'{e}e et soutenue \`{a} \@lieu, le \@date} \\
\small \textbf{\@uniterecherche} \\
\small \textbf{\@numthese}
\fontfrontcover \small \textbf{Th\`{e}se pr\'{e}sent\'{e}e et soutenue \`{a} \@lieu, le \@date} \\
\fontfrontcover \small \textbf{\@uniterecherche} \\
\fontfrontcover \small \textbf{\@numthese}
\end{spacing}
\vspace{1.1cm}
\begin{small}
\begin{spacing}{1}
\@jury
\fontfrontcover \@jury
\end{spacing}
\end{small}
}
......@@ -351,12 +356,12 @@
{\centering \noindent \textcolor{mathSTIC-Color}{\rule{\textwidth}{0.2cm}}}
\vspace{-1cm}
\selectlanguage{french}
\section*{\small\textcolor{mathSTIC-Color}{Titre : }\normalfont#1}
\section*{\fontbackcover\small\textcolor{mathSTIC-Color}{Titre : }{\fontbackcover\mdseries{#1}}}
}
\newcommand{\keywordsFR}[1]{%
\vspace{-0.2cm}
\noindent{\small\textbf{Mot cl\'{e}s : }#1}
\noindent{\fontbackcover \small \textbf{Mot cl\'{e}s : }#1}
}
\newcommand{\abstractFR}[1]{%
......@@ -364,7 +369,7 @@
\begin{multicols}{2}
\begin{small}
\begin{spacing}{1}
\noindent \textbf{R\'{e}sum\'{e} : }#1
\fontbackcover \noindent \textbf{R\'{e}sum\'{e} : }#1
\end{spacing}
\end{small}
\end{multicols}
......@@ -375,12 +380,12 @@
{\centering \noindent \textcolor{mathSTIC-Color}{\rule{\textwidth}{0.2cm}}}
\vspace{-1cm}
\selectlanguage{english}
\section*{\small\textcolor{mathSTIC-Color}{Title: }\normalfont#1}
\section*{\fontbackcover\small\textcolor{mathSTIC-Color}{Title: }{\fontbackcover\mdseries{#1}}}
}
\newcommand{\keywordsEN}[1]{%
\vspace{-0.2cm}
\noindent{\small\textbf{Keywords: }#1}
\noindent{\fontbackcover \small \textbf{Keywords: }#1}
}
\newcommand{\abstractEN}[1]{%
......@@ -388,7 +393,7 @@
\begin{multicols}{2}
\begin{small}
\begin{spacing}{1}
\noindent \textbf{Abstract: }#1
\fontbackcover \noindent \textbf{Abstract: }#1
\end{spacing}
\end{small}
\end{multicols}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment