---
description: 'Making a table, moving between cells, adding rows and columns, headers and alignment.'
---

# Tables

Tables in Incipit are real tables: you move between cells with a key, add rows and columns with a command, and never line up pipes and dashes by hand.

## Making a table

There are two ways:

- **Type a row between pipes and press Return.** At the start of a line, type the column headings separated by `|`:

  ```text
  | Day | Distance | Weather |
  ```

  Press <kbd>Return</kbd> and that row becomes the header of a new table, with the cursor in the first cell of the row below.

- **Insert one.** Choose **Insert table** in the strip at the foot of the sheet, or from the Format menu. You get a small empty table, two rows by three columns, ready to fill.

## Moving around

| Key                         | Moves to                                              |
| --------------------------- | ----------------------------------------------------- |
| <kbd>Tab</kbd>              | The next cell, along the row then down                |
| <kbd>⇧</kbd> <kbd>Tab</kbd> | The previous cell                                     |
| <kbd>Return</kbd>           | The cell below. Past the last row, it adds a new row. |
| Arrow keys                  | Through the text, crossing into neighbouring cells    |

So filling in a table is mostly typing and pressing <kbd>Tab</kbd>, and adding a row at the bottom is simply pressing <kbd>Return</kbd> in the last one.

To break a line inside a cell, use <kbd>⇧</kbd> <kbd>Return</kbd>. Cells can hold formatted text, code and formulas.

## Rows and columns

Right-click in a table, or use the formatting bar or Format menu, for:

- **Insert row above** and **Insert row below**;
- **Insert column left** and **Insert column right**;
- **Delete row** and **Delete column**;
- **Delete table**.

Select across several cells first to act on several rows or columns at once.

## Header row and alignment

- **Header row** turns the first row into a header, set apart from the rows below, or back into an ordinary row.
- **Align column to start**, **Center column** and **Align column to end** set how a column’s cells line up. Right-aligning (aligning to the end) is useful for figures, so the digits line up.

## Selecting cells

Drag across cells to select a block of them, then copy them, or use the row and column commands on all of them at once.

## Deleting a whole table

Deleting a table by pressing <kbd>⌫</kbd> takes two presses: the first marks the table to show what would go, and the second removes it. This is so that a stray keypress at the edge of a table never wipes out the whole thing. Press anything else in between and nothing happens. Other large structures work the same way; see [Moving, selecting and deleting](/docs/moving-and-selecting).

## Tables elsewhere

- **Copying** a table and pasting it into another app gives a Markdown table, which most plain text tools understand.
- **Pasting** a Markdown table into Incipit, or a table copied from a web page, gives a real table.
- **Export** writes tables as Markdown tables, or lays them out on the page in a PDF.
