Skip to content
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

Put name as hyperref into Xing/LinkedIn instead of the profile-identification to the profile page #442

Open
CodingChristoph opened this issue Oct 7, 2022 · 3 comments

Comments

@CodingChristoph
Copy link

Hi,

just want to add a little thing here:

When using i.e. \xing{} or \linkedin{} it had as an argument the specific profile identification on the corresponding page (Xing, or LinkedIn). Simply copying what was already done for googlescholar ID in the awesome-cv.cls gives the name with the Xing/LinkedIn symbol as a hyperlink to the profile, instead of the profile-identification of the corresponding profile.

Just added (You can do this for each other linked profile, that you want):

\newcommand*{\linkedin}[2]{%
  \def\@linkedinid{#1}%
  \ifthenelse{\equal{#2}{}}{%
    \def\@linkedinname{\@firstname~\@lastname}%
  }{%
    \def\@linkedinname{#2}%
  }%
}
\ifthenelse{\isundefined{\@linkedinid}}%
        {}%
        {%
          \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}%
          \href{https://www.linkedin.com/in/\@linkedinid}{\faLinkedinSquare\acvHeaderIconSep\@linkedinname}%
        }%

linkedinid is the your former used profile-specification, that is leading to your profile on LinkedIn.

@github-actions
Copy link

github-actions bot commented Oct 7, 2022

👋 Welcome! Looks like this is your first issue.

Hey, thanks for your contribution! Please give us a bit of time to review it. 😄

@videlc
Copy link

videlc commented Oct 15, 2022

Thanks @CodingChristoph, I was looking for this.

Strict copy paste of your solution crashed compilation. Looks like "faLinkedinSquare" was undefined on my side. Fixed like this :


 \ifthenelse{\isundefined{\@linkedin}}%
        {}%
        {%
          \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}%
          \href{https://www.linkedin.com/in/\@linkedin}{\faLinkedin\acvHeaderIconSep\@linkedin}%
        }%
\ifthenelse{\isundefined{\@linkedinid}}%
        {}%
        {%
          \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}%
          \href{https://www.linkedin.com/in/\@linkedinid}{\faLinkedin\acvHeaderIconSep\@linkedinname}%
        }%

use as in main .tex document:
\linkedin{linkedinid}{desired name to appear on pdf}

Thanks again !

@pasmai
Copy link

pasmai commented Nov 18, 2022

Thanks to you both!

@videlc 's Version worked for me for the cover letter template, but not the CV itself.

I removed the acvHeaderIconSep and changed the headersocialsep command.
The CV version that worked for me was:

⚠️ Full disclosure: I don't know Latex, I just changed the commands around until the error disappeared. ⚠️

     \ifthenelse{\isundefined{\@linkedin}}%
            {}%
            {%
              \ifbool{isstart}{\setbool{isstart}{false}}{\@headersocialsep}%
              \href{https://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\@linkedin}%
            }%
    \ifthenelse{\isundefined{\@linkedinid}}%
            {}%
            {%
              \ifbool{isstart}{\setbool{isstart}{false}}{\@headersocialsep}%
              \href{https://www.linkedin.com/in/\@linkedinid}{\faLinkedinSquare\@linkedinname}%
            }%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants