我正在使用 mathtime pro 字体的免费精简版,我希望有办法使用计算机现代版花括号 ({})。Mathtime pro 有自己的花括号,更圆,但由于我使用的是免费版,所以它没有附带超大版的花括号。
我想知道,有没有办法可以选择性地将数学时间花括号替换为现代计算机的更直的花括号?
答案1
我看不出有什么太大的区别:
\documentclass{article}
\usepackage[lite]{mtpro2}
\usepackage{amsmath}
\DeclareSymbolFont{cmlargesymbols}{OMX}{cmex}{m}{n}
\DeclareMathDelimiter{\cmrbrace}{\mathclose}{symbols}{"67}{cmlargesymbols}{"09}
\DeclareMathDelimiter{\cmlbrace}{\mathopen}{symbols}{"66}{cmlargesymbols}{"08}
\begin{document}
\[
\text{MTPro2:}
\quad
\left\{\begin{matrix} 1 \\ 2 \\ 3 \\ 4 \\ 5 \\ 6 \end{matrix} \right\}
\qquad
\text{CM:}
\quad
\left\cmlbrace\begin{matrix} 1 \\ 2 \\ 3 \\ 4 \\ 5 \\ 6 \end{matrix} \right\cmrbrace
\]
\end{document}
如果你想用 CM 支架替换 MTPro2 支架
\documentclass{article}
\usepackage[lite]{mtpro2}
\usepackage{amsmath}
\DeclareSymbolFont{cmlargesymbols}{OMX}{cmex}{m}{n}
\DeclareMathDelimiter{\{}{\mathopen}{symbols}{"66}{cmlargesymbols}{"08}
\DeclareMathDelimiter{\}}{\mathclose}{symbols}{"67}{cmlargesymbols}{"09}
\let\lbrace\{
\let\rbrace\}
\begin{document}
\[
\text{MTPro2:}
\quad
\left\{\begin{matrix} 1 \\ 2 \\ 3 \\ 4 \\ 5 \\ 6 \end{matrix} \right\}
\qquad
\text{CM:}
\quad
\left\{\begin{matrix} 1 \\ 2 \\ 3 \\ 4 \\ 5 \\ 6 \end{matrix} \right\}
\]
\end{document}
我保留了这两个实例,但现在无论哪种情况都使用 CM 括号,只是为了与之前的图片进行比较。
答案2
一些较大的符号(以及可以添加的更多其他符号)采用以下代码中的计算机现代字体。
\documentclass{article}
\usepackage[lite]{mtpro2}
\usepackage{amsmath}
\makeatletter
%invoke computer modern large symbol font
\DeclareSymbolFont{mylargesymbols}{OMX}{cmex}{m}{n}
%large left and right braces
\DeclareMathDelimiter{\lbrace}{\mathopen}{symbols}{"66}{mylargesymbols}{"08}
\DeclareMathDelimiter{\rbrace}{\mathclose}{symbols}{"67}{mylargesymbols}{"09}
%large left and right parenthesis
\DeclareMathDelimiter{(}{\mathopen}{operators}{"28}{mylargesymbols}{"00}
\DeclareMathDelimiter{)}{\mathclose}{operators}{"29}{mylargesymbols}{"01}
%left and right brakets
\DeclareMathDelimiter{[}{\mathopen}{operators}{"5B}{mylargesymbols}{"02}
\DeclareMathDelimiter{]}{\mathclose}{operators}{"5D}{mylargesymbols}{"03}
%large above and under braces
\DeclareMathSymbol{\braceld}{\mathord}{mylargesymbols}{"7A}
\DeclareMathSymbol{\bracerd}{\mathord}{mylargesymbols}{"7B}
\DeclareMathSymbol{\bracelu}{\mathord}{mylargesymbols}{"7C}
\DeclareMathSymbol{\braceru}{\mathord}{mylargesymbols}{"7D}
%large left and right groups
\DeclareMathDelimiter{\lgroup}{\mathopen}{mylargesymbols}{"3A}{largesymbols}{"3A}
\DeclareMathDelimiter{\rgroup}{\mathclose}{mylargesymbols}{"3B}{largesymbols}{"3B}
%large left and right braceverts
\DeclareMathDelimiter{\bracevert}{\mathord}{mylargesymbols}{"3E}{largesymbols}{"3E}
\makeatother
\begin{document}
See
\[
f(x)=
\begin{cases}
x^2&x\leq 0,\\
x^3+9&x\geq 0.
\end{cases}
\]
and see
\[\underbrace{x\times\cdots \times x}_{n\text{ many}}=x^n.\]
\end{document}