How do you insert more columns into Table cells as shown below?
To get to this table, go to File -> New -> Styled Notebook -> Textbook -> New -> Scroll down to the Table Cells.

|
How do you insert more columns into Table cells as shown below? To get to this table, go to File -> New -> Styled Notebook -> Textbook -> New -> Scroll down to the Table Cells.
|
|||
|
|
|
I guess you would like to keep formatting of the table. The following is programmatic way to do it. For simplicity I will deal with the smallest Table 1.1 in that template. Click anywhere on the table and press Ctrl+Shift+I on Windows or Command+Shift+I on Mac. The 1st table will turn into the following code:
Ctrl+Shift+I produces so called InputForm of an expression. From the code above it is easy to separate the table-maker part and make a function
Now you can just use it with arbitrary styles and number of rows or/and columns set by,
You now can edit placeholder dummies and then evaluate edited table (press Shift+Enter) to get final result. If due to any reason you would like to preserve exactly the Textbook styles of table entries, you could use another part of the code you got after Ctrl+Shift+I to define a simplest data structure:
Define a function for adding columns and/or rows:
Use it to add, for example, 2 more columns and 7 more rows:
Select the resulting output cell and choose Top menu >> Format >> Style >> Table. You can even sandwich it now between "table title" and "table note" cells to make it perfect:
|
||||
|
|