I created my own environment and it in/for a KOMA-class.
It works fine, except that the first paragraph after it has an indentation. It want it to have no indentation at all, which is why I use false- for the class.
How can I set that indentation to zero?
Screenshot
MWE
\documentclass[
11pt,
a4paper,
]
{scrartcl}
\usepackage{
lmodern,
blindtext
}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{
multicol,
blindtext,
}
\newenvironment{teaser}{\vspace{0ex}\par\raggedright\sffamily}{%
\par%
\rule{0.8\columnwidth}{1pt}\par
\vspace{2ex}%
}
\listfiles
\begin{document}
\begin{center}\huge
Title stuff
\end{center}
\begin{multicols*}{2}
\section{Word}
\begin{teaser}
Stuff.
Word, some text to fill the void.
Here is a longer sentence, quite the long one.
\end{teaser}%
%
How do I have to define the new environment \verb|teaser| so that the first paragraph after it has no indentation?
Words words words words words words words words words words words words words.
Words words words words.
\end{multicols*}
\end{document}


\rule{0.8\columnwidth}{1pt}\par\noindent. – Bernard Mar 13 '21 at 11:17\rule{0.8\columnwidth}{1pt}\par\csname @afterheading\endcsnameshould work. – Ulrike Fischer Mar 13 '21 at 11:27