FontAwesome 在 Friggeri 简历中不起作用?

FontAwesome 在 Friggeri 简历中不起作用?
\documentclass[]{friggeri-cv}
% \documentclass{article}
\usepackage{unicode-math}
\usepackage{FontAwesome}

\definecolor{light-gray}{gray}{0.55}
\definecolor{skype}{HTML}{12A5F4}
\definecolor{html5}{HTML}{e34c26}
\definecolor{php}{HTML}{6c7eb7}
\definecolor{db}{HTML}{FF9900}
\definecolor{linkedin}{HTML}{1683BB}


\setmathfont{STIXGeneral}
% \addbibresource{bibliography.bib} % Specify the bibliography file to include publications

\begin{document}
\newfontfamily{\FA}{FontAwesome}
\header{Kiker}{Surname}{Front End Web Developer} % Your name and current job title/field

%----------------------------------------------------------------------------------------
%   SIDEBAR SECTION
%----------------------------------------------------------------------------------------

\begin{aside} % In the aside, each new line forces a line break
\section{contact}
{\color{light-gray}{\FA \faHome}}
{\color{skype}{\FA \faSkype}} \href{skype:myskype.myskype?call}{myskype.myskype}
{\color{light-gray}{\FA \faEnvelope}} \href{mailto:[email protected]}{[email protected]}
~
{\color{html5}{\FA \faFire}} \href{http://www.mywebsite.de}{Portfolio}
{\color{gray}{\FA \faPencil}} \href{http://www.myblog.net}{My Blog}
{\color{linkedin}{\FA \faLinkedin}} \href{http://au.linkedin.com/pub/}{LinkedIn}
{\color{gray}{\FA \faGithubSign}} \href{https://github.com/}{GitHub}
\section{programming}
\small{{\color{red} \FA \faHeart} JavaScript, jQuery,
{\color{html5}\FA \faHtml5} HTML5, CSS3,
{\color{php}\FA \faCode} PHP, Groovy/Grails,
{\color{gray}\FA \faLinux} Linux, LEMP, NGINX,
{\color{db}\FA \faTh} MySQL, Amazon AWS}
 \section{languages}
 \emph{proficient} English
 \emph{mother tongue} Italian
 \emph{notions} Spanish \& French
\end{aside}

\section{{\FA \faUser} About me}

\section{{\FA \faStar} Expertise}

\textbf{Professional Capabilities}
\begin{itemize}
    \item{High-quality front-end development for web sites and applications}
    \item{Modular, DRY, robust and reusable code}
    \item{Performance optimization, progressive enhancement, usability}
    \item{SEO with semantic HTML, Micro Formats and schema.org structures}
    \item{Site planning}
    \item{User interface design}
\end{itemize}

\textbf{Technical Skills}
\begin{itemize}
    \item{Scalable HTML and CSS}
    \item{JavaScript Development (includes advanced jQuery and plugins development, HTML5 API, vanilla JavaScript)}
    \item{Responsive Web Design}
    \item{Mobile development (in browser)}
    \item{Experience with Linux environments.}
    \item{Working knowledge of PHP, using: CodeIgniter, ExpressionEngine, WordPress}
    \item{Experience with Groovy/Grails}
    \item{Working experience with software versioning, in particular Git and Mercurial}
    \item{CSS Preprocessor (SASS, SCSS and LESS)}
\end{itemize}

\clearpage
\section{{\FA \faSuitCase} Experience}

\section{{\FA \faBook} Education}

\begin{entrylist}

\entry
{2004--2010}
{Degree in {\normalfont Computer Science and Automation Engineering}}
{Polytechnic Marche University, Italy}
{  }

\end{entrylist}


\section{{\FA \faQuote} Recommandations}


\end{document} 

特别是对于 Skype、Facebook、Linken 是否可以在该代码中运行?

答案1

您可以使用以下代码使用这些图标(自版本 4 以来,它们成为字体的一部分):

\documentclass[a4paper, 12pt]{article}

\usepackage[x11names]{xcolor}
\usepackage{array} 
\usepackage{fontspec}
\setmainfont{Minion Pro}
\usepackage{fontawesome}

\def\faSkype{\FA\symbol{"F17E}}
\def\faLinux{\FA\symbol{"F17C}}
\def\faTh{\FA\symbol{"F00A}}
\def\faQuoteLeft{\FA\symbol{"F10D}}
\def\faQuoteRight{\FA\symbol{"F10E}}

\begin{document}

Here are missing symbols in the \emph{Fontawesome} package:

\begin{center}\renewcommand\arraystretch{2}\renewcommand\tabcolsep{12pt}
\begin{tabular}{ccccc}
\verb+\faSkype+ &\verb+\faLinux+ &\verb+\faTh+ &\verb+\faQuoteLeft+ &\verb+\faQuoteRight+\\
{\color{CadetBlue1}\faSkype}  &  \faLinux  &  \faTh  &  \faQuoteLeft  &  \faQuoteRight
\end{tabular}
\end{center}

\end{document}

在此处输入图片描述

您可以获取该字体的最新版本这里。就 Xe(Lua)LaTeX 而言,只有.otf字体文件有用。您可以将其安装在您的系统上,也可以安装在 中temf-local\fonts\otf\fontawesome

相关内容