Created attachment 302883 [details, diff] Patch adding the preview USE flag The SymPy preview print system [1] wants dev-texlive/texlive-fontsextra (for eulervm.sty) and dev-python/pyglet for it's default viewer. While both of these are optional, there should, perhaps, be a USE flag which pulls them in by default. I see from the ChangeLog and ebuild comments that pyglet may have previously been included as a dependency. This patch supports the SymPy defaults, while still allowing users to avoid the extra dependencies if they want. [1] http://docs.sympy.org/dev/modules/printing.html#preview
pyglet is used not only for print preview but also for plots. In the past, sources of (a subset of) pyglet were included in sympy, and therefore the dependency on pyglet was dropped. I've restored it under the USE flag 'pyglet', and added texlive-fontsextra under USE flag 'latex'. So, for print preview, you will need both flags.