Ask Your Question

How can hide %hide?

asked 2012-05-13 03:01:48 -0500

hsigrist gravatar image

When I type:

Hellow $\int f(x)dx$ some text

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

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2012-05-14 09:12:02 -0500

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 for an example.

edit flag offensive delete link more


As 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)$

twch gravatar imagetwch ( 2012-12-29 03:27:33 -0500 )edit

answered 2012-05-17 07:13:04 -0500

Jason Grout gravatar image

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

edit flag offensive delete link more

answered 2012-05-13 12:20:11 -0500

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?

edit flag offensive delete link more

answered 2012-12-06 05:05:27 -0500

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:

textarea.cell_input {display : none}

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:

.cell_input_print {display : none}
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools


Asked: 2012-05-13 03:01:48 -0500

Seen: 1,068 times

Last updated: Dec 06 '12