I am getting this error message every time. I tried everything I know, this is only a small litter it is not that big... please help me. Here is my code:




\def\FileTitle{\firstname~\familyname's Bewerbungsschreiben}
\def\FileKeyWords{\firstname~\familyname, Bewerbungsschreiben}

    pdfauthor   = \FileAuthor,%
    pdftitle    = \FileTitle,%
    pdfsubject  = \FileSubject,%
    pdfkeywords = \FileKeyWords,%
    pdfcreator  = \LaTeX,%
    pdfproducer = \LaTeX}

\hypersetup{pdfborder=0 0 0}

\sffamily   % for use with a résumé using sans serif fonts;
%\rmfamily  % for use with a résumé using serif fonts;
    {\bfseries {\color{firstnamecolor}\firstname}~{\color{familynamecolor}\familyname}}\\[.35ex]
    Basler Straße 58a\\
    /9100 Freiburg im Breisgau\\[.35ex]
    \Mobilefone~+49 177 1642 709\\
    \Letter~\href{mailto:[email protected]}{[email protected]}
    % {\bfseries {\color{firstnamecolor}
    Allianz SE\\[.35ex]
    % }}
    Fritz-Schäffer-Straße 9\\
    81737 München
    \raggedleft % US style
    %April 6, 2006 % US informal style
    %05/04/2006 % UK formal style

{\bfseries \color{familynamecolor}Bewerbung als blaaaaaal}\\[1.5em]

Sehr geehrtere Damen und Herren,\\[1em]
bla bla \\

%Yours sincerely,\\[2em] % if the opening is "Dear Mr(s) Doe,"
Mit freundlichen Grüßen,\\[3em] % if the opening is "Dear Sir or Madam,"
{\bfseries \firstname~\familyname}\\
{\slshape \bfseries Bewerbungsunterlagen}\\
% {\slshape Curriculum Vit\ae{}}
  • 2
    Don't load \usepackage{ngerman} when you also load babel. \usepackage{ngerman} is generally considered outdated with babel or polyglossia the up-to-date replacement. Remove the \usepackage{ngerman}.
    – moewe
    May 19, 2020 at 18:01
  • Most people don't need \usepackage[utf8x]{inputenc}. \usepackage[utf8]{inputenc} (which is the default in LaTeX versions from April 2018 or newer) is enough for most uses.
    – moewe
    May 19, 2020 at 18:02
  • The \ifpdf...\fi block to load graphicx is unnecessary in modern systems. Remove the complete block and just say \usepackage{graphicx}. (Similarly \usepackage[pdftex]{color} should be \usepackage{color}.)
    – moewe
    May 19, 2020 at 18:03
  • How or where is the block environment defined?
    – Mico
    May 19, 2020 at 18:08
  • 1
    @moewe "modern" here means after 1994 :-) May 19, 2020 at 19:21

1 Answer 1


Stop loading the obsolete and deprecated ngerman package, which was last updated in 1998, and the ! TeX capacity exceeded, sorry [input stack size=5000] error no longer occurs.

At a minimum, you should further define the block environment (possibly by loading a suitable package?), replace \setlength{\parindent}{0pt} \addtolength{\parskip}{6pt} with something like \usepackage[skip=0.5\baselineskip]{parskip}, and replace

\href{mailto:[email protected]}{[email protected]}


\href{mailto:[email protected]}{\nolinkurl{[email protected]}}

Oh, and do yourself a favor and replace




unless, of course, you treasure code clutter.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .