Ask Your Question
0

Can I use amsmath in notebook?

asked 12 years ago

Jennifer Dylan gravatar image

I'd like to use Sage Notebook for typing my LaTeX papers. I'd like to be able to use environments such as theorem proof etc. Is this possible via Sage Notebook? Can I use a custom preamble such as: \usepackage{amsmath, amsthm, amssymb}?

Preview: (hide)

Comments

I think with the upcoming (momentarily) upgrade to using MathJax in the notebook this will be possible from the server side. I don't know if the client (you) can do that with a simple switch if that isn't turned on already.

kcrisman gravatar imagekcrisman ( 12 years ago )

2 Answers

Sort by » oldest newest most voted
2

answered 12 years ago

MaelstromYamato gravatar image

Try the following in a notebook:

from sage.misc.latex import latex_extra_preamble
latex.add_to_preamble('\\usepackage{amsmath}')
latex.add_to_preamble('\\usepackage{amsthm}')
latex.add_to_preamble('\\usepackage{amssymb}')
Preview: (hide)
link
1

answered 12 years ago

calc314 gravatar image

I've not tried adjusting the preamble, but you can find directions here in the section on customizing latex generation.

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

Seen: 1,539 times

Last updated: Sep 06 '12