ModernCV는 클래식 스타일에서만 gitlab 아이콘을 표시하지 않습니다.

Aug 20 2020

MWE :

\documentclass[10pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\name{Short}{LongName}
\email{[email protected]}
\phone[mobile]{+1123456789}
 \homepage{www.johndoe.com}
\social[linkedin]{asdf}
 \social[twitter]{asdf}
\social[github]{asdf}
\social[gitlab]{asdf}

\begin{document}
    \makecvtitle
\end{document}

그러나 캐주얼, 뱅킹, 구식, 공상과 같은 다른 모든 스타일에 적용됩니다.

내 시스템은 Arch Linux이고 내 편집기는 TexStudio입니다.

답변

1 Marijn Aug 20 2020 at 22:50

에서 classic스타일 당신은 Gitlab 아이콘을 입력 할 수 있습니다와의 3 인자 버전을 사용하여 링크 \social의 전체 URL에 대한 두 번째 옵션 인수.

classic스타일 의 아이콘 은 marvosym패키지에있는 반면 다른 스타일 fontawesome은 아이콘에 사용 됩니다. Marvosym에는 Gitlab 아이콘이 없으므로이 아이콘을 classic스타일로 지정하려면에 대한 fontawesome아이콘 명령 을로드 하고 정의해야합니다 moderncv.

MWE :

\documentclass[10pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
% load fontawesome icons
\usepackage{fontawesome}
% set the moderncv command for the Gitlab icon
% create command if it does not exist
\providecommand*{\gitlabsocialsymbol}{}
% set command to \faGitlab from fontawesome
\renewcommand*{\gitlabsocialsymbol}{{\scriptsize\faGitlab}~}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\name{Short}{LongName}
\email{[email protected]}
\phone[mobile]{+1123456789}
 \homepage{www.johndoe.com}
\social[linkedin]{asdf}
\social[twitter]{asdf}
\social[github]{asdfhub}
% set full url for the link
\social[gitlab][www.gitlab.com/asdflab]{asdflab}

\begin{document}
    \makecvtitle
\end{document}

결과: