xdanaux / fontawesome-latex

LaTeX mappings for Font Awesome, the icons font
300 stars 36 forks source link

Fontawesom icons not displayed with moderncv #2

Closed Rapster closed 8 years ago

Rapster commented 8 years ago

Hi there!

Using 4.4.0 font-awesome package with moderncv 2.0.0 does not displayed icons. Here a sample:

\documentclass[11pt,a4paper,sans]{moderncv}
\usepackage{fontspec}
\usepackage{fontawesome}
\moderncvtheme[blue]{classic}                
\usepackage[english]{babel}
\moderncvicons{awesome}

\firstname{XXXX}
\familyname{XXXX}

\mobile{+XXX (0)XXXXXX}                    
\email{XXXXXX.XXXXXX@XXXX.com}                
\social[linkedin]{www.linkedin.com/in/XXXXX}
\social[github]{Rapster}

\begin{document}
\makecvtitle
\section{Objective}
This a pair of glass: \faGlass
\end{document}

It does not display icons, or you can test with "template.tex" provided in moderncv :/ I'm runnning under Miktex 2.9 and Windows 7 (64 bits)

gaelfoppolo commented 8 years ago

Weird. Can you get the most updated version of MikTex? Try with pdfLaTex instead of XeLaTeX, see if anything change ( Do you have errors, could you provide us the log?

Rapster commented 8 years ago

I can confirm that this command \moderncvicons{awesome} is messing up the generation of the PDF. If I do not include it, the rendering quite works well (except it does not include the fontawesome icons such as faExternalLink). I attached the log, you'll see weird erros starting at line 1940 CVUncutEn-Lepage-Sébastien.txt

gaelfoppolo commented 8 years ago

Hmm looks like your MikTex is broken. Could perform a full cleanup and then a fresh install?

Rapster commented 8 years ago

Don't think so, I just did it on my brand new laptop

gaelfoppolo commented 8 years ago

Worth it to try, don't you think?

Rapster commented 8 years ago

First time, I detected this issue on my Windows 7, and I have the same issue on my other laptop running under Windows 10. It's still strange to have the same issue under two different machine

gaelfoppolo commented 8 years ago

Unistall MikTex and try TeX Live. I suspect MikTex having an issue with microtype and FontAwesome.

Rapster commented 8 years ago

I guess you're right, there is several posts about this like this one http://tex.stackexchange.com/questions/263150/fontawesome-wont-render-correctly-while-working-on-a-moderncv, i'll try it later

carlodri commented 8 years ago

Works fine for me simply saying

\usepackage{fontawesome}

also with microtype, using latest MikTeX and everything updated...

Rapster commented 8 years ago

Nop, i already had this package included. Does it work for you to display \faExternalLink ? Just to recall, by using \moderncvicons{awesome} no icons are displayed, by removing that, it's fine except icons such as faExternalLink are not displayed

carlodri commented 8 years ago

@Rapster \faExternalLinkworks fine. I don't use \moderncvicons{awesome}, only \usepackage{fontawesome}

Rapster commented 8 years ago

Not working either, I'm using XeLatex by the way...

carlodri commented 8 years ago

@Rapster oh, ok, sorry I missed that point! No, I'm using pdflatex: that can make quite a difference I suppose.

Rapster commented 8 years ago

Working with pdflatex! I guess it's a problem wit XeLatex then... Thanks for your answers