When I use specific math delimiters from the STIX font, the delimiters don't stretch around array environments anymore like I expect.
For example, the following code:
\documentclass{article}
\usepackage{unicode-math}
\usepackage{amsmath}
\AtBeginDocument{
\setmathfont{STIX}[range={\lBrace, \rBrace}]
}
\begin{document}
\begin{displaymath}
\begin{array}{l}
\left\lBrace
\begin{array}{l}
A = B \\
f(x) = C + 3
\end{array}
\right\rBrace
\end{array}
\end{displaymath}
\end{document}
Yields the following outcome:
This is the result I am looking for:
That was made using this source (from: 3, 4):
\documentclass{article}
\usepackage{unicode-math}
\usepackage{amsmath}
\makeatletter
\@ifpackageloaded{stix}{%
}{%
\DeclareFontEncoding{LS2}{}{\noaccents@}
\DeclareFontSubstitution{LS2}{stix}{m}{n}
\DeclareSymbolFont{stix@largesymbols}{LS2}{stixex}{m}{n}
\SetSymbolFont{stix@largesymbols}{bold}{LS2}{stixex}{b}{n}
\DeclareMathDelimiter{\mylBrace}{\mathopen} {stix@largesymbols}{"E8}{stix@largesymbols}{"0E}
\DeclareMathDelimiter{\myrBrace}{\mathclose}{stix@largesymbols}{"E9}{stix@largesymbols}{"0F}
}
\begin{document}
\begin{displaymath}
\begin{array}{l}
\left\mylBrace
\begin{array}{l}
A = B \\
f(x) = C + 3
\end{array}
\right\myrBrace
\end{array}
\end{displaymath}
\end{document}
I guess I need to use the same \DeclareMathDelimiter for the first code snippet as well, but I don't know how to use that using the shorter \setmathfont syntax from the first code snippet. Also, I can't get stix2 to work with the shorter syntax, so that doesn't seem like a promising solution either.



