I need to display all the math in the typewriter style, so I used mathastext to do it, but now matrix brackets are not being displayed. Everything else works fine as far as I can tell.
Here's my code:
\documentclass{book}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{unicode-math}
\setmathfont{xits-math.otf}
\renewcommand\familydefault\ttdefault
\usepackage[defaulttt]{mathastext}
\renewcommand\familydefault\rmdefault
\begin{document}
\[
\begin{bmatrix*}[l]
a & (b+c)\\
\{c\} & [d]\\
\end{bmatrix*}
\]
\end{document}
The output looks like this:
As you can see, the matrix brackets are missing. How can I fix this? The answer to this related question did not work for me.


