باختصار
تحقيق سفر من ست صفحات في مجلة شهرية، منضّد في ثلاثة أعمدة ضيقة. يبيّن كيف تمتد الصور واقتباس كبير على عمودين أو على عرض الصفحة كله، وكيف يوضع إطار نصائح عملية في عمود واحد.
ما الذي ستنضده
ست صفحات من عدد نوفمبر من Meridian، مجلة سفر شهرية، على صفحة 225 × 297 مم. يُفتتح التحقيق بصفحتين متقابلتين: صورة واحدة لملّاحات عند الشروق تمتد عليهما، والعنوان بالأبيض على الماء في الصفحة الزوجية، وتحت الصورة في الفردية الفقرة الأولى بحرفها الاستهلالي والموجز والتوقيع. ثم يجري النص في ثلاثة أعمدة مضبوطة عرض كل منها 61.7 مم. تأخذ الصور عمودين أو عرض الصفحة كله أو عمودًا واحدًا؛ ويقع اقتباس بارز على عمودين بين الفقرات؛ ويفتتح إطار ملوّن فيه خريطة الجزيرة الصفحة الختامية. ويُختم النص بمربع أزرق صغير.
تجيب هذه الوصفة عن
- هل يستطيع Postext تنضيد ثلاثة أعمدة نصية أو أكثر، أو التفاف النص حول صورة؟
- كيف أتحكم في موضع الشكل: أعلى الصفحة، أو بعرض العمودين، أو هنا تمامًا، أو في الهامش؟
- كيف أجعل إطارًا يطفو إلى أعلى الصفحة أو أسفلها بينما يواصل النص تدفقه؟
- كيف أضيف إلى صفحة الافتتاح سطر المؤلف أو مقدمة تمهيدية أو فقرة أولى بحرف استهلالي؟
الجواب المختصر
const GUTTER = 5; // mm between the columns
const WIDTH = TRIM.width - MARGIN.inner - MARGIN.outer; // the text block, 195 mm
const COLUMN = (WIDTH - 2 * GUTTER) / 3; // 61.7 mm: about 40 characters of 9.6 pt text
const layout = { layoutType: 'multiple', columnCount: 3, gutterWidth: mm(GUTTER) };
// A float takes `columns` adjacent columns and the gutters between them: the head (or foot)
// of the first run of columns that are still empty, on its page or the next. As many columns
// as the page has is a page-wide float, like span: 'page'.
const across = {
raker: { position: 'top', columns: 2 }, // 128.3 mm wide, at the head of two columns
pans: { position: 'top', span: 'page' }, // 195 mm, the whole text block
flor: { position: 'bottom' }, // 61.7 mm: one column, the default
sieve: { position: 'top', columns: 2 }, // cited in the first column: heads the other two
quay: { position: 'top', columns: 2 }, // two columns again, on the closing page
};
// A floated box takes `columns` the same way: the style sets it, a fence may override it
// with :::callout{type="pull" columns="3"}. A box set in the flow ('here') keeps to its column.
const pull = { id: 'pull', placement: 'top', columns: 2, backgroundEnabled: false,
stripe: { enabled: true, side: 'top', width: pt(2.5), color: col('sea') }, // one device
padding: { top: mm(3), right: pt(0), bottom: mm(1), left: pt(0) },
body: { fontFamily: 'Fraunces', fontSize: pt(19), lineHeight: pt(2 * LEAD - 3),
italic: true, textAlign: 'left', hyphenation: false, color: col('sea'),
firstLineIndent: pt(0) } };
const visit = { id: 'visit', placement: 'top', // one column, at the head of the next free one
background: col('tint'), padding: { top: mm(4), right: mm(4), bottom: mm(4), left: mm(4) },
titleStyle: { ...label, fontWeight: 700, fontSize: pt(8.5), letterSpacing: pt(1.4),
color: col('sea'), gap: mm(2) },
body: { fontFamily: 'Barlow Condensed', fontWeight: 500, fontSize: pt(9.6),
lineHeight: pt(12.4), textAlign: 'left', hyphenation: false, boldColor: col('sea'),
paragraphSpacing: true, firstLineIndent: pt(0) } };
المكونات
- الميزات
- ثلاثة أعمدة أو أكثرعناصر عائمة عبر عدة أعمدةإطارات عائمةإطارات التنبيهموضع الأشكالصفحات افتتاح مصمَّمةالصور في تصاميم الصفحةالحروف الاستهلالية في صفحات الافتتاحسمات العنوانأنماط العناوينالترويسات وأرقام الصفحاتالترويسات بحسب دور الصفحةنمط التعليقسطور المصدر والحقوقالشارات داخل السطرأنواع موارد مخصّصةالأشكال والجداول بوصفها مواردلوحة ألوان دلاليةهوامش متناظرة
- الخطوط
- Source Serif 4, Fraunces, Barlow Condensed (SIL OFL 1.1)
- الأصول
flor-1200.jpgpans-1840.jpgquay-960.jpgraker-1500.jpgsieve-1500.jpgspread-left-1200.jpgspread-right-1200.jpg- Sunrise on the salt pans (the opening spread, in two halves) (Generated With Diffusion Models, CC BY 4.0)
- Sunrise on the salt pans, the recto's half (Generated With Diffusion Models, CC BY 4.0)
- A rake drawing up wet salt (Generated With Diffusion Models, CC BY 4.0)
- The salt flats from above (Generated With Diffusion Models, CC BY 4.0)
- A salt maker with a basket of flor de sal (Generated With Diffusion Models, CC BY 4.0)
- Skimming flor de sal with a sieve (Generated With Diffusion Models, CC BY 4.0)
- Salt sacks on a harbour quay at dusk (Generated With Diffusion Models, CC BY 4.0)
- The sidebar's map of Marisal, drawn in code (Ignacio Ferro, MIT)
طريقة التحضير
#1 · قسّم الصفحة إلى ثلاثة أعمدة، ودع العناصر العائمة تأخذ عمودًا أو عمودين أو ثلاثة
الشيفرة في الجواب المختصر أعلاه. يقسم layoutType: 'multiple' مع columnCount: 3 كتلة النص البالغة 195 مم إلى ثلاثة أعمدة متساوية؛ ومع فاصل 5 مم يبلغ عرض كل عمود 61.7 مم، أي نحو 40 حرفًا من Source Serif بحجم 9.6 نقطة. يأخذ placement.columns في الصورة هذا العدد من الأعمدة المتجاورة والفواصل التي بينها: صورة المجرفة عرضها 128.3 مم، وصورة الملّاحات، مع span: 'page'، تأخذ 195 مم كاملة. ويفعل نمط الاقتباس الشيء نفسه للإطار: columns: 2 في نمط له placement: 'top' يرفعه إلى رأس عمودين فارغين، ويجري النص من حوله. تناسب شبكة الأعمدة الثلاثة تحقيقًا كثير الصور، لأن كل صورة يمكن أن تأخذ عمودًا أو عمودين أو ثلاثة. أما النص الطويل القليل الصور فيُقرأ أفضل في عمودين أعرض.
#2 · افتتح بصفحتين متقابلتين وصورة واحدة تعبرهما
const PHOTO = 165; // mm: how far down the recto the right half of the photograph bleeds
// The verso is its own heading style: the left half of the picture fills the page, and the
// kicker and headline are reversed out of the dark water at its foot. The picture reserves
// nothing, so nothing is pushed off the page; the recto's heading opens the next page.
const spread = { id: 'spread', span: 'page', advancedDesign: { enabled: true, slot: { elements: [
{ kind: 'image', id: 'photo', resourceId: 'spread-left', reserve: false,
placement: { ...at('bleed', 'top-left'), size: { width: 'fill', height: 'fill' } } },
{ kind: 'text', id: 'kicker', content: '{attr.kicker}', ...label, fontSize: pt(10),
letterSpacing: pt(2), color: col('paper'), // on a sea-blue tab: the water is too bright
box: { backgroundColor: col('sea'), padding: { top: mm(1.2), right: mm(2.4),
bottom: mm(1.2), left: mm(2.4) } },
placement: at('page', 'top-left', 20, 188) },
{ kind: 'text', id: 'headline', content: '{titleText}', fontFamily: 'Fraunces',
fontWeight: 600, fontSize: pt(66), lineHeight: 0.96, // a multiple of the size
color: col('paper'), align: 'left', overflow: 'wrap',
placement: at('#kicker', 'below', 0, 3, 150) },
] } } };
// The recto: the right half of the picture, cut to PHOTO mm, then the lead with its drop cap
// in the first column and the standfirst (the heading's own text) across the other two.
const air = { padding: { bottom: mm(6) } }; // empty padding counts: the columns start lower
const deck = { id: 'deck', span: 'page', advancedDesign: { enabled: true, slot: { elements: [
{ kind: 'image', id: 'photo', resourceId: 'spread-right', // cropped to 225 × 165 mm
placement: { ...at('bleed', 'top-left'), size: { width: 'fill', height: mm(PHOTO) } } },
{ kind: 'text', id: 'credit', content: '{attr.credit}', ...label, fontWeight: 500,
fontSize: pt(6.8), letterSpacing: pt(0.5), color: col('muted'), align: 'right',
placement: at('container', 'top-right', 0, PHOTO - MARGIN.top + 2) },
{ kind: 'text', id: 'lead', content: '{attr.lead}', fontFamily: 'Source Serif 4',
fontSize: pt(9.6), lineHeight: LEAD / 9.6, color: col('ink'), align: 'justify',
hyphenate: true, box: air, placement: at('container', 'top-left', 0, PHOTO - 10, COLUMN),
dropCap: { lines: 4, fontFamily: 'Fraunces', fontWeight: 600, color: col('sea'),
gap: mm(1.6) } },
{ kind: 'text', id: 'standfirst', content: '{titleText}', fontFamily: 'Fraunces', italic: true,
fontSize: pt(16.5), lineHeight: 1.24, color: col('ink'), align: 'left', overflow: 'wrap',
placement: at('container', 'top-left', COLUMN + GUTTER, PHOTO - 11, 2 * COLUMN + GUTTER) },
{ kind: 'text', id: 'byline', content: '{attr.byline}', ...label, fontSize: pt(8.5),
letterSpacing: pt(1.5), color: col('sea'), box: air,
placement: at('#standfirst', 'below', 0, 4) },
] } } };
ينتمي كل نصف من الصورة إلى نمط عنوان له span: 'page'، والعنوان الممتد على الصفحة يفتح دائمًا صفحة جديدة، فتأتي صفحة العنوان وصفحة الموجز متتاليتين. يملأ النصف الأيسر الصفحة الزوجية ولا يحجز ارتفاعًا (reserve: false)، فيمكن أن يقع العنوان على الماء في أسفلها. ويُقص النصف الأيمن إلى 165 مم، وتتدلّى الفقرة الأولى والموجز والتوقيع من الحاوية تحته. الفقرة الأولى عنصر نص تصميمي فيه dropCap من أربعة أسطر بعرض عمود واحد؛ وحشوتها السفلية الفارغة تُحسب في ارتفاع تصميم الافتتاح، فتبدأ الأعمدة تحتها بـ6 مم. يجعل continuation.pageIndexOffset: 83 الصفحة 84 زوجية، فيتقابل نصفا الصورة.
#3 · صرّح بالصور، واستشهد بكل منها حيث يجب أن تقع
// No figure numbers: the pictures get a type with an empty caption prefix and template.
const photoType = { id: 'photo', name: 'Photograph', shortLabel: 'photo', captionPrefix: '',
numberingTemplate: '', resetOn: 'never', counterFormat: 'decimal' };
const CREDIT = 'Photograph generated with diffusion models';
// Pixels at the page's 150 dpi (gotcha: bitmap-print-size): each shrinks to its frame.
const photo = (id, [w, h], altText, caption) => ({ id, typeId: 'photo',
kind: 'bitmap', createdAt: 0, updatedAt: 0, altText,
bitmap: { fileId: `${id}-${w}.jpg`, format: 'jpeg', width: w, height: h },
note: CREDIT, ...(caption && { caption, placement: across[id] }) });
const resources = [ // the two halves of the spread are drawn by the headings, never cited
photo('spread-left', [1200, 1584], 'Salt pans at sunrise, the sky mirrored in still brine.'),
photo('spread-right', [1200, 880], 'A salt raker at work below a row of white salt heaps.'),
photo('raker', [1500, 1125], 'A wooden rake pushing a ridge of wet salt crystals.',
'Raking the crystallisers at dawn. The salt rolls up in a ridge; a rake that digs in '
+ 'tears the clay floor and greys the harvest.'),
photo('pans', [1840, 1150], 'Rectangular salt pans in pink, ochre and grey by the sea.',
'The Alvarra flats from the lighthouse hill. The pink basins are nearly ready: an alga '
+ 'colours the brine once it holds more than 200 grams of salt a litre.'),
photo('flor', [1200, 1488], 'An older woman in a straw hat holding a basket of salt.',
'Amélia Sousa with an afternoon’s flor de sal, about four kilos from two pans.'),
photo('sieve', [1500, 1125], 'Hands skimming a crust of salt crystals with a round sieve.',
'Skimming the flower: the sieve works the downwind edge of the pan, where the breeze has '
+ 'drifted the crust.'),
photo('quay', [960, 1200], 'Sacks of salt on a harbour quay beside a blue boat at dusk.',
'Porto Velho, the last week of September: fifty-kilo sacks wait for the mainland boat.'),
{ id: 'map', typeId: 'photo', kind: 'svg', createdAt: 0, updatedAt: 0, // drawn below
svg: { fileId: 'map.svg', width: MAP.width * 10, height: MAP.height * 10 },
placement: { position: 'here' }, // in the sidebar, under its title
caption: 'The Alvarra pans (pink) lie on the eastern flats, 6 km from Porto Velho (the '
+ 'squares) by the coast road. The lighthouse hill is the triangle; the ferry, dashed.',
altText: 'A map of a long, low island with salt pans at its eastern end and a harbour '
+ 'town at the west.' },
];
يذهب العنصر العائم إلى أول رأس (أو أسفل) فارغ لأعمدته بعد السطر الذي يستشهد به، فتحدّد أسطر ::resource الصفحات. يُستشهد بصورة الغربال في أعلى العمود الأول من الصفحة الخامسة، والعمودان الثاني والثالث ما زالا فارغين، فتتصدّرهما في الصفحة نفسها. ويُستشهد بصورة الميناء في آخر تلك الصفحة، فتتصدّر عمودين من الصفحة التالية. صور النوع الواحد لا يتجاوز بعضها بعضًا، فتبقى الاستشهادات بترتيب التحقيق. وتُقاس الصور النقطية بدقة الصفحة البالغة 150 نقطة في البوصة: 1500 بكسل تعطي 254 مم وتصغر إلى 128.3 مم لعمودين.
#4 · ترويسات وأرقام صفحات خارج صفحتي الافتتاح
const head = { ...label, fontSize: pt(7.5), letterSpacing: pt(1.3), color: col('muted') };
const folio = { fontFamily: 'Barlow Condensed', fontWeight: 700, fontSize: pt(9.5),
color: col('ink') };
const pin = (edge, x, y) => ({ anchor: { to: 'page', edge }, offset: { x: mm(x), y: mm(y) } });
const sides = [['even', 'left', 1], ['odd', 'right', -1]]; // 1: the outer edge is on the left
// The label is 2 pt smaller, so it sits 0.68 mm lower in its box: one shared baseline.
const DROP = (0.8 * 1.2 * 2 * 25.4) / 72;
const header = { elements: sides.flatMap(([parity, edge, s]) => [
{ kind: 'text', id: `folio-${parity}`, content: '{pageNumber}', ...folio, align: edge,
placement: pin(`top-${edge}`, s * MARGIN.outer, 12) },
{ kind: 'text', id: `head-${parity}`, ...head, align: edge,
content: s > 0 ? '{title} · {subtitle}' : '{chapterTitle}',
placement: pin(`top-${edge}`, s * (MARGIN.outer + 9), 12 + DROP) },
].map((element) => ({ ...element, parity, pages: 'body' }))) }; // none on the spread
const footer = { elements: [{ kind: 'text', id: 'drop-folio', content: '{pageNumber}', ...folio,
align: 'right', parity: 'odd', pages: 'opener', // the recto of the spread: a folio at the foot
placement: pin('bottom-right', -MARGIN.outer, -12) }] };
تُرسم عناصر الترويسة فوق الصفحة ولا تحجز مكانًا، فيُربط رقم الصفحة والعنوان القصير بالصفحة في الهامش العلوي. يُبعدهما pages: 'body' عن صفحتي الافتتاح، وهما صفحتا افتتاح لأن كلًا منهما تبدأ بعنوان ممتد على الصفحة. ويقع رقم الصفحة الفردية من الافتتاح في أسفلها عبر pages: 'opener' وparity: 'odd'؛ أما الزوجية، وهي صورة كلها، فبلا رقم.
#5 · ارسم خريطة الصندوق الجانبي بالشيفرة
function mulberry32(seed) {
return () => {
seed = (seed + 0x6d2b79f5) | 0;
let r = Math.imul(seed ^ (seed >>> 15), 1 | seed);
r = (r + Math.imul(r ^ (r >>> 7), 61 | r)) ^ r;
return ((r ^ (r >>> 14)) >>> 0) / 4294967296;
};
}
function islandMap() { // in mm: a long, low island lying south-west to north-east
const rand = mulberry32(135);
const f = (id, a = 1) => `fill="${palette[id]}"${a < 1 ? ` fill-opacity="${a}"` : ''}`;
const [cx, cy, rx, ry, turn] = [28, 27, 23, 9.5, -0.5]; // centre, half-axes, radians
const place = (u, v) => [cx + u * Math.cos(turn) - v * Math.sin(turn),
cy + u * Math.sin(turn) + v * Math.cos(turn)]; // island frame to map
const coast = Array.from({ length: 48 }, (_, i) => {
const a = (i / 48) * 2 * Math.PI;
const k = 0.9 + rand() * 0.16; // a ragged shore
return place(rx * k * Math.cos(a), ry * k * Math.sin(a)).map((n) => n.toFixed(2)).join(' ');
});
const pans = []; // a grid of basins on the eastern flats, inside the shore
for (let u = 6; u < 19; u += 2.4) {
for (let v = -5; v < 5; v += 1.9) {
if ((u / rx) ** 2 + (v / ry) ** 2 > 0.62) continue;
const [x, y] = place(u, v);
pans.push(`<rect x="${(x - 1).toFixed(2)}" y="${(y - 0.7).toFixed(2)}" width="2" `
+ `height="1.4" transform="rotate(${(turn * 180) / Math.PI} ${x.toFixed(2)} `
+ `${y.toFixed(2)})" ${f(rand() < 0.7 ? 'salt' : 'rule')}/>`);
}
}
const [tx, ty] = place(-18, 3); // Porto Velho, on the south-west shore
const town = [[0, 0], [1.3, 0.2], [0.4, 1.2], [1.7, 1.3], [-0.9, 0.9]].map(([dx, dy]) =>
`<rect x="${(tx + dx).toFixed(2)}" y="${(ty + dy).toFixed(2)}" width="0.9" height="0.9" `
+ `${f('ink')}/>`).join('');
const [lx, ly] = place(2, -6.5); // the lighthouse hill, on the north shore
const ferry = `M${tx} ${ty + 1.5}C${tx - 6} ${ty + 6} 6 46 1.5 48`; // to the mainland, south-west
return `<svg xmlns="http://www.w3.org/2000/svg" width="${MAP.width * 10}" `
+ `height="${MAP.height * 10}" viewBox="0 0 ${MAP.width} ${MAP.height}">`
+ `<rect width="${MAP.width}" height="${MAP.height}" ${f('sea', 0.16)}/>`
+ `<path d="M${coast.join('L')}Z" ${f('paper')} stroke="${palette.muted}" `
+ 'stroke-width="0.25"/>' + pans.join('') + town
+ `<path d="M${lx - 1.4} ${ly + 1.1}L${lx} ${ly - 1.3}L${lx + 1.4} ${ly + 1.1}Z" ${f('ink')}/>`
+ `<path d="${ferry}" fill="none" stroke="${palette.ink}" stroke-width="0.3" `
+ 'stroke-dasharray="1 0.8"/>'
+ `<path d="M0.4 46.4L1.5 48L2.9 47Z" ${f('ink')}/>` // the arrowhead, a path (no marker)
+ '</svg>';
}
الخريطة مورد SVG له placement: 'here'، يُستشهد به داخل كتلة الإطار، فتقع تحت عنوانه وبعرضه. ليس فيها كتابة: النص داخل SVG لا يستطيع استعمال خطوط الويب في الصفحة، فيذكر التعليق أسماء الأشكال بدلًا منها. ورأس السهم على خط العبّارة مسار مرسوم، لأن <marker> لا يبقى عند التصدير إلى PDF.
الوصفة كاملة
// ═══ Postext Cookbook · Nº 135 · Magazine feature on a three-column grid ═════════
// https://postext.dev/en/cookbook/magazine-three-column-feature
// Code: MIT · Text: original (CC BY 4.0) · Photographs: generated with diffusion models
// Fonts: Source Serif 4, Fraunces, Barlow Condensed (SIL OFL 1.1) · Needs postext ≥ 1.28.0
// A travel feature from a monthly magazine, pages 84–89 of the issue. The story opens on a
// spread, a photograph bled across both pages, then runs on in three columns: pictures across
// two of them, one across the page and one in a single column, a pull quote floated across
// two columns, a sidebar in one, running heads, folios and an end mark.
import {
buildDocumentWithFonts, renderPageToCanvas, registerResourceImage,
} from 'https://esm.sh/postext';
const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'magazine-three-column-feature';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: an Atlantic blue for the one accent, a salt tint for the sidebar
const palette = {
ink: '#1c2024', // text: a blue-black
sea: '#1d5470', // the accent: kickers, crossheads, the quote, the drop cap
tint: '#edf1f2', // the sidebar's ground
rule: '#c5ced3', // the map's resting pans
muted: '#5c656d', // running heads, credits, the colophon
paper: '#ffffff', // the page, and the headline reversed out of the photograph
salt: '#dfa79c', // the pans on the sidebar's map, the pink of ripe brine
};
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' } })),
// The engine's defaults link to 'main-color': point it at the accent, so nothing prints blue.
{ id: 'main-color', name: 'sea (defaults)', value: { hex: palette.sea, model: 'hex' } },
];
// #endregion
const TRIM = { width: 225, height: 297 }; // a magazine trim, in mm
const MARGIN = { top: 22, bottom: 20, inner: 16, outer: 14 }; // mirrored
const LEAD = 14; // body leading in pt: the baseline grid
const MAP = { width: 54, height: 50 }; // mm: the sidebar's map, as wide as its measure
const label = { fontFamily: 'Barlow Condensed', fontWeight: 600, textTransform: 'uppercase',
align: 'left' }; // design text is centred by default
const at = (to, edge, x = 0, y = 0, width) => ({ anchor: { to, edge },
offset: { x: mm(x), y: mm(y) }, ...(width && { size: { width: mm(width) } }) });
// #region answer: three equal columns, and floats that take one, two or all three of them
const GUTTER = 5; // mm between the columns
const WIDTH = TRIM.width - MARGIN.inner - MARGIN.outer; // the text block, 195 mm
const COLUMN = (WIDTH - 2 * GUTTER) / 3; // 61.7 mm: about 40 characters of 9.6 pt text
const layout = { layoutType: 'multiple', columnCount: 3, gutterWidth: mm(GUTTER) };
// A float takes `columns` adjacent columns and the gutters between them: the head (or foot)
يعمل ملف script.js المجمّع كما هو: الصقه في سكربت الوحدة (module) لأي صفحة، أو افتح الوصفة على CodePen. مجلد الوصفة على GitHub ↗ (يفتح في تبويب جديد)
تنويعات
#مدّ الاقتباس على الأعمدة الثلاثة
يقدّم الإطار العائم السمة columns المكتوبة في سطر الفتح على قيمة نمطه، فيمكن لاقتباس واحد أن يأخذ عرض الصفحة كله.
- :::callout{type="pull"}
+ :::callout{type="pull" columns="3"}#نضّد التحقيق في عمودين
لتحقيق أقل صورًا وأطول فقرات، انظر تحقيق مجلة: من صورة الافتتاح إلى علامة النهاية، بتخطيط double.
أخطاء شائعة
خطأ شائع
العنصر العائم 'top' يذهب إلى الصفحة التالية لإحالته ما لم يُسمح له بتصدر صفحة الإحالة
افتراضيًا لا يصعد العنصر العائم أبدًا فوق الإحالة إليه، فالعنصر العائم 'top' الممتد بعرض الصفحة والمُحال إليه في الصفحة N يفتتح الصفحة N+1. اضبط placement.citingPage: true على المورد أو على defaultPlacement لنوعه (أو layout.floatsAtCitingPage للكتاب كله، منذ postext 1.25) فيتصدر الصفحة N بدلًا من ذلك، وينزل النص الذي فوق الإحالة تحته، إذا اتسع له المكان في حدود layout.maxTopFraction وبقي سطر الإحالة في تلك الصفحة. ولا يتصدر أبدًا الصفحة الأولى من فصل ولا صفحة بعد فاصل قسري: فهناك يظل يفتتح الصفحة التالية، ويمكن للموضع 'auto' أو 'bottom' أن يشغل أسفل صفحة الإحالة. موضع الأشكال →
خطأ شائع
العنوان الممتد بعرض الصفحة يفتح صفحة جديدة دائمًا
العنوان الذي يضبط مستواه أو نمطه span: 'page' يُوزَّع افتتاحيةً في رأس صفحة، سواء كان له breakBefore أم لا. فإذا وُضع بعد نص آخر، أو بعد افتتاحية أخرى في الصفحة نفسها، انتقل إلى الصفحة التالية وترك بقية الصفحة الحالية فارغة. العنوان الرئيسي الممتد عبر العمودين (أو عبر طبقتي الصفحة العمودية) تحت ترويسة الصحيفة يدخل في تصميم الافتتاحية نفسه، بجانب ترويسة الصحيفة، أو في إطار :::callout{span="page"} عنوانًا بلا span، كما تضع الوصفة newspaper-front-page عناوينها الرئيسية. صفحات افتتاح مصمَّمة →
خطأ شائع
الصفحة 1 فردية: خطّط الصفحات بأرقامها الفعلية
الصفحة 1 صفحة يمنى والصفحة 2 أول صفحة زوجية، فخطّط الصفحتين المتقابلتين بأرقام الصفحات الفعلية: الافتتاحية في صفحة زوجية تقابل الصفحة الفردية التي تليها. فواصل الصفحات والأعمدة →
خطأ شائع
الصور النقطية تأخذ مقاس طباعتها من دقتها: صرّح بالدقة لا ببكسلات محسوبة للطباعة
الصورة النقطية بلا دقة تُوضع ببكسل لكل بكسل تخطيط بدقة dpi المستند، فصورة من 2400 px عرضها 406 mm في صفحة 150 dpi. صرّح ببكسلات الملف الحقيقية وأعطِ الصورة دقتها (bitmap.resolution: 300)، أو اضبط layout.bitmapResolution لكل الصور النقطية: قيمة ppi، أو 'file' لقراءة الدقة التي يذكرها الملف. يظل العمود يحدّ الصورة. الأشكال والجداول بوصفها موارد →
- الصورة الممتدة على عمودين تتصدّر عمودين ما زالا فارغين. إذا استُشهد بها في العمود الثاني لم تجد هذا الزوج في صفحتها، إذ لم يبقَ إلا العمود الثالث، فتنتظر الصفحة التالية.
- ضُبط التحقيق لينتهي على ارتفاع واحد في الصفحة السادسة تحت صورة الميناء. بعد أي تعديل تحقّق من أن الصفحة الأخيرة ما زالت ممتلئة: بأسطر أقل تنتقل الصورة إلى صفحة وحدها.
- في أسطر من 40 حرفًا تقلّ مواضع الكسر في الفقرة المضبوطة. يسمح
maxJustifyTracking: 15للسطر الذي لا يتسع بضعف المسافة العادية بأن يأخذ حتى 0.015 em من تباعد الحروف. أما السطر الأخير ذو الكلمة الواحدة فيُصلح بتعديل النص، كما في هذه الصفحات.
الحقوق
- الوصفة
- Ignacio Ferro
- النص
- نص أصلي, CC BY 4.0
- الصور
- Sunrise on the salt pans (the opening spread, in two halves) · Generated With Diffusion Models · CC BY 4.0
- Sunrise on the salt pans, the recto's half · Generated With Diffusion Models · CC BY 4.0
- A rake drawing up wet salt · Generated With Diffusion Models · CC BY 4.0
- The salt flats from above · Generated With Diffusion Models · CC BY 4.0
- A salt maker with a basket of flor de sal · Generated With Diffusion Models · CC BY 4.0
- Skimming flor de sal with a sieve · Generated With Diffusion Models · CC BY 4.0
- Salt sacks on a harbour quay at dusk · Generated With Diffusion Models · CC BY 4.0
- The sidebar's map of Marisal, drawn in code · Ignacio Ferro · MIT
- الخطوط
- Source Serif 4 (SIL OFL 1.1) · Fraunces (SIL OFL 1.1) · Barlow Condensed (SIL OFL 1.1)
- الشيفرة
- MIT، مثل Postext
حرّر هذا الشرح ↗ (يفتح في تبويب جديد)مجلد الوصفة على GitHub ↗ (يفتح في تبويب جديد)


