I get the following error message when using the semantic
package:
! Bad mathchar (32768).
<to be read again>
\relax
l.13 \begin{document}
The problem goes away if I load the semantic
package with just the inference
option. However, I do need math ligatures (the \mathlig
command).
Also, the problem disappears if I do not load the mathtools
package. Here is a minimal working example:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{semantic}
% \usepackage{mathtools} % Uncommenting this causes the problem.
\mathlig{->}{\rightarrow}
\mathlig{|->}{\mapsto}
\begin{document}
Here is a formula: $a -> b |-> c$.
\end{document}
Best Answer
The
semantic
package documentation doesn’t explicitly tell thatamsmath
should be loaded before it.Since
mathtools
loadsamsmath
, the same applies.I'm not really sure of the advantage of
->
over\rightarrow
and|->
over\mapsto
.