# [Tex/LaTex] How to use only selected math symbols of the STIX fonts

After reading an article by Grätzer in the current AMS-Notices on the STIX fonts, I wanted to use one of the math symbols in the article I am currently writing.

In perfect naivety I did what was suggested: I put the line \RequirePackage{stix} as the first line in the doc.

Here my scenario: I want to use only some selected math symbols of the STIX fonts and otherwise maintain everything else as before. What it the best way to proceed?

What I want are only the delimiters \lbrbrak and \rbrbrak from STIX.

\RequirePackage{stix}
\documentclass{amsart}
%\DeclareFontEncoding{LS1}{}{}
%\DeclareFontSubstitution{LS1}{stix}{m}{n}
%\DeclareSymbolFont{largesymbols} {LS1}{stixsf}{m} {n}
%\DeclareMathDelimiter{\lbrbrak} {\mathrel}{largesymbols}{"EE}{largesymbols}{"EE}
%\DeclareMathDelimiter{\rbrbrak} {\mathrel}{largesymbols}{"EF}{largesymbols}{"EF}
\newcommand{\newbrak}[2]{\genfrac{\lbrbrak}{\rbrbrak}{0pt}{}{#1}{#2}}
\begin{document}
$$\newbrak{k}{m} = (m n)! \, \frac{\Omega_{k}(z)}{\Omega_{m}(z)}$$
\end{document}


This script works. The lines beginning with 'Declare…' try to mimic the answer of David below. However out-commenting the first line and un-commenting the 'Declare..' lines leads to the error 'Insufficient extension fonts.' What did I do wrong?

Here's how to add the requested symbols. You don't have correctly identified the required fonts and symbols.

Look for \lbrbrak in stix.sty, to find

\stix@MathDelimiter{\lbrbrak}   {\mathopen} {largesymbols}{"EE}{largesymbols}{"14}
\stix@MathDelimiter{\rbrbrak}   {\mathclose}{largesymbols}{"EF}{largesymbols}{"15}


Thus we need to see what font largesymbols refers to:

\DeclareSymbolFont{largesymbols}  {LS2}{stixex}   {m} {n}


OK, now we need LS2:

\DeclareFontEncoding{LS2}{}{\noaccents@}
\DeclareFontSubstitution{LS2}{stix}{m}{n}


Next we have to choose a different symbolic name for the math font and put the pieces together (in reverse order).

\documentclass{amsart}

\makeatletter
\DeclareFontEncoding{LS2}{}{\@noaccents}
\makeatother
\DeclareFontSubstitution{LS2}{stix}{m}{n}

\DeclareSymbolFont{largesymbolsstix}{LS2}{stixex}{m}{n}

\DeclareMathDelimiter{\lbrbrak}{\mathopen}{largesymbolsstix}{"EE}{largesymbolsstix}{"14}
\DeclareMathDelimiter{\rbrbrak}{\mathclose}{largesymbolsstix}{"EF}{largesymbolsstix}{"15}
\newcommand{\newbrak}[2]{\genfrac{\lbrbrak}{\rbrbrak}{0pt}{}{#1}{#2}}

\begin{document}
$$\lbrbrak x\rbrbrak,\quad \bigl\lbrbrak x\bigr\rbrbrak,\quad \newbrak{k}{m} = (m n)! \, \frac{\Omega_{k}(z)}{\Omega_{m}(z)}$$

\end{document}