ntheorem의 첫 번째 줄 시작 부분에 원하지 않는 공간이 있습니다.

ntheorem의 첫 번째 줄 시작 부분에 원하지 않는 공간이 있습니다.

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하고 이 제목과 정리 본문 사이에 들어갈 공간을 삽입합니다.

Nonumberplain 스타일의 정의는 52페이지에서 볼 수 있습니다.정리 문서.

이 문제를 해결하는 방법은 이와 유사하지만 \hskips가 없는 또 다른 정리 스타일을 정의하고 제목 없음 숫자 없음 정리에 사용하는 것입니다.

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

새로운 정리 스타일 출력

관련 정보