\let\nous@old@begintheorem\@begintheorem
\def\@begintheorem{\special{NU:special:extension:xml:<referenceblock>}\nous@old@begintheorem}
\let\nous@old@endtheorem\@endtheorem
\def\@endtheorem{\nous@old@endtheorem\special{NU:special:extension:xml:</referenceblock>}}
