Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12218

Formatting Dynamic Output

From Gregory Lypny <gregory.lypny@videotron.ca>
Newsgroups comp.soft-sys.math.mathematica
Subject Formatting Dynamic Output
Date 2012-11-02 04:43 +0000
Message-ID <k6vj2e$69a$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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,

Gregory

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Formatting Dynamic Output Gregory Lypny <gregory.lypny@videotron.ca> - 2012-11-02 04:43 +0000

csiph-web