使用以下 LaTeX 代码,当array
很大时,括号看起来太粗。是否可以将括号变细?顺便说一句,|
分隔符看起来总是很好。
\[\left\{\begin{array}{l}
A+B=C\\J+K=L
\end{array}\right. \quad
\left\{\begin{array}{l}
A+B=C\\J+K=L\\O+P=Q\\R+S=T\\U+V=W\\X+Y=Z
\end{array}\right. \]
\[\left|\begin{array}{l}
A+B=C\\J+K=L
\end{array}\right|\quad
\left|\begin{array}{l}
A+B+C\\J+K=L\\O+P=Q\\R+S=T\\U+V=W\\X+Y=Z
\end{array}\right| \]
答案1
因为不需要其他字体,所以括号符号也可以用TikZ绘制,甚至还提供了带括号的装饰:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\newcommand*{\thinbraceleft}[1]{%
\vcenter{\hbox{%
\begin{tikzpicture}[
decoration=brace,
inner sep=0pt,
]
\node (M) {$\displaystyle #1$};
\draw[decorate] (M.south west) -- (M.north west);
\end{tikzpicture}%
}}%
}
\begin{document}
\[\left\{\begin{array}{l}
A+B=C\\J+K=L
\end{array}\right. \quad
\left\{\begin{array}{l}
A+B=C\\J+K=L\\O+P=Q\\R+S=T\\U+V=W\\X+Y=Z
\end{array}\right. \]
\[
\left\{
\begin{array}{l}
A+B=C\\J+K=L
\end{array}
\right.
\quad
\thinbraceleft{
\begin{array}{l}
A+B=C\\J+K=L\\O+P=Q\\R+S=T\\U+V=W\\X+Y=Z
\end{array}
}
\]
\[\left|\begin{array}{l}
A+B=C\\J+K=L
\end{array}\right|\quad
\left|\begin{array}{l}
A+B+C\\J+K=L\\O+P=Q\\R+S=T\\U+V=W\\X+Y=Z
\end{array}\right| \]
\end{document}
答案2
您可以使用不同的字体,例如软件包提供的字体mnsymbol
。但请注意:此软件包会对外观做出其他更改。
\documentclass{article}
\usepackage{mnsymbol}
\begin{document}
\[\left\{\begin{array}{l}
A+B=C\\J+K=L
\end{array}\right. \quad
\left\{\begin{array}{l}
A+B=C\\J+K=L\\O+P=Q\\R+S=T\\U+V=W\\X+Y=Z
\end{array}\right. \]
\[\left|\begin{array}{l}
A+B=C\\J+K=L
\end{array}\right|\quad
\left|\begin{array}{l}
A+B+C\\J+K=L\\O+P=Q\\R+S=T\\U+V=W\\X+Y=Z
\end{array}\right| \]
\end{document}