Skip to content

Text annotations

Text annotations hold captions, reagent notes, and step numbers on the canvas. There are two kinds: auto-sizing labels, which grow with their text, and fixed-size text boxes. You type directly in the annotation, and a formatting toolbar handles styling, from bold and subscripts to color and lists.

A bold title, Figure 1. Two molecules with lone pairs, above water and ammonia drawn as Lewis structures.
A bold title above a figure.

To select the Text tool, press T.

  • To place an auto-sizing label, click an empty spot and start typing. The label grows with its content and uses the current atom label font size.
  • To create a text box with a fixed size, drag out a region more than 30 px wide or tall. The box is at least 60 × 30 px, starts with left alignment, and uses the same font size as a clicked label.
  • While you drag out a box with smart guides on, its moving corner snaps to the edges and centers of other items, and the box lands where the preview showed it. To draw without snapping, hold Ctrl. A label placed by clicking does not snap. See Smart guides.
  • Clicking an existing text annotation opens its editor; it does not place a new label on top.
  • Clicking an atom edits the label of that atom, in a separate editor from the one for text annotations.
  • With the Select tool, to open the editor of a text annotation, select it and press Enter.

You type directly in the rendered annotation, so what you see while editing is what appears on the canvas. The formatting toolbar appears at the top of the window while an editor is open.

To finish or cancel an edit:

  • Enter inserts a line break. In a list, Enter starts the next list item instead.
  • Ctrl+Enter keeps the edit and closes the editor.
  • Clicking anywhere outside the editor also keeps the edit. With the Text tool, clicking empty canvas to finish a text that has content also switches to the Select tool. Clicking away from a text that is still empty starts a new text at the click instead.
  • Esc keeps the changes and closes the editor, in every mode. To take back the edit, press Ctrl+Z after the editor closes.
  • Opening and closing the editor without a change adds no undo step.
  • A new text that is closed while still empty is removed and adds no undo step, so Ctrl+Z never brings back an empty text.

Each editing session adds one undo step on the canvas. While the editor is open, Ctrl+Z and Ctrl+Y (or Ctrl+Shift+Z) step through the formatting and typing changes of the session.

The toolbar formats the current selection. With no text selected, it sets the formatting at the cursor, so the next characters you type use it. It offers:

  • Bold, italic, underline, and strikethrough
  • Superscript and subscript, for charges and formula subscripts
  • Font family and font size (see Fonts to add fonts)
  • Text color and highlight (background color), both with a live preview while you drag in the color picker
  • Alignment: left, center, or right
  • Bullet and numbered lists, plus a list style picker. Tab indents a list item, and Shift+Tab outdents it.
  • Clear formatting, which removes bold, italic, underline, strikethrough, color, and font styling from the selection but keeps subscripts, superscripts, and lists

Right-clicking in the editor opens a menu with Cut, Copy, Paste, Paste as plain text, Select all, Insert symbol…, and Clear formatting.

Pasted text keeps bold, italic, underline, strikethrough, subscripts, superscripts, colors, lists, and line breaks. Links become plain text, and pictures, styles, and scripts from the clipboard are left out.

While you type, the spell checker of the browser underlines misspelled words. Chemical names often trigger it; to turn it off, select Edit > Spellcheck. The setting applies to all text editing in the document and is on by default.

The symbol button on the toolbar opens a palette with Greek letters, arrows, math and chemistry symbols, and Unicode subscript and superscript characters. To insert a symbol at the cursor, click it. For formulas and charges, use Subscript and Superscript instead: they export as real subscripts and superscripts.

Backslash shortcuts such as \Delta and \hv expand only in arrow text zones (from either the inline editor or the properties panel), not in text annotations. For typeset math, use a LaTeX annotation instead.

Shortcut Action
Ctrl+B, Ctrl+I, Ctrl+U Bold, italic, underline
Ctrl+Shift+X Strikethrough
Ctrl+= Subscript
Ctrl+Shift+= Superscript
Ctrl+Shift+V Paste as plain text
Ctrl+Enter Keep the edit and close the editor
Esc Keep the changes and close the editor
Tab, Shift+Tab Indent or outdent in lists; outside a list, Tab moves focus to the toolbar
  • To open the editor again, double-click a text annotation with any tool except Pan. Double-clicking an atom that is already selected edits its label; double-clicking an atom that is not selected first selects its molecule.
  • With the Select tool, drag a text annotation to move it, and drag the selection handles to resize it. Dragging a handle of an auto-sizing label turns it into a fixed-size box that starts at the size of its text, with the text centered. Clicking a handle without dragging leaves the label unchanged.
  • An auto-sizing label keeps its alignment as it grows: left-aligned text keeps its left edge, right-aligned text keeps its right edge, and centered text stays centered.
  • A fixed-size box whose height fits its text grows and shrinks with the text as you type. A box you made taller by hand keeps that height and only grows.
  • To pull a text box free of the arrows drawn from it, hold Alt while you drag it. To move it without snapping while its arrows stay attached, hold Ctrl. See Select tool.
  • A text box is either auto-sizing (it fits its content, and shows a small auto badge in its corner when selected) or fixed-size (you gave it a size by dragging a resize handle).
  • Right-click a fixed-size text box for Shrink to Text (fit the box to its content) or Make Auto-Size (remove the fixed width and height, so the box sizes itself again). These commands do not appear for an auto-sizing box, which already fits its text. Ctrl+double-clicking a resize handle of a fixed-size box also fits the box to its text. A plain double-click on a handle opens the editor instead. For every double-click target, see Double-click shortcuts.