I've definied an environment with
\newenvironment{definiere}{\begin{leftbar} \textbf{Definition:}\newline }{\end{leftbar}}
Unfortunately sometimes this environment is spread over two pages, where the left-bar is about 2cm long and "Definition" written as header, but the actual definition itself is on the next page.
I'm using this environment mostly like this:
\begin{definiere}
\begin{equation}
WMC=\sum_{i=1}^n {c_i} \label{eq:WMC}
\end{equation}
\end{definiere}
I can avoid this behaviour by moving paragraphs below or above the definition, but sometimes it doesn't make sense anymore. My question is, does someone see a more elegant solution to my needs?