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: 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
http://www.dbaileyconsultancy.co.uk





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.