I would like to use Alegreya font since I like it very much. I'm using XeLaTeX because I want to write the source directly in UTF8.
(EDITED)
However this font doesn't seem to have math support. As an MWE consider the following:
\documentclass{article}
\usepackage{unicode-math}
\usepackage{fontspec}
\setmainfont[
SmallCapsFont={Alegreya SC},
ItalicFeatures={SmallCapsFont=AlegreyaSC-Italic},
BoldFeatures={SmallCapsFont=AlegreyaSC-Bold},
BoldItalicFeatures={SmallCapsFont=AlegreyaSC-BoldItalic},
Ligatures=TeX,
]{Alegreya}
\begin{document}
\textsc{Example Document}
This is an example document where I like to put some math:
$$
i \neq \mathrm{i}
$$
also
$$
∫ \neq ∑
$$
finally
$$
e^θ = \cos \Re θ + i\sin \Im θ
$$
\end{document}
QUESTIONS
-
I noticed that roman font invoked by
\mathrm
and by operators like\sin
are taken from Alegreya while the others are standard Computer Modern Math, since is the default choice and I didn't use\setmathfont
. It is possible to make XeLaTeX use Alegreya Italic in math? How is possible to do it? What are disadvantages in doing this? -
I noticed that the
Euler
font in LaTeX harmonizes very well with Alegreya. It is possible to use it in XeLaTeX? (I found that the projectNeo Euler
seems inactive.) -
Would you suggest another math font to use with Alegreya? I tried the standard XeLaTeX math font (STIX, XITS, TeX Gyre Something), which are well designed but do not match well will Alegreya.
Best Answer
Get
euler.otf
from https://github.com/khaledhosny/euler-otfIf you instead want to use legacy Euler, use this