Ask Your Question
0

Can I use amsmath in notebook?

asked 2012-09-02 14:25:37 +0100

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}?

edit retag flag offensive close merge delete

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 ( 2012-09-04 15:26:24 +0100 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2012-09-06 13:35:55 +0100

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}')
edit flag offensive delete link more
1

answered 2012-09-02 16:17:08 +0100

calc314 gravatar image

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

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: 2012-09-02 14:25:37 +0100

Seen: 1,507 times

Last updated: Sep 06 '12