Espacio no deseado al comienzo de la primera línea por ntheorem

Espacio no deseado al comienzo de la primera línea por ntheorem

Cómo evitar el espacio al comienzo de la primera línea por 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}

ingrese la descripción de la imagen aquí

Respuesta1

El nonumberplainestilo espera que el teorema tenga un encabezado especificado por el segundo argumento \newtheoreme inserta un espacio que debe ir entre este encabezado y el cuerpo del teorema.

Puede ver la definición de estilo no numérico en la página 52 deldocumentación de nteoremas.

Supongo que una forma de evitar esto sería definir otro estilo de teorema similar pero sin la \hskips, y usarlo para tus teoremas sin encabezado ni número:

\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}

nueva salida de estilo de teorema

información relacionada