The markdown skill of roboco-op can do katex, I've not pushed it too hard but you can train it fairly quickly and because it lives in a JS observable notebook you can connect it reactively to normal coding and debugger and correct the LLM of any mistakes it makes (which it then jams from).
https://observablehq.com/@tomlarkworthy/robocoop-skills#mark...
If you give me a problem I can see if it can solve it