LaTeX is one of those domains where GPT4 is amazing. Along with eMacs lisp, tho it is better at LaTeX than elisp, where I have had it cycle into non-convergent series of errors. Much better than it is at actually making sense of the mathematics, interestingly.