%%% file.tex \documentclass{article} \usepackage{sagetex} \usepackage{amsmath}
\begin{document} \begin{sageblock} a = 140 b = 10 res = a*b \end{sageblock} It is easily seen that our constant is $10^{\text{\texttt{\sage{res}}}}$. \end{document} %%% $ pdflatex file.tex $ sage file.sagetex.sage $ pdflatex file.tex $ open file.pdf -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.