我想在我的简历中添加认证,其中一列是姓名,第二列是日期,目前我有:
\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[green]{classic}
\usepackage[utf8]{inputenc}
\usepackage{floatflt}
\usepackage{fancyhdr}
\usepackage{geometry}
\geometry{a4paper,left=2cm,right=1cm, top=2cm, bottom=1.5cm,headheight=21pt}
\usepackage{tikz}
\usepackage{wrapfig}
\usepackage{lipsum}
\firstname{test}
\familyname{test}
\begin{document}
\section{certifications}
\cvline{Microsoft}{Microsoft SharePoint 2010 Sep 19, 2011\newline Microsoft Word 2010 Expert Sep 14, 2011\newline Microsoft Access 2010 Sep 05, 2011\newline Microsoft PowerPoint 2010 Aug 29, 2011 \newline Microsoft Excel 2010 Expert Aug 09, 2011\newline Microsoft Excel 2010 Jul 14, 2011\newline Microsoft Office Master Specialist Sep 14, 2011}
\cvline{SAP}{test}
\clearpage
\end{document}
这看起来像 但我想要有两列,以便它看起来像:
Certification 1 Date 1
Certification 2 Date 2
所以基本上是两列,这样就有空间,并且两列对齐看起来更好。我该怎么做?
答案1
另一种可能性是简单地使用\hfill
。这会将第二个“列”移到右边距。这种方法的优点是您永远不必手动调整间距。但是,\hfill
每次都需要输入。
\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[green]{classic}
\usepackage[utf8]{inputenc}
\usepackage{floatflt}
\usepackage{fancyhdr}
\usepackage{geometry}
\geometry{a4paper,left=2cm,right=1cm, top=2cm, bottom=1.5cm,headheight=21pt}
\usepackage{tikz}
\usepackage{wrapfig}
\usepackage{lipsum}
\firstname{test}
\familyname{test}
\begin{document}
\section{certifications}
\cvline{Microsoft}{Microsoft SharePoint 2010 \hfill Sep 19, 2011\newline Microsoft Word 2010 Expert \hfill Sep 14, 2011\newline Microsoft Access 2010 \hfill Sep 05, 2011\newline Microsoft PowerPoint 2010 \hfill Aug 29, 2011 \newline Microsoft Excel 2010 Expert \hfill Aug 09, 2011\newline Microsoft Excel 2010 \hfill Jul 14, 2011\newline Microsoft Office Master Specialist \hfill Sep 14, 2011}
\cvline{SAP}{test}
\clearpage
\end{document}
答案2
\cvline{Microsoft}{\begin{tabular}{ l @{\hskip 0.5in} c }
Microsoft SharePoint 2010 & Sep 19, 2011\\
Microsoft Word 2010 Expert & Sep 14, 2011\\
Microsoft Access 2010 & Sep 05, 2011\\
Microsoft PowerPoint 2010 & Aug 29, 2011 \\
Microsoft Excel 2010 Expert & Aug 09, 2011\\
Microsoft Excel 2010 & Jul 14, 2011\\
Microsoft Office Master Specialist & Sep 14, 2011\\
\end{tabular}
}
给出