在我想用 LaTeX 编写的简历中,当我使用以下命令时出现奇怪的错误rSection
:
\documentclass{resume} % Use the custom resume.cls style
\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry} % Document margins
\newcommand{\tab}[1]{\hspace{.2667\textwidth}\rlap{#1}}
\newcommand{\itab}[1]{\hspace{0em}\rlap{#1}}
\name{Shakiba } % Your name
%\address{The address} % Your address
\begin{document}
\begin{rSection}{Education}
{\bf University Of California-Riverside} \hfill {\em Date}
\\{\bf University of Tehran} \hfill {\em Date}
\\ Bachelor of Physics\\
\\Department of Physics
end{rSection}
\end{document}
错误说:
环境 rSection 未定义。
有人能帮助我吗?
答案1
您的代码中有两个问题:
{\bf University Of California-Riverside} \hfill {\em Date}
\\{\bf University of Tehran} \hfill {\em Date}
空行会导致错误,删除它并
end{rSection}
以下为主要\
缺失内容。
使用更正后的代码
\documentclass{resume} % Use the custom resume.cls style
\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry} % Document margins
\newcommand{\tab}[1]{\hspace{.2667\textwidth}\rlap{#1}}
\newcommand{\itab}[1]{\hspace{0em}\rlap{#1}}
\name{Shakiba } % Your name
%\address{The address} % Your address
\begin{document}
\begin{rSection}{Education}
{\bf University Of California-Riverside} \hfill {\em Date}
\\{\bf University of Tehran} \hfill {\em Date}
\\ Bachelor of Physics\\
\\Department of Physics
\end{rSection} % <======================================================
\end{document}
我得到了结果
使用resume
来自 www.LaTeXTemplates.com 的类(中长度专业简历 - 简历类文件)。