Another Table Question: Nested Tables?

I’d like to insert a table which looks like this:

Note that the fourth column is broken down into three sub-columns.
When I click on “Insert Table” in the fourth column, a grey line appears and the table dialog box appears, but nothing more.

If I click on the “nested table” radio box therein, the grey line appears, but nothing more.

What is the correct way to create the desired table?

In html, the colspan attribute governs this. Is there a way to access this attribute in Scrivener?

You can merge along rows using the Context Menu > Table > Table… dialog:

I don’t remember how to merge along columns, I’m sure someone else may know…

For completeness, for those who use Pandoc, you can merge rows and columns like this:

+---------------------+----------+
| Property            | Earth    |
+=============+=======+==========+
|             | min   | -89.2 °C |
| Temperature +-------+----------+
| 1961-1990   | mean  | 14 °C    |
|             +-------+----------+
|             | min   | 56.7 °C  |
+-------------+-------+----------+

Merging rows isn’t the issue, it’s merging columns. Nonetheless, thanks for answering.
Is there a way to write raw html in Scrivener in such a way that it will be given effect during Compile?

I do not know about HTML option and would not be surprised if possible. Might be covered in the Manual. However, when I need fancy tables in a Scrivener project. I create them in Pages or Excel then copy the table into a png file and import to Scrivener. Depending on what you need for publishing format, might work for you.

I hadn’t thought about Excel, it’s pretty easy to create child columns there. Thank you for the suggestion.

1 Like

Did this in Scrivener for Windows in about 10 minutes. The only action missing is that you’re not able to centre vertically in a cell. All done through merged cells.

Works differently to making a table in Word in that Scrivener resizes its table according to the width of your windows, otherwise completely doable.

I agree, adding a column afterwards makes no sense as it allocates a minimum of space to the added column with no selections to adjust it. So, it’s best to work with tables knowing beforehand the number of columns you want.

Colour options are available, as required to fill cells, recolour fonts. That said, I found a strange behaviour: If you highlight all any text in a cell with a certain colour, the next time your fire up Scrivener, you’ll find the whole cell filled with that colour.

Could you share how you accomplished this?

The strange thing is that the tables looked just OK when compiled to ePub and opened in Adobe’s Digital Reader 4.5, but if I compiled to Word, brought the document into Mellel and saved that as an ePub, the tables looked much better in the Adobe Reader program. I’d like the print version of this not to be done in LaTeX (it’s a three day job) and native tables (that is, text) in my opinion fare better in LaTeX than images. The fall-back is to use images, but images present their own issues (sizing, CMYK, resolution).

It’s a 6 row, 6 column table. Highlight column 1, row 1 and 2. Merge. Highlight column 2, row 1 & 2. Merge. Highlight row 1, column 4, 5 & 6. Merge. Populate the result and centre the text.

If you use a markdown intermediate, then yes. You can embed HTML and/or LaTeX and this can be passed through from the editor to the final destination. But I don’t know that’s possible using the direct compile outputs.

Perhaps this is one advantage of Windows over macOS? I can only select cells along rows, not down columns in macOS?

1 Like