如何使大括号和圆括号变细?

如何使大括号和圆括号变细?

MWE 如下:

\documentclass{amsart}

\begin{document}
\Huge
We have
\[
f(x)=
\begin{cases}
2x^{2018}+9&x<2018\\
3x+2018&x\geq 2018.
\end{cases}
\]
And we also have
\[
\left(
\begin{array}{cc}
 x   &m  \\
 y   &n  \\
 x   &m  \\
 y   &n
\end{array}
\right).
\]

\end{document}

正如您在 PDF 中看到的,大括号和圆括号非常粗。 在此处输入图片描述 然后我的问题是:如何使大括号和圆括号变细?欢迎任何帮助!

答案1

您可以(滥用)使用\scalebox

\documentclass{amsart}
\usepackage{graphicx}
\begin{document}
\Huge
We have
\[
f(x)=
\scalebox{0.5}[1]{$\displaystyle
\left\{\scalebox{2}[1]{$\displaystyle\begin{array}{ll}
2x^{2018}+9&x<2018\\
3x+2018&x\geq 2018.
\end{array}$}\right.$}
\]
And we also have
\[
\scalebox{0.5}[1]{$\displaystyle
\left(\scalebox{2}[1]{$\displaystyle
\begin{array}{cc}
 x   &m  \\
 y   &n  \\
 x   &m  \\
 y   &n
\end{array}$}
\right)$}.
\]
\end{document}

在此处输入图片描述

如果您想经常使用它,您可以为其定义自己的环境。

\documentclass{amsart}
\usepackage{graphicx}
\usepackage{environ}
\NewEnviron{thincases}{\scalebox{0.5}[1]{$\displaystyle
\left\{\scalebox{2}[1]{\setlength{\arraycolsep}{6pt}% <- I did not look up the "correct" value
$\displaystyle\begin{array}{ll}
\BODY
\end{array}$}\right.$}}%}
\NewEnviron{thinpmatrix}{\scalebox{0.5}[1]{$\displaystyle
\left(\scalebox{2}[1]{$\displaystyle
\begin{matrix}
\BODY
\end{matrix}$}
\right)$}}
\begin{document}
\Huge
We have
\[
f(x)=
\begin{thincases}
2x^{2018}+9&x<2018\\
3x+2018&x\geq 2018.
\end{thincases}
\]
And we also have
\[
\begin{thinpmatrix}
 x   &m  \\
 y   &n  \\
 x   &m  \\
 y   &n
\end{thinpmatrix}
\]
\end{document}

在此处输入图片描述

答案2

理想情况下,你应该选择一种字体,它能提供你想要的括号尺寸。因此,我不建议将此解决方法用于一般用途,但该scalerel包可以以宽度受限的方式缩放字形:

\documentclass{amsart}
\usepackage{scalerel}
\begin{document}
\Huge
We have
\[
f(x)=
\scaleleftright[13pt]{\biggl\{}{
\begin{aligned}
2x^{2018}+9&x<2018\\
3x+2018&x\geq 2018.
\end{aligned}
}{.}
\]
And we also have
\[
\scaleleftright[13pt]{\biggl(}{
\begin{array}{cc}
 x   &m  \\
 y   &n  \\
 x   &m  \\
 y   &n
\end{array}}{\biggr)}
.
\]
\end{document}

在此处输入图片描述

或者,他们可以以受限于纵横比的方式拉伸它们。

答案3

正如之前发布的两个答案已经指出的那样,迄今为止,获得更细的花括号和圆括号的最优雅的方法是切换到 textfont/mathfont 组合,其花括号和圆括号比 的更细Computer Modern

以下四张截图展示了 Computer Modern、Times Roman 克隆和两个 Palatino 克隆产生的不同外观。在我看来,该包产生的高花括号和高圆括号newtxmath比其他字体要细得多。

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述


以下是产生上述屏幕截图的代码。

\documentclass{amsart}
%\usepackage{newtxtext,newtxmath} % Times Roman clone
%\usepackage{newpxtext,newpxmath} % Palatino clone
\usepackage{kpfonts} % another Palatino clone
\begin{document}
%Computer Modern (default)
%newtxtext/newtxmath
%newpxtext/newpxmath
kpfonts
\begin{gather*}
f(x)=
\begin{cases}
  2x^{2018}+9 & x<2018    \\
  3x+2018     & x\geq 2018.
\end{cases}\\
\begin{pmatrix}
  x & m \\ y & n \\ x & m \\ y & n
\end{pmatrix}
\end{gather*}
\end{document}

答案4

经过一番努力,我找到了一种优雅的方法来只改变大括号和圆括号,那就是largesymbols从其他字体文件调用。我把它贴在这里,表示有人会需要它。代码如下:

\documentclass{amsart}

\makeatletter
\DeclareSymbolFont{mylargesymbols}{OMX}{ccex}{m}{n}
%change the thickness of large left and right braces 
\DeclareMathDelimiter{\lbrace}{\mathopen}{symbols}{"66}{mylargesymbols}{"08}
\DeclareMathDelimiter{\rbrace}{\mathclose}{symbols}{"67}{mylargesymbols}{"09}
%change the thickness of large left and right parenthesis
\DeclareMathDelimiter{(}{\mathopen}{operators}{"28}{mylargesymbols}{"00}
\DeclareMathDelimiter{)}{\mathclose}{operators}{"29}{mylargesymbols}{"01}
%change the thickness of large aleft and right brakets
\DeclareMathDelimiter{[}{\mathopen}{operators}{"5B}{mylargesymbols}{"02}
\DeclareMathDelimiter{]}{\mathclose}{operators}{"5D}{mylargesymbols}{"03}
%change the thickness of large above and uner braces
\DeclareMathSymbol{\braceld}{\mathord}{mylargesymbols}{"7A}
\DeclareMathSymbol{\bracerd}{\mathord}{mylargesymbols}{"7B}
\DeclareMathSymbol{\bracelu}{\mathord}{mylargesymbols}{"7C}
\DeclareMathSymbol{\braceru}{\mathord}{mylargesymbols}{"7D}
%change the thickness of large left and right groups
\DeclareMathDelimiter{\lgroup}{\mathopen}{mylargesymbols}{"3A}{mylargesymbols}{"3A}
\DeclareMathDelimiter{\rgroup}{\mathclose}{mylargesymbols}{"3B}{mylargesymbols}{"3B}
%change the thickness of large left and right braceverts
\DeclareMathDelimiter{\bracevert}{\mathord}{mylargesymbols}{"3E}{mylargesymbols}{"3E}
\makeatother

\begin{document}
\Huge
We have
\[
f(x)=
\begin{cases}
2x^{2018}+9&x<2018;\\
3x+2018&x\geq 2018.
\end{cases}
\]
And we also have
\[
\left(\left\{
\begin{array}{cc}
 x   &m  \\
 y   &n  \\
 x   &m  \\
 y   &n
\end{array}
\right\}\right)
\]
and 
\[k\leq \langle \underbrace{a,\cdots,a,b,\cdots,b}_{a+b~\text{many}}\rangle.\]
We don't change the thickness of any other large symbols, for example
\[\sum^x_yx+y=\prod_y^x xy.\]

\end{document}

查看PDF中的效果:

在此处输入图片描述

ccex顺便说一句,您也可以根据需要使用其他大符号字体代码来代替。

相关内容