2
$\begingroup$

I have a simple table given by

Grid[MapThread[
 Prepend, {Prepend[
  Table[x + m, {m, 0, 5}, {x, 0, 5}], 
  {"x=0", "1", "2", "3", "4", 
 "5"}], {"", "m=0", "1", "2", "3", "4", "5"}}], 
Frame -> {{True}, {True}}]

I want to use FontSize to adjust the font. Where do I add this option to the expression?

$\endgroup$

closed as off-topic by Kuba Aug 20 '18 at 6:14

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Kuba
If this question can be reworded to fit the rules in the help center, please edit the question.

3
$\begingroup$
Grid[MapThread[Prepend, {Prepend[
    Table[x + m, {m, 0, 5}, {x, 0, 5}], {"x=0", "1", "2", "3", "4", "5"}], 
    {"", "m=0", "1", "2", "3", "4", "5"}}], 
 Frame -> {{True}, {True}}, 
 BaseStyle -> 24]

enter image description here

Use BaseStyle -> {FontSize -> 24, FontSlant -> Italic} to get

enter image description here

You can also wrap each element of the table with Style to style the elements as desired:

Grid[Map[Style[#, 24, Italic, Red] &, #, {-1}] &@
 MapThread[Prepend, {Prepend[
     Table[x + m, {m, 0, 5}, {x, 0, 5}], {"x=0", "1", "2", "3", "4", "5"}], 
    {"", "m=0", "1", "2", "3", "4", "5"}}], 
 Frame -> {{True}, {True}}]

enter image description here

$\endgroup$
  • $\begingroup$ Thanks. How do I add that to the ta blue instruction set? I only want this one table changed. $\endgroup$ – Richard Burke-Ward Aug 19 '18 at 12:10
  • $\begingroup$ @RichardBurke-Ward, not sure I understand. If you want to make changes only in the first argument of Grid to get the desired effect, please see the update. $\endgroup$ – kglr Aug 19 '18 at 12:19
  • $\begingroup$ Got it now. Appreciated. $\endgroup$ – Richard Burke-Ward Aug 19 '18 at 14:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.