我每次都会收到此错误消息。我尝试了所有我知道的方法,但这只是一个小问题,并不是那么严重……请帮助我。这是我的代码:
\documentclass[11pt,a4paper]{article}
\usepackage{ngerman}
\usepackage[ngerman]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{marvosym}
\usepackage{ifpdf}
\usepackage[pdftex]{color}
\ifpdf
\usepackage[pdftex]{graphicx}
\else
\usepackage[dvips]{graphicx}\fi
\pagestyle{empty}
\usepackage[scale=0.775]{geometry}
\setlength{\parindent}{0pt}
\addtolength{\parskip}{6pt}
\def\firstname{Nabil}
\def\familyname{Sifo}
\def\FileAuthor{\firstname~\familyname}
\def\FileTitle{\firstname~\familyname's Bewerbungsschreiben}
\def\FileSubject{Bewerbungsschreiben}
\def\FileKeyWords{\firstname~\familyname, Bewerbungsschreiben}
\renewcommand{\ttdefault}{pcr}
\hyphenation{ins-be-son-de-re}
\usepackage{url}
\urlstyle{tt}
\ifpdf
\usepackage[pdftex,pdfborder=0,breaklinks,baseurl=http://,pdfpagemode=None,pdfstartview=XYZ,pdfstartpage=1]{hyperref}
\hypersetup{
pdfauthor = \FileAuthor,%
pdftitle = \FileTitle,%
pdfsubject = \FileSubject,%
pdfkeywords = \FileKeyWords,%
pdfcreator = \LaTeX,%
pdfproducer = \LaTeX}
\else
\usepackage[dvips]{hyperref}
\fi
\definecolor{firstnamecolor}{RGB}{125,85,85}
\definecolor{familynamecolor}{RGB}{138,74,57}
\hypersetup{pdfborder=0 0 0}
\begin{document}{}
\begin{block}{Blocktitel}
\sffamily % for use with a résumé using sans serif fonts;
%\rmfamily % for use with a résumé using serif fonts;
\hfill%
\begin{minipage}[t]{.6\textwidth}{}
\raggedleft%
{\bfseries {\color{firstnamecolor}\firstname}~{\color{familynamecolor}\familyname}}\\[.35ex]
\small\itshape%
Basler Straße 58a\\
/9100 Freiburg im Breisgau\\[.35ex]
\Mobilefone~+49 177 1642 709\\
\Letter~\href{mailto:[email protected]}{[email protected]}
\end{minipage}\\[0.5em]
%
{\color{firstnamecolor}\rule{\textwidth}{.25ex}}
%
\begin{minipage}[t]{.4\textwidth}{}
\raggedright%
% {\bfseries {\color{firstnamecolor}
\vspace*{1em}
Allianz SE\\[.35ex]
% }}
\small%
Fritz-Schäffer-Straße 9\\
81737 München
\end{minipage}
%
\hfill
%
\begin{minipage}[t]{.4\textwidth}
\raggedleft % US style
\today
%April 6, 2006 % US informal style
%05/04/2006 % UK formal style
\end{minipage}\\[1em]
\raggedright
\begin{block}{}
{\bfseries \color{familynamecolor}Bewerbung als blaaaaaal}\\[1.5em]
Sehr geehrtere Damen und Herren,\\[1em]
%
bla bla \\
blabla
%Yours sincerely,\\[2em] % if the opening is "Dear Mr(s) Doe,"
Mit freundlichen Grüßen,\\[3em] % if the opening is "Dear Sir or Madam,"
%
%\includegraphics[scale=0.75]{signature_blue}\\
{\bfseries \firstname~\familyname}\\
%
\vfill%
{\slshape \bfseries Bewerbungsunterlagen}\\
% {\slshape Curriculum Vit\ae{}}
\end{block}
\end{block}
\end{document}
答案1
停止加载过时且弃用的ngerman
软件包(该软件包最后更新于 1998 年),错误! TeX capacity exceeded, sorry [input stack size=5000]
不再发生。
至少,你应该进一步定义block
环境(可能通过加载合适的包?),\setlength{\parindent}{0pt} \addtolength{\parskip}{6pt}
用类似的东西替换\usepackage[skip=0.5\baselineskip]{parskip}
,然后替换
\href{mailto:[email protected]}{[email protected]}
和
\href{mailto:[email protected]}{\nolinkurl{[email protected]}}
哦,帮自己一个忙,更换
\usepackage[pdftex]{color}
\ifpdf
\usepackage[pdftex]{graphicx}
\else
\usepackage[dvips]{graphicx}\fi
和
\usepackage{color}
\usepackage{graphicx}
当然,除非你的宝藏代码混乱。