function pretty(f,w)
%PRETTY Pretty print a symbolic expression.
%   PRETTY(S) prints the symbolic expression S in a format that 
%   resembles type-set mathematics.
%   PRETTY(S,n) uses screen width n instead of the default 79.
%
%   See also SUBEXPR, LATEX, CCODE.

%   Copyright (c) 1993-98 by The MathWorks, Inc.
%   $Revision: 1.15 $  $Date: 1997/11/29 01:05:59 $

if nargin == 2
   maplemex(['interface(screenwidth=' int2str(w) ');']);
end

maplemex('interface(prettyprint=true);');
disp(' ')
maplemex(['print(' char(f) ');']);
maplemex('interface(prettyprint=false);');

if nargin == 2
   maplemex('interface(screenwidth=79);');
end
