Hi, I couldn't find previous discussions on this.
Looking at org-element-latex-environment-parser LaTeX environments are recognized as "[ \t]*\\\\begin{\\([A-Za-z0-9]+\\*?\\)}" (for start) and "^[ \t]*\\\\end{%s}[ \t]*$" (for the end). However, for e.g. small equations one might want to write (*) \begin{equation} PLACEHOLDER \end{equation}, i.e. in one line. This fails to be recognized as the latter regexp is not satisfied. For code generated by humans this is not an issue. However, e.g. SymPy generates code in the (*) format. Prefixing (*) with "#+LATEX:" will prevent ox-html from recognizing it. Should org-element try to catch one-line environments as the one above? Or is it "a can of worms"? Cheers, Rasmus -- Don't panic!!!