complete katex support
adjust katex string to new standard