如何获取图 xy 下方的标题并控制图片和文本之间的空间

如何获取图 xy 下方的标题并控制图片和文本之间的空间

在文档中插入图片时我需要两样东西。

首先,我希望标题文本也延伸到单词下方,比如图 1.1。在我的例子中,图 1.1 下方没有文本。标题文本仅位于图 1.1 右侧的许多行中。

\begin{figure}[h]
  \centering
    \includegraphics[scale=0.43]{body/DBD}
    \caption{Scrutinizing three different membrane segments for checking for an enrichment        contact. We observe the three crossings through each of the three membrane segments, of which          one is the high-spot presumed to represent a reliable TJ contact between two neighboring cells. Adapted from \cite{traylor2010evolutionary}.}
 \label{DBD}
 \end{figure}

其次,我还需要控制图片(包括标题)和文档文本之间的距离。

我应该怎么办?

答案1

欢迎来到 TeX.SE!

你的问题不太清楚。可以猜到你正在寻找类似这样的内容:

在此处输入图片描述

\documentclass{article}
\usepackage{graphicx}
\usepackage[font=small,
            labelfont=bf, labelsep=newline]{caption}

\begin{document}
\begin{figure}[h]
  \centering
    \includegraphics[width=0.5\linewidth]{example-image-duck}
    \caption{Scrutinizing three different membrane segments for checking for an enrichment        contact. We observe the three crossings through each of the three membrane segments, of which one is the high-spot presumed to represent a reliable TJ contact between two neighboring cells. Adapted from \cite{traylor2010evolutionary}.}
 \label{DBD}
 \end{figure}
\end{document}

相关内容