I'm begginer in Latex and I get this error when I compile my file
LaTeX Error: There's no line here to end.
following is the code that I used :
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{array}
\usepackage{url}
\usepackage{hyperref}
\input{style/packages.tex}
\input{style/style.tex}
\input{title/title.tex}
\begin{document}
\pagestyle{fancy}
\maketitle
\newpage
\input{body/pages/remerciements.tex} \newpage
\input{body/pages/abstract-fr.tex} \newpage
\input{body/pages/abstract-en.tex} \newpage
\renewcommand{\contentsname}{Table of Contents}
\tableofcontents \newpage
\listoffigures
\listoftables \newpage
\input{body/pages/titre1/titre1.tex} \newpage
\input{body/pages/titre2/titre2.tex} \newpage
\input{body/pages/titre3/titre3.tex} \newpage
\input{body/pages/titre4/titre4.tex} \newpage
\input{body/pages/titre5/titre5.tex} \newpage
\input{body/pages/conclusion.tex} \newpage
\bibliographystyle{unsrt}
\bibliography{bibliografie} \newpage
\appendix
\input{appendix/titreA.tex}
\end{document}
This is the content of "title.tex"
\makeatletter
\renewcommand\maketitle{
\begin{titlepage}
\begin{center}
\includegraphics[width=7.2cm]{title/images/logo_entreprise.png}
\hspace{\stretch{1}}
\includegraphics[width=7.2cm]{title/images/logo_centrale.png}
\vspace{\stretch{0.5}}
\begin{tabular*}{1.0\textwidth}{l @{\extracolsep{\fill}} r}
Université Pierre et Marie Curie & \NomEntreprise \\
TFE \@date & Orsay \\
\end{tabular*}
\vspace{\stretch{1.5}}
{\large \bf Rapport Final de Travail de Fin d'études \\}
\vspace{0.5cm}
{\LARGE \bf \@title\\}
\vspace{0.5cm}
{\large \it \@author\\}
\vspace{\stretch{2}}
\\
\includegraphics[width=8cm, height=5cm]{title/images/Encryption.png}
\vspace{\stretch{2}}
\begin{tabular*}{1.0\textwidth}{|l @{\extracolsep{\fill}} r|}
\hline
Tuteurs : & Option : (sigle développé) \\
&\\
\textit{ECL} : & \\
Nom, Prénom Tuteur 1 & Filière : (sigle développé) \\
Nom, Prénom Tuteur 2 & \\
&\\
\textit{Entreprise} : & \\
Nom, Prénom Tuteur 1 & Métier : (sigle développé) \\
Nom, Prénom Tuteur 2 & \\
\hline
\end{tabular*}
\end{center}\par
\end{titlepage}
\setcounter{footnote}{0}
% \global\let\thanks\relax
% \global\let\maketitle\relax
% \global\let\@thanks\@empty
% \global\let\@author\@empty
% \global\let\@date\@empty
% \global\let\@title\@empty
% \global\let\title\relax
% \global\let\author\relax
% \global\let\date\relax
% \global\let\and\relax
}
\makeatother
Can someone tell me where is the problem ?
Best Answer
The
\\
hereis spurious and will always generate this error, simply delete it.
Note also
should be
so that the title is set with a baseline spacing appropriate for the size of the text.