带人物图案的花车

带人物图案的花车

我是 Latex 的新手,我正在尝试创建一个带有子图的带框浮点数和一个与文本一致的长文本标题(不会滑出边距)

我到目前为止一直遵循以下参考,但我的尝试都失败了。

添加的图形是我正在尝试创建的方案。

请保持简单......

以下是我目前所做的:

\documentclass[a4paper,fleqn,12pt]{article}
\usepackage[hypcap]{caption}
\usepackage{graphicx,subfig}
\usepackage[heightadjust=all,valign=c]{floatrow}
\usepackage{fr-subfig}
\usepackage{framed}

\begin{document}

%\title{Facing and obstacle}
%\maketitle

\thisfloatsetup{subfloatrowsep=qquad,style=BOXED}
\begin{figure}[!htbp]
\captionsetup{justification=centering,textfont=small}
\ffigbox{%
\begin{subfloatrow}[3]%
\ffigbox[\FBwidth]{\caption{sub figure a}\label{fig:a}}{%
\includegraphics[height=.25\textheight]{example-image-a}}
\ffigbox[\FBwidth]{\caption{sub figure b}\label{fig:b}}{%
\includegraphics[height=.25\textheight]{example-image-a}}
\end{subfloatrow}
\begin{subfloatrow}
\ffigbox[\FBwidth]{\caption{sub figure c}\label{fig:c}}{%
\includegraphics[height=.25\textheight]{example-image-a}}
\ffigbox[\FBwidth]{\caption{sub figure d}\label{fig:d}}{%
\includegraphics[height=.25\textheight]{example-image-a}}
\end{subfloatrow}%
\begin{subfloatrow}
\end{subfloatrow}
}{%
\caption[Long caption figure]{very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font  \label{fig:x}}%
    }
\end{figure}
 \end{document}

在此处输入图片描述

答案1

您的图片只显示了一个帧。可以使用 和 创建附加帧\fboxminipage方法与第一个帧完全相同。

\documentclass[a4paper,fleqn,12pt]{article}
\usepackage[hypcap]{caption}
\usepackage{graphicx}
\usepackage{subcaption}% bundled with caption

\begin{document}

%\title{Facing and obstacle}
%\maketitle

\begin{figure}[!htbp]
\captionsetup{textfont=small}
\fbox{\begin{minipage}{\dimexpr \textwidth-2\fboxsep-2\fboxrule}
\centering
\begin{subfigure}[b]{0.4\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{sub figure a}\label{fig:a}
\end{subfigure}\hfil
\begin{subfigure}[b]{0.4\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{sub figure b}\label{fig:b}
\end{subfigure}\par
\begin{subfigure}[b]{0.4\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{sub figure c}\label{fig:c}
\end{subfigure}\hfil
\begin{subfigure}[b]{0.4\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{sub figure d}\label{fig:d}
\end{subfigure}\par
\caption[Long caption figure]{very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font very long text with small font  \label{fig:x}}%
\end{minipage}}
\end{figure}
 \end{document}

相关内容