# Print to latex according to line width

Sometimes I need to print to latex really big polynomials. If I use latex command I will get something like this (black line means edge of page):

Reason is in fact that output of latex command exceeds maximum line width. Is it possible to create multi-line formulas by means of sage latex command or some other command?

edit retag close merge delete

Sort by » oldest newest most voted

Note that there are methods to extract a formula as a (multi-line) pdf file. For example, you can use the ready-made method view with the tightpage option

sage: view(expression, tightpage=True)


You can also use directly the preview latex package with tightpage option.

more