Right now, sage.misc.latex_macros evaluates lots of things on startup. The attached patch modifies this: after the patch, the list of LaTeX macros is only computed when asked for.
There needs to be a corresponding change in sagenb: pull request
Depends on #13717
CC: @vbraun
Component: misc
Keywords: latex macros
Author: John Palmieri
Reviewer: Volker Braun
Merged: sage-5.7.beta0
Issue created by migration from https://trac.sagemath.org/ticket/13504