Fixed classed for latex and text output