Text Formatting'There's no line here to end' in titlepage

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
gcomte10
Posts: 4
Joined: Fri Jul 27, 2012 5:34 pm

'There's no line here to end' in titlepage

Post by gcomte10 »

Hello,

It seems to be an error at line 0 of title.tex... The message of this error is "There's no line here to end". I don't understand why...

Here is stage.tex:

Code: Select all

\documentclass[12pt,a4paper]{article}

\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\usepackage{graphicx}

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}

\begin{document}

\input{./title.tex}

\tableofcontents
\newpage

\section{Introduction}

\section{Présentation de l'université}

\section{Déroulement du stage et travail effectué}

\subsection{Découverte de FreeBSD et de KauNet}

\subsection{Apprentissage de Python}

\subsection{Implémentation des tests}

\subsection{Entretiens}

\section{Conclusion}

\section{Annexe -- Usage and design of Kntests}

\end{document}
And here is title.tex:

Code: Select all

\begin{titlepage}

\begin{center}

%Logos
\begin{minipage}{0.45\textwidth}
\begin{flushleft}
\includegraphics[width=0.7\textwidth]{./isae_logo}
\end{flushleft}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\begin{flushright}
\includegraphics[width=0.8\textwidth]{./logo_kau}
\end{flushright}
\end{minipage}

%Titre
\\[2cm]
{\large Rapport de stage}\\[0.5cm]

{\large du 02 Juillet 2012 au 24 Août 2012}\\[0.5cm]

\HRule\\[0.5cm]
{\Huge \textbf{Tests fonctionnels pout l'émulateur de réseau KauNet}}\\[0.3cm]
\HRule\\[0.5cm]

{\large Université de Karlstad, Suède\\[0.5cm]
Guillaume Comte -- 66\up{ème} promotion\\[0.5cm]
Tanguy Pérennou -- ISAE\\
Anna Brunstrom -- KAU}

\end{center}

\vfill

%Date
\begin{flushright}
{\large \today}
\end{flushright}

\end{titlepage}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gcomte10
Posts: 4
Joined: Fri Jul 27, 2012 5:34 pm

'There's no line here to end' in titlepage

Post by gcomte10 »

I've found the problem: \\[2cm] on line 18, it has to be after something. So I've moved it to after \end{minipage}.
Problem solved!
Post Reply