# Prevent new paragraph after theorem environment

Using the theorem style as in the example below, a new paragraph is produced after the Remark. Can I prevent this? (and using the amsthm package at the same time)?

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


• That's a precise choice: theorem-like environments are always separated from the context by vertical space and a new paragraph is supposed to start after them. I can't see reasons for changing the behavior. – egreg Mar 1 at 15:23
• A simple solution would be to use \noindent. – MahiPai Mar 1 at 15:31
• Without amsthm ist works. However, without amsthm I lose a lot of advantages. @MahiPai: Thanks, \noindent works! Since I need this only for one specific case the solution is appropriate. – Carlos Mar 1 at 15:34
• @Carlos... my answer had \noindent but you said it doesn't work for you... Anyway... Happy TeXing! – koleygr Mar 1 at 15:46
• Are you sure you want to make Latin-9 encoded documents in 2019? – egreg Mar 1 at 16:42

Not sure what exactly you are looking for, but this could help you

\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
{.} % 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: Used theoremstyle from here

It's not difficult to do it, but you should think twice. A remark set in evidence within a rem environment is a paragraph (or more of them) on its own, so the text after it should be a new paragraph.

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