On 01.05.2012 13:02, Wolfgang Schuster wrote: > > Am 01.05.2012 um 12:24 schrieb Xenia: > >> On 01.05.2012 08:50, Aditya Mahajan wrote: >>> On Tue, 1 May 2012, Xenia wrote: >>> >>>> Dear context folks, >>>> >>>> since Aditya recommended I am using the vim module for including >>>> MATLAB-files in my TeX-files. But for longer code snippets there is no >>>> pagebreak, so that the code is cuttet at the end of the page. What do I >>>> have to do? >>>> >>>> current version: 2012.04.19 23:18 >>> >>> Can you post a minimal example? The attached simple test gives me page >>> breaks. >> >> The reason seems so be the frame, that I prefer. I am attaching the files. > > Use \definetextbackground for the frame, framedtext’s are unbreakable boxes. Thanks, that works, but now the linewrapping does not work correctly (after the frame) and the line numbering starts in line 2. I am attaching all files. Thank you. Xenia