The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Formatting Dynamic Output
Replies: 3   Last Post: Nov 5, 2012 6:40 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Gregory Lypny

Posts: 247
Registered: 3/14/05
Formatting Dynamic Output
Posted: Nov 2, 2012 12:43 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello everyone,

I have some cells that use Dynamic to display a string or result of a StringForm expression when a condition is met. It looks like this.

Dynamic[ If[conditionMet, displayString, ""]]

It works fine except for two things. If the condition is met and the string to be display is long, it is indented to the right when it wraps to the second line. How can I remove the indent, especially for StringForm output? The second thing is when the condition is not met, a blank cell is output because I have an empty string ("") in my If[] condition. What can I replace that with so that no cell is produced when the condition is not met.

Much obliged,


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.