I'm using TeXlive 2015 on Ubuntu 14.04. I have a file that looks like this:
\documentclass{article}
\usepackage{academicons}
\begin{document}
\aiicon{orcid}
\end{document}
When I do $ latexmk -xelatex foo I get the following error:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! fontspec error: "font-not-found" ! ! The font "academicons" cannot be found. ! ! See the fontspec documentation for further information. ! ! For immediate help type H . !...............................................
I thought it would help to install the Academicons .ttf, but it didn't. Does anybody know why xelatex can't find the font?
Here is the log:
Latexmk: applying rule 'pdflatex'...
This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./foo.tex
LaTeX2e <2015/10/01> patch level 2
Babel <3.9n> and hyphenation patterns for 79 languages loaded.
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2015/texmf-dist/tex/latex/academicons/academicons.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/local/texlive/2015/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def))
(/usr/local/texlive/2015/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec-patches.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/euenc/eu1enc.def)
(/usr/local/texlive/2015/texmf-dist/tex/latex/euenc/eu1lmr.fd))
(/usr/local/texlive/2015/texmf-dist/tex/xelatex/xunicode/xunicode.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/tipa/t3enc.def
(/usr/local/texlive/2015/texmf-dist/tex/latex/euenc/eu1lmss.fd))
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/local/texlive/2015/texmf-dist/tex/xelatex/xetex-def/xetex.def
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))))
(/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "academicons" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.12 \newfontfamily{\AI}{academicons}
?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "academicons" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.12 \newfontfamily{\AI}{academicons}
?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "academicons" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.12 \newfontfamily{\AI}{academicons}
? ) (./foo.aux) (/usr/local/texlive/2015/texmf-dist/tex/latex/tipa/t3cmr.fd)
! Font EU1/academicons(0)/m/n/10=academicons: at 10.0pt not loadable: Metric (T
FM) file or installed font not found.
<to be read again>
relax
l.4 \aiicon{orcid}
? [1] (./foo.aux) )
Output written on foo.pdf (1 page).
Transcript written on foo.log.
Latexmk: Errors, so I did not complete making targets
fontconfig's configuration. Run withoutlatexmkto rule out complications there. What's your OS? What doeskpsewhich academicons.ttfgive? If you are on a suitable system, what doesfc-match Academiconsgive? – cfr Feb 27 '16 at 21:45kpsewhich academicons.ttfgives me '/usr/local/texlive/2015/texmf-dist/fonts/truetype/public/academicons/academicons.ttf'.fc-match Academiconsgives 'academicons.ttf: "Academicons" "Regular"'. – twsh Feb 27 '16 at 21:51academicons? Because as I already wrote in my answer, in the most recent version the font is loaded using\newfontfamily{\AI}{Academicons}(pay attention to the capital A). – Benjamin Feb 27 '16 at 23:24tlmgron Ubuntu. So I was getting a 'there are no updates' message even though there were. – twsh Feb 28 '16 at 12:48fontconfigalthough I doubt XeTeX can use it on OS X. But I don't know whether OS X's font handling can find a file specified without an extension. If so and if OS X still uses a case-insensitive file system, as it used to, it might work. But, as I say, I haven't used OS X for ages and I would have considered it by no means clear whether this would work or not anyway. So I'm not surprised if you say it doesn't. – cfr Feb 28 '16 at 13:34apt-getand what I get from the installer provided for TeXlive 2015? I'm asking because I didn't do that, buttlmgrin user mode seems to have installed a second copy of academicons.sty. It's the behaviour of user mode that confuses me because I used to use OS X and there was nothing like it. – twsh Feb 28 '16 at 22:18apt-gethas not installedtexlivewhen you installed an editor or something? If so, you may have 2 installations, which generally means trouble eventually.tlmgrwon't use user mode by default on a GNU/Linux system. – cfr Feb 29 '16 at 00:48You don't have permission to change the installation in any way, specifically, the directory /usr/local/texlive/2015/tlpkg/ is not writable. Please run this program as administrator, or contact your local admin.(I tried just to double-check.) – cfr Feb 29 '16 at 00:51tlmgr --usermode) I can install packages but they go in a different texmf tree in my home directory. Doing that seems to work i.e. I now have academicons 1.6 there and it gets used. tlmgr isn't defaulting to user mode: I have to specify it. I don't have the Ubuntu package because that's still TeXlive 2013 and I have TeXlive 2015. – twsh Feb 29 '16 at 01:33--usermodeunless you have no choice.* Update the installation properly. If you use--usermodeand later update the installation, you'll have stale files being used in place of new ones. If you install (TeX) font packages in this way, you will get some particularly nasty results. See https://tex.stackexchange.com/questions/255709/why-shouldnt-i-use-getnonfreefonts-to-install-additional-fonts-why-shouldnt-i. – cfr Feb 29 '16 at 01:57