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

fontawesomedocumentation that you need to runXeLateXorLuaLaTeX. The error message you receive says that you are using pdftex. – Johannes_B Jul 30 '14 at 07:49%! 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 withxelatexorlualatex– Jul 30 '14 at 08:10pdflatex. I guess that's what you have referred to in your comment. Do you know what would be the right command to be able to usexelatexorlualatexwithout problems? – Phil Jul 30 '14 at 10:31xelatexfrom the compiler list or instead ofQuick Buildin this screenshot http://www.xm1math.net/texmaker/texmakertop_big.png – Jul 30 '14 at 10:38xelatex– Jul 30 '14 at 13:48