Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question
1

How can hide %hide?

asked 12 years ago

hsigrist gravatar image

When I type:

%hide
%latex
Hellow $\int f(x)dx$ some text

obtain "%hide" in the first line, how can I remove that.

Preview: (hide)

4 Answers

Sort by » oldest newest most voted
2

answered 12 years ago

calc314 gravatar image

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.

See http://sage.maa.org/home/pub/110/ for an example.

Preview: (hide)
link

Comments

As the public worksheets are not available anymore: Enter the latex math commands between signsforinlinemathandbetweensignsfordisplaymath:e.g.\int\limits_0^1 f(x)$

twch gravatar imagetwch ( 12 years ago )
3

answered 12 years ago

Jason Grout gravatar image

Do %hideall. You'll have to go into the worksheet source to edit the cell then, though.

Preview: (hide)
link
0

answered 12 years ago

PatrickSurry gravatar image

You 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:

%html 
<style>
textarea.cell_input {display : none}
</style>

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:

%html 
<style>
.cell_input_print {display : none}
</style>
Preview: (hide)
link
0

answered 12 years ago

ndomes gravatar image

Why 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?

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 12 years ago

Seen: 1,895 times

Last updated: Dec 06 '12