!LaTeX 错误:未找到文件“res.cls”。为什么?

!LaTeX 错误:未找到文件“res.cls”。为什么?

我是 Latex 新手,想创建一份简历。我在这里找到了一个简历模板关联并在我的电脑上下载了 res9a.tex。当我在 Texmaker 上打开此文件并单击“快速构建”时,出现以下错误:!LaTeX 错误:未找到文件“res.cls”。

于是我回到链接并点击了 res.cls,打开了以下内容网页。为了在 Texmaker 上成功运行简历代码,我接下来该怎么做?

为了方便起见,res9a.tex中给出的简历代码如下:

% LaTeX resume using res.cls
\documentclass[margin]{res}
%\usepackage{helvetica} % uses helvetica postscript font (download      helvetica.sty)
%\usepackage{newcent}   % uses new century schoolbook postscript font 
\setlength{\textwidth}{5.1in} % set width of text portion

 \begin{document}

 % Center the name over the entire width of resume:
 \moveleft.5\hoffset\centerline{\large\bf Susan R. Bumpershoot}
 % Draw a horizontal line the whole width of resume:
  \moveleft\hoffset\vbox{\hrule width\resumewidth height 1pt}\smallskip
 % address begins here
 % Again, the address lines must be centered over entire width of resume:
  \moveleft.5\hoffset\centerline{1985 Storm Lane}
  \moveleft.5\hoffset\centerline{Troy, NY 12180}
  \moveleft.5\hoffset\centerline{(518) 273-0014 or (518) 272-6666}


 \begin{resume}

 \section{OBJECTIVE}  A position in the field of computers with special 
            interests in business applications programming, 
            information processing, and management systems. 


 \section{EDUCATION} {\sl Bachelor of Science,} Interdisciplinary Science \\
                  % \sl will be bold italic in New Century Schoolbook (or
              % any postscript font) and just slanted in
          % Computer Modern (default) font
            Rensselaer Polytechnic Institute, Troy, NY, 
            expected December 1990 \\
            Concentration: Computer Science \\
            Minor: Management 


\section{COMPUTER \\ SKILLS} {\sl Languages \& Software:} COBOL, IFPS, Focus, 
     Megacalc, Pascal, Modula2, C, APL, SNOBOL, 
            FORTRAN, LISP, SPIRES, BASIC, VSPC Autotab, 
            IBM 370 Assembler, Lotus 1-2-3. \\
            {\sl Operating Systems:} MTS, TSO, Unix. 

 \section{EXPERIENCE} {\sl Business Applications Programmer} \hfill Fall 1990 \\
            Allied-Signal Bendix Friction Materials Division, 
            Financial Planning Department, Latham, NY 
             \begin{itemize}  \itemsep -2pt %reduce space between items
             \item Developed four ``user friendly" forecasting 
                systems each of which produces 18 to 139 
                individual reports. 
            \item   Developed or improved almost all IFPS 
                programs used for financial reports. 
            \end{itemize}

            {\sl Research Programmer} \hfill            Summer 1990 \\
            Psychology Department, Rensselaer Polytechnic 
            Institute 
             \begin{itemize}  \itemsep -2pt %reduce space between items
             \item Performed computer aided statistical analysis 
                of data. 
             \end{itemize} 
            {\sl Assistant Manager} \hfill        Summers 1988-89 \\
            Thunder Restaurant, Canton, CT
              \begin{itemize}
               \item Recognized need for, developed, and wrote 
                employee training manual. Performed various 
                duties including cooking, employee training, 
                ordering, and inventory control. 
               \end{itemize} 

  \section{COMMUNITY \\ SERVICE}  Organized and directed the 1988 and 1989 Grand 
             Marshall Week \newline ``Basketball Marathon.'' A 24 hour 
            charity event to benefit the Troy Boys Club. Over 
            250 people participated each year. 

  \section{EXTRA-CURRICULAR \\ ACTIVITIES}             
        Elected {\it House Manager}, Rho Phi Sorority \\
        Elected {\it Sports Chairman} \\
        Attended Krannet Leadership Conference \\
            Headed delegation to Rho Phi Congress \\
            Junior varsity basketball team \\
            Participant, seven intramural athletic teams 


 \end{resume}
 \end{document}

答案1

请访问此网站并下载此文件目录。把它和.tex文件放在一起。然后它就可以工作了。

答案2

我找到了答案。按照他的链接,打开 res.sty 的链接,将其复制到 .txt 文件中,然后重命名文件“res.sty”。然后,将文件放入您要运行的 tex 文件的同一目录中。

相关内容