From 46170cd670b616ccfef93f57ecf1b432b4a8708d Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov Date: Thu, 21 May 2015 16:14:22 +0200 Subject: [PATCH] Define \xcenteredsection and use it for the motivational letter. Using \xsection{\centerline{ }} also centers the corresponding line in the table of contents. --- candidature.sty | 7 +++++++ motivation.tex | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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}