![如何在 moderncv 中获取子条目?](https://linux22.com/image/284895/%E5%A6%82%E4%BD%95%E5%9C%A8%20moderncv%20%E4%B8%AD%E8%8E%B7%E5%8F%96%E5%AD%90%E6%9D%A1%E7%9B%AE%EF%BC%9F.png)
在我的简历中,我希望实习能够成为我硕士教育的一个子条目。
梅威瑟:
\documentclass[12pt,a4paper,sans]{moderncv}
\moderncvtheme[green]{classic}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.8]{geometry}
\firstname{Ice}
\familyname{Rabbit}
\title{curriculum vitae}
\begin{document}
\begin{center}
\makecvtitle
\end{center}
\section{Education}
\cventry{2011 -- 2014}{Master Penguin science}{University of Queen Maud Land}{Antarctica}{}{More learning about penguin behaviour in Antarctica.}
\cventry{2012}{Internship}{University of Ellesmere Island}{Nunavut, Canada}{}{Internship assignment. The goal was to find penguins in the Canadian Arctic.}
\cventry{2006 -- 2011}{Bachelor Penguin science}{University of Queen Maud Land}{Antarctica}{}{Learning about penguin behaviour.}
\end{document}
结果
我得到的建议是缩进实习条目,以便更清楚地表明这是我硕士教育的一部分,而不是单独的教育。
我该如何缩进此条目?或者,是否有其他方法可以清楚地列出我的实习作为硕士教育的一部分?我确实希望实习能够清晰地呈现,因为在我的真实简历上,它显示了一些良好的成就(国际经验、高分、科学出版物)
答案1
您可以定义一个新命令\subcventry
并在\cventry
需要缩进时使用它:
\newcommand*{\subcventry}[7][.25em]{%
\cvitem[#1]{#2}{%
{\hspace*{1em}\bfseries#3}%
\ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}%
\ifthenelse{\equal{#5}{}}{}{, #5}%
\ifthenelse{\equal{#6}{}}{}{, #6}%
.\strut%
\ifx&%
\else{\newline{}\hspace*{1em}\begin{minipage}[t]{\dimexpr\linewidth-1em}\small#7\end{minipage}}\fi}}
注意,如果要调整缩进,则必须修改1em
定义中出现三次的 。
梅威瑟:
\documentclass[12pt,a4paper,sans]{moderncv}
\moderncvtheme[green]{classic}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.8]{geometry}
\firstname{Ice}
\familyname{Rabbit}
\title{curriculum vitae}
\newcommand*{\subcventry}[7][.25em]{%
\cvitem[#1]{#2}{%
{\hspace*{1em}\bfseries#3}%
\ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}%
\ifthenelse{\equal{#5}{}}{}{, #5}%
\ifthenelse{\equal{#6}{}}{}{, #6}%
.\strut%
\ifx&%
\else{\newline{}\hspace*{1em}\begin{minipage}[t]{\dimexpr\linewidth-1em}\small#7\end{minipage}}\fi}}
\begin{document}
\begin{center}
\makecvtitle
\end{center}
\section{Education}
\cventry{2011 -- 2014}{Master Penguin science}{University of Queen Maud Land}{Antarctica}{}{More learning about penguin behaviour in Antarctica.}
\subcventry{2012}{Internship}{University of Ellesmere Island}{Nunavut, Canada}{}{Internship assignment. The goal was to find penguins in the Canadian Arctic.}
\cventry{2006 -- 2011}{Bachelor Penguin science}{University of Queen Maud Land}{Antarctica}{}{Learning about penguin behaviour.}
\end{document}
输出:
答案2
如果cvline
和enumitem
被允许,这是一个替代方案,其中\ccvline
定义一个采用 4 个参数(年份、职称/工作、学校、描述)的自定义宏。
代码:
\documentclass[12pt,a4paper,sans]{moderncv}
\moderncvtheme[green]{classic}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.8]{geometry}
\usepackage{enumitem}
\firstname{Ice}
\familyname{Rabbit}
\title{curriculum vitae}
\setlist[itemize]{leftmargin=*,align=left,nosep,labelsep=0.5cm}
\newcommand*{\ccvline}[4]{
\cvline{#1}{
\vspace{-3mm}
\begin{itemize}[label=$$]
\item {\bfseries #2} {\slshape #3} {\small #4}
\end{itemize}
\vspace{-3mm}}
}
\begin{document}
\begin{center}
\makecvtitle
\end{center}
\section{Education}
\cventry{2011 -- 2014}{Master Penguin science}{University of Queen Maud Land}{Antarctica}{}{More learning about penguin behaviour in Antarctica.}
\ccvline{2012}{Internship}{University of Ellesmere Island, Nunavut, Canada.\newline}{Internship assignment. The goal was to find penguins in the Canadian Arctic.}
\cventry{2006 -- 2011}{Bachelor Penguin science}{University of Queen Maud Land}{Antarctica}{}{Learning about penguin behaviour.}
\end{document}