I'm having a problem that I can't even begin to understand the reason why it is happening. Last time I compiled, the result of my title page was normal:
Now for some reason after the last compilations, there is a header and a footer on the title page and it looks broken :
I tried to put a thispagestyle{empty} after the \maketitle command but it doesn't seem to work. Here's my code :
%HEADER
\fancypagestyle{plain}{
\fancyhf{}% Clear header/footer
\fancyhead[L]{Stage CME}
\fancyhead[R]{Centrale Nantes - EMFI Haguenau}% Right header
\fancyfoot[L]{\today}% Left footer
\fancyfoot[R]{\thepage\ / 15}% Right footer
}
\pagestyle{plain}
%TITLE
\title{\textsc{stage connaissance du monde de l'entreprise} \\ Stage au service contrôle process \textsc{emfi} Haguenau \\ Rapport de stage}
\author{Jérémy Diallo \\ \\ \textbf{Tuteur en entreprise :} \textsc{ober} Patrick \\ \\ \textbf{Responsable Centrale Nantes :} \textsc{le brizaut} Jean-Sébastien}
\date{Juillet 2016}
%DEBUT DU DOCUMENT
\begin{document}
\begin{multicols}{2}
%LOGOS
\begin{figure}[H]
\flushleft
\includegraphics[scale=0.1]{logoECN.png}
\end{figure}
\begin{figure}[H]
\flushright
\includegraphics[scale=0.2]{emfi.png}
\end{figure}
\end{multicols}
{\let\newpage\relax\maketitle}
\thispagestyle{empty}
\tableofcontents
I'm thiking maybe it has something to do with the packages I use but I don't remember changing anything between compilations. Here's my package call anyway :
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
\usepackage{graphicx}
\usepackage{layout}
\usepackage{eurosym}
\PassOptionsToPackage{hyphens}{url}\usepackage{hyperref}
\usepackage[left=4cm, right = 4cm, top = 3.5cm, bottom = 3.5cm]{geometry}
\usepackage{multicol}
\usepackage{fancyhdr}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{placeins}
\usepackage{pdfpages}
\usepackage{tocloft}
%For the trademarks
\usepackage{textcomp}
%FILIGRANE
\usepackage{draftwatermark}
\usepackage{appendix}
Any help is welcomed, thanks in advance 🙂
Best Answer
You're better to define your own page style, rather than redefining
plain
.I made some changes to your code, notably
document
page style is in force throughout the documentplain
page style will be used by\maketitle
hyperref
should be lastlastpage
will allow to use\pageref{LastPage}
instead of hard coding the last page number\includegraphics
has to be in afigure
environment)fix-cm
in order to get a big watermarkHere's the same with
report
:The title block is not really centered (you got approximate centering by pure chance); other changes are needed if you want vertical centering, but it's unclear with respect to what.