ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 06 Sep 2012 06:35:55 -0500Can I use amsmath in notebook?https://ask.sagemath.org/question/9044/can-i-use-amsmath-in-notebook/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}`?Sun, 02 Sep 2012 07:25:37 -0500https://ask.sagemath.org/question/9044/can-i-use-amsmath-in-notebook/Comment by kcrisman for <p>I'd like to use Sage Notebook for typing my LaTeX papers. I'd like to be able to use environments such as <code>theorem</code> <code>proof</code> etc. Is this possible via Sage Notebook? Can I use a custom preamble such as: <code>\usepackage{amsmath, amsthm, amssymb}</code>?</p>
https://ask.sagemath.org/question/9044/can-i-use-amsmath-in-notebook/?comment=19118#post-id-19118I 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.Tue, 04 Sep 2012 08:26:24 -0500https://ask.sagemath.org/question/9044/can-i-use-amsmath-in-notebook/?comment=19118#post-id-19118Answer by MaelstromYamato for <p>I'd like to use Sage Notebook for typing my LaTeX papers. I'd like to be able to use environments such as <code>theorem</code> <code>proof</code> etc. Is this possible via Sage Notebook? Can I use a custom preamble such as: <code>\usepackage{amsmath, amsthm, amssymb}</code>?</p>
https://ask.sagemath.org/question/9044/can-i-use-amsmath-in-notebook/?answer=14011#post-id-14011Try 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}')Thu, 06 Sep 2012 06:35:55 -0500https://ask.sagemath.org/question/9044/can-i-use-amsmath-in-notebook/?answer=14011#post-id-14011Answer by calc314 for <p>I'd like to use Sage Notebook for typing my LaTeX papers. I'd like to be able to use environments such as <code>theorem</code> <code>proof</code> etc. Is this possible via Sage Notebook? Can I use a custom preamble such as: <code>\usepackage{amsmath, amsthm, amssymb}</code>?</p>
https://ask.sagemath.org/question/9044/can-i-use-amsmath-in-notebook/?answer=13989#post-id-13989I've not tried adjusting the preamble, but you can find directions [here](http://www.sagemath.org/doc/tutorial/latex.html) in the section on customizing latex generation.Sun, 02 Sep 2012 09:17:08 -0500https://ask.sagemath.org/question/9044/can-i-use-amsmath-in-notebook/?answer=13989#post-id-13989