liantze / AltaCV

Yet another alternative curriculum vitae/résumé class with LaTeX
Other
1.27k stars 331 forks source link

Compile sample-CV with LuaLaTeX - Error with academicons #23

Closed Hofer-Julian closed 5 years ago

Hofer-Julian commented 5 years ago

Hi!

When I compile the sample-CV with LuaLaTeX and change \documentclass[10pt,a4paper,ragged2e]{altacv} to \documentclass[10pt,a4paper,academicons]{altacv} I get the following error: LaTeX error: "xparse/command-already-defined" Command '\AI' already defined! For immediate help type H <return>. \fi.

This error disappears when I modify the patch to make academicons compilable with XeLaTeX in altacv.cls

%% v1.1: Optionally load academicons
\if@academicons
  %% Patch to make academicons compilable with XeLaTeX
  \ExplSyntaxOn
  \msg_redirect_name:nnn { fontspec } { font-not-found } { none }
  \ExplSyntaxOff
  \RequirePackage{academicons}
  \newfontfamily{\AI}{academicons.ttf}
\fi
liantze commented 5 years ago

Thanks for reporting this. Could you let me know the version of altacv you're using?

Hofer-Julian commented 5 years ago

It is v1.1.4, 27 July 2018

liantze commented 5 years ago

Thanks. I've updated altacv.cls to v1.1.5 which hopefully now supports different versions of academicons. Could you give it a try and see if it works for you? (For now I'm still making it support previous versions, because I'd like to make sure it still compiles on Overleaf at present...)

Hofer-Julian commented 5 years ago

Your patch works perfectly!

Thank you for this and your nice CV in general :)