انتقل إلى المحتوى الرئيسي
الوصفة رقم 6

دليل الوصفات · الفصل 5 · بنية الكتاب

صفحات تمهيدية بأرقام رومانية، ثم الصفحة 1

الغلاف والصفحات التمهيدية عناوين بلا ترقيم تُعدّ بالأرقام الرومانية الصغيرة؛ و:::numbering يعيد العدّ إلى 1 على الصفحة الفردية التي تبدأ بها الرواية.

في هذه الصفحة
المُخرَج
Canvas · PDF
المستوى
متقدم
Postext
اختُبرت مع Postext 1.65.0
تتطلب ≥ 1.34.0 · postext-pdf ≥ 1.34.0
الترخيص
حُدّثت في 16 أكتوبر 2026
الشيفرة MIT · النص CC BY 4.0
  • نموذج باللغة الإنجليزية: لا توجد طبعة عربية بعد
  • مقاس القص 129 × 198 مم
  • عمود واحد
  • Fanwood Text 10.5/14
  • Cinzel
  • Playfair Display SC
  • 14 صفحة
  • المستوى
  • Postext 1.57.1
  • أُخرجت في 88 ms
  • أسطر الشيفرة: 245

باختصار

الصفحات الأولى من طبعة جيب لرواية «فرانكنشتاين». تبيّن كيف ترقّم الصفحات التي تسبق القصة i وii وiii، ثم تبدأ العدّ من جديد بالصفحة 1 حيث تبدأ القصة.

ما الذي ستنضده

الأوراق الأولى من Frankenstein في طبعة جيب كلاسيكية بمقاس 129 × 198 مم: غلاف عليه برق فوق مون بلان، وظهره متروك فارغًا، وصفحة عنوان مختصر، ولوحة تقابل صفحة العنوان تصوّر سفينة والتن محاصرة في الجليد، وبيانات النشر منخفضة على ظهر صفحة العنوان، والإهداء إلى غودوين فوق تصدير من ملتون، وصفحة محتويات، ومقدمة طبعة 1818. تُرقَّم هذه الصفحات العشر من i إلى x، لكن المحتويات والمقدمة وحدهما تطبعان أرقامهما. تبدأ Letter I الرواية على صفحة يمنى، تحت الشفق القطبي، ورقم صفحتها 1 في الموضع نفسه الذي يشغله x في الصفحة المقابلة. وتمتد الرسالة حتى توقيع والتن. الرقم ix بجانب المقدمة في المحتويات والرقم 1 بجانب الرسالة مأخوذان من الصفحات المنضّدة النهائية، وقارئ PDF يسمّي الصفحات بالطريقة نفسها. الغلاف واللوحة المقابلة للعنوان والشفق القطبي لوحات مولّدة بنماذج الانتشار (diffusion models)، محمّلة صورًا نقطية بصيغة JPEG؛ أما شعار الناشر وبلورة الجليد فمرسومان بالشيفرة.

تجيب هذه الوصفة عن

  • كيف أرقّم الصفحات التمهيدية بالأرقام الرومانية وأبدأ من 1 مع الفصل الأول؟
  • كيف أصمم غلافًا وصفحة عنوان مختصر وصفحة عنوان وصفحة بيانات النشر؟
  • كيف أضيف جدول محتويات يحدّث نفسه (نقاط توجيه، أرقام صفحات، مؤلفون، صفوف الأجزاء)؟
  • كيف أُدرج صفحات فارغة مقصودة، أو أبدأ قسمًا على صفحتين متقابلتين جديدتين؟
  • كيف أنضد نصًّا تصديريًّا أو إهداءً أو توقيعًا أو اقتباسًا بارزًا بعلامة اقتباس كبيرة؟

الجواب المختصر

script.js · الأسطر 60–82في الشيفرة الكاملة
// The page counter starts in lower-case roman: the cover is page i. After the Preface, two
// directives in the Markdown count again from 1 on the next recto:
//   :::pagebreak{parity="odd"}
//   :::numbering{format="decimal" startAt=1}
// :::numbering takes effect on the next page that starts (gotcha: numbering-next-page). Level 1
// breaks to 'odd', so here the pagebreak changes nothing; it finds the recto when a level breaks
// with parity 'any' or not at all. Never with 'always-odd': the blank pages would stack up.
const pageNumbering = { format: 'lower-roman', startAt: 1 }; // startAt spelled out: cover = i
// One folio design, centred under the text block. {pageNumber} prints the page's own label,
// so the same design sets "x" in the front matter and "1" on the first page of the novel.
const folio = (pages) => text(`folio-${pages}`, '{pageNumber}', 'Playfair Display SC', 8.5,
  at('top', 0, 9), { letterSpacing: pt(0.8), pages }); // lower case sets as small capitals
// The front matter is a heading style, unnumbered and left out of the contents (a heading
// can opt back in with {toc="true"}). It prints no running heads and puts a folio on every
// page of the section. Parity 'any', because the contents fall on a verso.
const front = {
  id: 'front', numbered: false, toc: false, breakBefore: { enabled: true, parity: 'any' },
  header: { elements: [] }, footer: { elements: [folio('all')] }, ...frontLook,
};
// The novel keeps the document's furniture: heads on its body pages, the folio on openers.
const footer = { elements: [folio('opener')] };
// Hook-up in config(): page: { pageNumbering }, headingStyles: [front] and footer at the top
// level. frontLook, set above, is the look of the prelims' openers.

المكونات

الخطوط
Fanwood Text, Playfair Display SC, Cinzel (SIL OFL 1.1)
الأصول
  • band-1400.jpg
  • cover-1000.jpg
  • plate-1000.jpg
  • The cover: lightning over Mont Blanc and the lake of Geneva (Generated With Diffusion Models, أصلي)
  • The frontispiece: a brig beset in pack ice, a dog sledge far off (Generated With Diffusion Models, أصلي)
  • Letter I’s opener: northern lights over the frozen Neva (Generated With Diffusion Models, أصلي)

طريقة التحضير

#1 · كل ورقة عنوان له تصميم

script.js · الأسطر 86–148في الشيفرة الكاملة
// Each leaf is a heading, so it opens its page, gets a PDF bookmark and takes a design. The
// leaves are unnumbered, left out of the contents and print no heads or folio (blind folios).
// Parity 'any', or each would inherit level 1's odd break (gotcha: style-inherits-break).
const blind = { numbered: false, toc: false, breakBefore: { enabled: true, parity: 'any' },
  header: { elements: [] }, footer: { elements: [] } };
const PLATE_H = 126; // mm: the frontispiece, as wide as the text block; its caption hangs below
// mm from the trim: the imprint's eleven lines end on the text block's last baseline.
const IMPRINT_TOP = 126.4; // re-tune it whenever the imprint changes
const leaves = [
  // i: bled to the trim. The painting is as tall as the page, so the cover takes it whole.
  { id: 'cover', ...blind, advancedDesign: design([
    image('cover', at('top-left', 0, 0, { width: 'fill', to: 'bleed' })),
    label('author', '{author}', 9, onPage(22), 'bone', 2.6),
    text('title', '{title}', 'Fanwood Text', 56, onPage(31), { color: col('bone'), lineHeight: 1 }),
    text('subtitle', '{subtitle}', 'Fanwood Text', 13, onPage(53), { ...on('ice'), italic: true }),
    label('series', '{attr.publisher}', 7, onPage(168), 'ice', 2),
  ]) },
  // iii: the half title waits for a recto, so the back of the cover, ii, is left blank.
  { id: 'half', ...blind, breakBefore: { enabled: true, parity: 'odd' }, advancedDesign: design([
    text('title', '{title}', 'Playfair Display SC', 17, at('top', 0, 34), { letterSpacing: pt(3) }),
    image('crystal', at('top', 0, 45, { width: 6 })),
  ]) },
  { id: 'plate', ...blind, advancedDesign: design([ // iv: faces the title page
    image('plate', at('top-left', 0, 0, { width: 'fill' })),
    text('caption', '{attr.caption}', 'Fanwood Text', 8.8,
      at('top', 0, PLATE_H + 5, { width: 80 }), { italic: true, lineHeight: 1.3 }),
    label('source', '{attr.source}', 7.5, at('top', 0, PLATE_H + 16), 'muted', 1.3),
  ]) },
  { id: 'title', ...blind, advancedDesign: design([ // v: four frontmatter fields, one attribute
    label('edition', 'The text of {publishDate}', 7.5, at('top', 0, 22), 'accent', 1.8),
    text('title', '{title}', 'Playfair Display SC', 33, at('top', 0, 30),
      { fontWeight: 700, letterSpacing: pt(0.4), lineHeight: 1 }),
    text('subtitle', '{subtitle}', 'Fanwood Text', 14, at('top', 0, 44), { italic: true }),
    { kind: 'rule', id: 'rule', direction: 'horizontal', thickness: pt(0.8), color: col('accent'),
      placement: at('top', 0, 60, { width: 14 }) },
    label('author', '{author}', 10, at('top', 0, 66), 'ink', 2.4),
    image('mark', at('top', 0, 126, { width: 11 })),
    label('publisher', '{attr.publisher}', 7.5, at('top', 0, 140), 'muted', 1.5),
  ]) },
  // vi: the section's margins set the small print low, in a 70 mm measure against the outer
  // margin. hidden: the heading opens the page and names its bookmark, and prints nothing.
  { id: 'imprint', ...blind, hidden: true,
    margins: { top: mm(IMPRINT_TOP), left: mm(TRIM_W - OUTER - 70) } },
  // vii: dedication and epigraph, under a heading whose design is an ornament and no title.
  { id: 'quiet', ...blind,
    advancedDesign: design([image('crystal', at('top', 0, 24, { width: 6 }))], 34) },
];
// :::paragraphs blocks set the small print, the dedication, the epigraph and Walton's close;
// the dedication and the verse take one paragraph per line, so no line of them can reflow.
const VERSE_IN = 22; // mm: the indent that centres the verse as a block
const SOURCE_IN = 55; // mm: 'Paradise Lost' ends under the end of the longest line of verse
const prelimStyles = [
  { id: 'small-print', fontSize: pt(7.6), lineHeight: pt(10.4), textAlign: 'left',
    firstLineIndent: pt(0), spaceBetween: pt(5.2) },
  // Small capitals, with the italic lines of the 1818 page, leaded as one inscription.
  { id: 'dedication', fontFamily: 'Playfair Display SC', fontSize: pt(10), lineHeight: pt(15),
    textAlign: 'center', firstLineIndent: pt(0) },
  { id: 'verse', fontSize: pt(10), textAlign: 'left', firstLineIndent: mm(VERSE_IN),
    marginTop: pt(LEAD * 4) }, // on the body's 14 pt leading, which a style inherits
  { id: 'source', fontFamily: 'Cinzel', fontSize: pt(7.5), textAlign: 'left',
    firstLineIndent: mm(SOURCE_IN), marginTop: pt(4), color: col('muted') },
  { id: 'signature', textAlign: 'right', firstLineIndent: pt(0) }, // the letter's close
];

العنوان يفتح صفحة خاصة به ويصبح علامة مرجعية في PDF؛ والتصميم في نمطه يضع حروف الورقة وصورها. مع numbered: false وtoc: false تبقى الأوراق خارج عدّ الفصول وخارج المحتويات. وترويسة وتذييل فارغان يمنحانها ما يسمّيه الطابعون الأرقام الخفيّة (blind folios): صفحة العنوان لا تطبع رقمًا لكنها تبقى الصفحة v، ولهذا يمكن أن تكون المقدمة ix. لا تحتفظ بالانتقال إلى صفحة فردية إلا صفحة العنوان المختصر، وهذا ما يترك ظهر الغلاف فارغًا. بيانات النشر والإهداء والتصدير وخاتمة والتن كتل :::paragraphs منضّدة بالأنماط التي في آخر المقتطف.

#2 · المحتويات تأخذ أرقامها من الإخراج

script.js · الأسطر 152–161في الشيفرة الكاملة
// Entries take the body's face and ink, and start on the Preface's first baseline, facing it.
const contents = {
  levels: [{ level: 1, fontSize: pt(12), lineHeight: pt(PREFACE.lead) }],
  // The folio's face: "ix" in small capitals, then a plain 1. The leader takes it too.
  pageNumber: { fontFamily: 'Playfair Display SC', fontSize: pt(10), color: col('accent'),
    width: mm(8) },
  leader: { char: '. ', gap: mm(2.5) },
  // A second line from the heading's to="…" attribute: whom each letter is written to.
  subtitle: { enabled: true, attr: 'to', fontSize: pt(9.5), color: col('muted') },
};

يسرد :::toc كل عنوان يسمح به نمطه، مع تسمية الصفحة التي يقع عليها (جدول المحتويات). تشترك المحتويات والمقدمة في النمط front الذي يضبط toc: false، وتتجاوزه المقدمة بـ{toc="true"}. لا المقدمة ولا Letter I مرقّمة، فلا يطبع مدخلاهما رقم فصل. السطر الثاني من مدخل الرسالة هو سمتها to="…". وأرقام الصفحات منضّدة بخط أرقام الصفحات. وتبدأ المداخل على خط الأساس نفسه الذي يبدأ عليه السطر الأول من المقدمة، فتصطف الصفحتان المتقابلتان.

#3 · تبدأ الرواية على صفحة فردية، تحت الشفق القطبي

script.js · الأسطر 165–180في الشيفرة الكاملة
const BAND = 104; // mm from the trim to the foot of the drawing, which fades into the paper
// minHeight ends AIR mm below it and the first line takes the next grid line. to: 'bleed' is the
// trim until page.cutLines adds a bleed; 3 mm drop the foot 1.8 mm, still above that line.
const AIR = 2;
const opener = design([
  image('band', at('top-left', 0, 0, { width: 'fill', to: 'bleed' })),
  label('to', '{attr.to}', 7.5, onPage(19), 'ice', 2),
  text('title', '{titleText}', 'Playfair Display SC', 46, onPage(25),
    { color: col('bone'), lineHeight: 1 }),
  text('dateline', '{attr.dateline}', 'Fanwood Text', 10.5, onPage(44),
    { italic: true, color: col('bone') }),
  // The drawing reserves down to its foot. minHeight, counted from the text block (TOP below
  // the trim), is a floor AIR mm lower, which sends the first line one grid line further down.
], BAND - TOP + AIR);
// Walton's letters come before Chapter I: they take the novel's opener but no number.
const letter = { id: 'letter', numbered: false };

تنزف اللوحة من أعلى الصفحة وتذوب في الورق عند أسفلها، حيث تبدأ الرسالة. تحجز صفحة الافتتاح الصفحة حتى أسفل اللوحة، على بعد 104 مم من أعلى الصفحة، وتضع minHeight حدًّا أدنى تحته بـ2 مم، فتبدأ الرسالة بعد سطر شبكة واحد، بعيدًا عن موضع الذوبان (الامتداد والتصميم المتقدم). السطر التمهيدي (kicker) وسطر المكان والتاريخ يأتيان من السمتين to وdateline في العنوان. وفي عنوان Letter I أيضًا {style="letter"}، وهو نمط لا إعداد فيه سوى numbered: false، لأن رسائل والتن تسبق Chapter I وليس لها رقم فصل.

#4 · تعود الترويسات مع الرواية

script.js · الأسطر 184–196في الشيفرة الكاملة
const HEAD_Y = 12.5; // mm from the trim to the heads' line
const HEAD_GAP = 8; // mm from the outer margin, where the folio hangs, to the words beside it
const head = (id, content, parity, edge, x, extra = {}) => ({ ...label(id, content, 7.5,
  at(edge, x, HEAD_Y, { to: 'page' }), 'muted', 1.4), align: 'left', parity, pages: 'body',
  ...extra }); // pages: 'body' keeps them off the opener
const numeral = { fontFamily: 'Playfair Display SC', fontSize: pt(8.5), fontWeight: 400,
  letterSpacing: pt(0.6), color: col('ink') }; // folios in the folio face, as on the openers
const header = { elements: [
  head('verso-folio', '{pageNumber}', 'even', 'top-left', OUTER, numeral),
  head('verso-title', '{title}', 'even', 'top-left', OUTER + HEAD_GAP),
  head('recto-title', '{chapterTitle}', 'odd', 'top-right', -(OUTER + HEAD_GAP)),
  head('recto-folio', '{pageNumber}', 'odd', 'top-right', -OUTER, numeral),
] };

يحتفظ القسم بترويسة المستند وتذييله ما لم يستبدلهما نمطه. الصفحات التمهيدية تستبدل كليهما ونمط الرسالة لا يفعل، لذا تطبع الرواية من الصفحة 1 هذه الترويسات على صفحات متنها، وتطبع على صفحة افتتاحها رقم الصفحة المنخفض المعرَّف في الجواب المختصر. يطبع {pageNumber} تسمية الصفحة التي يقع عليها، فتضع الدالة المساعدة folio() الرقم x على جانب من الكعب والرقم 1 على الجانب الآخر بالتصميم نفسه.

#5 · ملف PDF يحمل أرقام الصفحات نفسها

script.js · الأسطر 398–404في الشيفرة الكاملة
// :::toc lists each heading with the label of the page it lands on; buildDocument lays the
// document out again until those labels stop moving (ix for the Preface, 1 for Letter I).
const doc = await buildDocumentWithFonts({ markdown, resources }, config(), kitFonts(FONTS));
showPages(doc, { title: 'Frankenstein · the opening leaves' });
// The PDF gets /PageLabels from the same labels: a viewer numbers its pages i–x, then 1, 2.
offerPdf(() => renderToPdf(doc, { fontProvider: fontsourceProvider, resourceBytes: imageBytes }),
  `${RECIPE}.pdf`);

تكرر buildDocument الإخراج حتى تتوقف تسميات الصفحات في المحتويات عن التغير، لذا يكفي استدعاء واحد. تكتب renderToPdf تلك التسميات في ملف PDF: في قارئ يقرأ تسميات الصفحات، يمتد حقل رقم الصفحة من i إلى x ثم من 1، و«الانتقال إلى الصفحة 1» يفتح Letter I. ويصبح كل عنوان علامة مرجعية باسم نصه، ولهذا للأوراق عناوين بسيطة: Cover وHalf title وFrontispiece وTitle page وImprint وDedication.

الوصفة كاملة

Sandbox
// ═══ Postext Cookbook · Nº 006 · Front matter: roman folios, then page 1 ═══════════
// https://postext.dev/en/cookbook/front-matter-roman-to-arabic
// Code: MIT · Text: M. & P. B. Shelley, 1818 (PD) · Pictures: diffusion models; marks drawn in code
// Fonts: Fanwood Text, Playfair Display SC, Cinzel (SIL OFL 1.1) · Needs postext ≥ 1.34.0
import {
  buildDocumentWithFonts, renderPageToCanvas, registerResourceImage,
} from 'https://esm.sh/postext';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';

const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'front-matter-roman-to-arabic';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
const palette = { // every colour in the config links to one of these
  ink: '#1c1d21', // text: a cold near-black
  accent: '#3d5a70', // steel blue, the one accent on paper: contents folios, the rule, the marks
  muted: '#6a665f', // running heads, sources, the second lines of the contents
  paper: '#fbf8f2', // the page
  night: '#131a24', ice: '#a9c6d6', bone: '#efe9dc', // the drawings' inks, and the type on them
};
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: 'accent (defaults)', value: { hex: palette.accent, model: 'hex' } },
];
const TRIM_W = 129, TRIM_H = 198; // mm: a pocket classic
const TOP = 21, BOTTOM = 23, INNER = 17, OUTER = 15; // margins, mm; heads align to OUTER
const MEASURE = TRIM_W - INNER - OUTER; // 97 mm: the text block, and the frontispiece's width
const LEAD = 14; // body leading in pt: 31 lines fill the text block
const PREFACE = { size: 9.8, lead: 13.3 }; // pt: the preface, a size under the novel's 10.5/14

// Design-slot shorthands. at(): a placement from an anchor's edge; edge 'top' centres it.
const wide = (width) => (width === 'fill' ? 'fill' : mm(width));
const at = (edge, x, y, { width, to = 'container' } = {}) => ({ anchor: { to, edge },
  offset: { x: mm(x), y: mm(y) }, ...(width !== undefined && { size: { width: wide(width) } }) });
const onPage = (y) => at('top', 0, y, { to: 'page' }); // centred on the page, y mm from the trim
const on = (id) => ({ color: col(id) }); // a design text's ink
// overflow 'wrap' for the running heads too, where a text too wide would end in '…'.
const text = (id, content, font, size, placement, extra = {}) => ({ kind: 'text', id, content,
  fontFamily: font, fontSize: pt(size), color: col('ink'), align: 'center', overflow: 'wrap',
  placement, ...extra });
const label = (id, content, size, placement, ink, tracking) => text(id, content, 'Cinzel', size,
  placement, { fontWeight: 600, letterSpacing: pt(tracking), textTransform: 'uppercase',
    ...on(ink) }); // the label voice: Cinzel capitals, tracked
const image = (id, placement) => ({ kind: 'image', id, resourceId: id, placement });
// A heading's design. minHeight (mm) where the text must start lower than the elements reach.
const design = (elements, minHeight) => ({ enabled: true, slot: { elements },

يعمل ملف script.js المجمّع كما هو: الصقه في سكربت الوحدة (module) لأي صفحة، أو افتح الوصفة على CodePen. مجلد الوصفة على GitHub ↗ (يفتح في تبويب جديد)

تنويعات

#عُدّ الصفحات التمهيدية بأرقام رومانية كبيرة

الأرقام الرومانية الكبيرة تُطبع حروفًا كبيرة كاملة بخط أرقام الصفحات، أطول من الحروف الكبيرة المصغّرة التي تُنتجها الأرقام الصغيرة.

-const pageNumbering = { format: 'lower-roman', startAt: 1 }; // startAt spelled out: cover = i
+const pageNumbering = { format: 'upper-roman', startAt: 1 }; // startAt spelled out: cover = I

#رقّم الكتاب كله تسلسلًا واحدًا

احذف startAt فيستمر العدّ بالأرقام العربية (1، 2، 3)، فتصبح Letter I الصفحة 11، كما في الكتب التي تعدّ صفحاتها التمهيدية مع النص.

-:::numbering{format="decimal" startAt=1}
+:::numbering{format="decimal"}

#استغنِ عن اللوحة المقابلة للعنوان

احذف العنوان # Frontispiece وأرسل صفحة العنوان إلى صفحة فردية: تبقى الصفحة iv فارغة، وتبقى المقدمة ix، وتبقى Letter I الصفحة 1.

-  { id: 'title', ...blind, advancedDesign: design([ // v: four frontmatter fields, one attribute
+  { id: 'title', ...blind, breakBefore: { enabled: true, parity: 'odd' },
+    advancedDesign: design([ // v: four frontmatter fields, one attribute

#أضف نزفًا وعلامات قص للمطبعة

مع cutLines يمتد الغلاف وصفحة الافتتاح، وكلاهما مربوط بالنزف، 3 مم بعد حدّ القص؛ ولا تتغير أرقام الصفحات ولا عددها (خطوط القص).

     backgroundColor: col('paper'), pageNumbering,
+    cutLines: { enabled: true }, // a 3 mm bleed and crop marks

أخطاء شائعة

خطأ شائع

يسري :::numbering من الصفحة التالية

يغيّر :::numbering العدّ بدءًا من الصفحة التالية التي تبدأ، لا من الصفحة الحالية. ضعه مباشرةً بعد :::pagebreak (بالزوجية odd قبل الفصل الأول) ليبدأ الترقيم الجديد حيث تريد. ترقيم روماني للصفحات التمهيدية →

خطأ شائع

يرث نمط العنوان فاصل الصفحة من مستواه

يأخذ مُدخل headingStyles كل حقل يتركه من مستوى عنوانه، بما فيه breakBefore. فصفحة المحتويات أو صفحة بيانات النشر المنسّقة على H1 بعد :::pagebreak ترث الزوجية 'odd' وتقع بعد صفحة فارغة. أعطِ هذا النمط breakBefore: { enabled: false }. أنماط العناوين →

خطأ شائع

الصفحة 1 فردية: خطّط الصفحات بأرقامها الفعلية

الصفحة 1 صفحة يمنى والصفحة 2 أول صفحة زوجية، فخطّط الصفحتين المتقابلتين بأرقام الصفحات الفعلية: الافتتاحية في صفحة زوجية تقابل الصفحة الفردية التي تليها. فواصل الصفحات والأعمدة →

خطأ شائع

تأخذ الصفحة ترويسة آخر قسم يبدأ فيها

إذا بدأ نمطا عنوان في صفحة واحدة، أخذت الصفحة ترويسة الأخير منهما وتذييله ولوحة ألوانه. والصفحة الفارغة الفاصلة تتبع الفصل الذي قبلها، وصفحة الحشو لضبط الزوجية والفردية تتبع الفصل الذي بعدها. ترويسات لكل قسم →

فحص Sandbox · parityCascade

صفحات فارغة متتالية بسبب الزوجية

السبب. فواصل الزوجية تتراكم وتُنتج أكثر من صفحتين فارغتين متتاليتين.

الحل. راجع فواصل always-odd وقيم الزوجية في breakBefore؛ وللفصول القصيرة، تتجنب الزوجية any عادةً الصفحات الفارغة. التوثيق →

فحص Sandbox · numberingInvalidFormat

صيغة ترقيم غير صالحة

السبب. صيغة :::numbering ليست واحدة من decimal أو lower-roman أو upper-roman أو lower-alpha أو upper-alpha.

الحل. استعمل إحدى صيغ أرقام الصفحات الخمس؛ فالقوائم والموارد تكتب صيغها بطريقة مختلفة. التوثيق →

  • ترث الأوراق انتقال المستوى 1 من النوع 'odd'. وإن تُركت على حالها انتظرت كل منها صفحة يمنى. فتمتد الصفحات التمهيدية إلى أربع عشرة صفحة بدلًا من عشر، مع أربع صفحات زوجية فارغة إضافية، وتقابل اللوحةُ صفحةً فارغة بدلًا من صفحة العنوان. أعد تحديد الانتقال بـparity: 'any'، كما تفعل هذه الوصفة، أو أوقفه بـbreakBefore: { enabled: false }؛ فالعنوان الممتد على الصفحة يفتح صفحته الخاصة في الحالتين.
  • احذف :::pagebreak الذي يسبق :::numbering حين ينتقل المستوى 1 بـ'always-odd'، وهي القيمة الافتراضية للمحرّك لعناوين H1. فإن انتهى النص الذي قبله على صفحة يمنى، أضاف فاصل الصفحة صفحةً حتى الصفحة الفردية التالية، ثم أضاف العنوان صفحته الفاصلة وأضاف صفحة أخرى، فتبقى ثلاث صفحات فارغة متتالية بدلًا من واحدة. أما بعد انتقال 'odd'، كما هنا، فلا يغيّر فاصل الصفحة شيئًا؛ وبعد 'any' هو ما يضع الصفحة 1 على صفحة فردية.
  • مقدمة تزيد صفحة واحدة تدفع Letter I صفحتين إلى الأمام، لأن الانتقال إلى صفحة فردية يضيف قبلها صفحة زوجية فارغة. راجع عدد الصفحات كلما عدّلت الصفحات التمهيدية.
  • النقاط الإرشادية في المحتويات منضّدة بخط أرقام الصفحات ولونها، وليس لـtoc.leader لون خاص به، لذا تُطبع هنا بالأزرق الفولاذي.

الحقوق

الوصفة
Ignacio Ferro
النص
  • Frankenstein; or, The Modern Prometheus (1818): the dedication, Letter I, a line of Letter IV (the frontispiece caption) and one of volume I, chapter VI (quoted in a code comment) · Mary Shelley · ملك عام
  • The unsigned Preface of the 1818 edition (by common attribution) · Percy Bysshe Shelley · ملك عام
  • Paradise Lost (1667), book X, lines 743–745: the epigraph of the 1818 title leaves · John Milton · ملك عام
الصور
  • The cover: lightning over Mont Blanc and the lake of Geneva · Generated With Diffusion Models · أصلي
  • The frontispiece: a brig beset in pack ice, a dog sledge far off · Generated With Diffusion Models · أصلي
  • Letter I’s opener: northern lights over the frozen Neva · Generated With Diffusion Models · أصلي
الخطوط
Fanwood Text (SIL OFL 1.1) · Playfair Display SC (SIL OFL 1.1) · Cinzel (SIL OFL 1.1)
الشيفرة
MIT، مثل Postext
SandboxPDF