I am trying to use lualatex
with the unicode-math
and semantic
packages. I have some problems with the semantic
package - when I load full version or with the shorthand
option I get "Invalid math code" errors.
The following code works correctly:
\documentclass{scrreprt}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{TeX Gyre Termes}
\usepackage{amsmath}
\usepackage{unicode-math}
\setmathfont{Asana Math}
\usepackage[inference]{semantic}
\begin{document}
$$
\inference{a = b}{c}{d}
$$
\end{document}
And this one causes errors:
\documentclass{scrreprt}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{TeX Gyre Termes}
\usepackage{amsmath}
\usepackage{unicode-math}
\setmathfont{Asana Math}
\usepackage[inference,shorthand]{semantic}
\begin{document}
$$
\inference{a = b}{c}{d}
$$
\end{document}
Is there any way to make it work? Or maybe there is a way to create semantic bracket symbols to use with unicode-math? (like \ldbrack \rdbrack in mathabx
package).