方程式を含む3列の図を作成する

方程式を含む3列の図を作成する

画像に添付されているものと同様のものの作り方をご存知の方がいらっしゃいましたら、教えてください。 ここに画像の説明を入力してください

次のコードがありますが、私が探しているのは、これを前の図に示したものと同様のものに変換できることです。

\documentclass[8pt]{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}\setlength\arraycolsep{0pt}\small% added
\text{Roberts}
    =\begin{cases}
           G_x = \begin{pmatrix}
                    1 & 0\\
                    0 & -1
                \end{pmatrix} \\[3ex]
           G_y = \begin{pmatrix}
                    0 & 1\\
                    -1 & 0
                \end{pmatrix}
        \end{cases}
\text{Prewitt}
    =\begin{cases}
           G_x = \begin{pmatrix}
                    1 & 0 & -1\\
                    1 & 0 & -1\\
                    1 & 0 & -1
                \end{pmatrix}\\[4ex]
           G_y = \begin{pmatrix}
                    1 & 1 & 1\\
                    0 & 0 & 0\\
                    -1 & -1 & -1
                \end{pmatrix}
        \end{cases}
\ 
\text{Sobel}
    =\begin{cases}
           G_x = \begin{pmatrix}
                    -1 & 0 & -1\\
                    -2 & 0 & 2\\
                    -1 & 0 & 1
                \end{pmatrix}\\[4ex]
           G_y = \begin{pmatrix}
                    1 & 2 & 1\\
                    0 & 0 & 0\\
                    -1 & -2 & -1
                \end{pmatrix}
        \end{cases}
\label{eq:2}
\end{equation}


\end{document}

答え1

使用例subfigures

ここに画像の説明を入力してください

\documentclass{article}
\usepackage{geometry}
\usepackage{amsmath}
\usepackage{caption,subcaption}
\captionsetup{skip=1ex,
              font={small,sf},
              labelfont=bf,
              singlelinecheck=false}

\begin{document}
    \begin{figure}[ht]
    \setlength\arraycolsep{1pt}
    \small
\begin{subfigure}[b]{0.3\linewidth}
\[
\text{Roberts}
    =\begin{cases}
           G_x = \begin{pmatrix}
                    1 & 0\\
                    0 & -1
                \end{pmatrix} \\[9ex]
           G_y = \begin{pmatrix}
                    0 & 1\\
                    -1 & 0
                \end{pmatrix}
        \end{cases}
\]
\caption{}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\linewidth}
\[
\text{Prewitt}
    =\begin{cases}
           G_x = \begin{pmatrix}
                    1 & 0 & -1\\
                    1 & 0 & -1\\
                    1 & 0 & -1
                \end{pmatrix}\\[2ex]
           G_y = \begin{pmatrix}
                    1 & 1 & 1\\
                    0 & 0 & 0\\
                    -1 & -1 & -1
                \end{pmatrix}
        \end{cases}
\]
\caption{}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\linewidth}
\[
\text{Sobel}
    =\begin{cases}
           G_x = \begin{pmatrix}
                    -1 & 0 & -1\\
                    -2 & 0 & 2\\
                    -1 & 0 & 1
                \end{pmatrix}\\[2ex]
           G_y = \begin{pmatrix}
                    1 & 2 & 1\\
                    0 & 0 & 0\\
                    -1 & -2 & -1
                \end{pmatrix}
        \end{cases}
\]
\caption{}
\end{subfigure}
\caption{Example}
\label{eq:2}
    \end{figure}
\end{document}

関連情報