On Tue, 1 May 2012, Xenia wrote: >> Use \definetextbackground for the frame, framedtext’s are unbreakable boxes. > > Thanks, that works, but now the linewrapping does not work correctly > (after the frame) The bad linebreaks also happen if you remove the background. I'll look into it (in any case, hypenation should be disabled, so there is a bug somewhere). > and the line numbering starts in line 2. > I am attaching all files. Add location=paragraph to definebackground. Aditya