Formatting in class and tex files