这是一个简单的例子:
\documentclass[10pt,legalpaper,sans]{moderncv} % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')
\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name
% modern themes
\moderncvstyle{classic} % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{black} % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
% character encoding
\usepackage[utf8]{inputenc}
% adjust the page margins
\usepackage[margin=0.63in]{geometry}
\setlength{\footskip}{10pt}
\usepackage{import}
\nopagenumbers{}
% personal data
\name{FirstName}{LastName}
\phone[mobile]{+1 (111) 111-1111}
\email{[email protected]}
\social{https://www.linkedin.com/in/firstname/}
\homepage{firstname.github.io}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
\makecvtitle
\section{Experience}
\vskip 5pt
\begin{itemize}
\item[]{\cventry{November 2022 -- Current}{Research Assistant}{Research Group}{City, ST}{}{
\vspace{3pt}
$\bullet$ Placeholder \\
$\bullet$ Placeholder \\
$\bullet$ Placeholder \\
$\bullet$ Placeholder
}}
\end{itemize}
\end{document}
目前的情况如下:
本例中的日期聚集在左列中。我不想水平增加该列的大小,因为这样会占用太多空间。有没有办法让日期看起来美观(类似于银行主题布局),同时保留经典主题的其余部分?
例如,我希望它们都在同一行。像这样:
答案1
我建议将日期放在位置规范的末尾,并用 隔开以\hfill
将其推到右边距:
\cventry{}{Research Assistant}{Research Group}{City, ST \hfill November 2022 -- Current}{}{
% <cv entry content>
}
如果您希望保留当前格式(在第一个参数中指定日期,请将以下内容添加到序言中以更新功能方式\cventry
(必须将第一个/日期参数推送到第四个,前面加上\hfill
):
\NewCommandCopy{\oldcventry}{\cventry}
\RenewDocumentCommand{\cventry}{ m m m m m }{\oldcventry{}{#2}{#3}{#4\hfill #1}{#5}}