The command latex will translate an expression to a LATEX expression. If you enter latex(expression), then the expression will be evaluated and the result will be given to you in the LATEX typesetting language. For example, if you enter
latex(1+1/2)
you will get
\ frac{3}{2}