SageTeX

Sage­tex al­lows you to em­bed code, the re­sults of com­pu­ta­tions, plots, and graph­ics from the Sage math­e­mat­ics soft­ware suite into LaTeX doc­u­ments. It is sim­i­lar in spirit to Lit­er­ate Haskell and lh­s2TeX.