Clean code to be lesser than 80 chars of width
This commit is contained in:
parent
9c8d1ad2f7
commit
892d36557d
@ -100,9 +100,19 @@
|
|||||||
|
|
||||||
% sizing of the page, depending on the size parameter of the class
|
% sizing of the page, depending on the size parameter of the class
|
||||||
\ifthenelse{ \equal{\size}{a5} }{
|
\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
|
% title, header and footer
|
||||||
@ -115,7 +125,8 @@
|
|||||||
|
|
||||||
% KOMA-Script version (preferred)
|
% KOMA-Script version (preferred)
|
||||||
\ifthenelse{ \equal{\type}{ds} }{
|
\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 :}
|
\lohead[NOM :\\Prénom :]{NOM :\\Prénom :}
|
||||||
\rohead[Le \@date]{Le \@date}
|
\rohead[Le \@date]{Le \@date}
|
||||||
\cehead[]{}
|
\cehead[]{}
|
||||||
@ -123,7 +134,8 @@
|
|||||||
\rehead[]{}
|
\rehead[]{}
|
||||||
}{
|
}{
|
||||||
\ifthenelse{ \equal{\type}{dm} }{
|
\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 :}
|
\lohead[NOM :\\Prénom :]{NOM :\\Prénom :}
|
||||||
\rohead[\@date]{\@date}
|
\rohead[\@date]{\@date}
|
||||||
\cehead[]{}
|
\cehead[]{}
|
||||||
@ -131,7 +143,8 @@
|
|||||||
\rehead[]{}
|
\rehead[]{}
|
||||||
}{
|
}{
|
||||||
\ifthenelse{ \equal{\type}{int} }{
|
\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 :}
|
\lohead[NOM :\\Prénom :]{NOM :\\Prénom :}
|
||||||
\rohead[\@date]{\@date}
|
\rohead[\@date]{\@date}
|
||||||
\cehead[]{}
|
\cehead[]{}
|
||||||
@ -176,18 +189,19 @@
|
|||||||
|
|
||||||
% print a "Please, turn the page" at bottom right of the page
|
% print a "Please, turn the page" at bottom right of the page
|
||||||
\NewDocumentCommand \turnpage{ }{
|
\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}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
% amsthm style for exercises
|
% amsthm style for exercises
|
||||||
\newtheoremstyle{exostyle}
|
\newtheoremstyle{exostyle}
|
||||||
{\topsep}% espace avant
|
{\topsep}% espace avant
|
||||||
{\topsep}% espace apres
|
{\topsep}% espace apres
|
||||||
{}% Police utilisee par le style de thm
|
{}% Police utilisee par le style de thm
|
||||||
{}% Indentation (vide = aucune, \parindent = indentation paragraphe)
|
{}% Indentation (vide = aucune, \parindent = indentation paragraphe)
|
||||||
{\bfseries}% Police du titre de thm
|
{\bfseries}% Police du titre de thm
|
||||||
{}% Signe de ponctuation apres le titre du thm
|
{}% Signe de ponctuation apres le titre du thm
|
||||||
{\newline}% Espace apres le titre du thm (\newline = linebreak)
|
{\newline}% Espace apres le titre du thm (\newline = linebreak)
|
||||||
{%
|
{%
|
||||||
\if\relax\detokenize{#3}\relax
|
\if\relax\detokenize{#3}\relax
|
||||||
|
Loading…
x
Reference in New Issue
Block a user