thanks Pablo, but this is strange If I reproduce your code in a new file I see the perfect alignment of the frames. But I had changed the code in my original file as suggested by Wolfgang and I additionally commented all lines in the "firstHeadings" definitions following your advice and after compiling... the same result. The strange thing is that it is only the first section that protrudes, the other sections are right (as seen in the link). Therefore it must not be the code definition, since in that case all sections should protrude... Over the weekend I will slowly move my code to a new file with your code adding a bit everytime to try to spot the moment when I get this strange behaviour and then I will write again. ps. I included the link because there is no attach option here in the online-mailing-list. Sorry if it not ok. thanks