diff --git a/candidature.sty b/candidature.sty index 83354cb..a54eae6 100644 --- a/candidature.sty +++ b/candidature.sty @@ -24,3 +24,10 @@ \section*{#1} \addcontentsline{toc}{section}{#1} } + +% Set up an unnumbered section, with a centred title, appearing in the +% table of contents. +\newcommand{\xcenteredsection}[1]{ + \section*{\centerline{#1}} + \addcontentsline{toc}{section}{#1} +} diff --git a/motivation.tex b/motivation.tex index 74d25e2..6b1f1bb 100644 --- a/motivation.tex +++ b/motivation.tex @@ -1,6 +1,6 @@ \newgeometry{text={154mm,253mm},top=25mm,centering} -\xsection{\centerline{Lettre de motivation}} +\xcenteredsection{Lettre de motivation} \thispagestyle{empty} \vspace{13mm}