Layout Tags
Control spacing and horizontal positioning within any text element (p, th, td, li, h1–h6).
Line break
Insert a line break within a paragraph without starting a new content element.
{ "p": "Line one[br]Line two[br]Line three" }
Long form: [linebreak]
Multiple breaks
Add a count to insert multiple line breaks at once:
{ "p": "Content above[br, 3]Content below with 3 blank lines between" }
The count is a whole number from 1 to 100: a larger one is held at 100, and one below 1 gives a single break.
Example: address block
{ "p": "Meridian Financial Group[br]45 Bay Street, Suite 1200[br]Toronto, ON M5J 2X5[br]Canada" }
Tab stop
Position text at a specific horizontal offset from the paragraph's left edge. The optional second parameter controls how text aligns at the tab stop.
{ "p": "Label[tab, 200]Value" }
{ "p": "Label[tab, 200, 1]Right-aligned value" }
| Parameter | Description |
|---|---|
First (POS) | Horizontal offset from the paragraph's left edge where the tab stop sits: a number of points, or a length with a unit (pt, in, mm, px). |
Second (ALIGN, optional) | How following text aligns at the tab stop: 0 = starts at it (default), 1 = ends at it, 2 = centered on it, 3 = its decimal point on it. Any other value starts at it. |
The tag takes no third argument: anything after the alignment is ignored with a WARNING, and a decimal stop always
lines up the text's first full stop.
[tab] alone advances to the paragraph's next stop: the next of its style's tabStops past the text, or else the next
multiple of defaultTabStop (36pt unless the style says otherwise). A [tab, POS] whose position is not a usable
length is reported with a WARNING and acts as [tab]. The stop styles are described in
Typography.
{ "p": "Name[tab]Role[tab]Location" }
Right-alignment is what you want for "page X of Y" footers and right-justified amount columns — the text ends at the tab position rather than starting there.
Example: amounts lined up on the decimal point
With 3, the stop is a decimal stop (ISO/IEC 29500-1 17.18.84): the text is placed so that its first full stop . sits
on the stop, so amounts of any width line up on it:
{
"content": [
{ "p": "Consulting[tab, 300, 3]6,000.00" },
{ "p": "Expenses[tab, 300, 3]125.5" },
{ "p": "Licences[tab, 300, 3]80" }
]
}
An amount with no full stop in it ends at the stop. Amounts written with a decimal comma, all with the same number of
decimals, line up with 1, which ends each one on the stop.
Example: label-value pairs
{ "p": "Invoice Number[tab, 200]INV-2026-0042" }
{ "p": "Date[tab, 200]April 15, 2026" }
{ "p": "Amount Due[tab, 200]$24,500.00" }
Example: three-column header with right-aligned date
{ "p": "Meridian Financial Group[tab, 250]Annual Compliance Report[tab, 495, 1]April 2026" }
This places the company name on the left, the report title in the middle starting at point 250, and the date right-aligned with its trailing edge at point 495. Right-alignment keeps the date pinned to the right margin even when the date string changes width.
Example: two-column receipt with right-aligned amounts
{
"content": [
{ "p": "[b]Item[/b][tab, 350, 1][b]Price[/b]" },
{ "p": "Consulting (40 hrs)[tab, 350, 1]$6,000.00" },
{ "p": "Development (80 hrs)[tab, 350, 1]$16,000.00" },
{ "p": "Infrastructure setup[tab, 350, 1]$2,500.00" },
{ "hr": { "borderStyle": "solid", "height": 0.5, "color": "#000000" } },
{ "p": "[b]Total[/b][tab, 350, 1][b]$24,500.00[/b]" }
]
}
When the layout matters more than the exact pixel position — e.g. header/footer regions that should adapt to page-size or margin changes — prefer a borderless table or columns block over absolute [tab, POS] stops. Tabs bind to absolute points and break when the page width changes; tables describe proportions and re-flow automatically.
For the most common case — "share this row's width between N pieces" — see [col] below. It does the math for you against the current container width, so authors don't compute points.
Column splits
colspan[col, N] splits one paragraph into N weighted horizontal segments — a weighted row inside body text. Use it to lay out header lines, label/value pairs, two-column receipts.
colspan (in a table cell) is the inverse — it merges multiple table columns into one cell. See Tables → Spanning cells.
The two compose freely — a colspan: 4 cell can host [col, 3][col, 1] inside it, splitting its interior into label / status segments. The tables edge-case gallery §11 shows this in one render.
Split a paragraph into evenly-distributed (or weighted) segments without computing point positions. [col]…[/col] is the row-sharing ergonomic — most uses of [tab, POS] to lay out header lines, label/value pairs, or two-column receipts collapse to one or two [col] pairs.
{ "p": "[col]Invoice #2026-001[/col][col]Date 2026-05-21[/col]" }
The engine reads the current container's content width (page width minus margins), counts the [col] pairs in the paragraph, and places tab stops automatically. The last segment always right-flushes to the right edge — exactly what header lines and footer "Page X of Y" patterns want.
Equal vs weighted splits
Bare [col] segments split evenly. To allocate width unequally, add a weight as a parameter — the same relative-weight model as table.widths. Weights are normalized across all segments, so [col, 2][col, 2] and [col][col] produce identical output: write them in lowest terms.
{ "p": "[col]Narrow[/col][col, 2]Wide middle segment[/col][col]Narrow[/col]" }
This is a 1:2:1 layout — the middle segment gets twice the width of the two side segments. Weight values are unitless.
| Parameter | Description |
|---|---|
First (N, optional) | A positive number, decimals included, weighting this segment. Defaults to 1. A value that is not a number is reported and 1 is used; zero or a negative number also counts as 1. |
Example: brand header with right-flushed contact
{ "p": "[col][b]Meridian Financial[/b][/col][col]contact@meridian.example · +1 (416) 555-0140[/col]" }
Two segments → one stop at the right edge → the contact line flushes right while the brand stays left.
Example: three-segment row (left / title starting at a third / right-flushed page)
{ "p": "[col]Acme Inc.[/col][col]Q2 Sales Report[/col][col]Page 1 of 3[/col]" }
Every segment but the last starts at its stop, so the title begins one third of the way across rather than being centered; only the last segment flushes right.
Example: asymmetric labels
{ "p": "[col, 2][b]Q2 Revenue Summary[/b][/col][col][i]Fiscal year 2026[/i][/col][col][i]Draft[/i][/col]" }
The weights are relative and need no base: [col, 2][col][col] gives the first segment half the row, so the second starts halfway across, and the last flushes right.
Shortcodes compose inside segments
Each segment accepts the full Shortcode vocabulary — bold, italic, color, font, links, fields, etc. — just like the surrounding paragraph:
{ "p": "[col][b]Acme Inc.[/b][/col][col][i]Confidential[/i][/col][col][color, #0066cc]contact@acme.com[/color][/col]" }
Behavior and trade-offs
A few sharp edges to know about:
- Text outside
[col]…[/col]is absorbed into the adjacent segment. InFoo [col]A[/col][col]B[/col], "Foo " merges into segment 1's left position; in[col]A[/col] middle [col]B[/col], " middle " merges into segment 1. Place all row content inside[col]pairs for predictable layout. - For two-segment rows, weights are visually invisible. The last segment always right-flushes, so
[col, 2][col]and[col][col]produce identical output. If you genuinely need an asymmetric two-column row (e.g. 70% / 30%), reach for a borderlesstablewith"widths": [7, 3]instead. - Empty
[col, N][/col]still reserves its weighted slot. Useful for intentional gaps without breaking adjacent alignment.
[col] vs [tab, POS] vs a table[col]— the everyday choice for row-sharing within a single paragraph. Use it for header lines, footer lines, label/value pairs, and any "left / middle / right" pattern.[tab, POS]— only when you need a specific absolute offset (in points) that doesn't depend on container width. Rare in practice; reach for it when migrating legacy fixtures or when content must land at an exact ruler position.- Borderless
table— when each "column" contains multiple stacked items (label + value + sub-label all in column 1, etc.), or when content spans rows.[col]is a single-paragraph tool; tables are for grids.