fix printing latex class variables