不幸的是,我的文档页脚中没有任何Xing
(和) 的符号。Gitlab
\documentclass[11pt,a4paper,sans]{moderncv}
% moderncv themes
\moderncvstyle{casual} % casual, classic, banking, oldstyle and fancy
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
%
this part is no longer necessary or? <=======================================================
\makeatletter
\NewDocumentCommand{\socialurl}{O{}O{}m}{%
\ifthenelse{\equal{#2}{}}%
{%
\ifthenelse{\equal{#1}{linkedin}}{\collectionadd[linkedin]{socials}{\protect\httpslink[#3]{www.linkedin.com/in/#3}}} {}%
\ifthenelse{\equal{#1}{xing}} {\collectionadd[xing]{socials} {\protect\httpslink[#3]{www.xing.com/profile/#3}}}{}%
\ifthenelse{\equal{#1}{twitter}} {\collectionadd[twitter]{socials} {\protect\httpslink[#3]{www.twitter.com/#3}}} {}%
\ifthenelse{\equal{#1}{github}} {\collectionadd[github]{socials} {\protect\httpslink[#3]{www.github.com/#3}}} {}%
\ifthenelse{\equal{#1}{gitlab}} {\collectionadd[gitlab]{socials} {\protect\httpslink[#3]{www.gitlab.com/#3}}} {}%
\ifthenelse{\equal{#1}{skype}} {\collectionadd[skype]{socials} {#3}} {}%
}
{\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}
\makeatother
% <========================================================
% personal data
\name{John}{Doe}
\title{Resumé title}
\address{street and number}{postcode city}{country}
\phone[mobile]{+1~(234)~567~890}
\phone[fixed]{+2~(345)~678~901}
\phone[fax]{+3~(456)~789~012}
\email{[email protected]}
\homepage{www.johndoe.com}
\social[linkedin]{john}
\social[xing]{john\_doe}
\social[twitter]{jdoe}
\social[github]{jdoe}
\social[gitlab]{jdoe}
\social[skype]{jdoe}
\extrainfo{additional information }
\quote{Some quote}
\setlength{\footskip}{66pt}
\usepackage{fontawesome}
\begin{document}
\makecvtitle
alternative \small\faXing and \faXingSquare
\end{document}
这是 pdfTeX,版本 3.141592653-2.6-1.40.22(MiKTeX 21.2)(预加载格式=pdflatex 2021.2.26)
所有软件包都应该是最新的
答案1
你给出的线
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (MiKTeX 21.2) (preloaded format=pdflatex 2021.2.26)
表明您正在使用pdflatex
. 类进行编译moderncv
,当前版本 2.1.0 调用 marvo 符号,结果页脚中缺少一些符号。
要获取您想要的所有符号,请将其添加到您的序言中
\moderncvicons{awesome}
建议moderncv
对所有需要的符号使用 Font Awesome ...
类 moderncv 版本 2.1.0 不需要您在给定的 mwe 中标记的代码部分。
使用以下 mwe,您可以使用pdflatex
或进行编译lualatex
以获取所有符号:
\documentclass[11pt,a4paper,sans]{moderncv}
% moderncv themes
\moderncvstyle{casual} % body 1, foot 1
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
% personal data
\name{John}{Doe}
\title{Resumé title}
\address{street and number}{postcode city}{country}
\phone[mobile]{+1~(234)~567~890}
\phone[fixed]{+2~(345)~678~901}
\phone[fax]{+3~(456)~789~012}
\email{[email protected]}
\homepage{www.johndoe.com}
\social[linkedin]{john}
\social[xing]{john\_doe}
\social[twitter]{jdoe}
\social[github]{jdoe}
\social[gitlab]{jdoe}
\social[skype]{jdoe}
\extrainfo{additional information }
\quote{Some quote}
\setlength{\footskip}{69pt} % <=========================================
%\usepackage{fontawesome}
\moderncvicons{awesome} % <=============================================
\begin{document}
\makecvtitle
alternative \small\faXing and \faXingSquare
\end{document}
结果如下: