The latex() command does different things in the notebook and the
command line.
Command line:
sage: var('a, b, c')
(a, b, c)
sage: eqn = [a+b*c==1, b-a*c==0, a+b==5]
sage: s = solve(eqn, a,b ,c)
sage: latex(s[0])
\left[a = \frac{{(\left(25 I\right) \, \sqrt{79} + 25)}}{
A problem with latex processing in a notebook (otherwise a brilliant
feature):
Evaluating the input cell:
%latex
$y=\sin x$
% end of input
tries to process the TeX file:
\documentclass{article}\usepackage{fullpage}\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}\usepackage{gr