![如何在 Awesome CV 中使用 \cventry 减少空格](https://linux22.com/image/452246/%E5%A6%82%E4%BD%95%E5%9C%A8%20Awesome%20CV%20%E4%B8%AD%E4%BD%BF%E7%94%A8%20%5Ccventry%20%E5%87%8F%E5%B0%91%E7%A9%BA%E6%A0%BC.png)
我正在制作精彩简历(从这里下载https://www.overleaf.com/latex/templates/awesome-cv/dfnvtnhzhhbm)。我想删除“语言”和逐项列表之间的空格,使其看起来像这样:
这是我正在使用的代码:
\documentclass[]{awesome-cv}
\usepackage{multicol}
\newenvironment{cvitems*}[1][2]
{\setlength{\multicolsep}{0pt}%
\vspace{-\baselineskip}%
\begin{multicols}{#1}
\begin{cvitems}}
{\end{cvitems}%
\end{multicols}
\vspace{-\baselineskip}\vspace{2mm}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Personal Data
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Essentials
\name{Some}{Name}
\address{An Address, 3245}
\mobile{(+57) 45-45654-434}
%%% Social
\email{[email protected]}
\homepage{www.SomePage.com}
\github{Someone2}
\linkedin{Someone2}
%%% Optionals
\position{My Position}
\quote{``I am me.''}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Content
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Make a footer for CV with three arguments(<left>, <center>, <right>)
\makecvfooter
{\today}
{My Resume}
{\thepage}
\begin{document}
%%% Make a header for CV with personal data
\makecvheader
\cvsection{Skills}
\begin{cventries}
\cventry
{} % Job title
{Languages} % Organization
{} % Location
{} % Date(s)
{ % Description(s) of tasks/responsibilities
\begin{cvitems*}[4]
\item \textbf{Spanish}
\item \textbf{German}
\item \textbf{Italian}:
\item \textbf{French}:
\color{white}\item \textbf{smh}:
\item item 6
\end{cvitems*}
}
\end{cventries}
\color{black}
\begin{cventries}
\cventry
{} % Job title
{Programming} % Organization
{} % Location
{} % Date(s)
{ % Description(s) of tasks/responsibilities
\begin{cvitems*}[4]
\item \textbf{Languages}: Python \LaTeX
\color{white}
\item
\item
\item
\item
\item item 6 with words describing it
\end{cvitems*}
}
\end{cventries}
预先感谢您的帮助;
答案1
对于未来的任何人来说,使用\vspace{-2\baselineskip}%
并不能完全解决问题。这是输出:
我能做的最好的就是这个代码:
\documentclass[]{awesome-cv}
\usepackage{multicol}
\newenvironment{cvitems*}[1][2]
{\setlength{\multicolsep}{0pt}%
\vspace{-2\baselineskip}%
\begin{multicols}{#1}
\begin{cvitems}}
{\end{cvitems}%
\end{multicols}
\vspace{+0\baselineskip}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Personal Data
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Essentials
\name{Some}{Name}
\address{An Address, 3245}
\mobile{(+57) 45-45654-434}
%%% Social
\email{[email protected]}
\homepage{www.SomePage.com}
\github{Someone2}
\linkedin{Someone2}
%%% Optionals
\position{My Position}
\quote{``I am me.''}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Content
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Make a footer for CV with three arguments(<left>, <center>, <right>)
\makecvfooter
{\today}
{My Resume}
{\thepage}
\begin{document}
%%% Make a header for CV with personal data
\makecvheader
\cvsection{Skills}
\begin{cventries}
\cventry
{} % Job title
{Languages} % Organization
{} % Location
{} % Date(s)
{ % Description(s) of tasks/responsibilities
\begin{cvitems*}[2]
\item \textbf{Spanish}
\item \textbf{German}
\item \textbf{Italian}
\item \textbf{French}
\end{cvitems*}
}
\end{cventries}
\color{black}
\begin{cventries}
\cventry
{} % Job title
{Programming} % Organization
{} % Location
{} % Date(s)
{ % Description(s) of tasks/responsibilities
\begin{cvitems*}[4]
\item \textbf{Languages}: Python \LaTeX
\end{cvitems*}
}
\end{cventries}
输出如下:
希望能帮助到你。