Ask Your Question

Can sagetex be configured to read init.sage?

asked 2020-04-09 15:54:19 -0600

done_with_fish gravatar image

I have a lot of useful code stored in $DOT_SAGE/init.sage. I'd like sagetex to always have access to my useful code in init.sage. Is this possible?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-04-10 13:30:09 -0600

I don't think there is a way to do this automatically, but in each LaTeX file, try adding

 from sage.env import SAGE_STARTUP_FILE
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-04-09 15:54:19 -0600

Seen: 48 times

Last updated: Apr 10