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.Sat, 29 Dec 2012 10:27:33 +0100How can hide %hide?https://ask.sagemath.org/question/7502/how-can-hide-hide/When I type:
%hide
%latex
Hellow $\int f(x)dx$ some text
obtain "%hide" in the first line, how can I remove that.Sun, 13 May 2012 10:01:48 +0200https://ask.sagemath.org/question/7502/how-can-hide-hide/Answer by PatrickSurry for <p>When I type:</p>
<pre><code>%hide
%latex
Hellow $\int f(x)dx$ some text
</code></pre>
<p>obtain "%hide" in the first line, how can I remove that.</p>
https://ask.sagemath.org/question/7502/how-can-hide-hide/?answer=14357#post-id-14357You can also hide input cells using CSS styling. If you want to hide input cells in the interactive worksheet, add a cell at the start of the worksheet like this:
<pre>
%html
<style>
textarea.cell_input {display : none}
</style>
</pre>
But then you need to edit the worksheet source to change `none` to `inline` to see your input again. The other option is to hide all your input just in the print view, e.g. if you're producing a nicely formatted PDF of all your results. To do that:
<pre>
%html
<style>
.cell_input_print {display : none}
</style>
</pre>Thu, 06 Dec 2012 12:05:27 +0100https://ask.sagemath.org/question/7502/how-can-hide-hide/?answer=14357#post-id-14357Answer by Jason Grout for <p>When I type:</p>
<pre><code>%hide
%latex
Hellow $\int f(x)dx$ some text
</code></pre>
<p>obtain "%hide" in the first line, how can I remove that.</p>
https://ask.sagemath.org/question/7502/how-can-hide-hide/?answer=13585#post-id-13585Do `%hideall`. You'll have to go into the worksheet source to edit the cell then, though.Thu, 17 May 2012 14:13:04 +0200https://ask.sagemath.org/question/7502/how-can-hide-hide/?answer=13585#post-id-13585Answer by ndomes for <p>When I type:</p>
<pre><code>%hide
%latex
Hellow $\int f(x)dx$ some text
</code></pre>
<p>obtain "%hide" in the first line, how can I remove that.</p>
https://ask.sagemath.org/question/7502/how-can-hide-hide/?answer=13570#post-id-13570Why do you want to hide %hide?
You need it to make the hidden code visible.
Do you want to display an input cell that contains code as empty?Sun, 13 May 2012 19:20:11 +0200https://ask.sagemath.org/question/7502/how-can-hide-hide/?answer=13570#post-id-13570Answer by calc314 for <p>When I type:</p>
<pre><code>%hide
%latex
Hellow $\int f(x)dx$ some text
</code></pre>
<p>obtain "%hide" in the first line, how can I remove that.</p>
https://ask.sagemath.org/question/7502/how-can-hide-hide/?answer=13574#post-id-13574Note that you can insert latex commands into text cells in Sage. To get a text cell, hover your mouse just higher on the page than a command cell. A blue line will appear, and then you shift-click. This creates a text box with a formatting palette. You can also enter latex commands in this box. You can't call special latex packages or create macros, but it does produce some very nice looking mathematics.
See http://sage.maa.org/home/pub/110/ for an example.Mon, 14 May 2012 16:12:02 +0200https://ask.sagemath.org/question/7502/how-can-hide-hide/?answer=13574#post-id-13574Comment by twch for <p>Note that you can insert latex commands into text cells in Sage. To get a text cell, hover your mouse just higher on the page than a command cell. A blue line will appear, and then you shift-click. This creates a text box with a formatting palette. You can also enter latex commands in this box. You can't call special latex packages or create macros, but it does produce some very nice looking mathematics.</p>
<p>See <a href="http://sage.maa.org/home/pub/110/">http://sage.maa.org/home/pub/110/</a> for an example.</p>
https://ask.sagemath.org/question/7502/how-can-hide-hide/?comment=18474#post-id-18474As the public worksheets are not available anymore: Enter the latex math commands between $ signs for inline math and between $$ signs for display math:
e.g. $\int\limits_0^1 f(x)$Sat, 29 Dec 2012 10:27:33 +0100https://ask.sagemath.org/question/7502/how-can-hide-hide/?comment=18474#post-id-18474