ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 13 Oct 2015 23:23:37 +0200Print to latex according to line widthhttps://ask.sagemath.org/question/29630/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):
![image description](/upfiles/14434283547657527.png)
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?Mon, 28 Sep 2015 10:21:29 +0200https://ask.sagemath.org/question/29630/print-to-latex-according-to-line-width/Answer by vdelecroix for <p>Sometimes I need to print to latex really big polynomials. If I use <code>latex</code> command I will get something like this (black line means edge of page):</p>
<p><img alt="image description" src="/upfiles/14434283547657527.png"/></p>
<p>Reason is in fact that output of <code>latex</code> command exceeds maximum line width. Is it possible to create multi-line formulas by means of sage <code>latex</code> command or some other command?</p>
https://ask.sagemath.org/question/29630/print-to-latex-according-to-line-width/?answer=29979#post-id-29979Note 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. Tue, 13 Oct 2015 23:23:37 +0200https://ask.sagemath.org/question/29630/print-to-latex-according-to-line-width/?answer=29979#post-id-29979