I have some problem with my title page. I would like to use the title page of the university of bonn (https://www.mathematics.uni-bonn.de/studium/bachelor/pruefungen/bachelorarbeit). But it isn't working, a friend of mine is using it without problems.

So I have one document named BA_titleseite.sty:


% Titelseite:

  \let \footnote \thanks


\parbox{10cm}{\centering\huge\bfseries \@title \par}\\
Geboren am \@geburtsdatum \ in \@geburtsort\\
{\large \@date}

{\large \@ausarbeitungstyp}\\
{\large \@betreuer}\\
{\large \@zweitgutachter}\\
\centerline{{\large\scshape \@institut}}

\centerline{{\large\scshape Mathematisch-Naturwissenschaftliche Fakult\"at der}}
\centerline{{\large\scshape Rheinischen Friedrich-Wilhelms-Universit\"at Bonn}}




% END Titelseite


So and if I want to use this title page in another document it dosent work. And here is what I did:

\documentclass[11pt, a4paper, german]{article}
\usepackage{amsmath, amsfonts, amsthm,}
\geometry{a4paper,left=40mm,right=30mm, top=2cm, bottom=2cm}
\date{Wintersemester 2018/2019}
\ausarbeitungstyp{Bachelorarbeit Stochastik}

The error which I get is: there's no line here to end.

Maybe you have a clue to solve the problem.

  • your usepackage amsmaths etc ends on a , which looks not quite right also you can input äü and the like directly via your keyboard and you do not need to construct them yourself with utf8 encoding and german language support... – der bender Apr 4 '19 at 15:32

You need to give some text to the \zweitgutachter command (i.e., \zweitgutachter{Someone}).

The guilty part of the code is the line {\large \@zweitgutachter}\\. When \@zweitgutachter is empty this becomes only a \\ inside a center environment, which is equivalent to this:


which throws the same error.

If you don't want a \zweitgutachter then you can change the style file a little bit to ignore if the field is empty. Replace the lines:

{\large \@zweitgutachter}\\


  {\large \@zweitgutachter}\\
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.