# Fontawesome with LaTeX [duplicate]

I'm trying to use the package fontawesome with LaTeX, since the documentation says "This package works both with XƎ(LA)TEX and Lua(LA)TEX (using fontspec to load the included original otf font), as well as (pdf)(LA)TEX (using an included type1 conversion and character mapping of the font)."

The point is that, after installing the package, I get an error when I try to compile:

! 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"
! instead of plain "latex" or "pdflatex".
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.


What should I do to be able to use the symbols the package gives?

Minimal example: This is enough to get the error.

\documentclass[a4paper,openright,10pt]{article}
\usepackage{fontawesome}

\begin{document}
Hi \faMale

\end{document}


In addition, I got the package from texlive-fonts-extra.

Using TexMaker 4.1 and TeX Live 2013.20140215-1

• Then post a small example that gives you problem. Although it's weird because fontawesome doesn't require xelatex or lualatex. Sep 9 '16 at 10:41
• Your code works fine with me, apart from a warning about the option openright being unused, but that's it. Sep 9 '16 at 10:47
• You don't have an older version of fontawesome? Add \listfiles before \documentclass and you'll get a pretty-printed list of packages and their versions near the end of the .log file. Also look at the log to see exactly where fontawesome.sty is located, to make sure it is not some stray copy. Sep 9 '16 at 10:49
• So you have an old version of TeX Live and hence an old version of fontawesome, likely from before the pdflatex compatibility was added. Sep 9 '16 at 10:54
• pdflatex support was added in version 4.3.0, which was released on July 9, 2015: github.com/xdanaux/fontawesome-latex/releases Sep 9 '16 at 10:58