I would suggest defining a new command in the LaTeX preamble. Here is a starting point, adapt to your taste:
\newcommand{\sagenote}[1]{$\text{\texttt{#1}} = \sage{#1}$} Example for testing: %%% \documentclass{article} \usepackage{sagetex} \usepackage{amsmath} \newcommand{\sagenote}[1]{$\text{\texttt{#1}} = \sage{#1}$} \begin{document} \begin{sageblock} a = 140 b = 10 res = a*b \end{sageblock} It is easily seen that our constant is \sagenote{res}. \end{document} %%% Of course, instead of A = B, you could stack A on top of B, or insert an arrow, a brace, etc. See eg Herbert Voss's "Mathmode", section 66 "Node connections". Or in the same document: underbrace, overbrace, underbracket, overbracket, stackrel, colorbox, empheq... Or use TikZ to create arrows etc. -- 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.