latex renderer: support for ^ _ in text and math mode