I am using modernCv, classic style and I need to include my linkedIn and gitHub icons next to my account address in my cv. None of the solutions mentioned here nor here have worked for me. Do you have any suggestions?
4 Answers
Package/font fontawesome provides these symbols:
\documentclass{article}
\usepackage{fontawesome}
\begin{document}
\faGithub, \faLinkedin,
\faStackExchange, and \faStackOverflow
\end{document}
- 271,626
In my case the linked solution did work for me (maybe your LaTeX distribution was too old?), so I'll mention it for people that arrive on this page. You can use the \social command already included in Moderncv. Taken from this example in the "manual":
\social[linkedin]{john.doe}
\social[xing]{john\_doe}
\social[twitter]{jdoe}
\social[github]{jdoe}
\social[gitlab]{jdoe}
\social[skype]{jdoe}
You can also customize the url using something like:
\social[linkedin][www.linkedin.com/in/myname/]{My name}
- 8,684
Firstly, add a new class file name 'moderncv.cls' and paste the code in the link https://github.com/xdanaux/moderncv/blob/master/moderncv.cls
If you want to add icon images then download the icon image from google search and upload on your project then find the line
\collectionnew{socials}
Then add the bellow code before it (as much copy as you needed)
\newcommand*{\googlescholarsocialsymbol} {\includegraphics[width=0.5cm]{example-image-a}~}
'example-image-a' is the corresponding image name.
Now use as follows -
\social[researchgate]{name}
\social[googlescholar]{id}
-
1To add to this nice answer, one can send a link to their scholar page like this: \social[googlescholar][scholar.google.com/citations?hl=en&user=ID]{ID}, where ID is the google scholar ID. – kilojoules May 13 '21 at 01:25
Package \usepackage{fontawesome5} may seem to be the one of the best option for adding icons, but imagine a case icon's you wanted is not included in fontawesome package like in my case at least, I have to add icon's for several online coding platforms, in that situation you can use \usepackage{graphicx} package to add you own icons:
Step 1: Add Icons in your project
Step 2 Include package
\usepackage{graphicx}
Step 3 Add icon/image
\includegraphics[height=10pt,width=10pt]{file-name.ext}
Output:
- 131





\faStackOverflowon sharelatex even thought\faGithubdoes work. I'm using LuaLatex to compile. The error I get is the genericUndefined control sequence– Diego Aguado Jan 08 '18 at 13:26fontawesome.styreports 4.6.3.1). Maybe, ShareLaTeX uses an older version. The ChangeLog of the documentation does not tell, which symbol was introduced in which version. – Heiko Oberdiek Jan 08 '18 at 17:10