Print Latex Normally?
Hi. When I use %display latex
I don't really see Latex I want to see.
For example:
%display latex
integrate(x^2,x)
OUT: \newcommand{\Bold}[1]{\mathbf{#1}}\frac{1}{3} \, x^{3}
Isn't newcommand
completely extra here? How would I go on about getting latex output that doesn't include \newcommand
?
Ideally, I would want to see the following latex output: \frac{x^{3}}{3}
The formatting of your post is a bit confusing because it's not clear where the line breaks are. If you want to have pre-formatted multi-line text, don't use backticks since that is only for inline formatting. Instead, indent the full text by 4 spaces (you can do this automatically by selecting all the lines and pressing
Ctrl-K
.Please indicate if you are working in the Sage REPL, in the Jupyter Notebook, in the SageNB notebook, in the sage-mode for Emacs...
Are you using the Sage jupyter notebook, the old Sage notebook, Sage's command-line interface, or CoCalc?