如何通过 ntheorem 避免第一行开头的空格
\documentclass[a4paper,10pt,openany,twoside]{scrbook}
\usepackage[paperwidth=94mm,paperheight=50mm,margin=2mm,footskip=2mm,showframe
] {geometry}
\usepackage{amsmath,amssymb}
%
\usepackage[amsmath,thmmarks]{ntheorem}
\theoremstyle{nonumberplain}
\theorembodyfont{\normalfont}
\theoremsymbol{\ensuremath{\vartriangleleft}}
\newtheorem{mythm}{}
%
\setlength\parindent{0pt}
\begin{document}
\begin{mythm}
Some text\\
Some other text
\[
a = b
\]
\end{mythm}
\end{document}
答案1
该nonumberplain
样式期望定理具有由第二个参数指定的标题\newtheorem
,并在该标题和定理主体之间插入一些空间。
您可以在ntheorem 文档。
我认为解决这个问题的一种方法是定义另一个与之类似但没有 s 的定理样式\hskip
,并将其用于无标题无数定理:
\documentclass[a4paper,10pt,openany,twoside]{scrbook}
\usepackage[paperwidth=94mm,paperheight=50mm,margin=2mm,footskip=2mm,showframe
] {geometry}
\usepackage{amsmath,amssymb}
%
\usepackage[amsmath,thmmarks]{ntheorem}
\makeatletter
\newtheoremstyle{nonumbernoheading}%
{\item[\theorem@headerfont##1\theorem@separator]}%
{\item[\theorem@headerfont##1\ (##3)\theorem@separator]}
\makeatother
\theoremstyle{nonumbernoheading}
\theorembodyfont{\normalfont}
\theoremsymbol{\ensuremath{\vartriangleleft}}
\newtheorem{mythm}{}
%
\setlength\parindent{0pt}
\begin{document}
\begin{mythm}
Some text\\
Some other text
\[
a = b
\]
\end{mythm}
\end{document}