Ask Your Question
1

Can sagetex be configured to read init.sage?

asked 2020-04-09 22:54:19 +0200

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
1

answered 2020-04-10 20:30:09 +0200

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

\begin{sagesilent}
 from sage.env import SAGE_STARTUP_FILE
 load(SAGE_STARTUP_FILE)
\end{sagesilent}
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

Stats

Asked: 2020-04-09 22:54:19 +0200

Seen: 55 times

Last updated: Apr 10 '20