Define \xcenteredsection and use it for the motivational letter.

Using \xsection{\centerline{ }} also centers the corresponding line in the
table of contents.
This commit is contained in:
Sergiu Ivanov 2015-05-21 16:14:22 +02:00
parent 7cb961021e
commit 46170cd670
2 changed files with 8 additions and 1 deletions

View file

@ -24,3 +24,10 @@
\section*{#1} \section*{#1}
\addcontentsline{toc}{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}
}

View file

@ -1,6 +1,6 @@
\newgeometry{text={154mm,253mm},top=25mm,centering} \newgeometry{text={154mm,253mm},top=25mm,centering}
\xsection{\centerline{Lettre de motivation}} \xcenteredsection{Lettre de motivation}
\thispagestyle{empty} \thispagestyle{empty}
\vspace{13mm} \vspace{13mm}