tecosaur / org-latex-preview-todos

A tracker for the Org LaTeX Preview effort on https://git.tecosaur.net/tec/org-mode
4 stars 0 forks source link

Do we need a blocklist of LaTeX envs that shouldn't be previewed? #11

Closed karthink closed 6 months ago

karthink commented 6 months ago

Certain LaTeX environments, like figure, are catastrophically broken when previewed with org-latex-preview. At the same time, there is no way to avoid previewing these environments (with or without auto-mode). Should we add a blocklist for environments with sensible defaults?

Of course, the user can use Org blocks #+begin_figure ... #+end_figure to avoid this. But it's going to be an upleasant surprise to Org users who liberally sprinkle LaTeX envs in their Org documents.

(I'm ambivalent about this, because I don't want to add yet more string-matching to each preview run.)

tecosaur commented 6 months ago

I think so, yea.

tecosaur commented 6 months ago

Done in https://git.tecosaur.net/tec/org-mode/commit/892999e2c