xdanaux / fontawesome-latex

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

Minimal working example for PDFLaTeX? #8

Open hpvd opened 7 years ago

hpvd commented 7 years ago

I'm looking for a minaml working example for Miktex+PDFLaTeX showing Fontawesome symbol. Would be very helpful to have this in documentation...

\documentclass{article}
\usepackage{fontawesome}
\begin{document}
\section{test-section}
Test-text \faCheck test
\end{document}

is producing no pdf:

...
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontawesome\fontawesomesymbols-ge
neric.tex")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontawesome\fontawesomesymbols-pd
ftex.tex")) (Latex-Fontawsome-Test.aux)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontawesome\ufontawesometwo.fd")
[1{C:/Users/AdminMobil/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]
(Latex-Fontawsome-Test.aux)Trying to make PK font FontAwesome--fontawesometwo at 600 DPI...
Running miktex-makemf.exe...

Sorry, but miktex-makemf did not succeed for the following reason:

  The FontAwesome--fontawesometwo source file could not be found.

The log file hopefully contains the information to get MiKTeX going again:

  C:/Users/AdminMobil/AppData/Local/MiKTeX/2.9/miktex/log/miktex-makemf.log

You may want to visit the MiKTeX project page, if you need help.

Running ttf2pk.exe...

Sorry, but miktex-makepk did not succeed for the following reason:

  PK font FontAwesome--fontawesometwo could not be created.

The log file hopefully contains the information to get MiKTeX going again:

  C:/Users/AdminMobil/AppData/Local/MiKTeX/2.9/miktex/log/miktex-makepk.log

You may want to visit the MiKTeX project page, if you need help.
 )
!pdfTeX error: pdflatex.exe (file FontAwesome--fontawesometwo): Font FontAwesom
e--fontawesometwo at 600 not found
 ==> Fatal error occurred, no output PDF file produced!

_____________________________________________________________________

 PDFLaTeX Compilation Report (Pages: 0)

 Errors: 1   Warnings: 0   Bad Boxes: 0
_____________________________________________________________________`

with miktex-makepk.log

2016-08-03 16:12:53,178+0200 INFO  makex - Trying to make PK font FontAwesome--fontawesometwo at 600 DPI...
2016-08-03 16:12:53,200+0200 INFO  makex - Running miktex-makemf.exe...
2016-08-03 16:12:53,394+0200 INFO  makex - Running ttf2pk.exe...
2016-08-03 16:12:53,726+0200 FATAL miktex-makepk - PK font FontAwesome--fontawesometwo could not be created.

hmm are there any ideas on this?

Miktex is uptodate...

miicha commented 7 years ago

I have/had the same problem. At the moment I try to figure out the reason of the problem, but it has to do with file/folder permissions. As a workaround it helped for me to:

frostybee commented 6 years ago

@miicha what you suggested worked for me. Thanks!

DapengLan commented 6 years ago

@miicha It also works for me. Thanks!

derlin commented 6 years ago

@miicha Great, thank you so much !

jjalvarezl commented 6 years ago

@miicha Thank you so much. It worked for me.