posquit0 / Awesome-CV

:page_facing_up: Awesome CV is LaTeX template for your outstanding job application
LaTeX Project Public License v1.3c
22.96k stars 4.77k forks source link

ResearchGate account #379

Closed Nour002 closed 2 years ago

Nour002 commented 2 years ago

I'm trying to add my research gate account to my CV, but every time I run into this error (also the logo doesn't appear, but I can still click on my name and it takes me to the right page).

The compiler is having trouble understanding a command you have used. Check that the command is spelled correctly. If the command is part of a package, make sure you have included the package in your preamble using \usepackage{...}.
Learn more
<argument> \faresearchgate 
                           \acvHeaderIconSep \@researchgate 
l.81 

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

This is how I defined it:

% Defines writer's researchgate (optional)
% Usage: \researchgate{<researchgate account>}
\newcommand*{\researchgate}[1]{\def\@researchgate{#1}}
  \ifthenelse{\isundefined{\@researchgate}}%
        {}%
        {%
          \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}%
          \href{https://www.researchgate.net/profile/\@researchgate}{\faresearchgate\acvHeaderIconSep\@researchgate}%
        }%
OJFord commented 2 years ago

Where did you put that \ifthenelse? I think I see where you copied/modified it from - but you can't just put that at your top level after importing awesomecv.cls for example.

You could do something like this:

\newcommand{\researchgate}[1]{
  \extrainfo{\href{https://researchgate.net/profile/#1}{\faResearchgate\acvHeaderIconSep#1}}
}

Or you could modify awesomecv.cls to add it much as you have above along with the others. (And if you do that, please open a PR 🙂.)

awsaf49 commented 2 years ago

@OJFord Hi, when I'm trying to extra link like Researchgate it doesn't have an icon like I have for GitHub for Twitter. Is there any way to add icons for them?

OJFord commented 2 years ago

@awsaf49 In 444f0db I added a \researchgate that uses the ResearchGate icon from FontAwesome - is that not working for you?

If you're using \extrainfo it indeed won't have an icon - use \researchgate instead.

If you're using \researchgate and it isn't working, please open a new issue about that.

awsaf49 commented 2 years ago

@OJFord actually I was trying to add \kaggle command, Kaggle is quite popular for Data Science. I have added the command but can't seem to figure out how to add an icon for it.

OJFord commented 2 years ago

\faKaggle should work, if you open a PR with what you have I can have a look and try to help there.

awsaf49 commented 2 years ago

Okay, I'll start a PR then shortly