我最近决定使用 latex 制作我的简历。因此,我使用了 overleaf 模板:
https://www.overleaf.com/latex/templates/modernfancycv/bkjntytgpcmq
我现在最不想做的事情就是腾出一点空间。我希望日期(在教育和工作经历部分)分成两行,而不是一行。而不是:
XXX-XXX
我想拥有
XXX-XXX
问题是,在 .cls 中,此模板的作者使用了以下内容:
\RequirePackage{soul}
\setlength{\tabcolsep}{0pt}
\newenvironment{entrylist}{%
\vspace{-0.8mm}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll}
}{%
\end{tabular*}
}
\renewcommand{\bfseries}{\headingfont\color{headercolor}}
\newcommand{\entry}[5]{%
\fontsize{9.4pt}{5cm}\selectfont\addfontfeature{Color=darkergray}#1&\parbox[t]{13.6cm}{%
\fontsize{11.4pt}{5cm}\selectfont\textbf{#2}%
\textbf{\selectfont\addfontfeature{Color=darkergray}#3}%
\hspace{2mm}%
{\footnotesize\addfontfeature{Color=seafoamgreen} #4}\vspace{1mm}\\%
\normalsize#5%
}\\}
在 .tex 中:
\section{EDUCATION}
\begin{entrylist}
\entry
{March, 2005\enspace}
{Advanced Training | }{\small{internal}}
{\normalsize\textbf{\color{ipsgreen}\faMapMarker\space International Parcel Service (IPS)}}
{\jobspace
\begin{itemize}[leftmargin=*, itemsep = 0.1em]
\item Completed the IPS aptitude test for aspiring managerial staff
\item Subsequently decided to keep pursuing his passion for driving and delivering instead\\
\end{itemize}}
\end{entrylist}
我尝试过不同的方法,例如 \newline 或 \break,但在我看来,tabular* 和 entrylist 并不是这里最适合使用的方法。
因此我需要您的建议,以便了解如何进行:)
最好的,
答案1
您可以将#1
的参数放入\entry
其中parbox
,并根据您的喜好调整日期的位置。
\parbox[position][height][inner-pos]{width}{text}
这是一个小型的 MWE。我想您可以编辑 .cls 并创建您的课程。
\documentclass[10pt,a4paper]{article}
\usepackage{fontspec}
\usepackage{xcolor}
\usepackage{enumitem}
\setlength{\tabcolsep}{0pt}
\newenvironment{entrylist}{%
\vspace{-0.8mm}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll}}
{\end{tabular*}
}
%% \parbox[position][height][inner-pos]{width}{text} <<<<<<<
\newcommand{\entry}[5]{%
\parbox[t][1cm][b]{2.5cm}{\fontsize{9.4pt}{5cm}\selectfont\addfontfeature{Color=gray}#1}&\parbox[t]{13.6cm}{%
\fontsize{11.4pt}{5cm}\selectfont\textbf{#2}%
\textbf{\selectfont\addfontfeature{Color=gray}#3}%
\hspace{2mm}%
{\footnotesize\addfontfeature{Color=green} #4}\vspace{1mm}\\%
\normalsize#5%
}\\}
\newcommand{\jobspace}{\vspace*{-4.2mm}}
\begin{document}
\section{EDUCATION}
\begin{entrylist}
\entry
{March, 2005\enspace}
{Advanced Training | }{\small{internal}}
{\normalsize\textbf{\color{green}\space International Parcel Service (IPS)}}
{\jobspace
\begin{itemize}[leftmargin=*, itemsep = 0.1em]
\item Completed the IPS aptitude test for aspiring managerial staff
\item Subsequently decided to keep pursuing his passion for driving and delivering instead\\
\end{itemize}
}
\entry
{1988\,-\,1991\enspace}
{Security Guard | }{\small Nightclub \& Bar}
{\normalsize\textbf{\color{green}\space Sour Polly, Queens, NY}}
{\jobspace
\begin{itemize}[leftmargin=*, itemsep = 0.1em]
\item Providing rigorous access control of costumers
\item Making difficult and critical entry decisions
\item Keeping the customers safe and entertained\\
\end{itemize}
}
\end{entrylist}
\end{document
\begin{document}
我在 Overleaf 模板中添加了(之前)
\renewcommand{\entry}[5]{%
\parbox[t][1cm][b]{2.5cm}{\fontsize{9.4pt}{5cm}\selectfont\addfontfeature{Color=gray}#1}&\parbox[t]{13.6cm}{%
\fontsize{11.4pt}{5cm}\selectfont\textbf{#2}%
\textbf{\selectfont\addfontfeature{Color=gray}#3}%
\hspace{2mm}%
{\footnotesize\addfontfeature{Color=green} #4}\vspace{1mm}\\%
\normalsize#5%
}\\}
我得到了