posquit0 / Awesome-CV

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

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

Open CodingChristoph opened 1 year ago

CodingChristoph commented 1 year ago

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[bot] commented 1 year ago

:wave: Welcome! Looks like this is your first issue.

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

videlc commented 1 year ago

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 commented 1 year ago

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}%
}%