[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: preview-environment: No enclosing outer environment found
From: |
Tassilo Horn |
Subject: |
Re: preview-environment: No enclosing outer environment found |
Date: |
Mon, 19 Jul 2021 21:43:59 +0200 |
User-agent: |
mu4e 1.5.13; emacs 28.0.50 |
Hongyi Zhao <hongyi.zhao@gmail.com> writes:
> With the point inside the math environment, I run the `Preview for
> environment' with `C-c C-p C-e', I will meet the following error:
> preview-environment: No enclosing outer environment found. I attached
> the screenshot here, just FYI.
>
> Any hints for this problem?
Yes, that's because the array environment is an "inner" environment
(`preview-inner-environments') meaning it cannot be previewed on its own
but only as part of the surrounding math environment. But you don't
have a surrounding math environment, just $...$. So use a math or
displaymath environment instead.
Bye,
Tassilo