Clean code to be lesser than 80 chars of width

This commit is contained in:
Jeff Lance 2018-11-07 23:52:04 +01:00
parent 9c8d1ad2f7
commit 892d36557d

View File

@ -100,9 +100,19 @@
% sizing of the page, depending on the size parameter of the class
\ifthenelse{ \equal{\size}{a5} }{
\geometry{a5paper, landscape, includeheadfoot, hmargin=.8cm, vmargin=.8cm, head=14.5pt}
\geometry{
a5paper,
landscape,
includeheadfoot,
hmargin=.8cm,
vmargin=.8cm,
head=14.5pt}
}{
\geometry{a4paper, includeheadfoot, hmargin=.8cm, vmargin=.8cm, head=14.5pt}
\geometry{a4paper,
includeheadfoot,
hmargin=.8cm,
vmargin=.8cm,
head=14.5pt}
}
% title, header and footer
@ -115,7 +125,8 @@
% KOMA-Script version (preferred)
\ifthenelse{ \equal{\type}{ds} }{
\cohead[\textbf{MATHÉMATIQUES}\\\textbf{Devoir surveillé}]{\textbf{MATHÉMATIQUES}\\\textbf{Devoir surveillé}}
\cohead[\textbf{MATHÉMATIQUES}\\\textbf{Devoir surveillé}]
{\textbf{MATHÉMATIQUES}\\\textbf{Devoir surveillé}}
\lohead[NOM :\\Prénom :]{NOM :\\Prénom :}
\rohead[Le \@date]{Le \@date}
\cehead[]{}
@ -123,7 +134,8 @@
\rehead[]{}
}{
\ifthenelse{ \equal{\type}{dm} }{
\cohead[\textbf{MATHÉMATIQUES}\\\textbf{Devoir maison}]{\textbf{MATHÉMATIQUES}\\\textbf{Devoir maison}}
\cohead[\textbf{MATHÉMATIQUES}\\\textbf{Devoir maison}]
{\textbf{MATHÉMATIQUES}\\\textbf{Devoir maison}}
\lohead[NOM :\\Prénom :]{NOM :\\Prénom :}
\rohead[\@date]{\@date}
\cehead[]{}
@ -131,7 +143,8 @@
\rehead[]{}
}{
\ifthenelse{ \equal{\type}{int} }{
\cohead[\textbf{MATHÉMATIQUES}\\\textbf{Interrogation}]{\textbf{MATHÉMATIQUES}\\\textbf{Interrogation}}
\cohead[\textbf{MATHÉMATIQUES}\\\textbf{Interrogation}]
{\textbf{MATHÉMATIQUES}\\\textbf{Interrogation}}
\lohead[NOM :\\Prénom :]{NOM :\\Prénom :}
\rohead[\@date]{\@date}
\cehead[]{}
@ -176,7 +189,8 @@
% print a "Please, turn the page" at bottom right of the page
\NewDocumentCommand \turnpage{ }{
\rofoot[\textit{Tourner la page, svp} \faHandORight]{\textit{Tourner la page, svp} \faHandORight}
\rofoot[\textit{Tourner la page, svp} \faHandORight]
{\textit{Tourner la page, svp} \faHandORight}
}