Improves the tex frame snippet