On Thu, Jun 04, 2015 at 07:32:03PM -0400, Richard Heck wrote: > On 06/04/2015 07:13 PM, Guillaume M-M wrote: > > > >Bad news, it seems to forget that macros can use macros. With the attached > >file the preview is as follows: > > > >\begin{preview} > >\global\long\def\b{\a} > > > >$\b$ > >\end{preview} > > I suspect this is why all macros are included.
Most probably. This leaves us pretty stuck with the problem caused by having hundreds of macros. I will not commit any change to stable until we find a good solution. After all, this is what already happens now and it is not a regression. I think the complaint is due to the fact that now also the previews get zoomed and this may cause relevant delays, but I hope one is not zooming all the time. And it starts to be a problem when you have hundreds of macros, not a very common case, IMHO. A possible way out would be outputting all the macros once at the beginning of the file, such that they are seen by all snippets, and then the specific one appearing in a math inset (as done in the patch I was proposing). I'll have a look whether this can be done in a simple way. -- Enrico