I know I can download sagetex package from their website and after taking few steps: installing Sagemath, routing sagetex files to Tex, and etc, I can directly run Sage while writing on my tex (or vice versa?).
But I almost always work on overleaf, so I would like to know how to use sagetex on overleaf.
The thing is I DO NOT need to actually run sagemath program; I just need to use commands for formatting such as "\begin{sageblock} \end{sageblock}."
It seems just uploading the distributed files on overleaf and using \usepack{sagemath} wouldn't work. It makes sense cause they were supposed to be used in connection with Sagemath program.
I also know Cocalc supports sagetex and I can work on there, but I just prefer working on Overleaf.
listingspackage and its features to create a new env calledsageblockthat verbatimly shows its contents. See thelistingsmanual for more information. – daleif Jan 17 '22 at 11:47