Typesetting environment in notebook
I tried to edit the following notebook here. On editing it seems to have a rich text formatting environment of its own - how do i get it?
I tried to edit the following notebook here. On editing it seems to have a rich text formatting environment of its own - how do i get it?
Actually, there's a lot more available than the HTML you mentioned. Move your cursor until it's a little bit above the Sage cell. You'll see a purple line/bar appear. Press Shift at the same time you click the mouse and you'll get an extensive array of options including inserting pictures and highlighting. I don't have the karma to upload the picture. Here's a screenshot:
Yes, for a more WYSIWYG experience. Really, both of these ways have complementary uses. People should try them both out and see what meets their needs better.
this is nice! this actually IS what I meant! thanks!
Oh, and if you put math inside of dollar signs here, it will turn into nicely typeset LaTeX. Like x2.
I never noticed that this was possible thanks for bringing it to my attention.
Here is how you can do it. Go to the top of the notebook and click edit. Then above the cell you wish to put the html text. Just write the text in html format. Here is a example, I made a plot of sin(x). When I click edit I see the following code
{{{id=1|
plot(sin(x),(x,0,10))
///
<html>
<font color='black'><img src='cell://sage0.png'></font></html>
}}}
{{{id=2|
///
}}}
I change it to the following
<p style="text-align: center;"><strong><span style="font-size: xx-large;">Rich text description</span></strong></p>
{{{id=1|
plot(sin(x),(x,0,10))
///
<html>
<font color='black'><img src='cell://sage0.png'></font></html>
}}}
{{{id=2|
///
}}}
Sorry. I just figured it out by going to the "view source" in the browser. But I agree that this should be a part of sage documentation.
i am sorry @Shashank, but @dazedANDconfused answer is easier to access - and a better answer for the AskSage community at large!
Asked: 12 years ago
Seen: 1,481 times
Last updated: Jul 26 '13