![如何在 moderncv 中的日期记录中添加几个时间段?](https://linux22.com/image/394244/%E5%A6%82%E4%BD%95%E5%9C%A8%20moderncv%20%E4%B8%AD%E7%9A%84%E6%97%A5%E6%9C%9F%E8%AE%B0%E5%BD%95%E4%B8%AD%E6%B7%BB%E5%8A%A0%E5%87%A0%E4%B8%AA%E6%97%B6%E9%97%B4%E6%AE%B5%EF%BC%9F.png)
我正在使用 moderncv
包样式,banking
我想在一个中列出多个时间段\cventry
。我设法做到的最好的事情是使用多个\cventry
,但这会在条目之间留下太大的间距。
\cventry{July 2016-- September 2016}{Junior researcher}{Slovak academy of sciences}{Bratislava}{}{}
\cventry{July 2017-- September 2017}{Junior researcher}{}{}{}{}
\cventry{July 2018-- September 2018}{Junior researcher}{}{}{}{}
答案1
获得所需内容的最佳方式是使用以下两个命令:
\cventry[0pt]{July 2016-- September 2016}{Junior researcher}{Slovak academy of sciences}{Bratislava}{}{}
\cvitem{}{\emph{Junior researcher} \hfill \emph{July 2017-- September 2017}}
您可以[0pt]
强制\cventry
不在段落后添加额外的空格,也\cvitem
可以添加缺失的信息——使用一个空格作为附加行。请确保您自己\cvitem
设置了斜体格式。cvitem
如果您必须添加更多行,[0pt]
也请使用\cvitem
s。只有最后一行\cvitem
不需要[0pt]
:
\cventry[0pt]{July 2016-- September 2016}{Junior researcher}{Slovak academy of sciences}{Bratislava}{}{} % <===============================================================
\cvitem[0pt]{}{\emph{Junior researcher} \hfill \emph{July 2017-- September 2017}} % <====================
\cvitem{}{\emph{Junior researcher} \hfill \emph{July 2018-- September 2018}} % <====================
第三种可能性是只使用一个\cventry
并在最后一个参数中添加附加行,创建一个字体大小的小页面\small
:
\cventry{July 2015 -- September 2015}{Junior researcher}{Slovak academy of sciences}{Bratislava}{}%
{\normalsize % <========================================================
\emph{Junior researcher} \hfill \emph{July 2016 -- September 2016}\\
\emph{Junior researcher} \hfill \emph{July 2016 -- September 2016}
}
这样\normalsize
您就可以恢复标准字体大小。
完整代码如下
\documentclass[11pt,a4paper,sans]{moderncv}
% moderncv themes
\moderncvstyle{banking} % casual, classic, banking, oldstyle and fancy
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
% personal data
\name{John}{Doe}
\title{Resumé title}
\address{street and number}{postcode city}{country}
\phone[mobile]{+1~(234)~567~890}
\phone[fixed]{+2~(345)~678~901}
\phone[fax]{+3~(456)~789~012}
\email{[email protected]}
\homepage{www.johndoe.com}
\social[linkedin]{john.doe}
\social[twitter]{jdoe}
\social[github]{jdoe}
\extrainfo{additional information}
\photo[64pt][0.4pt]{example-image-a}
\quote{Some quote}
\setlength{\footskip}{66pt}
\begin{document}
\makecvtitle
\section{Education}
\cventry{year--year}{Degree}{Institution--3}{City--4}{\textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\cventry[0pt]{July 2016-- September 2016}{Junior researcher}{Slovak academy of sciences}{Bratislava}{}{} % <===============================================================
\cvitem[0pt]{}{\emph{Junior researcher} \hfill \emph{July 2017-- September 2017}} % <====================
\cvitem{}{\emph{Junior researcher} \hfill \emph{July 2018-- September 2018}} % <====================
\cventry{July 2015 -- September 2015}{Junior researcher}{Slovak academy of sciences}{Bratislava}{}%
{\normalsize % <========================================================
\emph{Junior researcher} \hfill \emph{July 2016 -- September 2016}\\
\emph{Junior researcher} \hfill \emph{July 2016 -- September 2016}
}
\section{Master thesis}
\cvitem{title}{\emph{Title}}
\cvitem{supervisors}{Supervisors}
\cvitem{description}{Short thesis abstract}
\section{Experience}
\subsection{Vocational}
\cventry{year--year}{Job title}{Employer}{City}{}{General description
no longer than 1--2 lines.\newline{}%
Detailed achievements:%
\begin{itemize}%
\item Achievement 1;
\item Achievement 2, with sub-achievements:
\begin{itemize}%
\item Sub-achievement (a);
\item Sub-achievement (b), with sub-sub-achievements (don't do this!);
\begin{itemize}
\item Sub-sub-achievement i;
\item Sub-sub-achievement ii;
\item Sub-sub-achievement iii;
\end{itemize}
\item Sub-achievement (c);
\end{itemize}
\item Achievement 3.
\end{itemize}}
\cventry{year--year}{Job title}{Employer}{City}{}{Description
line 1\newline{}Description line 2}
\subsection{Miscellaneous}
\cventry{year--year}{Job title}{Employer}{City}{}{Description}
\section{Languages}
\cvitemwithcomment{Language 1}{Skill level}{Comment}
\cvitemwithcomment{\textbf{Language} 2}{\textbf{Skill} level}{Comment}
\cvitemwithcomment{Language 3}{Skill level}{Comment}
\section{Computer skills}
\cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
\cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
\cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}
\section{Interests}
\cvitem{hobby 1}{Description}
\cvitem{hobby 2}{Description}
\cvitem{hobby 3}{Description}
\section{Extra 1}
\cvlistitem{Item 1}
\cvlistitem{Item 2}
\cvlistitem{Item 3. This item is particularly long and therefore
normally spans over several lines. Did you notice the indentation
when the line wraps?}
\end{document}
你得到了想要的结果:
或者添加更多行:
第三种可能性是: