我正在制作简历并希望达到如下效果:
University 1
Degree 1 Jan 2016 -- Present
Details about degree 1
Degree 2 Previous -- Jan 2016
Details about degree 2
University 2 Degree X
Details about degree X
目前,我有以下代码,要求我输入同一所大学两次。如果我第二次不输入,则只有一个空白行。同样的方法也适用于不同雇主的不同职位。
\documentclass[10pt,a4paper]{moderncv}
\moderncvtheme[blue]{banking}
\usepackage[utf8]{inputenc} %Windows
\firstname{Student}
\familyname{of Master}
%\title{Dragonkin}
\address{70 x street}{xxxx}
\mobile{+61 xxx xxx xxx}
\email{[email protected]}
\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\makeatother
\usepackage{multibib,comment}
\newcites{book,misc}{{Books},{Others}}
\nopagenumbers{}
\begin{document}
\setlength{\parskip}{-0.09em}%Change space between entries
%%%%%%Change space between sections
\maketitle
\vspace{-1.3cm}
\section{Education}
\cventry{{2016--Present}}{Postgraduate degree}{University of Gauss}{Antarctica}{}{Details about degree}
\cventry{{2011--2015}}{Undergraduate degree}{University of Gauss}
{Antarctica}{}{Details}
\cventry{{2006--2010}}{High school certificate}{High School}{London}{}{details
}
\end{document}
答案1
不幸的是,该主题不够灵活。一个简单的修补方法是根据\cventry
该主题的原始定义定义您自己的命令。
\newcommand*{\cvsimple}[4][.25em]{
\begin{tabular*}{\maincolumnwidth}{l@{\extracolsep{\fill}}r}%
% {\bfseries #4} & {\bfseries #5}\\%
{\itshape #3} & {\itshape #2}\\%
\end{tabular*}%
\ifx&%
\else{\\%
\begin{minipage}{\maincolumnwidth}%
\small#4%
\end{minipage}}\fi%
\par\addvspace{#1}}
有了这个定义你可以写
\cventry{{2016--Present}}{Postgraduate degree}{University of Gauss}{Antarctica}{}{Details about degree}
\cvsimple{{2016--Present}}{Postgraduate degree}{Details about degree}
得到你想要的。
以下是完整修改后的代码
\documentclass[10pt,a4paper]{moderncv}
\moderncvtheme[blue]{banking}
\usepackage[utf8]{inputenc} %Windows
\firstname{Student}
\familyname{of Master}
%\title{Dragonkin}
\address{70 x street}{xxxx}
\mobile{+61 xxx xxx xxx}
\email{[email protected]}
\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\newcommand*{\cvsimple}[4][.25em]{
\begin{tabular*}{\maincolumnwidth}{l@{\extracolsep{\fill}}r}%
% {\bfseries #4} & {\bfseries #5}\\%
{\itshape #3} & {\itshape #2}\\%
\end{tabular*}%
\ifx&%
\else{\\%
\begin{minipage}{\maincolumnwidth}%
\small#4%
\end{minipage}}\fi%
\par\addvspace{#1}}
\makeatother
\usepackage{multibib,comment}
\newcites{book,misc}{{Books},{Others}}
\nopagenumbers{}
\begin{document}
\setlength{\parskip}{-0.09em}%Change space between entries
%%%%%%Change space between sections
\maketitle
\vspace{-1.3cm}
\section{Education}
\cventry{{2016--Present}}{Postgraduate degree}{University of Gauss}{Antarctica}{}{Details about degree}
\cvsimple{{2016--Present}}{Postgraduate degree}{Details about degree}
\cventry{{2011--2015}}{Undergraduate degree}{University of Gauss}
{Antarctica}{}{Details}
\cventry{{2006--2010}}{High school certificate}{High School}{London}{}{details
}
\end{document}
细节
上述定义\cvsimple
基于\cventry
银行主题使用的定义,令人困惑的是,该定义包含在文件中moderncvbodyiii.sty
:
\renewcommand*{\cventry}[7][.25em]{
\begin{tabular*}{\maincolumnwidth}{l@{\extracolsep{\fill}}r}%
{\bfseries #4} & {\bfseries #5}\\%
{\itshape #3\ifthenelse{\equal{#6}{}}{}{, #6}} & {\itshape #2}\\%
\end{tabular*}%
\ifx&%
\else{\\%
\begin{minipage}{\maincolumnwidth}%
\small#7%
\end{minipage}}\fi%
\par\addvspace{#1}}