New answers tagged

4

The implementation of \mathaccent and \cdot are very different in legacy LaTeX and unicode-math. \documentclass{article} \usepackage{unicode-math} \newcommand{\cdotaccent}{\Umathaccent fixed "7 "2 `⋅ } \newcommand{\dotcup}{\mathbin{\cdotaccent\cup}} \begin{document} $a \dotcup b$ \end{document} Of course \ensuremath is useless, whereas \mathbin gives ...


3

The usage is very odd (\mathaccent takes a number not a character as the specifier) although it sort of works if you give it a \mathchardef token as it re-interprets the mathcode as a mathaccent. unicode-math changes the definition of \cdot (and most symbols) to be \let to the unicode character rather than a \mathchardef defined token, so it is not a valid ...


5

To have the text font in math mode, you might want to use the mathastext package. To use this package with LuaLaTeX you also have to load fontspec with the no-math option. Because fontspec is loaded internally by Alegreya we do \PassOptionsToPackage{no-math}{fontspec} \usepackage[osf]{Alegreya} \usepackage[italic]{mathastext} Instead of saving and ...



Top 50 recent answers are included