我现在用的是mtpro2
。不过我更喜欢 中的括号newtxmath
。我觉得这样更符合中文。如何把 中的括号{
和}
去掉newtxmath
?看起来工作量很大。。
\documentclass[12pt,a4paper,openany,fleqn]{book}
\usepackage[margin=2cm, top=2cm]{geometry}
\usepackage[subscriptcorrection,nofontinfo,zswash,mtphrb]{mtpro2}
\usepackage{amsmath}
\begin{document}
$\{x\mid 3x+2y<6\},~\left\{\frac{y}{x}\mid x\in\mathbb{Q},~y\in\mathbb{Q}\right\}$
\end{document}
答案1
\documentclass{article}
\DeclareFontEncoding{LMS}{}{}
\DeclareSymbolFont{ntxsymbols}{LMS}{ntxsy}{m}{n}
\SetSymbolFont{ntxsymbols}{bold}{LMS}{ntxsy}{b}{n}
\DeclareFontEncoding{LMX}{}{}
\DeclareSymbolFont{ntxlsymbols}{LMX}{ntxexx}{m}{n}
\SetSymbolFont{ntxlsymbols}{bold}{LMX}{ntxexx}{b}{n}
\DeclareMathDelimiter{\lbrace}{\mathopen}{ntxsymbols}{102}{ntxlsymbols}{8}
\DeclareMathDelimiter{\rbrace}{\mathclose}{ntxsymbols}{103}{ntxlsymbols}{9}
\begin{document}
\begin{center}
$\{ a + b \}$
\end{center}
\[ \biggl\{ \frac{a}{b} + \frac{c}{d} \biggr\} \]
\end{document}