(This is used to copy the string to the clipboard.)

### Katex auto-rendering

Katex auto-rendering takes all snippets of text between delimiters and replaces that snippet of text (including delimiters) by the rendered version of that snippet of text (excluding delimiters), if rendering succeeds. I use the following to quickly transform latex into Ans' version of Katex: Copy the text to the text area, and click the button. The corresponding katex is then copied to your clipboard and can be pasted to Ans.

(In interactive mode, the text auto-rendered anytime the input changes. Otherwise, you should click the button.)
Demo output Temp

See how the given text renders with $\KaTeX$'s auto-render feature (using $...$, $$..$$, $$...$$, and $...$ as delimiters):

OutputAutoRender

See how the given text is parsed by $\KaTeX$'s auto-render feature. Regular text in blue, correctly parsed text in green, incorrectly parsed text in red:

outputParseTest

See how the given text is parsed by $\KaTeX$'s auto-render feature. In particular, this shows all snippets that are being rendered by Katex, and indicates whether rendering succeeded (green) or not (red, with error message):

demo-output-parse

• Version 0.2: The paper2scan exams of Ans do not like $$...$$ too much. By checking the paper2scan checkbox, both $$...$$ and $...$ in Latex are replaced by $$...$$ in Katex, instead of by $$...$$.