I am trying to compile a document using fontawesome with XeLaTeX (see this template https://github.com/ReScience/ReScience-submission/tree/master/article). I have Texlive 2016 installed in Ubuntu (installed directly from Texlive's homepage - not Ubuntu repositories). Texlive's tlmgr
claims fontawesome is installed. I seem to find evidence of it here:
$ kpsewhich fontawesome.map
/usr/local/texlive/2016/texmf-dist/fonts/map/dvips/fontawesome/fontawesome.map
To debug the problem, I am trying to compile the following MWE (test.tex):
\documentclass{article}
\usepackage{fontawesome}
\begin{document}
Test
\end{document}
using the command xelatex test.tex
. Where it seems to reach the critical point, the log says:
kpathsea: Running mktextfm FontAwesome
/usr/local/texlive/2016/texmf-dist/web2c/mktexnam: Could not map source abbreviation F for FontAwesome.
/usr/local/texlive/2016/texmf-dist/web2c/mktexnam: Need to update /usr/local/texlive/2016/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input FontAwesome
This is METAFONT, Version 2.7182818 (TeX Live 2016) (preloaded base=mf)
kpathsea: Running mktexmf FontAwesome
! I can't find file `FontAwesome'.
<*> ...our; mag:=1; nonstopmode; input FontAwesome
Please type another input file name
! Emergency stop.
<*> ...our; mag:=1; nonstopmode; input FontAwesome
Transcript written on mfput.log.
grep: FontAwesome.log: Ingen sådan fil eller filkatalog
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input FontAwesome' failed to make FontAwesome.tfm.
kpathsea: Appending font creation commands to missfont.log.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "FontAwesome" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
I have run updmap-sys
and mktexlsr
, but that did not seem to help. updmap-sys
said (among other things):
Files generated:
/usr/local/texlive/2016/texmf-var/fonts/map/dvips/updmap:
15796 2017-05-10 16:22:38 builtin35.map
21269 2017-05-10 16:22:38 download35.map
1688569 2017-05-10 16:22:39 psfonts_pk.map
1903381 2017-05-10 16:22:38 psfonts_t1.map
1903376 2017-05-10 16:22:38 ps2pk.map
14 2017-05-10 16:22:39 psfonts.map -> psfonts_t1.map
/usr/local/texlive/2016/texmf-var/fonts/map/pdftex/updmap:
1903383 2017-05-10 16:22:39 pdftex_dl14.map
1901718 2017-05-10 16:22:39 pdftex_ndl14.map
15 2017-05-10 16:22:39 pdftex.map -> pdftex_dl14.map
/usr/local/texlive/2016/texmf-var/fonts/map/dvipdfmx/updmap:
319 2017-05-10 16:22:38 kanjix.map
Should there have been a xelatex folder as well? What can I do to fix this?
Map fontawesome.map
in '/usr/local/texlive/2016/texmf-dist/web2c/updmap.cfg'. Is that correct?sudo updmap-sys
.sudo -u tlusr updmap-sys
and it seemed to work. I am going to amend my question above with some output from it...