Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How could I get a LinkedIn logo (like those found in http://press.linkedin.com/Media-Resources?SubjectID=644) in Latex?

I found some tikz code somewhere, but that was not for one in blue, and it didn't look quite the same.

Example:

Enter image description here

share|improve this question
    
Why not just include one of those as a graphic? –  Thruston Jul 10 at 17:13
    
@Thruston I want to use it in a cv, as a logo. I don't know if There would be a handy way to get the image neatly in the header that way. But if there is then that would be nice :) –  rbm Jul 10 at 17:14
2  
Just \usepackage{graphicx} then \includegraphics{logo_file} where you need it. –  Thruston Jul 10 at 17:16
    
Of course if you posted an example of what you where trying to do, people might be able to suggest improvements. –  Thruston Jul 10 at 17:16
    
@Thruston Ok, I'll post an example of what I want. –  rbm Jul 10 at 17:17

3 Answers 3

up vote 27 down vote accepted

fontawesome provides a number of "Social icons":

enter image description here

\documentclass{article}
\usepackage{fontawesome}
\usepackage{setspace}
\begin{document}
\doublespacing% Just for this example
\verb|Facebook|: \faFacebook \quad \faFacebookSign \par
\verb|Twitter|: \faTwitter \quad \faTwitterSign \par
\verb|Github|: \faGithub \quad \faGithubSign \par
\verb|HTML5|: \faHTMLfive \par
\verb|LinkedIn|: \faLinkedin \quad \faLinkedinSign \par
\verb|Pinterest|: \faPinterest \quad \faPinterestSign \par
\verb|Google+|: \faGooglePlus \quad \faGooglePlusSign
\end{document}

It requires compilation via XeLaTeX or LuaLaTeX.


Following the discussion on LinkedIn Branding Guidelines, you can also download the EPS versions of the LinkedIn logo and include them using \includegraphics (from graphicx).

share|improve this answer
    
Very nice. Would there be a way though to get the original, blue linkedin icon? –  rbm Jul 10 at 17:26
5  
@rbm: Add the xcolor package to your preamble (\usepackage{xcolor}) and use \colorLinkedinSign where \newcommand{\colorLinkedinSign}{\textcolor{rgb:red,6;green,108;blue,170}{\faLin‌​kedinSign}}. This is the output. –  Werner Jul 10 at 17:39
    
Great, thanks a lot! –  rbm Jul 10 at 18:41

Also trusting various websites and having Adobe Myriad Pro Bold on your system,

\documentclass[border=5mm]{standalone}
\usepackage{fontspec,tikz}
\setmainfont{Myriad Pro Bold}

\begin{document}
Linked\tikz[baseline=(i.text)]\node[fill=blue,rounded corners=0.25ex,text=white,inner sep=0.3ex](i) {in};

\end{document}

enter image description here

I didn't try to match the roundedness, kern or any other detail but if you wish you can do some precision surgery on it.

share|improve this answer
    
Nice, thanks for your help! –  rbm Jul 10 at 18:40
    
Oops, I forgot again that this needs LuaLaTeX or XeLaTeX. –  percusse Jul 10 at 18:54
    
Also pdfLaTeX if you have the MyriadPro package installed. –  Manuel Jul 11 at 9:36
    
@Manuel That's a very tricky thing in terms of copyright issues because the font exclusively belongs to Adobe and it is not released for free usage. Do you have a recent version somewhere? Or you mean mdsymbol ? –  percusse Jul 11 at 11:29
    
@percusse That may be true (I know nothing about copyright), but there is a package, and a script to convert the .otf to .pfb and .afm to be used with pdfLaTeX. My point was that there is an available Myriad Pro for non-(Xe/Lua)TeX. –  Manuel Jul 11 at 11:57

I think the simplest path is to use the EPS logos provided. With pdflatex you will have to convert the EPS file to PDF, but there are to do that (see What are good ways to convert EPS to PDF?) including “automatically” as in my installation. If you download the LinkedIn logo “bug” as EPS, you get a file LinkedIn-InBug-2C.eps. Then use something like this document:

\documentclass{standalone}
\usepackage{graphicx}
% http://tex.stackexchange.com/q/190927/1402
\begin{document}
\raisebox{-0.35ex}{\includegraphics[width=2.5ex]{LinkedIn-InBug-2C}}%
linked.in/johndoe
\end{document}

and you get this:

sample code output

I had to manually adjust the width and \raisebox arguments to get the size and vertical placement right. There might be other ways.

share|improve this answer
    
This is very nice as well. Thank you :) –  rbm Jul 10 at 19:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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