Instant Preview when opening existing LyX file?

2015-05-04 Thread Klaus-Dieter Bauer
Hello! When I open my existing LyX files with instant preview enabled for equations, existing equations will only be rendered as instant-preview after I change something in them. Many of my equations however contain inconvenient visual clutter, e.g. empty left sides or large horizontal spaces in

Re: Instant Preview when opening existing LyX file?

2015-05-04 Thread Klaus-Dieter Bauer
Hello again! I tried a minimal example (simple-example.lyx) and there it actually worked. It also worked after seriously stripping down an actual project file. It turns out that the issue arose due to a command defined with \providecommand in the body of the text and used within \AtEndDocument.

Re: Instant Preview when opening existing LyX file?

2015-05-04 Thread Scott Kostyshak
On Mon, May 4, 2015 at 8:47 AM, Klaus-Dieter Bauer bauer.klaus.die...@gmail.com wrote: Here \providecommand defines the macro locally to this environment, but \AtEndDocument has a global effect, so when reaching \end{document} the previously defined macro is used but undefined, preventing

Instant Preview when opening existing LyX file?

2015-05-04 Thread Klaus-Dieter Bauer
Hello! When I open my existing LyX files with instant preview enabled for equations, existing equations will only be rendered as instant-preview after I change something in them. Many of my equations however contain inconvenient visual clutter, e.g. empty left sides or large horizontal spaces in

Re: Instant Preview when opening existing LyX file?

2015-05-04 Thread Klaus-Dieter Bauer
Hello again! I tried a minimal example (simple-example.lyx) and there it actually worked. It also worked after seriously stripping down an actual project file. It turns out that the issue arose due to a command defined with \providecommand in the body of the text and used within \AtEndDocument.

Re: Instant Preview when opening existing LyX file?

2015-05-04 Thread Scott Kostyshak
On Mon, May 4, 2015 at 8:47 AM, Klaus-Dieter Bauer bauer.klaus.die...@gmail.com wrote: Here \providecommand defines the macro locally to this environment, but \AtEndDocument has a global effect, so when reaching \end{document} the previously defined macro is used but undefined, preventing

"Instant Preview" when opening existing LyX file?

2015-05-04 Thread Klaus-Dieter Bauer
Hello! When I open my existing LyX files with instant preview enabled for equations, existing equations will only be rendered as instant-preview after I change something in them. Many of my equations however contain inconvenient visual clutter, e.g. empty left sides or large horizontal spaces in

Re: "Instant Preview" when opening existing LyX file?

2015-05-04 Thread Klaus-Dieter Bauer
Hello again! I tried a minimal example (simple-example.lyx) and there it actually worked. It also worked after seriously stripping down an actual project file. It turns out that the issue arose due to a command defined with \providecommand in the body of the text and used within \AtEndDocument.

Re: "Instant Preview" when opening existing LyX file?

2015-05-04 Thread Scott Kostyshak
On Mon, May 4, 2015 at 8:47 AM, Klaus-Dieter Bauer wrote: > Here \providecommand defines the macro locally to this environment, but > \AtEndDocument has a global effect, so when reaching \end{document} the > previously defined macro is used but undefined, preventing