%% start of file `fontawesome.sty'. %% Copyright 2013-2015 Xavier Danaux (xdanaux@gmail.com). % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License version 1.3c, % available at http://www.latex-project.org/lppl/. %------------------------------------------------------------------------------- % identification %------------------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{fontawesome}[2015/07/10 v4.3.0-1 font awesome icons] %------------------------------------------------------------------------------- % requirements %------------------------------------------------------------------------------- \RequirePackage{ifxetex,ifluatex} \newif\iffontawesome@otf\fontawesome@otffalse \ifxetex \fontawesome@otftrue \else \ifluatex \fontawesome@otftrue\fi\fi %------------------------------------------------------------------------------- % generic implementation %------------------------------------------------------------------------------- % generic command to display an icon by its name \newcommand*{\faicon}[1]{% {\csname faicon@#1\endcsname}} % generic icon commands and aliases \input{fontawesomesymbols-generic.tex} %------------------------------------------------------------------------------- % xe- and lualatex implementation %------------------------------------------------------------------------------- \iffontawesome@otf \usepackage{fontspec} % definition of \FA as a shortcut to load the Font Awesome font \newfontfamily{\FA}{FontAwesome} % icon-specific commands \input{fontawesomesymbols-xeluatex.tex} %------------------------------------------------------------------------------- % pdflatex implementation %------------------------------------------------------------------------------- \else % definition of \FA... as a shortcut to load the Font Awesome font \pdfmapline{+FontAwesome--fontawesomeone FontAwesome "fontawesomeone ReEncodeFont" <[fontawesomeone.enc