Tag Info

New answers tagged

3

Example 1: Grid[{{Item[Rotate["this is a long text example", Pi/2], ItemSize -> {#, 10}]}}, Frame -> True] & /@ {2, {2}, {200}, {}, All, {All}, Full, {Full}, Automatic, {Automatic}, haha, {haha, haha}} Comparing with the case where ItemSize is not specified (i.e. it takes the default setting), it seems that the width is set to the ...


2

The purpose of using HoldForm and Plus is to allow automatic formatting rules for Plus to apply while preventing evaluation. Since you want custom formatting rules that method may be inapplicable. To get alignment we can either use a tabular format like Grid (as Kuba did) or we can pad the numbers themselves. One automatic approach to the latter is ...


3

Slightly more handy approach (unless you want to work with negative integers): Grid[ {#, "+", #2, "=", Item["", ItemSize -> 3]} & @@@ RandomInteger[20, {10, 2}] , Alignment -> {{Right, Center, Right, Center, Center}}, BaseStyle -> {Italic, 20}, Frame -> True, Background -> {{}, {{GrayLevel@.9, GrayLevel@.95}}} ] A simplistic ...



Top 50 recent answers are included