Greetings,
First, thanks for writing this excellent package.
I am using the latest version of texlive on macOS 10.13.5. It surfaces with either the mactex distribution or the macports distribution. I am able to replicate on two other computers.
I am running into an issue that I hope you might be able to resolve. The same issue exists with the package fontawesome however it is not present in the package fontawseome5 which works flawlessly so perhaps that will help diagnose.
The issue is as follows (from the log file):
Package: academicons 2018/04/16 v1.8.6 Academicons Icons
(save: /Users/jracine/.texlive2017/texmf-var/luatex-cache/generic/fonts/otl/acad
emicons.lua)(save: /Users/jracine/.texlive2017/texmf-var/luatex-cache/generic/fo
nts/otl/academicons.luc)
luaotfload | aux : font no 18 (nil) defines no feature for script latn
luaotfload | aux : no font with id 18
.................................................
. fontspec info: "no-scripts"
.
. Font "Academicons" does not contain any OpenType `Script' information.
.................................................
! Undefined control sequence.
\LaTeX3 error:
Invalid operation fp_to_decimal(inf)
l.12 \newfontfamily{\AI}{Academicons}
I am using the following packages (actually, pandoc is rendering the R Markdown file and adds many of these packages)
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathspec}
\usepackage{fontspec}
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\usepackage{microtype}
\usepackage[margin=1in]{geometry}
\usepackage{hyperref}
\usepackage{longtable,booktabs}
\usepackage{graphicx,grffile}
\usepackage{parskip}
\usepackage{titling}
\usepackage{academicons}
The issue appears to be with the use of Scale and fontspec... if I manually remove Scale=MatchLowercase then the file is processed, otherwise it throws this error.
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
Given that fontawesome5 is able to overcome this issue I was hoping that perhaps you might be able to apply a patch.
Thanks again!
The file generated from pandoc is attached with a .txt extension (would not accept .tex extension)
vitae.txt