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?
Thanks in advance.
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
fontspec, if you want to usepdflatex– egreg Sep 09 '16 at 10:22fontspecand I still get the error. – Minkowski Sep 09 '16 at 10:40fontawesome.styhanging somewhere. Also report the line in the log wherefontawesome.styis loaded. – egreg Sep 09 '16 at 10:41fontawesomedoesn't requirexelatexorlualatex. – Alenanno Sep 09 '16 at 10:41openrightbeing unused, but that's it. – Alenanno Sep 09 '16 at 10:47fontawesome? Add\listfilesbefore\documentclassand you'll get a pretty-printed list of packages and their versions near the end of the.logfile. Also look at the log to see exactly wherefontawesome.styis located, to make sure it is not some stray copy. – Torbjørn T. Sep 09 '16 at 10:49fontawesome, likely from before thepdflatexcompatibility was added. – Torbjørn T. Sep 09 '16 at 10:54pdflatexsupport was added in version 4.3.0, which was released on July 9, 2015: https://github.com/xdanaux/fontawesome-latex/releases – Torbjørn T. Sep 09 '16 at 10:58(/usr/share/texlive/texmf-dist/tex/latex/fontawesome/fontawesome.sty Package: fontawesome 2013/05/10 v3.1.1 font awesome iconsin the log file. I will upgradeTeXLive, but I suposse I must download it from the website, as the lastest available version in Synaptic is that, mustn't I? – Minkowski Sep 09 '16 at 11:01apt-get install texlive-fullmight be easier, it's also usually older, and you can't usetlmgrto update packages. – Torbjørn T. Sep 09 '16 at 11:12tikz-cdhas just stopped working (tikzworks). I will try to fix the other problem now. – Minkowski Sep 09 '16 at 11:49