\makecvtitle 中的不同间距

\makecvtitle 中的不同间距

以下是一个例子:

\documentclass[10pt,a4paper,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{banking}                            % 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}
\usepackage{import}
\nopagenumbers{}

% personal data
\name{Firstname}{Lastname}
\phone[mobile]{+1 (111) 111-1111}                   
\email{[email protected]}    
\social{https://www.linkedin.com/in/mylinkedin}
\homepage{mywebsite.com}           

\pagenumbering{gobble}

%----------------------------------------------------------------------------------
%            content
%----------------------------------------------------------------------------------
\begin{document}

\makecvtitle

\end{document}

Firstname Lastname我的问题很简单:如何才能将其中的电话、电子邮件、社交、网站稍微分开(垂直间距)\makecvtitle

答案1

一个简单的方法如下。

\documentclass[10pt,a4paper,sans]{moderncv}
\renewcommand{\familydefault}{\sfdefault}

% modern themes
\moderncvstyle{banking}
\moderncvcolor{black}

% character encoding
%\usepackage[utf8]{inputenc}                   

% adjust the page margins
\usepackage[margin=0.63in]{geometry}
\usepackage{import}
\nopagenumbers{}

% personal data
\name{Firstname}{Lastname}
\phone[mobile]{+1 (111) 111-1111}                   
\email{[email protected]}    
\social{https://www.linkedin.com/in/mylinkedin}
\homepage{mywebsite.com}           

\pagenumbering{gobble}

% add some vertical space below the name
% original definition is
% \newcommand{\namestyle}[1]{{\namefont\textcolor{color1}{#1}}}
\renewcommand{\namestyle}[1]{{\namefont\textcolor{color1}{#1}\vspace{1ex}}}

%----------------------------------------------------------------------------------
%            content
%----------------------------------------------------------------------------------
\begin{document}

\makecvtitle

\end{document}

1ex根据您的喜好进行调整。

在此处输入图片描述

相关内容