I defined a macro that I occasionally use at the beginning of sections. After this macro has been used, I do not want the first `real' paragraph (which technically is the second paragraph) to be indented. However, I can only achieve this by omitting any new lines between the macro and the first paragraph. Is there a more elegant way?
\documentclass{article}
\begin{document}
\newcommand{\note}[1]{
\begin{flushright}
\textit{#1}
\end{flushright}
}
\section{First section}
First paragraph is correctly NOT indented.
\section{Second section}
\note{My Note}
First `real' paragraph is correctly NOT indented.
\section{Third section}
\note{My Note}
First `real' paragraph should NOT be indented, but IS.
\end{document}
\noindent
, if you wish. – Sigur Feb 19 '15 at 12:56\note
to achieve the\noindent
effect. – Florian Feb 19 '15 at 12:59