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


Groups > comp.soft-sys.math.mathematica > #16911 > unrolled thread

mathematica modify code like?

Started byWalter Sívoli <wafima@gmail.com>
First post2014-05-06 06:27 +0000
Last post2014-05-12 04:44 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  mathematica modify code like? Walter Sívoli <wafima@gmail.com> - 2014-05-06 06:27 +0000
    Re: mathematica modify code like? David Bailey <dave@removedbailey.co.uk> - 2014-05-12 04:44 +0000

#16911 — mathematica modify code like?

FromWalter Sívoli <wafima@gmail.com>
Date2014-05-06 06:27 +0000
Subjectmathematica modify code like?
Message-ID<lk9vbq$677$1@smc.vnet.net>
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]]]]

[toc] | [next] | [standalone]


#16934

FromDavid Bailey <dave@removedbailey.co.uk>
Date2014-05-12 04:44 +0000
Message-ID<lkpjjr$llg$1@smc.vnet.net>
In reply to#16911
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web