我目前有一个结构如下的 cventrys 列表:
\cventry{}{Example 1}{}{}{}{}{
\begin{itemize}
\item Sample 1
\item Sample 2
\end{itemize}}
\cventry{}{Example 2}{}{}{}{}{
\begin{itemize}
\item Sample 3
\item Sample 4
\end{itemize}}
我该如何启用两列,以便左侧显示示例 1,右侧显示示例 2?
这是我当前的标题:
\documentclass[12pt,letterpaper,sans]{moderncv}
% moderncv themes
\moderncvstyle{classic} % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{red} % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
\usepackage[scale=0.85]{geometry}
%\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates
%\setlength{\makecvtitlenamewidth}{10cm} % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...
\usepackage{multicol}
\begin{document}
\makecvtitle
\vspace*{-11mm}
现在看起来是这样的。如果我添加提供的边距,则左侧的整个边距将被删除。
答案1
无需滥用\cventry
这里。只需执行以下操作:
\documentclass[12pt,letterpaper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{red}
\usepackage[scale=0.85]{geometry}
\usepackage{multicol}
\firstname{Joe}
\familyname{}
\begin{document}
\section{Section}
\hspace*{\fill}
\begin{minipage}{\maincolumnwidth}
\begin{multicols}{2}
\textbf{Example 1}
\begin{itemize}
\item Sample 1
\item Sample 2
\end{itemize}
\columnbreak
\textbf{Example 1}
\begin{itemize}
\item Sample 3
\item Sample 4
\end{itemize}
\end{multicols}
\end{minipage}
\end{document}