如何在定理环境中将空白放在标题下

如何在定理环境中将空白放在标题下

好的,我对 Latex 还不太熟悉,所以这可能是一个基本问题。我在定理环境中写作,我想在定理标题下只产生空白,文本紧随其后,但文本会自动进入标题下。有什么帮助吗?

答案1

假设您使用amsthm,您可以定义新的定理样式,在定理标题后发出结束线:

在此处输入图片描述

\documentclass{article}

\usepackage{amsthm}

\newtheoremstyle{plain2}
{3pt}% Space above
{3pt}% Space below
{}% Body font
{}% Indent amount
{\bfseries}% Theorem head font
{\\*[3pt]}% Punctuation after theorem head % HERE CHANGE THE SPACING
{.5em}% Space after theorem head
{}% Theorem head spec (can be left empty, meaning `normal')

\theoremstyle{plain2}

\newtheorem{theorem}{Theorem}

\begin{document}

\begin{theorem}[My theorem]
This is my theorem.
\end{theorem}

\end{document}

相关内容