latex output formatting fix