普通文本应与标题分开

普通文本应与标题分开

我需要知道如何将普通文本与标题分开。

\documentclass{article}
\usepackage{amsmath,mathtools,amssymb,array,arydshln}
\usepackage[german]{babel}
\usepackage[latin1]{inputenc}
\usepackage{capt-of}

\begin{document}
Here is my problem. Formula belowe should be space-separated from normal text.
\nonumber\begin{align}
a+b+c+d+e
\end{align}
\captionof{figure}{K-Konfigurationen in Backus-Naur-Form}
This is a test. This is a test.\\
Text should be separated from caption title.\\
Test test test test test.
\end{document}

我将得到以下结果: 在此处输入图片描述

如您所见,普通文本位于标题下方。两者之间的距离至少应为 2 行。

我怎么做?

谢谢!

答案1

似乎您想要一个figure包含数学的非浮动环境。为此,您可以使用

在此处输入图片描述

\documentclass{article}

\usepackage{float}

\begin{document}

Here is my problem. Formula below should be space-separated from normal text.

\begin{figure}[H]% ...or \begin{figure}[!h]
  \centering
  $\displaystyle a + b + c + d + e$
  \caption{$K$-Konfigurationen in Backus-Naur-Form}
\end{figure}

This is a test. This is a test.
Text should be separated from caption title.
Test test test test test.

\end{document}

相关内容