This horror is a start... which can be quite certainly enhanced. Unfortunately, it doesn't display in ask.sagemath.org's implementation of Mathjax ; follow the link.
show(LatexExpr("f(x)=\\displaystyle\\begin{array}{l}%s\\end{array}."%"\\\\".join([str(latex(u)) for u in f(x).operands()])))