如何在带有列表的小页面环境中在同一级别具有单独的标题?

How to have separate captions in the same level in the minipage environment with listing?

在带有列表和图形的小型环境中,我想要三个单独的标题 abc evenly如下图:

但是我尝试使用这个最少的代码得到了一个 不整洁 的标题,如下所示:

\documentclass[11pt]{article}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{graphicx}
%\usepackage{caption}


\begin{document}
\begin{figure}[h!]
\noindent\begin{minipage}{0.3\textwidth}
\begin{lstlisting}[]
   while(a < 0){
   a++;
}
\end{lstlisting}
\caption{C program}
\end{minipage}%
\noindent\begin{minipage}{0.45\textwidth}
    \begin{align*}
    &F_1(a, b) \leftarrow a \le 0 \ 
    &F_2(a, b) \leftarrow  F_1(a, b) \ 
    \end{align*}
    \caption{Automata}
\end{minipage}%
\noindent\begin{minipage}{0.3\textwidth}
    \includegraphics[scale=0.2]{example-image-a}
    \caption{Relation}
\end{minipage}%
\caption{overal blablablablablabla  caption}
\end{figure}
\end{document}

如何去除 Figure 关键字并在同一级别获得 abc 标题?

您可以[b]不对齐您的小页面:

\documentclass[11pt]{article}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{graphicx}
%\usepackage{caption}


\begin{document}
\begin{figure}[h!]
\noindent\begin{minipage}[b]{0.3\textwidth}
\begin{lstlisting}[]
   while(a < 0){
   a++;
}
\end{lstlisting}
\caption{C program}
\end{minipage}%
\noindent\begin{minipage}[b]{0.45\textwidth}
    \begin{align*}
    &F_1(a, b) \leftarrow a \le 0 \ 
    &F_2(a, b) \leftarrow  F_1(a, b) \ 
    \end{align*}
    \caption{Automata}
\end{minipage}%
\noindent\begin{minipage}[b]{0.3\textwidth}
    \includegraphics[scale=0.2]{example-image-a}
    \caption{Relation}
\end{minipage}%
\end{figure}
\end{document}

    

同样的技术也适用于 subfigures:

\documentclass[11pt]{article}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{subcaption}


\begin{document}
\begin{figure}[h!]
\noindent\begin{subfigure}[b]{0.3\textwidth}
\begin{lstlisting}[]
   while(a < 0){
   a++;
}
\end{lstlisting}
\caption{C program}
\end{subfigure}%
\noindent\begin{subfigure}[b]{0.45\textwidth}
    \begin{align*}
    &F_1(a, b) \leftarrow a \le 0 \ 
    &F_2(a, b) \leftarrow  F_1(a, b) \ 
    \end{align*}
    \caption{Automata}
\end{subfigure}%
\noindent\begin{subfigure}[b]{0.3\textwidth}
    \includegraphics[scale=0.2]{example-image-a}
    \caption{Relation}
\end{subfigure}%
\caption{text}
\end{figure}
\end{document}