我想排版多行集。
我想要排版一些类似于这个图像的东西:
我曾尝试使用一个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}