I am looking for a way to tell TeX:
Please break that line if and only if you are not on new line already.
I need this for a new environment which should always start in a new line. But I don't (how could I?) know, whether the author has typed a linebreak in front of that manually. I tried \linebreak, \\, and \newline, all of them caused the
LaTeX Error: There's no line here to end.
error, which I expected to show up, when trying
\newenvironment{mynewenvironment}{\\ \emph{Header:} }{}
[...]
random text \\
\begin{mynewenvironment}
text again
\end{mynewenvironment}
One can observe the same behavior with predefined environments, for instance
random text
\begin{itemize}
\\ \item text
\end{itemize}
is causing the error but not
random text
\begin{itemize}
\item text
\end{itemize}
random text\begin{itemize}
\item text
\end{itemize}
Both are doing exactly how I want my environment to react, therefore I expect my problem to be solvable fairly easy, but I don't know how.
\paror an empty line there? – yo' Mar 04 '13 at 17:03