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: mathematica modify code like?
Replies: 1   Last Post: May 12, 2014 12:44 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
David Bailey

Posts: 714
Registered: 11/7/08
Re: mathematica modify code like?
Posted: May 12, 2014 12:44 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 06/05/2014 07:27, Walter Sívoli wrote:
> hi
> how to modify this line to
> the letter remains in bold and can enlarge at will
> (this is the last line of a larger code)
> For[i = 1, i <= 20, i++,
> Print[If[i < 10, "O", ""] <> ToString[i], spc[5], "A = ",
> toStrg /@ t[[i, 1]],
> spc[col - Plus @@ StringLength[toStrg /@ t[[i, 1]]]], "B = ",
> toStrg /@ t[[i, 2]]]]

You are clearly indexing an array 't', but you have not included its
definition. This makes it hard to see exactly what you want to do, but
if you want to print out information using various styles, you should
wrap them in the Style function (look it up in the help system).

(Clearly described problems get a much better response here!)

David Bailey

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.