Коротко
Небольшой сложенный журнал о реке с толстой цветной обложкой и тонкой газетной бумагой внутри. В 3D он лежит закрытым на столе и открывается как настоящий.
Что получится
Выпуск 3 Low Tide, бесплатного зина об эстуарии: восемь страниц 140 × 200 мм, два листа, сложенные и сшитые скобами по сгибу. Внешний лист, страницы 1–2 и 7–8, — лососевый картон; внутренний, страницы 3–6, — дешёвая газетная бумага. Обложка напечатана одной синей краской ризографа по голому картону, без собственного цветного поля, поэтому на плоских страницах ниже она стоит на белом, а в Folio лежит закрытой на столе в цвете картона, пока вы её не откроете. Две бумаги — два блока в Markdown, а переплёт — три настройки в config.folio.
Рецепт отвечает на вопросы
- Как напечатать обложку, вкладку или блок иллюстраций на другой бумаге, чем остальная книга?
- Как посмотреть переплёт, обложку, бумагу и освещение книги до печати?
Короткий ответ
const stage = document.createElement('section');
stage.id = 'folio';
stage.ariaLabel = 'The zine in 3D';
stage.style.cssText = 'height: min(78vh, 720px); margin: 0 auto; max-width: 1280px';
document.getElementById('pages').before(stage);
// Covers from the pages need an even count: page 8 must fall on a verso to be the back.
if (doc.pages.length % 2) console.warn(`${doc.pages.length} pages: the back cover is missing`);
createFolioFromDocument(stage, doc, {
appearance: { textureBaseUrl: 'https://postext.dev/folio/textures' },
onChange: ({ pages }) => kitStatus(pages.map((i) => `p. ${i + 1} on `
+ (doc.pages[i].paper ? 'card' : 'newsprint')).join(' · ')),
});
Ингредиенты
- Возможности
- Другая бумага для группы страницБумага, переплёт, стол и свет (Folio)Трёхмерный просмотр книги (Folio)Стили заголовковОформленные начальные полосыАтрибуты заголовковТекст, линейки и рамки в дизайне страницыСтили абзацевКолонтитулы по роли страницыСемантическая палитраЗеркальные поляСтраницы на холсте
- Также применяет
- Геометрия разделаКолонтитулы разделовГлавы без номера
- Шрифты
- Newsreader, Bricolage Grotesque (SIL OFL 1.1)
- Материалы
- The tide lines on the cover, drawn in code (Ignacio Ferro, CC BY 4.0)
Порядок работы
#1 · Заключить внешний лист в блоки
// :::paper{type=cardStock grammage=250 shade=#f2c9b4} pages 1–2: the front of the sheet
// # Low Tide {style="cover" …} # In this issue {…}
// :::
// # The dunlin come back … pages 3–6, outside any fence: folio.paper, the newsprint
// :::paper{type=cardStock grammage=250 shade=#f2c9b4} pages 7–8: the back of the sheet
// # Join us {…} # Low Tide {style="back" …}
// :::
const markdown = String.raw`---
title: "Low Tide"
subtitle: "A zine about the estuary"
author: "The Pill Estuary Group"
publishDate: "Issue 3 · Winter 2026"
---
:::paper{type=cardStock grammage=250 shade=#f2c9b4}
# Low Tide {style="cover" issue="Issue 3 · Winter 2026" strap="Mud, birds, boats and the people who watch them"}
# In this issue {style="feature" kicker="Welcome"}
Low Tide is made twice a year by the people who walk the river path at Pill. It is printed on the cheapest paper the printer has, folded by hand at the sailing club, and left in the pub, the post office and the bird hide. Take one. Leave it for somebody else when you have read it.
This winter we follow the dunlin that come back to the mud every October, talk to the last man in the village who still builds wooden boats, and print a tide table for the months when the light goes early. The cover is a heavier card than the pages inside it, so it survives a pocket and a little rain.
:::paragraphs{style="credits"}
**Edited by** Joan Avery and Sam Okonjo · **Drawings** Priya Lal · **Printed** in an edition of 400 copies, two sheets folded and stapled.
:::
:::
# The dunlin come back {style="feature" kicker="Birds"}
They arrive in the second week of October, a few dozen at first and then, within days, a thousand or more, feeding along the tideline in a moving grey band. Dunlin are small, about the size of a starling, with a long bill that droops at the tip. In winter they lose the black belly of their breeding plumage and turn the colour of the mud they feed on, which is why most people who walk the path never notice them until they lift.
When they lift, everybody notices. A flock of dunlin in the air turns as one bird: grey as it banks away from you, white as it turns back and shows its underside. On a clear afternoon at the top of the tide, when the mud is covered and the birds have nowhere left to feed, the flock rises off the saltmarsh and turns over the water for minutes at a time, flashing like a shoal of fish.
They come from the Arctic: from the tundra of northern Russia and Scandinavia, where they breed in the short summer and leave as soon as the young can fly. A dunlin ringed on the mud below the church in 2019 was caught again the following summer on the Taymyr Peninsula, five thousand kilometres away, and back on the same stretch of mud the October after.
Joan has counted them every Sunday morning for eleven winters, from the hide, with a tally counter in her coat pocket. Her highest count was 4,200, in January 2021, after a week of frost on the moors drove birds down from the reservoirs. Her lowest was 380. She does not know why the numbers swing so much from year to year, and nor, she says, does anybody else.
At dusk the flock goes to roost on the shingle spit below the old ferry steps, the last ground the tide leaves dry. From the path you hear them before you see them: a thin, purring trill passed along the flock like a rumour. By March the first of them show black on the belly again, and by the middle of April the mud is quiet.
## How to see them
Come two hours before high water and stand on the slipway by the sailing club. As the tide pushes in, the birds are driven up the mud towards you, closer and closer, until they give up and fly. Bring binoculars, and keep dogs on a lead below the hide: a bird that is flushed off the mud in winter spends energy it cannot afford.
The best days are the spring tides marked in bold in the tide table on page 6, when the water comes right up to the saltmarsh. On a neap tide the birds stay far out and you will want a telescope. If the wind is in the west, stand in the lee of the boat shed; the dunlin will be doing the same on the far side of the creek.
## What else to look for
Among the dunlin there are usually a few ringed plover, rounder and paler, that run and stop where the dunlin walk and probe. Curlew stand alone further out, and the redshank is the one that sees you first and tells the whole estuary. A peregrine has hunted the flock every winter since 2017: when the birds bunch tight and climb, look above them.
# The last boatbuilder {style="feature" kicker="People"}
Dennis Harcombe built his first boat at fourteen, in his father’s shed on Marine Parade, and his last one at seventy-eight. He reckons there were forty in between, give or take, most of them clinker-built dinghies of larch on oak, the kind every family on the river once kept at the bottom of the garden.
“The trick of it,” he says, “is that you never fight the wood. You look at a plank and you see which way it wants to bend, and you let it.” He still steams planks in a length of drainpipe over a camping stove, though these days only to repair other people’s boats.
His shed is the last on the river where you can buy a pair of oars made to measure. He makes them from ash, shaves the looms by hand and charges what he charged in 1990, because, he says, the price was fair then and the oars have not got any better.
When he talks about the river he talks about the mud first: where it shifts, where the channel has moved since he was a boy, where a boat can sit out a tide and where it will be swallowed to the thwarts. He has watched the estuary change for seventy years and does not think it is finished.
# Tide table {style="feature" kicker="December to February"}
High water at Pill, in local time. Add about twenty minutes for the tide to reach the slipway at the sailing club. Spring tides, the biggest of the month, are marked in bold: on those days the mud below the hide is covered completely.
:::paragraphs{style="tides"}
**Sun 6 Dec** 07:42 and 20:05 · **Sat 12 Dec** 12:18 · **Sun 20 Dec** 06:55 and 19:20
**Sun 3 Jan** 06:31 and 18:54 · **Sat 9 Jan** 11:47 · **Sun 17 Jan** 06:10 and 18:36
**Sun 31 Jan** 05:58 and 18:22 · **Sat 6 Feb** 10:59 · **Sun 14 Feb** 05:37 and 18:01
:::
Times are for a still day. A strong westerly holds the water up and brings high tide a little early; a long dry spell on the moors does the opposite. If you are walking out on the mud, go on a falling tide and come back with an hour to spare.
:::paper{type=cardStock grammage=250 shade=#f2c9b4}
# Join us {style="back-matter" kicker="The group"}
We walk the river path on the first Sunday of every month, meeting at the sailing club at ten. Nobody needs to know anything about birds, boats or tides; most of us didn’t when we started. Bring boots.
The next issue comes out in June. If you have something to say about the estuary, a drawing, a memory or a count of anything at all, leave it in the box behind the bar at the Duke of Cornwall, or write to us at the sailing club.
:::paragraphs{style="credits"}
Set in Newsreader and Bricolage Grotesque (SIL Open Font License) · Text: original, CC BY 4.0 · The Pill Estuary Group and the people in this issue are fictional.
:::
# Low Tide {style="back" strap="Free · take one, leave one"}
:::
`; // content.<lang>.md, inlined by the Cookbook
Брошюра, сшитая внакидку, — стопка сложенных листов, поэтому на листе обложки стоят две первые и две последние страницы. Один блок держит страницы 1–2, другой 7–8, а страницы между ними остаются вне обоих, на собственной бумаге книги. Каждый блок начинается и кончается новой страницей, и обложке с приветствием она здесь всё равно нужна.
#2 · Газетная бумага, скобы, обложка из страниц
const folio = {
tilt: 20,
// The book's paper: every page outside a :::paper fence, the inner sheet here.
paper: { type: 'newsprint', grammage: 52 },
// cover: 'pages' turns page 1 as the front and page 8 (a verso) as the back; on a saddle
// stitch the cover is a sheet like the others, only heavier (gotcha: folio-cover-pages-even).
binding: { type: 'saddleStitch', cover: 'pages' },
surface: { type: 'plain', color: col('ink') },
lighting: { environment: 'overcast', intensity: 1.1 },
};
folio.paper — газетная бумага всех страниц вне блоков. saddleStitch складывает листы вокруг скоб без плоского корешка, а cover: 'pages' делает страницы 1 и 8 обложками. При шитье внакидку обложка листается как остальные листы, только жёстче, а лист обложки, который называет собственную бумагу (картон), рисуется на ней.
#3 · Обложка в одну краску
// Eleven tide lines of a seeded length: blue rules across the foot of the cover.
let seed = 0x71de; // Mulberry32: the same lines on every run
const random = () => {
seed = (seed + 0x6d2b79f5) | 0;
let x = Math.imul(seed ^ (seed >>> 15), 1 | seed);
x = (x + Math.imul(x ^ (x >>> 7), 61 | x)) ^ x;
return ((x ^ (x >>> 14)) >>> 0) / 4294967296;
};
const tideLines = Array.from({ length: 11 }, (_, i) => ({ kind: 'rule', id: `tide-${i}`,
direction: 'horizontal', thickness: pt(2.2 + i * 0.5), color: col('blue'),
placement: { ...at('page', 'top-left', 10 + random() * 40, 128 + i * 5.2),
size: { width: mm(50 + random() * 70) } } }));
const flush = { span: 'page', margins: { top: mm(0), bottom: mm(0), left: mm(0), right: mm(0) },
footer: { elements: [] } }; // no folio on either cover (the style lasts one page)
const cover = { ...flush, id: 'cover', numbered: false, advancedDesign: { enabled: true,
minHeight: mm(TRIM_H), slot: { elements: [
text('issue', '{attr.issue}', caps(7.5), at('page', 'top-left', INNER, 16)),
text('title', '{titleText}', { fontFamily: SANS, fontWeight: 800, fontSize: pt(70),
lineHeight: 0.86, letterSpacing: pt(-2), color: col('blue') },
{ ...at('#issue', 'below', -1, 8), size: { width: mm(TRIM_W - INNER - OUTER) } }),
text('strap', '{attr.strap}', { fontFamily: 'Newsreader', italic: true, fontSize: pt(13),
lineHeight: 1.25, color: col('ink') },
{ ...at('#title', 'below', 1, 6), size: { width: mm(100) } }),
...tideLines,
] } } };
const back = { ...flush, id: 'back', numbered: false,
breakBefore: { enabled: true, parity: 'even' }, advancedDesign: { enabled: true,
minHeight: mm(TRIM_H), slot: { elements: [
text('title', '{titleText}', { fontFamily: SANS, fontWeight: 800, fontSize: pt(26),
letterSpacing: pt(-0.5), color: col('blue'), align: 'center' },
{ ...at('page', 'center', 0, -6), size: { width: mm(100) } }),
text('strap', '{attr.strap}', { ...caps(7, col('ink')), align: 'center' },
{ ...at('#title', 'below', 0, 3), size: { width: mm(100) } }),
] } } };
Обложка — стиль заголовка с нулевыми полями и дизайном во всю страницу: строка выпуска, название шрифтом Bricolage Grotesque 70 пт, девиз курсивом Newsreader и одиннадцать линий прилива, длины которых даёт генератор с заданным зерном, поэтому каждый запуск рисует одни и те же. Фон страницы ничто не закрашивает: его даёт картон.
#4 · Одно начало для всех материалов
const feature = (id) => ({ id, numbered: false, breakBefore: { enabled: true, parity: 'any' },
marginBottom: pt(LEAD), advancedDesign: { enabled: true, minHeight: mm(30), slot: {
elements: [
text('kicker', '{attr.kicker}', caps(7.5), at('container', 'top-left', 0, 1)),
text('title', '{titleText}', { fontFamily: SANS, fontWeight: 800, fontSize: pt(25),
lineHeight: 0.98, letterSpacing: pt(-0.4), color: col('ink') },
{ ...at('#kicker', 'below', 0, 2.5), size: { width: 'fill' } }),
{ kind: 'rule', id: 'rule', direction: 'horizontal', thickness: pt(2.5), color: col('blue'),
placement: { ...at('#title', 'below', 0, 4), size: { width: mm(14) } } },
] } } });
const headingStyles = [cover, back, feature('feature'), feature('back-matter')];
Каждый материал — заголовок первого уровня стиля feature: новая страница, надзаголовок из атрибутов, заголовок и короткая синяя линейка. Один стиль на пять материалов оставляет внутри зина две гарнитуры и один акцент.
#5 · Открыть его на скобах
Код — в разделе «Короткий ответ» выше. createFolioFromDocument читает переплёт и обложки из doc.config.folio, а бумагу каждого листа из page.paper. Пен предупреждает, если число страниц нечётное: страница 8 может быть задней обложкой, только когда попадает на оборот листа.
Рецепт целиком
// ═══ Postext Cookbook · Nº 102 · A stapled zine with a card cover sheet ═══════════════
// https://postext.dev/en/cookbook/saddle-stitched-card-cover
// Code: MIT · Text: original (CC BY 4.0) · Pictures: drawn in code
// Fonts: Newsreader, Bricolage Grotesque (SIL OFL 1.1) · Needs postext ≥ 1.25.0
//
// Eight pages, two sheets folded and stapled through the fold. The outer sheet (pages 1–2 and
// 7–8) is salmon card, the inner sheet newsprint: two :::paper fences put the card on the
// cover pages, and postext-folio draws the book saddle-stitched, closed until you turn the
// cover. The flat pages below print on white: only the 3D book knows about paper.
import { buildDocumentWithFonts, renderPageToCanvas } from 'https://esm.sh/postext';
import { createFolioFromDocument } from 'https://esm.sh/postext-folio';
const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'saddle-stitched-card-cover';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: two inks of a risograph, and the greys of the newsprint text
const palette = {
ink: '#1f2124', // the text
blue: '#0b6fb3', // the riso blue: titles, the tide lines, kickers
muted: '#5d6066', // credits and folios
rule: '#b9bcc0',
};
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = [
...Object.entries(palette).map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } })),
{ id: 'main-color', name: 'accent (defaults)', value: { hex: palette.blue, model: 'hex' } },
];
// #endregion
const [TRIM_W, TRIM_H, TOP, BOTTOM, INNER, OUTER] = [140, 200, 20, 22, 17, 15]; // mm
const LEAD = 13.6; // pt
const SANS = 'Bricolage Grotesque';
const at = (to, edge, x = 0, y = 0) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) } });
const text = (id, content, look, placement) => ({ kind: 'text', id, content, overflow: 'wrap',
align: 'left', placement, ...look });
const caps = (size, color = col('blue')) => ({ fontFamily: SANS, fontSize: pt(size),
fontWeight: 700, letterSpacing: pt(size * 0.18), textTransform: 'uppercase', color });
// #region folio: newsprint inside, stapled through the fold, covers taken from the pages
const folio = {
tilt: 20,
// The book's paper: every page outside a :::paper fence, the inner sheet here.
paper: { type: 'newsprint', grammage: 52 },
// cover: 'pages' turns page 1 as the front and page 8 (a verso) as the back; on a saddle
// stitch the cover is a sheet like the others, only heavier (gotcha: folio-cover-pages-even).
binding: { type: 'saddleStitch', cover: 'pages' },
surface: { type: 'plain', color: col('ink') },
lighting: { environment: 'overcast', intensity: 1.1 },
Собранный script.js работает как есть: вставьте его в модульный скрипт любой страницы или откройте рецепт на CodePen. Папка рецепта на GitHub ↗ (открывается в новой вкладке)
Варианты
#Обложка плотнее и белая
Измените оба блока, и лист обложки станет белым картоном 300 г; внутренние страницы останутся на газетной бумаге.
-:::paper{type=cardStock grammage=250 shade=#f2c9b4}
+:::paper{type=cardStock grammage=300 shade=#fbfaf6}#Простая брошюра
Уберите блоки, и обложкой станет лист газетной бумаги самих страниц, чуть плотнее. Книга образцов идёт в другую сторону и даёт каждому листу свою бумагу.
Частые ошибки
Подводный камень
Для cover: 'pages' задней крышке нужно чётное число страниц
Когда binding.cover равно 'pages', первая страница поворачивается как передняя крышка, а последняя служит задней, только если она попадает на левую полосу. При нечётном числе страниц у книги есть передняя крышка и нет задней: дополните её до чётного числа или оставьте переплёт. Бумага, переплёт, стол и свет (Folio) →
Подводный камень
Участок :::paper начинается и кончается с новой страницы, а лист берёт бумагу правой полосы
Текст внутри :::paper начинается с новой страницы, и текст после него тоже. У листа две страницы и одна бумага — бумага его правой полосы, поэтому участок, начатый на левой полосе, печатает эту страницу на бумаге листа, к которому она относится. Если участок должен начаться с правой полосы, поставьте разрыв страницы. Другая бумага для группы страниц →
Подводный камень
Просмотрщик Folio принимает размер контейнера
createFolioFromDocument вписывает книгу в переданный элемент, с кнопками и счётчиком страниц на его полях. В элементе без высоты (пустом div в обычном потоке) ничего не видно: задайте ему высоту в CSS. Трёхмерный просмотр книги (Folio) →
Источники и лицензии
- Рецепт
- Ignacio Ferro
- Текст
- Оригинальный текст, CC BY 4.0
- Изображения
- The tide lines on the cover, drawn in code · Ignacio Ferro · CC BY 4.0
- Шрифты
- Newsreader (SIL OFL 1.1) · Bricolage Grotesque (SIL OFL 1.1)
Изменить описание рецепта ↗ (открывается в новой вкладке)Папка рецепта на GitHub ↗ (открывается в новой вкладке)


