![如何在多行中使用花括号?](https://linux22.com/image/406785/%E5%A6%82%E4%BD%95%E5%9C%A8%E5%A4%9A%E8%A1%8C%E4%B8%AD%E4%BD%BF%E7%94%A8%E8%8A%B1%E6%8B%AC%E5%8F%B7%EF%BC%9F.png)
我想排版多行集。
我想要排版一些类似于这个图像的东西:
我曾尝试使用一个equation
环境和一个align
环境,但无济于事。
试图
\documentclass{article}
\usepackage[export]{adjustbox}
\usepackage{amsmath}
\begin{document}
\newcommand{\f}[1]{\includegraphics[width=2em,valign=c]{#1}}
\begin{equation*}
\begin{split}
\left\{\f{example-image-a},\f{example-image-a},\f{example-image-a}\\
,\f{example-image-a} ,\f{example-image-a} ,\f{example-image-a}\right\}
\end{split}
\end{equation*}
\end{document}
右括号:\right\}
消失。
答案1
您忘记提供\left.
\right.
以下修改内容MWE
:
\documentclass{article}
\usepackage[export]{adjustbox}
\usepackage{amsmath}
\begin{document}
\newcommand{\f}[1]{\includegraphics[width=2em,valign=c]{#1}}
\begin{equation*}
\begin{split}
\left\{\f{example-image-a},\f{example-image-a},\f{example-image-a}\right.\\
\left. ,\f{example-image-a} ,\f{example-image-a} ,\f{example-image-a}\right\}
\end{split}
\end{equation*}
\end{document}
答案2
使用array
和\Bigl\{
、 \Bigr} 分隔符:
\documentclass{article}
\usepackage[export]{adjustbox}
\newcommand{\f}[1]{\includegraphics[width=3em,valign=c]{#1}}
\begin{document}
\[\setlength\arraycolsep{2pt}
\begin{array}{*{9}{l}}
\Bigl\{ & \f{example-image-duck}, & \f{example-image-duck}, & \f{example-image-duck},
& \f{example-image-duck}, & \f{example-image-duck}, & \f{example-image-duck},
& \f{example-image-duck}, & \\[2ex]
& \f{example-image-duck}, & \f{example-image-duck}, & \f{example-image-duck},
& \f{example-image-duck}, & \f{example-image-duck}, & \f{example-image-duck},
& \f{example-image-duck}, & \\[2ex]
& \f{example-image-duck}, & \f{example-image-duck}, & \f{example-image-duck},
& \f{example-image-duck}, & \f{example-image-duck}, & \f{example-image-duck},
& \f{example-image-duck}, & \\[2ex]
& \f{example-image-duck}, & \f{example-image-duck}, & \f{example-image-duck},
& \f{example-image-duck}, & \f{example-image-duck}, & \f{example-image-duck},
& \f{example-image-duck} & \Bigr\}
\end{array}
\]
\end{document}