软件包不断出现“辅助文件”错误lastpage
。相同的代码在另一个文件中有效,但在这个文件中无效(代码在此处提供)。请帮忙!谢谢!
\documentclass[margin, 11pt]{res}
\setlength{\textwidth}{5.1in}
\usepackage{helvet} % Default font is the helvetica postscript font
\usepackage{lastpage}
\usepackage{fancyhdr} % http://ctan.org/pkg/fancyhdr
\pagestyle{fancy} % Set default page style to fancy
\renewcommand{\headrulewidth}{0pt} % Remove header rule
\fancyhead{} % Remove all header contents
\cfoot{Parul Gupta\\ Page \thepage\ of \pageref{LastPage}}
% Page X of Y in the footer (centered)
\begin{document}
%----------------------------------------------------------------------------------------
% NAME AND ADDRESS SECTION
%----------------------------------------------------------------------------------------
%\cfoot{\thepage\ of \pageref{LastPage}}
\moveleft.5\hoffset\centerline{\large\bf Parul Gupta} % Your name at the top
\moveleft\hoffset\vbox{\hrule width\resumewidth height 0.25pt}\smallskip % Horizontal line after name; adjust line thickness by changing the '1pt'
\moveleft.5\hoffset\centerline{add line 1 } % Your address
\moveleft.5\hoffset\centerline{add line 2}
%\moveleft.5\hoffset\centerline{}
%----------------------------------------------------------------------------------------
\begin{resume}
\end{resume}
\end{document}