I'm using MiKTeX 2.9 and i'm new to TeX.
Simplified, I have this code:
\newcommand{\aone}{Anna}
\newcommand{\atwo}{Bob}
\newcommand{\topic}{Tpoic}
\subject{University \\ Paper}
\title{ \\topic\\ suubtitle}
\author{\aone\and \atwo}
\begin{document}
\begin{titlepage}
\maketitle
\end{titlepage}
\end{document}
Error:
There's no line here to end. \end (at
\end{titlepage}
)
Log:
l.7
\end{titlepage}
What can be the problem? I have exclude the titlepage, all seems ok. I have no idea.
\title
is the source of the error.\maketitle
you do not need to enclose it in atitlepage
-environment. just writing\maktitle
should do the trick\vskip1em
at the beginning of your title instead of a newline\\
. (Optionally, replace the1em
part with the amount by which you want the title to be shifted downwards).