
아래 예와 같이 정리 스타일을 사용하면 Remark 뒤에 새 단락이 생성됩니다. 이것을 방지할 수 있나요? (그리고 amsthm
동시에 패키지를 사용하고 있습니까?)
\documentclass[english]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\usepackage{amsthm}
\usepackage{blindtext}
\newtheorem{rem}{Remark}
\begin{document}
\begin{rem}
\blindtext
\end{rem}
\blindtext % I want that the text begins aligned left, i.e. no new
% paragraph
\end{document}
답변1
정확히 무엇을 찾고 있는지는 모르겠지만 이것이 도움이 될 수 있습니다.
\documentclass[english]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\usepackage{amsthm}
\usepackage{blindtext}
\newtheoremstyle{mystyle}
{\topsep} % Space above
{0pt} % Space below
{\itshape} % Body font
{} % Indent amount
{\bfseries} % Theorem head font
{.} % Punctuation after theorem head
{.5em} % Space after theorem head
{} % Theorem head spec (can be left empty, meaning `normal')
\theoremstyle{mystyle}
\newtheorem{rem}{Remark}
\begin{document}
\begin{rem}
\blindtext
\end{rem}
\noindent\blindtext
\end{document}
PS: 다음의 정리 스타일을 사용했습니다.여기
답변2
어렵지는 않지만 한 번 더 생각해 보아야 합니다. rem
환경 내에서 증거로 설정된 발언~이다단락(또는 그 이상)이 단독으로 있으므로 그 뒤의 텍스트~해야 한다새로운 문단이 되세요.
\documentclass{article}
\usepackage{amsthm}
\newtheorem{reminner}{Remark}
\makeatletter
\newenvironment{rem}
{\reminner}
{\endreminner\@endpetrue}
\makeatother
\begin{document}
\begin{rem}
A remarkable text.
\end{rem}
Some text that shouldn't start a new paragraph. But why not?
\begin{rem}
Another remarkable text.
\end{rem}
Some text that will start a new paragraph.
\end{document}
답변3
이 동작은 다음 정의에 amsthm.sty
명시적으로 포함되어 발생합니다 . 1996년 5월 7일\@endpefalse
\@endtheorem
\def\@endtheorem{\endtrivlist\@endpefalse }
우편comp.text.tex에서 Mark Wooding이 해결책을 제시했습니다.
\expandafter\let\csname @endtheorem\endcsname\endtrivlist
그런 다음 다음과 같이 썼습니다. "보다 강력한 방법은 다음과 같습니다.
\makeatletter
\toks@\expandafter{\@endtheorem\@endpetrue}
\edef\@endtheorem{\the\toks@}
\makeatother
[...] 다른 사람이 원본 매크로를 추가로 변경하는 경우를 대비해." 이 솔루션은 저에게 효과적입니다(2023년). Tom Scavo가 Young U. Ryu를 인용하여 해당 스레드의 뒷부분에서 지적했듯이 코드는 \usepackage{amsthm}
및 사이에 와야 합니다( 솔루션을 \newtheorem{...}{...}
제안한 사람 ).\makeatletter\def\@endtheorem{\endtrivlist}\makeatother