Made sure that XeLaTeX or LuaLaTeX is in use before loading the awesome icon set
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user