Module: sage.misc.latex
In order to support latex formating, an object should define a special method _latex_(self) that returns a string.
Module-level Functions
c) |
x) |
Output x formated for inclusion in a LaTeX document.
The output should compile correctly if inserted into any latex document in math mode, assuming the amsmath package is included. No special macros should be required.
x, filename, [density=0], [debug=False], [brk=150]) |
Create a png image representation of x and save to the given filename.
symbols, coeffs) |
Compute a latex representation of a linear combination of some formal symbols.
INPUT: symbols -- list of symbols coeffs -- list of coefficients of the symbols OUTPUT: str -- a string
sage: t = PolynomialRing(Q, 't').0 sage: from sage.misc.latex import repr_lincomb sage: repr_lincomb(['a', 's', ''], [-t, t - 2, t^12 + 2]) '-t\mbox{\rm a} + (t - 2)\mbox{\rm s} + (t^{12} + 2)\mbox{\rm }'
objects, [title=False], [zoom=False], [expert=displaymath ], [debug=False], [sep=True], [tiny=4], [center=SAGE]) |
Compute a latex representation of each object in objects, compile, and display using xdvi. (Requires latex and xdvi be installed.)
INPUT: objects -- list (or object) title -- string zoom -- zoom factor, passed on to xdvi expert -- bool (True or False): mode passed onto xdvi debug -- bool (True of False): print verbose output sep -- string -- controls separators for math objects tiny -- bool (default: False) use tiny font. center -- bool (default: False) center OUTPUT: Pops up xdvi with the objects displayed.
Class: Latex
self, x) |
Special Functions: __repr__
See About this document... for information on suggesting changes.