some styling and better escaping of special latex chars