A better solution is to increase the space before each environment because the part of the title which sticks out of the box does not exist for TeX.8. September 2015 18:29Hi,@Otared I accept your answer until I can not fix my code, thank you.
Add@Woffgang I have to change the code (how ?) because I realize that the text of the second environment exceeds the frame (if you draw it).