-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Command \FA already defined #234
Comments
This commit fixes an issue when using recent fontspec versions. Described in: https://tex.stackexchange.com/a/453198/73121 Closes posquit0#234.
You should specify the extension of the font(e.g. otf). |
I used setfont instead of newfont and now it runs again. Adding the extensions to the font didn't help. |
Could you tell me what you did exactly? In a bit detail? |
Change newfont to setfont in the line with the error |
Arch Linux users: You'll need https://aur.archlinux.org/packages/ttf-font-awesome-4/ (Version 4 in AUR) then edit awesome-cv.cls file at line 164: to have
|
@redragonx I am on ArchLinux, but I didn't need FontAwesome 4 $ pacsearch ttf-font
...
community/ttf-font-awesome 5.5.0-1 [installed]
Iconic font designed for Bootstrap Just the patching the .cls file was sufficient diff --git a/awesome-cv.cls b/awesome-cv.cls
index d1c1074..48c3da2 100644
--- a/awesome-cv.cls
+++ b/awesome-cv.cls
@@ -161,7 +161,7 @@
% Configuration for fonts
%-------------------------------------------------------------------------------
% Set the FontAwesome font to be up-to-date.
-\newfontfamily\FA[Path=\@fontdir]{FontAwesome}
+\setfontfamily\FA[Path=\@fontdir]{FontAwesome}
% Set font for header (default is Roboto)
\newfontfamily\headerfont[
Path=\@fontdir, |
I have the same error. But thanks to @ashwinvis, the patch fixes the problem. |
This commit fixes an issue when using recent fontspec versions. Described in: https://tex.stackexchange.com/a/453198/73121 Closes posquit0#234.
- Fixes error: `! LaTeX3 Error: Command '\FA' already defined!` (posquit0, issue posquit0#234) - Fixes error: `font not found` (posquit0, PR posquit0#98)
- Fixes error: `! LaTeX3 Error: Command '\FA' already defined!` (posquit0, issue posquit0#234) - Fixes error: `font not found` (posquit0, PR posquit0#98)
…n issue posquit0#234 answer from Thaodan
Fix posquit0#234: redefinition of \FA, upgrade to fontawesome5
This commit fixes an issue when using recent fontspec versions. Described in: https://tex.stackexchange.com/a/453198/73121 Closes posquit0#234. Fix fontawesome icons not rendering
This commit fixes an issue when using recent fontspec versions. Described in: https://tex.stackexchange.com/a/453198/73121 Closes posquit0#234.
https://github.com/posquit0/Awesome-CV/blob/master/awesome-cv.cls#L164 causes:
due to a change in
fontspec
as described in: https://tex.stackexchange.com/a/453198/73121.The text was updated successfully, but these errors were encountered: