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?


Package/font fontawesome provides these symbols:


\faGithub, \faLinkedin,
\faStackExchange, and \faStackOverflow


  • Great! It works well! How can I use a different display name for it? It won't work like this: \faGithub{real URL}{display-name}
    – Reihan_amn
    Nov 11 '16 at 18:08
  • 3
    Solved by this! \faGithub\href{real URL}{display-name}
    – Reihan_amn
    Nov 11 '16 at 18:36
  • 1
    I can't manage to use the \faStackOverflow on sharelatex even thought \faGithub does work. I'm using LuaLatex to compile. The error I get is the generic Undefined control sequence Jan 8 '18 at 13:26
  • 1
    @DiegoAgher The example works with the recent CTAN version (fontawesome.sty reports Maybe, ShareLaTeX uses an older version. The ChangeLog of the documentation does not tell, which symbol was introduced in which version. Jan 8 '18 at 17:10
  • How could I add my credit in stackoverflow or math.SE in my CV in latex? Jun 19 '19 at 17:00

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":


You can also customize the url using something like:

\social[linkedin][www.linkedin.com/in/myname/]{My name}

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


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 -

  • To 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 at 1: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

enter image description here

Step 2 Include package \usepackage{graphicx}

enter image description here

Step 3 Add icon/image \includegraphics[height=10pt,width=10pt]{file-name.ext}

enter image description here


enter image description here

  • Welcome to TeX.SE!
    – Mensch
    Sep 25 at 11:17
  • @Mensch Thank you !!
    – WasitShafi
    Sep 25 at 11:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.