I am using the solution presented in Q/A 132582 to produce a transparent foreground watermark. With success most of the time. But on some rare occasions, a part of the main text is embedded into the watermark, as seen here
The text in black in the watermark should appear at the beginning of the first line of the next page instead. It is the title of a ntheorem theorem.
Thanks to Ulrike Fischer we now have a MWE :
\documentclass{article}
\usepackage{xcolor}
\usepackage[printwatermark]{xwatermark}
\newwatermark*[allpages,angle=45,scale=3,xpos=0,ypos=0]{CORRIGÉ}
\usepackage{lipsum,listings}
\usepackage{ntheorem}
\newtheorem{question}{Question}[section]
\begin{document}
\lipsum[1-4]
abc\\abc\\abc\\abc
\begin{lstlisting}
abc
abc
abc
abc
abc
\end{lstlisting}
\begin{question}blblbabc\end{question}
\end{document}
This a MWE in the sense that if you abstain from using ntheorem or replace the lstlisting with a verbatim, the problem disappears.


listingspackage's rounded frame feature. Other documents include frames made withmdframed, but not this one. – ysalmon Dec 11 '17 at 22:45