since I am working on my CV using moderncv, I was wondering if it is possible to change the icons used in the header. These icons are from the package marvosym. As indicated by this question moderncv - non marvosym symbols, you can use the fontawesome-package.
\documentclass{article}
\usepackage{fontawesome}
\begin{document}
\faTwitter
\faLinkedin
\faLinkedinSign
\end{document}
Seems to be easy, but unfortunately I receive an error message even if I compile with xelatex or lualatex. The error indicates the following:
! Fatal fontspec error: "cannot-use-pdftex"
!
! The fontspec package requires either XeTeX or LuaTeX to function.
!
! You must change your typesetting engine to, e.g., "xelatex" or "lualatex"
Both xelatex and lualatex are functioning well with other codes. Hence, I do not know what's the problem. However, I would really like to use the icons from the fontawesome-package.
Does anybody has an idea?
Thank you very much in advance,
Phil
fontawesome
documentation that you need to runXeLateX
orLuaLaTeX
. The error message you receive says that you are using pdftex.%! pdflatex
, which tells the editor that it should always runpdflatex
. Look for sucha line and delete it. With current TeXLive 2014 your example works very well withxelatex
orlualatex