Skip to content

Tables, code blocks, and math

Press Opt+Cmd+T, or choose Insert > Table — you get three columns, a header row, and two body rows.

For a different size, type |3x4| and a space on an empty line: three columns and four rows, counting the header.

Typing the pipes yourself leaves | a | b | sitting there as text, so start tables one of those two ways. Tables in files you open always appear as tables.

A table wider than the text scrolls sideways inside its own box; the rest of the page stays put.

Action Key
Next cell Tab
Previous cell Shift+Tab
Add a row and move into it Tab in the last cell

On a two-row table, deleting the top row deletes the whole table.

To delete a row or column, right-click inside a cell and choose Delete Row or Delete Column. That menu has everything else too: the three alignments, add a row above or below, add a column before or after, and delete the table.

Move the pointer to the edge of a table and handles appear: a grip above each column, another to the left of each row, and a + bar along the bottom and right edges that appends a row or column.

Drag a grip to move that row or column somewhere else. Click a grip to select it and show its buttons — a column offers align left, center, and right, plus delete; a body row offers delete. Alignment applies to the whole column, not one cell.

The top row is the header, and its grip has no buttons: delete it with Delete Row from the right-click menu. The row beneath moves up and becomes the header, text and all.

Press Opt+Cmd+C, or choose Insert > Code Block — the paragraph you’re in becomes a code block and keeps its text. You can also type three backticks and a language, then a space or Return: ```swift.

Write the language in plain lowercase letters, nothing else: cpp for C++, objectivec for Objective-C, python for Python 3, and swift, js, and the rest as you’d expect. A block with no language, or a name Inkstone doesn’t know, is plain monospace — your code is all there, just not coloured.

To turn a code block back into a paragraph, click the block picker in the status bar and choose Paragraph.

The language is set when the block is made. To change it, turn the block back into a paragraph, then start it again with the language you want.

For a few words instead of a block, press Cmd+K on a selection, or type backticks around a word (`like this`) — it converts the moment you type the closing backtick.

When a code block is the last thing in the document, press Down at the end of it: a paragraph appears below and the caret moves there. Press Up at the start of a code block that begins the document to get the same paragraph above it.

Type $, then your LaTeX, then a closing $ — it renders the moment you close it. For an equation on its own line, type $$ on an empty line and press Return, or press Opt+Cmd+M.

The residue is $\frac{1}{2\pi i}\oint f(z)\,dz$ around the pole.
$$
e^{i\pi} + 1 = 0
$$

Prices are safe: Cost: $5 and $10 stays text.

Emptying the editor removes the equation, so clear it out only when you want it gone.

Click a rendered equation to open its LaTeX in a small editor; equations on their own line preview underneath as you type. Clicking away saves. If the LaTeX has a mistake, the message appears in place — fix it in the editor; the rest of the document keeps working.

Action Key
Save and select the equation Esc
Save and continue after it Cmd+Return
Save and continue (inline) / new line (block) Return
Delete the equation Backspace in an empty editor

Type [^1] where the reference belongs — closing the bracket turns it into a superscript marker. Then start a new paragraph with [^1]: , including the space, and the caret drops into the definition.

The ferry runs twice a day[^ferry].
[^ferry]: Once at dawn, once at dusk.

The label can be anything — 1, ferry, note-2 — and shows exactly as you typed it, in brackets beside the definition. Numbering stays as you wrote it: to change a label, delete the marker and type a new one.

Action Key
Insert a table Opt+Cmd+T
Insert a code block Opt+Cmd+C
Insert a math block Opt+Cmd+M
Inline code Cmd+K
Next / previous table cell Tab / Shift+Tab
Line start / end inside a code block Ctrl+A / Ctrl+E
Leave a math editor Esc
Leave a math editor and continue after it Cmd+Return