Somehow I cannot get the AlegreyaSans font to work in Beamer with mathspec. The standard fontenc call for AlegreyaSans works for PDFLaTeX, but I need to use auto-pst-pdf for a table, thus the use of XeLaTeX (please correct me if I'm wrong there!). As such, I hope to specify the math font in XeLaTeX, thus the use of mathspec. But somehow I cannot manage to get it to work; I constantly receive: "AlegreyaSans-Regular" cannot be found. See the given MWE.
I've wondered if it's an issue with a dash or space: Alegreya Sans vs. AlegreyaSans vs. Alegreya-Sans, but this does nothing. I have checked the fonts on the system: they are definitely titled AlegreyaSans-Regular, etc.
I'm using TeXLive 2015 on OSX.11.13.
EDIT: AlegreyaSans is a free font; it can be downloaded for free here.
\documentclass{beamer}
\usepackage{mathspec}
%\usepackage[T1]{fontenc}
%\usepackage[sfdefault]{AlegreyaSans}
\setmainfont[
Extension = .otf, %does not work with ttf either
UprightFont = AlegreyaSans-Regular,
ItalicFont = AlegreyaSans-Italic,
BoldFont = AlegreyaSans-Bold,
BoldItalicFont = AlegreyaSans-BoldItalic,
UprightFeatures = {SmallCapsFont = AlegreyaSansSC-Regular},
ItalicFeatures = {SmallCapsFont = AlegreyaSansSC-Italic},
BoldFeatures = {SmallCapsFont = AlegreyaSansSC-Bold},
BoldItalicFeatures = {SmallCapsFont = AlegreyaSansSC-BoldItalic},
Ligatures = TeX]
{AlegreyaSans}
\setmathsfont(Digits,Latin,Greek)[Numbers={Lining,Proportional}]{AlegreyaSans}
\makeatletter
\DeclareMathSymbol{0}{\mathalpha}{\eu@DigitsArabic@symfont}{`0}
\DeclareMathSymbol{1}{\mathalpha}{\eu@DigitsArabic@symfont}{`1}
\DeclareMathSymbol{2}{\mathalpha}{\eu@DigitsArabic@symfont}{`2}
\DeclareMathSymbol{3}{\mathalpha}{\eu@DigitsArabic@symfont}{`3}
\DeclareMathSymbol{4}{\mathalpha}{\eu@DigitsArabic@symfont}{`4}
\DeclareMathSymbol{5}{\mathalpha}{\eu@DigitsArabic@symfont}{`5}
\DeclareMathSymbol{6}{\mathalpha}{\eu@DigitsArabic@symfont}{`6}
\DeclareMathSymbol{7}{\mathalpha}{\eu@DigitsArabic@symfont}{`7}
\DeclareMathSymbol{8}{\mathalpha}{\eu@DigitsArabic@symfont}{`8}
\DeclareMathSymbol{9}{\mathalpha}{\eu@DigitsArabic@symfont}{`9}
\usepackage{pst-node, auto-pst-pdf}
\begin{document}
\begin{frame}
1 $S_1$
\end{frame}
\end{document}
