Ask Your Question
1

Can sagetex be configured to read init.sage?

asked 5 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 5 years ago

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}
Preview: (hide)
link

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: 5 years ago

Seen: 275 times

Last updated: Apr 10 '20