Made sure that XeLaTeX or LuaLaTeX is in use before loading the awesome icon set

This commit is contained in:
Xavier Danaux
2013-04-29 13:43:30 -04:00
parent c93b42b716
commit ac83eb3720
12 changed files with 35 additions and 27 deletions

View File

@ -11,7 +11,8 @@
%-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{moderncviconsawesome}[2013/04/23 v1.5.0 modern curriculum vitae and letter icons: awesome]
% XeTeX or LuaTeX is needed to be able to use fontspec and fontawesome
\ifxetexorluatex
%-------------------------------------------------------------------------------
% required packages
@ -39,6 +40,11 @@
\renewcommand*{\githubsocialsymbol} {\faGithub~}
% if XeTeX or LuaTeX is not used, load the marvosym icon set instead
\else
\typeout{WARNING: to use the awesome icon set, please use XeTeX or LuaTeX to compile your document; switching to the marvosym icon set.}
\RequirePackage{moderncviconsmarvosym}
\fi
\endinput