Hi,

On the subject of notebook features:

One feature that would be really nice is to have distinct text cells,
in html or
even better latex mode.  A text cell could created by a hot key (say
<cntrl-t>)
in edit mode which displays the source latex or html, then toggled out
of edit
mode to display the formatted text.  This could be nicer for
preparing
worksheets for teaching which combine latex formatted exercises with
sage
cells for code, rather than using

# Exercise 1.  Let p = 75361.  Evaluate x^(p-1) mod p for x = 2, 5, 7,
and 11.
# What do you observe?  Is p a prime?

Create text cell in edit mode:

%latex
{\bf Exercise 1.}  Let $p = 75361$. Evaluate $x^{p-1} \bmod p$ for $x
= 2, 3,
5, 7$ and $11$ with the commands
\begin{verbatim}
p = 75361
for x in (2,3,5,7,11):
    powermod(x,p-1,p)
\end{verbatim}
What do you observe?  Is $p$ a prime?

<toggle edit mode>

This would look much more professional than just using comments as in
the first
example.

Even better, I could imagine exporting the worksheet as a latex file
and conversely
reading a marked up latex file as a workshop.

Is this feasible?

--David





On Apr 2, 11:08 pm, [EMAIL PROTECTED] wrote:
> I'm sick at home today, and this actually has a braindead solution that I 
> might be able to implement in my current (braindead) state.  What hotkeys do 
> you want?
>
> On Wed, 2 Apr 2008, Andrey Novoseltsev wrote:
>
> > Is it possible to realize some convenient and fast (in the sense of
> > keyboard use) cell splitting/merging? It seems to me that now it
> > involves manual copying of a part of code and creating/removing a
> > cell, or editing the text representation. I really liked the ability
> > to do it in Maple (back when I was using it ;-) by pressing some hot
> > keys since it allows you to group cells for executing in one step and
> > nicer visual presentation or break them back when you want to interact
> > with intermediate values.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to