Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Shift-Ctrl-N and Manipulate
Replies: 1   Last Post: Dec 21, 2010 12:21 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
ברק שושני

Posts: 8
Registered: 12/19/10
Shift-Ctrl-N and Manipulate
Posted: Dec 19, 2010 5:11 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi everyone,

In previous versions of Mathematica, I could use the shortcut Shift-Ctrl-N or the menu option Cell -> Convert To -> StandardForm to clean up and format my code, for example, turn x^2 into a real superscript or x/y into a real fraction.

However, after upgrading to Mathematica 8, this option also automatically converts functions such as Manipulate or Slider into the actual output of the function. The entire code I wrote for the Manipulate applet becomes the actual applet, and so it's not possible to change the code any more. Ctrl-Z, of course, doesn't work, and the only way to get my code back is Shift-Ctrl-I or Cell -> Convert To -> InputForm, which makes it even uglier...

This means that I cannot use Shift-Ctrl-N to clean up and format my code anymore if it contains a Manipulate or any similar function. Usually the converted Manipulate code will not even work after using this option, for example if it depends on variables that have not yet been defined.

In conclusion, how can I clean up or format my code without converting the Manipulates? Is there another shortcut or option I can use? Or maybe there's a way to tell Mathematica not to convert the Manipulates?

Thank you,
Barak




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.