# Emacs, preview-latex, sseq

I like using preview-latex in Emacs. I have been working a lot with spectral sequences lately and so I would like to get the figures I draw in sseq to show up in preview-latex. So far no luck. Does anybody have any ideas on how to make this work?

Currently the image does seem to compile but I just see a black box. No actual image appears.

Example for people to play with:

\documentclass{article}
\usepackage{sseq}
\newcommand{\Zp}{Z_p}
\newcommand{\Zl}{Z_l}
\begin{document}
$\begin{sseq}[entrysize=3.5cm,grid=dots]{0...3}{0...3} \ssmoveto 0 0 \ssdrop{H_0(\Zp,H_0(\Zl^k))} \ssmoveto 0 1 \ssdrop{H_0(\Zp,H_1(\Zl^k))} \ssmoveto 0 2 \ssdrop{H_0(\Zp,H_2(\Zl^k))} \ssmoveto 0 3 \ssdrop{H_0(\Zp,H_3(\Zl^k))} \ssmoveto 1 0 \ssdrop{H_1(\Zp,H_0(\Zl^k))} \ssmoveto 1 1 \ssdrop{H_1(\Zp,H_1(\Zl^k))} \ssmoveto 1 2 \ssdrop{H_1(\Zp,H_2(\Zl^k))} \ssmoveto 1 3 \ssdrop{H_1(\Zp,H_3(\Zl^k))} \ssmoveto 2 0 \ssdrop{H_2(\Zp,H_0(\Zl^k))} \ssmoveto 2 1 \ssdrop{H_2(\Zp,H_1(\Zl^k))} \ssmoveto 2 2 \ssdrop{H_2(\Zp,H_2(\Zl^k))} \ssmoveto 2 3 \ssdrop{H_2(\Zp,H_3(\Zl^k))} \ssmoveto 3 0 \ssdrop{H_3(\Zp,H_0(\Zl^k))} \ssmoveto 3 1 \ssdrop{H_3(\Zp,H_1(\Zl^k))} \ssmoveto 3 2 \ssdrop{H_3(\Zp,H_2(\Zl^k))} \ssmoveto 3 3 \ssdrop{H_3(\Zp,H_3(\Zl^k))} \end{sseq}$
\end{document}


Quoting from the preview-latex manual:

If you have a certain macro or environment that you want to preview, first check if it can be chosen by cutomizing preview-default-options-list in the Preview Latex group.

If it is not available there, you can add it to preview-default-preamble also in the Preview Latex group, by adding a \PreviewMacro or \PreviewEnvironment entry (see Provided commands) after the \RequirePackage line.

So you have to add sseq to the list of environments to be preview. You can customize the variable preview-default-preamble (M-x customize-variable RET preview-default-preamble RET) or add the following code to your .emacs

(eval-after-load "preview"
'(progn