我想在我的简历中列出技能,但使用\cvitem
看起来很糟糕,因为第二行与第一行不是从相同的位置开始的......
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{red}
\usepackage[scale=0.75]{geometry}
\usepackage[utf8]{inputenc} % for accents
\name{John}{Smith}
\begin{document}
\makecvtitle
\section{Key skills}
\cvitem{Languages}{%
Proficient in: Scala
\newline
Comfortable in: C\#
}
\cvitem{Others}{%
Scrum methodology and teamwork abilities
\newline
Object-Oriented API design, UML
}
\end{document}
我希望“舒适”能够与“熟练”从相同的水平位置开始。
答案1
classic
和样式中所需的对齐方式是默认的casual
,但在banking
样式中不是。我建议您为这些项目定义一个新命令,如下所示:
\newcommand{\cvitemhang}[3][.25em]{%
\ifthenelse{\equal{#2}{}}{}{\hintstyle{#2}: }{\begin{tabular}[t]{l}%
#3\end{tabular}}%
\par\addvspace{#1}}
这是非常相似的\cvitem
。你现在可以写
\cvitemhang{Languages}{%
Proficient in: Scala \\
Comfortable in: C\#
}
\documentclass[11pt,a4paper,sans]{moderncv}
\usepackage[utf8]{inputenc}
\moderncvstyle{banking}
\moderncvcolor{blue}
\usepackage[scale=0.75]{geometry}
\newcommand{\cvitemhang}[3][.25em]{%
\ifthenelse{\equal{#2}{}}{}{\hintstyle{#2}: }{\begin{tabular}[t]{l}%
#3\end{tabular}}%
\par\addvspace{#1}}
% personal data
\name{John}{Doe}
\title{Resumé title}
\address{street and number}{postcode city}{country}
\begin{document}
\makecvtitle
\section{Key skills}
\cvitemhang{Languages}{%
Proficient in: Scala \\
Comfortable in: C\#
}
\cvitemhang{Others}{%
Scrum methodology and teamwork abilities \\
Object-Oriented API design, UML
}
\end{document}