All articles

Elements

Text runs and inline formatting

The text of a heading, paragraph, list item or table cell is built from runs: pieces laid end to end, each with its own kind and formatting. "Invoice ", the invoice number from your data, " is due on ", then the due date: four runs. Runs let one line mix fixed words with values, and let a single word turn bold.

Editing runs needs the editor role or higher in the hosted product; local mode has no roles.

Where you edit runs

Select the element and open the properties panel with the button at the far right of the app bar (tooltip Show properties panel). ⌘. (Ctrl+. on Windows) works too. Runs appear as chips in:

  • the Content panel of a Heading or Paragraph,
  • each item of a List (Item 1, Item 2 and so on),
  • a table column's Cell content and Footer / total, a grouped table's Group header and Subtotal row, and each sub-row cell.

Each chip shows a kind tile — T text, ƒ field, = formula, # page counter, Σ total — and its value. Press ⋯ to open a chip's options. Among them, ↑ and ↓ move the run, and ✕ removes it (not available on the only run left).

The Content card for a footer paragraph. Its runs are listed as chips: the text Private & Confidential, a separator dot, a field chip marked ƒ showing record.Firm.Name, a separator dot and the word Page, a Page # counter, the word of, and a Page count counter. Below are buttons to add Text, Field, Formula, Page # and Page count.

Add a run

The buttons under the chips add a run at the end:

  • + Text — fixed words. It starts as "text"; type over it.
  • + Field — a value from your data, filled in at each render. See Bind fields.
  • + Formula — a calculated value, such as quantity × unit price.
  • + Page # and + Page count — the current page number and the number of pages, meant for the page header and footer ("Page 2 of 5" is four runs). They show 1 in Flow view; the Paged view and the PDF show the real numbers. See Headers and footers.
  • + Total — only in Footer / total and Subtotal row, replacing the page buttons: a sum, average, count, minimum or maximum over a list.

Edit text

In a text chip, type in the box; Enter adds a line break that prints. Click away to apply.

On the canvas, in Flow view, double-click words in a heading, a paragraph, a list item, or any table cell — an ordinary row, the footer or total, a group header, a subtotal, or a sub-row — to type in place. Shift+Enter adds a line break, Escape or clicking elsewhere keeps the change and stops editing, and in a heading or paragraph Enter splits it in two. Every run can also be edited in the properties panel.

Formatting

A chip's ⋯ shows mark buttons that toggle on and off: B (Bold), I (Italic), U (Underline), S (Strikethrough), SC (Small caps), and the x² and x₂ buttons (Superscript and Subscript; turning one on turns the other off).

Below them, each run can override the element's style:

  • Color — the text colour.
  • Size (pt) — size in points. In a paragraph, and in a heading that has its own size, the empty box shows, in grey, the size the run otherwise prints at.
  • Font — the typeface, from the same list as the document font, brand fonts included.
  • Highlight — a marker-pen colour behind the text. It prints.
  • Transform — Uppercase, Lowercase or Capitalize; changes how the run prints, not what you typed.
  • Letter spacing (pt) — space between letters; negative tightens.

Unset, each follows the element and the document.

On the canvas, in Flow view, double-click into the fixed text of a heading, a paragraph or a cell in a table's ordinary rows and select a word or two: a small bar offers B, I, U and S for just that selection. It shows only while the text is unchanged, so format before you type. Double-click a field's value in the same places and the bar formats the whole value. A formula's result does not take formatting this way; use the panel.

Link URL makes the run a link that can be clicked in the PDF. Use a web address starting https:// or http://, or a mailto: or tel: link. An address with any other scheme is refused and an error appears. Clear the box to remove the link. A link prints underlined, and in link blue unless you give the run its own Color.

Lines after the text

Fill after text fills the space after a run's text, up to a set point, with Dots or a Line (to fill in). Dots suit a price or details list ("Setup fee ........ $500"): put the amount in the next run. A line gives a form something to sign or write on, such as the line after "Signature:". Fill ends at (pt) is measured from where the run's text starts, so lines that use the same number line up under each other; it starts at 200. A run whose text is already longer than that keeps its width and gets no fill. Choose None, or clear the number, to remove it.

With a fill set, Fill color colours the dots or the line (Text color by default). Dots take Dot spacing (pt), extra room after each dot. A line takes Line thickness (pt) (0.75 when empty), Line starts after text (pt), a gap before the line begins, and Line lowered by (pt), which moves it below the text's baseline; a negative number raises it.

Field runs

A field run shows its data path. Type it, with suggestions from the loaded data, or — when the template reads from a data source — pick from that source's fields; picking a field the source does not read yet adds it to the source. A ⚠ means the path does not resolve in the sample data, usually a typo. A field that is missing for a record prints nothing. One that is present but blank also prints nothing, except under Number, Currency or Percent, where it prints as zero.

The format menu (tooltip Format) sets how the value prints: Default (as stored), Text, Number, Currency, Percent, Date, Date & time or Time. With Currency, two boxes appear: Currency, a fixed code such as EUR (empty uses the document's currency), and Currency path, a field holding the code per record, which wins when that field holds a three-letter code in capitals, such as EUR. List items lack these two. See Format values.

Formula runs

A new formula starts as a field × 1. Open its ⋯ to build it: each part can be a Field, a Fixed value or another Calculation, and a Calculation picks +, −, × or ÷ and holds two parts. Format works as for fields, except that Default prints a number and Currency uses the document's currency, or the per-row currency a template Buddy made can give a table (the Currency boxes are for field runs only). A missing or non-numeric value, or a division by zero, prints nothing rather than an error. See Formulas.

Totals

A new total starts as a sum, formatted as currency. Its options are the operation (sum, avg, count, min, max), Format, Collection (the list) and Value path (the field totalled, hidden for count). Switching to count drops a currency or percent format, so a count prints as a plain number. See Table element and Group table rows.

Good to know

  • Headings already print bold, so B usually makes no visible difference in a heading.
  • A line break inside a bound value, such as an address stored in one field, prints as a space. The run editor has no control to keep it, though Buddy can set one up when it generates a template. By hand, use separate fields with a text run holding a line break between them.
  • Drag across fixed words in a heading, a paragraph or a cell in a table's ordinary rows on the canvas in Flow view, without double-clicking, and an Ask Buddy button offers to rewrite just that text. See Ask Buddy to edit.