图表标题的字母

图表标题的字母

我想用字母标题表示每个图。对于第一行,所有图都应有标题图 1(a),...图 1(d),对于第二行,所有图都应有标题图 2(a),...图 2(d)。

这可能吗?

\documentclass[a1paper,fontscale=0.43]{baposter} % Adjust the font scale/size here

\usepackage{graphicx} % Required for including images
\graphicspath{{figures/}} % Directory in which figures are stored
\usepackage[font=small,labelfont=bf]{caption} % Required for specifying captions to tables and figures
\usepackage{multicol} % Required for multiple columns
\setlength{\columnsep}{1.5em} % Slightly increase the space between columns
\setlength{\columnseprule}{0mm} % No horizontal rule between columns

\begin{document}
\begin{poster}

\begin{center}
\begin{minipage}{0.24\linewidth}
\includegraphics[width=\linewidth]{mancrop1.jpg}
\captionof{figure}{}
\end{minipage}
\hfill
\begin{minipage}{0.24\linewidth}
\includegraphics[width=\linewidth]{seg1im1.png}
\captionof{figure}{}
\end{minipage}
\hfill
\begin{minipage}{0.24\linewidth}
\includegraphics[width=\linewidth]{seg1im3.png}
\captionof{figure}{}
\end{minipage}
\hfill
\begin{minipage}{0.24\linewidth}
\includegraphics[width=\linewidth]{seg1im2.png}
\captionof{figure}{}
\end{minipage}
\end{center}

\begin{center}
\begin{minipage}{0.24\linewidth}
\includegraphics[width=\linewidth]{mancrop2.jpg}
\captionof{figure}{}
\end{minipage}
\hfill
\begin{minipage}{0.24\linewidth}
\includegraphics[width=\linewidth]{seg2im1.png}
\captionof{figure}{}
\end{minipage}
\hfill
\hfill
\begin{minipage}{0.24\linewidth}
\includegraphics[width=\linewidth]{seg2im3.png}
\captionof{figure}{}
\end{minipage}
\hfill
\begin{minipage}{0.24\linewidth}
\includegraphics[width=\linewidth]{seg2im2.png}
\captionof{figure}{}
\end{minipage}
\end{center}
\begin{center}
Figures caption.
\end{center}

\end{poster}

\end{document}

输出:

在此处输入图片描述

谢谢。

答案1

由于我假设您想要保留一组非浮动图像,因此我应用了此处给出的建议对于你的例子:

在此处输入图片描述

\documentclass{article}
\usepackage{caption}
\usepackage{subcaption}
\renewcommand{\thesubfigure}{Figure~\arabic{figure}(\alph{subfigure})}
\captionsetup[subfigure]{labelformat=simple}
\usepackage[demo]{graphicx}

\usepackage{lipsum}
\begin{document}



\begin{center}
  \begin{minipage}{\linewidth}
  \captionsetup[sub]{labelformat=parens}
  \captionsetup{type=figure}
    \begin{subfigure}{0.24\linewidth}
      \includegraphics[width=\linewidth]{mancrop1.jpg}
      \caption{}
    \end{subfigure}
    \hfill
    \begin{subfigure}{0.24\linewidth}
      \includegraphics[width=\linewidth]{seg1im1.png}
      \caption{}
    \end{subfigure}
    \hfill
    \begin{subfigure}{0.24\linewidth}
      \includegraphics[width=\linewidth]{seg1im3.png}
      \caption{}
    \end{subfigure}
    \hfill
    \begin{subfigure}{0.24\linewidth}
      \includegraphics[width=\linewidth]{seg1im2.png}
      \caption{}
    \end{subfigure}

    \refstepcounter{figure}
    \begin{subfigure}{0.24\linewidth}
      \includegraphics[width=\linewidth]{mancrop2.jpg}
      \caption{}
    \end{subfigure}
    \hfill
    \begin{subfigure}{0.24\linewidth}
      \includegraphics[width=\linewidth]{seg2im1.png}
      \caption{}
    \end{subfigure}
    \hfill
    \begin{subfigure}{0.24\linewidth}
      \includegraphics[width=\linewidth]{seg2im3.png}
      \caption{}
    \end{subfigure}
    \hfill
    \begin{subfigure}{0.24\linewidth}
      \includegraphics[width=\linewidth]{seg2im2.png}
      \caption{}
    \end{subfigure}
    \captionof*{figure}{Figures caption.}
  \end{minipage}
\end{center}


\end{document}

相关内容