ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 03 Jul 2011 12:54:39 -0500How to make typeset output in sage display properly?http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/When there are complicated equations , especially with a lot of fractions, the output in sage is bad. Some of it is cut(some lower portion of the output). For example:
![image description](https://lh3.googleusercontent.com/-sEM3C59qBBM/Tg-zaSBOAvI/AAAAAAAAAqk/oQ2TjSH-0Fc/s800/Screenshot.png)
How can I fix this?Sat, 02 Jul 2011 14:13:17 -0500http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/Answer by John Palmieri for <p>When there are complicated equations , especially with a lot of fractions, the output in sage is bad. Some of it is cut(some lower portion of the output). For example:</p>
<p><img alt="image description" src="https://lh3.googleusercontent.com/-sEM3C59qBBM/Tg-zaSBOAvI/AAAAAAAAAqk/oQ2TjSH-0Fc/s800/Screenshot.png"/></p>
<p>How can I fix this?</p>
http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/?answer=12483#post-id-12483What operating system and browser are you using, and what version of Sage? With Mac OS X, I see this problem with Firefox, but not with Safari: it looks fine with Safari. So it looks more like a browser issue than a Sage issue.
Two ways around it: first,
solns = solve(17*x^3 + 2*x^2 + 54*x + 5 == 0, x) # a list with two elements
a = solns[0]
b = solns[1]
Then you can look at either `a` or `b` individually and (I hope) it will look fine. Second, if you look at `solns`, it looks bad, but `view(solns, viewer='pdf')` should pop open a PDF file with nice looking output, and you shouldn't see any clipping.
Sat, 02 Jul 2011 15:18:50 -0500http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/?answer=12483#post-id-12483Comment by ebs for <p>What operating system and browser are you using, and what version of Sage? With Mac OS X, I see this problem with Firefox, but not with Safari: it looks fine with Safari. So it looks more like a browser issue than a Sage issue.</p>
<p>Two ways around it: first,</p>
<pre><code>solns = solve(17*x^3 + 2*x^2 + 54*x + 5 == 0, x) # a list with two elements
a = solns[0]
b = solns[1]
</code></pre>
<p>Then you can look at either <code>a</code> or <code>b</code> individually and (I hope) it will look fine. Second, if you look at <code>solns</code>, it looks bad, but <code>view(solns, viewer='pdf')</code> should pop open a PDF file with nice looking output, and you shouldn't see any clipping.</p>
http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/?comment=21514#post-id-21514I have changed my browser whenever I use sage, I now use chromium or epiphany (which is built with safari engine) and there is no clipping!Sun, 03 Jul 2011 01:40:58 -0500http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/?comment=21514#post-id-21514Comment by ebs for <p>What operating system and browser are you using, and what version of Sage? With Mac OS X, I see this problem with Firefox, but not with Safari: it looks fine with Safari. So it looks more like a browser issue than a Sage issue.</p>
<p>Two ways around it: first,</p>
<pre><code>solns = solve(17*x^3 + 2*x^2 + 54*x + 5 == 0, x) # a list with two elements
a = solns[0]
b = solns[1]
</code></pre>
<p>Then you can look at either <code>a</code> or <code>b</code> individually and (I hope) it will look fine. Second, if you look at <code>solns</code>, it looks bad, but <code>view(solns, viewer='pdf')</code> should pop open a PDF file with nice looking output, and you shouldn't see any clipping.</p>
http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/?comment=21518#post-id-21518I am using ubuntu 11.04 and firefox 5Sat, 02 Jul 2011 16:08:23 -0500http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/?comment=21518#post-id-21518Answer by Shashank for <p>When there are complicated equations , especially with a lot of fractions, the output in sage is bad. Some of it is cut(some lower portion of the output). For example:</p>
<p><img alt="image description" src="https://lh3.googleusercontent.com/-sEM3C59qBBM/Tg-zaSBOAvI/AAAAAAAAAqk/oQ2TjSH-0Fc/s800/Screenshot.png"/></p>
<p>How can I fix this?</p>
http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/?answer=12484#post-id-12484Normally I just put a print(" ") in the end if this happens.Sat, 02 Jul 2011 15:44:46 -0500http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/?answer=12484#post-id-12484Comment by Shashank for <p>Normally I just put a print(" ") in the end if this happens.</p>
http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/?comment=21511#post-id-21511I meant solns = solve(17*x^3 + 2*x^2 + 54*x + 5 == 0, x) view(solns) print(" ")Sun, 03 Jul 2011 12:54:39 -0500http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/?comment=21511#post-id-21511Comment by ebs for <p>Normally I just put a print(" ") in the end if this happens.</p>
http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/?comment=21517#post-id-21517If I put print (" ") below solve(17*x^3 + 2*x^2 + 54*x + 5 == 0, x), there is no output!Sat, 02 Jul 2011 16:21:42 -0500http://ask.sagemath.org/question/8206/how-to-make-typeset-output-in-sage-display-properly/?comment=21517#post-id-21517