I want to use OTF version of STIXTwoMath-Regular.otf, to get the large delimiter such as
(),[],{ },|,/,\vert,\Vert,\langle,\rangle,\lceil,\rceil
, and so on, I need to modify what are all the delimiter, declared through \DeclareMathDelimiter{}{}{}{}{}{}
in the fontmath.ltx
I redefined through \Udelcode ⟨char slot⟩ [=] ⟨fam.⟩ ⟨glyph slot⟩
command, i am getting the correct output for few delimiters only (),[],|
few of them are not rendered properly when using \big or \left, it is loading default LaTeX CMR fonts (CMEX10)
How to modify to get the proper font loading (OTF) for \left< . \right>, \langle,\rangle, \vert,\Vert,\lceil,\rceil,
MWE
\documentclass{book}
\usepackage{mathspec}
\setmainfont{STIXTwoMath-Regular.otf}
\setmathsfont(Latin){STIXTwoMath-Regular.otf}
\setmathsfont(Digits){STIXTwoMath-Regular.otf}
\setmathsfont(Greek){STIXTwoMath-Regular.otf}
\setmathsfont(Symbols){STIXTwoMath-Regular.otf}
\newfontface\StixMath{STIXTwoMath-Regular.otf}[Scale=1.0,NFSSFamily=stix]
\DeclareSymbolFont{Stixsym}{TU}{stix}{m}{n}
%%% for Bracket
\Udelcode`\[\symStixsym"005B
\Udelcode`\]\symStixsym"005D
%%% for paranthesis
\Udelcode`\(\symStixsym"0028
\Udelcode`\)\symStixsym"0029
%%% for |
\Udelcode`\|\symStixsym"007C
\Udelcode`\<\symStixsym"3C
\Udelcode`\>\symStixsym"3E
\xdef\sqrt{\Uradical\symStixsym"221A}
\begin{document}
%%%%%%%%%%%%%%%% ( )
$(01234567890)$
$\big( \Big( \bigg( \Bigg( abcdefghijklmnopqrstuvwxyz \big) \Big) \bigg) \Bigg)$
$\displaystyle \left( \frac{1}{2} \right)$\medskip
==========================\medskip
%%%%%%%%%%%%%%%% [ ]
$[01234567890]$
$\big[ \Big[ \bigg[ \Bigg[ abcdefghijklmnopqrstuvwxyz \big] \Big] \bigg] \Bigg]$
$\displaystyle \left[ \frac{1}{2} \right]$\medskip
==========================\medskip
%%%%%%%%%%%%%%%% | |
$|01234567890|$
$\big| \Big| \bigg| \Bigg| abcdefghijklmnopqrstuvwxyz \big| \Big| \bigg| \Bigg|$
$\displaystyle \left| \frac{1}{2} \right|$
==========================\medskip
$<01234567890>$
$\big< \Big< \bigg< \Bigg< abcdefghijklmnopqrstuvwxyz \big> \Big> \bigg> \Bigg>$
$\displaystyle \left< \frac{1}{2} \right>$
=========
$\{01234567890\}$
$\big\{01234567890\big\}$
$\big\{01234567890\big\}$
$\big\{ \Big\{ \bigg\{ \Bigg\{ abcdefghijklmnopqrstuvwxyz \big\} \Big\} \bigg\} \Bigg\}$
$\displaystyle \left\{ \frac{1}{2} \right\}$
=========
$\sqrt{2}$
$\displaystyle\sqrt{\frac{1}{2\frac{1}{2}}}$
===================
$\displaystyle\big\vert \Big\vert \bigg\vert \Bigg\vert abcdefghijklmnopqrstuvwxyz \big\vert \Big\vert \bigg\vert \Bigg\vert$
$\displaystyle\big\Vert \Big\Vert \bigg\Vert \Bigg\Vert abcdefghijklmnopqrstuvwxyz \big\Vert \Big\Vert \bigg\Vert \Bigg\Vert$
$\displaystyle\big\langle \Big\langle \bigg\langle \Bigg\langle abcdefghijklmnopqrstuvwxyz \big\rangle \Big\rangle \bigg\rangle \Bigg\rangle$
$\displaystyle\big\lceil \Big\lceil \bigg\lceil \Bigg\lceil abcdefghijklmnopqrstuvwxyz \big\rceil \Big\rceil \bigg\rceil \Bigg\rceil$
\end{document}
unicode-math
?\usepackage{unicode-math}\setmathfont{Stix Two Math}
will do exactly what you want.\bigg[
you lose the mathopen spacing, better to use\biggl[
and\biggr]