sagemath / sage-shell-mode

Emacs front end for SageMath
GNU General Public License v3.0
98 stars 16 forks source link

Auctex integration in environments #36

Open Poetastrophe opened 6 years ago

Poetastrophe commented 6 years ago

I use auctex with sagetex and I was wondering if there Is a way to use sage-shell-mode in latex environments such as "sageblock" "sagesilent" and others in one which to specify?

stakemori commented 6 years ago

sage-shell-sagetex:load-file evaluates the whole sagetex buffer using running Sage process, but you are asking about a command that evaluates a specified environment using sage-shell-mode. Currently, there is no such a command but I think it is not difficult to implement such a command. Thank you for suggestion.

stakemori commented 6 years ago

In the latest commit in master, I just added a command sage-shell-sagetex:send-environment. This supports sageblock and sagesilent but sagecommandline is not supported (yet).