auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preview-environment: No enclosing outer environment found


From: David Kastrup
Subject: Re: preview-environment: No enclosing outer environment found
Date: Mon, 19 Jul 2021 21:56:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Tassilo Horn <tsdh@gnu.org> writes:

> 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.

You can preview $...$ just fine, you just don't get to call it an
environment.  C-c C-p C-p inside of an already existing (but edited)
preview would just use the already established boundaries I think.
Assuming that I remember this detail correctly.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]