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

Adding a custom social media item with logo #74

Open
respatte opened this issue Aug 29, 2018 · 4 comments
Open

Adding a custom social media item with logo #74

respatte opened this issue Aug 29, 2018 · 4 comments

Comments

@respatte
Copy link

Hi,

Not really an issue, but I was wondering if it would be possible to create a custom \social item where the user can provide his own logo for a social media. I'm guessing it would be possible to tweak the source files to create one, but I'm not big on using TeX like that...

The reason I'm asking that is that I would like to give my ORCID ID with their nice little logo.

If creating a custom command is too much work for the use, I would love it if you could guide me through the steps of doing it myself!

Best,
Arthur

@mcala
Copy link

mcala commented Oct 31, 2018

If you still want to give this a go yourself, it's not too bad. However, ORCID's logo isn't included in FontAwesome, which is how the other icons are typeset. So the more difficult part is figuring out how to get the icon to show up in a nice way. I'd probably just stick with writing out ORC ID. If you want to still give it a shot:

First you'll want to make your own copy of the moderncv project. On a Mac with MacTeX, you'd put this in: /Users/${YOUR_USERNAME}/Library/texmf/tex/latex/moderncv

This will keep your work for being overwritten if the package updates from your package manager. You can also keep the files in the same directory as your resume/CV if you have trouble finding where to put them.

In the moderncv.cls (class) file is where you'll find what you are changing. Edit this file and find \collectionnew{socials}, which is where all of the social icons and links are described. You should see Twitter, Github and some others. Copy one of the \ifthenelse lines and modify it to work with ORCID.

Now search for \newcommand*{\twittersocialsymbol}. Copy this making something like \newcommand*{\orcidsocialsymbol}. Save and exit this file.

Now you have to tell moderncv what icon to use for ORC ID, which is going to in one of the moderncvicons.sty (style) files. Make sure you edit the one you are using (since you mention the icons, I'd assume it's the FontAwesome one). Like I said, there isn't a FontAwesome icon for ORCID, so you'll probably wind up with something like this: \renewcommand*{\orcidsocialsymbol} {{\textbf{ORC ID:}~}

@khatchad
Copy link

I see the icon now in https://fontawesome.com/icons?d=gallery&q=ORCID. However, when I use \social[orcid], the symbol is still missing.

@mcala
Copy link

mcala commented Sep 20, 2021

Correct, you still need to go through the rest of my comment to insert a new command for the ORCID symbol. Now that there is a FontAwesome icon, you'd want the last renew command to be: \renewcommand*{\orcidsocialsymbol} {\small \faorcid}

@khatchad
Copy link

Ah, OK. I currently see this in moderncviconsawesome.sty:

\renewcommand*{\orcidsocialsymbol}        {{\small\aiOrcid}~}

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