如何在多行中使用花括号?

如何在多行中使用花括号?

我想排版多行集。

我想要排版一些类似于这个图像的东西:

在此处输入图片描述

我曾尝试使用一个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}

相关内容