\documentclass[12pt]{article}
\usepackage{amsmath,amssymb}
\DeclareFontEncoding{LS2}{}{\noaccents@}
\DeclareFontSubstitution{LS2}{stix}{m}{n}
\DeclareSymbolFont{xlargesymbols}{LS2}{stixex}{m}{n}
\DeclareMathDelimiter{\lbrace}{\mathopen}{operators}{"7B}{xlargesymbols}{"00}
\DeclareMathDelimiter{)}{\mathclose}{operators}{"7D}{xlargesymbols}{"01}
\begin{document}
\textbf{Question.} $A=\{x \ : \ x>0\}$.
\end{document}
我得到了如此奇怪的输出
发生了什么?我哪里做错了?有人能帮忙吗?
答案1
您认为这样的东西合适吗?我加载了 T1 表格字体stix
并浏览表格以使用合适的字体。然后我插入了代码。您可以看到正在使用的新符号
\documentclass[12pt]{article}
\usepackage{amsmath,amssymb}
\makeatletter
\DeclareFontEncoding{LS2}{}{\noaccents@}
\makeatother
\DeclareFontSubstitution{LS2}{stix}{m}{n}
\DeclareSymbolFont{xlargesymbols}{LS2}{stixex}{m}{n}
\DeclareSymbolFont{xop}{LS2}{t1-stixgeneral}{m}{n}
\DeclareMathDelimiter{\lbrace}{\mathopen}{xop}{"5E}{xlargesymbols}{"0C}
\DeclareMathDelimiter{)}{\mathclose}{xop}{"2F}{xlargesymbols}{"01}
\begin{document}
\textbf{Question.} $A=\{x \ : \ x>0\} (ab)$.
\[
A=\left\{\frac{a}{p}\right\} \left(\frac{a}{B}\right)
\]
\end{document}