我目前正在用乳胶写我的简历,并决定模仿它这个模板我发现这里。我已经让所有东西都正常工作了,只是我不知道如何在页面顶部的字体真棒图标和旁边的文本之间添加空格。
这是 .cls 文件的一部分,它似乎控制着图标是否显示在页面上(据我所知):
%-------------------------------------------------------------------------------
% Commands for elements of CV structure
%-------------------------------------------------------------------------------
% Define a header for CV
% Usage: \makecvheader
\newcommand*{\makecvheader}{
\begin{center}
\headerfirstnamestyle{
\@firstname
} \headerlastnamestyle{
\@lastname
}
\\
\vspace{0.4mm}
\ifthenelse{\isundefined{\@position}}{}{\headerpositionstyle{\@position\\}}
\vspace{0.4mm}
\ifthenelse{\isundefined{\@address}}{}{\headeraddressstyle{\@address\\}}
\vspace{-0.5mm}
\headersocialstyle{
\newbool{isstart}
\setbool{isstart}{true}
\ifthenelse{\isundefined{\@mobile}}
{}
{
\faMobile\ \@mobile
\setbool{isstart}{false}
}
\ifthenelse{\isundefined{\@email}}
{}
{
\ifbool{isstart}
{
\setbool{istart}{false}
}
{\@headersocialsep}
\href{mailto:\@email}{\faEnvelope\ \@email}
}
\ifthenelse{\isundefined{\@homepage}}
{}
{
\ifbool{isstart}
{
\setbool{istart}{false}
}
{\@headersocialsep}
\href{http://\@homepage}{\faHome\ \@homepage}
}
\ifthenelse{\isundefined{\@github}}
{}
{
\ifbool{isstart}
{
\setbool{istart}{false}
}
{\@headersocialsep}
{\href{https://github.com/\@github}{\faGithubSquare\ \@github}
}
\ifthenelse{\isundefined{\@stackoverflowid}}
{}
{
\ifbool{isstart}
{
\setbool{istart}{false}
}
{\@headersocialsep}
\href{https://stackoverflow.com/users/\@stackoverflowid}{\faStackOverflow\ \@stackoverflowname}
}
\ifthenelse{\isundefined{\@linkedin}}
{}
{
\ifbool{isstart}
{
\setbool{istart}{false}
}
{\@headersocialsep}
\href{https://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\ \@linkedin}
}
\ifthenelse{\isundefined{\@twitter}}
{}
{
\ifbool{isstart}
{
\setbool{istart}{false}
}
{\@headersocialsep}
\href{https://twitter.com/\@twitter}{\faTwitter\ \@twitter}
}
\ifthenelse{\isundefined{\@skype}}
{}
{
\ifbool{isstart}
{
\setbool{istart}{false}
}
{\@headersocialsep}
\faSkype\ \@skype
}
} \\
\ifthenelse{\isundefined{\@quote}}
{}
{\vspace{6.0mm}\headerquotestyle{\@quote\\}\vspace{5.0mm}}
\end{center}
}
这是控制用于分隔信息的垂直条的部分:
%-------------------------------------------------------------------------------
% Commands for extra
%-------------------------------------------------------------------------------
% Define separator for social informations in header
% Usage: \headersocialsep{<separator>}
% Default: \quad\textbar\quad
\newcommand*{\headersocialsep}[1][\quad\textbar\quad]{\def\@headersocialsep{#1}}
\headersocialsep
最后,这是负责创建个人信息命令的部分
%-------------------------------------------------------------------------------
% Commands for personal information
%-------------------------------------------------------------------------------
% Define writer's name
% Usage: \name{<firstname>}{<lastname>}
% Usage: \firstname{<firstname>}
% Usage: \lastname{<lastname>}
% Usage: \familyname{<familyname>}
\newcommand*{\name}[2]{\def\@firstname{#1}\def\@lastname{#2}}
\newcommand*{\firstname}[1]{\def\@firstname{#1}}
\newcommand*{\lastname}[1]{\def\@lastname{#1}}
\newcommand*{\familyname}[1]{\def\@lastname{#1}}
\def\@familyname{\@lastname}
% Define writer's address
% Usage: \address{<address>}
\newcommand*{\address}[1]{\def\@address{#1}}
% Define writer's position
% Usage: \name{<position>}
\newcommand*{\position}[1]{\def\@position{#1}}
% Defines writer's mobile (optional)
% Usage: \mobile{<mobile number>}
\newcommand*{\mobile}[1]{\def\@mobile{#1}}
% Defines writer's email (optional)
% Usage: \email{<email adress>}
\newcommand*{\email}[1]{\def\@email{#1}}
% Defines writer's homepage (optional)
% Usage: \homepage{<url>}
\newcommand*{\homepage}[1]{\def\@homepage{#1}}
% Defines writer's github (optional)
% Usage: \github{<github-nick>}
\newcommand*{\github}[1]{\def\@github{#1}}
% Defines writer's linked-in (optional)
% Usage: \linkedin{<linked-in-nick>}
\newcommand*{\linkedin}[1]{\def\@linkedin{#1}}
% Defines writer's stackoverflow profile (optional)
% Usage: \stackoverflow{<so userid>}{<so username>}
% e.g.https://stackoverflow.com/users/123456/sam-smith
% would be \stackoverflow{123456}{sam-smith}
\newcommand*{\stackoverflow}[2]{\def\@stackoverflowid{#1}\def\@stackoverflowname{#2}}
% Defines writer's skype (optional)
% Usage: \skype{<skype account>}
\newcommand*{\skype}[1]{\def\@skype{#1}}
% Defines writer's twitter (optional)
% Usage: \twitter{<twitter handle>}
\newcommand*{\twitter}[1]{\def\@twitter{#1}}
我尝试将\hspace{}
' 插入到我认为应该插入的位置,但无济于事。如果有人能提供帮助,我将不胜感激!
答案1
更新:模板已更新。现在可以一次性为所有实例定义图标和内容之间的分隔符。默认情况下,分隔符为\space
,但可以根据您的喜好更改为\quad
或其他内容。
\renewcommand{\acvHeaderIconSep}{\quad}
以下内容现已过时,不再有效。添加到序言中:
\patchcmd{\makecvheader}{\\ \vspace{0.4mm}}{\\[.4mm]}{}{}
\patchcmd{\makecvheader}{\ }{\hspace{2em}}{}{}
\patchcmd{\makecvheader}{\ }{\hspace{2em}}{}{}
\patchcmd{\makecvheader}{\ }{\hspace{2em}}{}{}
\patchcmd{\makecvheader}{\ }{\hspace{2em}}{}{}
\patchcmd{\makecvheader}{\ }{\hspace{2em}}{}{}
\patchcmd{\makecvheader}{\ }{\hspace{2em}}{}{}
\patchcmd{\makecvheader}{\ }{\hspace{2em}}{}{}
\patchcmd{\makecvheader}{\ }{\hspace{2em}}{}{}