我正在使用ntheorem
包来制作模板。当我使用break
样式时,我发现标题下方的段落没有缩进,就像这样
\documentclass{article}
\usepackage{ntheorem}
\usepackage[showframe]{geometry}
\theoremstyle{break}
\newtheorem{theorem}{Theorem}
\begin{document}
\begin{theorem}
this is the first paragraph.
this is the second paragraph.
\end{theorem}
\end{document}
我希望它有这样的缩进
\documentclass{article}
\usepackage{ntheorem}
\usepackage[showframe]{geometry}
\theoremstyle{break}
\newtheorem{theorem}{Theorem}
\begin{document}
\begin{theorem}
\hspace*{\parindent}this is the first paragraph.
this is the second paragraph.
\end{theorem}
\end{document}
我不想\hspace*{\parindent}
每次使用时都添加。有没有办法设置它全球? 我尝试重新定义break
风格,但我不知道在哪里可以控制身体的行为。
\makeatletter
\newtheoremstyle{break}%
{\item[\rlap{\vbox{\hbox{\hskip\labelsep \theorem@headerfont ##1\ ##2\theorem@separator}\hbox{\strut}}}]}%
{\item[\rlap{\vbox{\hbox{\hskip\labelsep \theorem@headerfont ##1\ ##2\ (##3)\theorem@separator}\hbox{\strut}}}]}
\makeatother