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

دليل الوصفات · الفصل 7 · الأشكال والصور

مداخل كتالوج تقابلها لوحاتها

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

في هذه الصفحة
المُخرَج
Canvas
المستوى
متقدم
Postext
اختُبرت مع Postext 1.65.0
تتطلب ≥ 1.25.0
الترخيص
حُدّثت في 10 أكتوبر 2026
الشيفرة MIT · النص CC BY 4.0
  • نموذج باللغة الإنجليزية: لا توجد طبعة عربية بعد
  • مقاس القص 230 × 280 مم
  • عمود ونصف, فاصل 7 مم بين الأعمدة
  • Ibarra Real Nova 11.5/16
  • Libre Bodoni
  • Sofia Sans Condensed
  • 8 صفحات
  • المستوى
  • Postext 1.57.1
  • أُخرجت في 56 ms
  • أسطر الشيفرة: 246

باختصار

كتالوج معرض صغير يضم ثلاث صور قديمة من كتاب «دون كيخوتي». يقع وصف كل صورة على صفحة يسرى، وتملأ الصورة نفسها الصفحة اليمنى المقابلة له.

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

كتالوج صغير لمعرض في قاعة واحدة يضم ثلاثة نقوش خشبية من Don Quixote لغوستاف دوريه (باريس، 1863)، على صفحة مقاسها 230 × 280 مم. يضع الغلاف كلمة DORÉ بخط Libre Bodoni بحجم 88 نقطة على أرضية سوداء دافئة، تحت تفصيل مؤطَّر من لوحة طواحين الهواء. يفتتح كل مدخل صفحة يسرى: رقم الكتالوج بلون السيبيا بجانب عنوان مائل، وبطاقة تعريف العمل في العمود الخارجي، ومقدمة بحرف استهلالي بارتفاع ثلاثة أسطر، ثم التعليق. تستشهد الجملة الأولى من التعليق باللوحة، فتفتتح اللوحة الصفحة اليمنى المقابلة، في الوسط ومصغَّرة حتى تملأ اللوحة وتعليقها وسطر الحقوق كتلة النص، بارتفاع 215 مم. والصفحة الأخيرة قائمة بالأعمال، في الخلية الأولى من كل صف منها صورة مصغّرة، ومعها الصفحة التي تُطبع فيها كل لوحة.

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

  • كيف أصمم كتالوج فني: المدخل في الصفحة اليسرى، واللوحة في الصفحة اليمنى المقابلة؟
  • كيف أتحكم في موضع الشكل: أعلى الصفحة، أو بعرض العمودين، أو هنا تمامًا، أو في الهامش؟
  • كيف أضع صورًا أو أيقونات داخل خلايا الجدول؟
  • كيف أضيف إلى صفحة الافتتاح سطر المؤلف أو مقدمة تمهيدية أو فقرة أولى بحرف استهلالي؟

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

script.js · الأسطر 38–60في الشيفرة الكاملة
// Each entry breaks to a verso and cites its plate in the commentary's first sentence; a 'top'
// float never lands on its citing page (gotcha: top-float-next-page), so it opens the recto.
const entryLevel = () => ({
  level: 1, span: 'page', numberingTemplate: '{1}', // {number} in the opener: Cat. 1, 2, 3
  breakBefore: { enabled: true, parity: 'even' }, // an entry opens a verso, facing its plate
  marginBottom: pt(LEAD), advancedDesign: entryOpener(),
  dropCap: { lines: 3, fontFamily: DISPLAY, color: col('sepia'), gap: mm(1.6) }, // the lead's
});
const plateType = {
  id: 'plate', name: 'Cat.', shortLabel: 'Cat.', captionPrefix: 'Cat.', // 'Cat. 1. …'
  numberingTemplate: '{n}', resetOn: 'never', counterFormat: 'decimal',
  // A plate taller than the recto's text block is scaled, proportions kept, until plate, caption
  // and credit line fit it; the caption takes the plate's width, and both are centred.
  defaultPlacement: { position: 'top', span: 'page', align: 'center',
    shrink: 'page', minScale: 0.5, captionMeasure: 'body' },
};
// Under the plate (pt): a caption and a credit line, and their gaps.
const CAPTION = { size: 8.5, gap: 6, note: 7.2, noteGap: 1.5 };
const plate = ({ id, file, caption, altText }, [pxW, pxH]) => ({
  id, typeId: 'plate', kind: 'bitmap', caption, note: CREDIT, altText,
  // The print master's pixels, about 283 dpi at this size (gotcha: bitmap-print-size).
  bitmap: { fileId: file, format: 'jpeg', width: pxW, height: pxH }, createdAt: 0, updatedAt: 0,
});

المكونات

الخطوط
Ibarra Real Nova, Libre Bodoni, Sofia Sans Condensed (SIL OFL 1.1)
الأصول
  • library-835.jpg
  • vigil-835.jpg
  • windmills-835.jpg
  • windmills-detail-540.jpg
  • Cat. 1, Don Quixote in His Library (Part I, ch. I), wood engraving by Héliodore Pisan after Gustave Doré, 1863; scan from Wikimedia Commons, reduced to 835 px wide (Gustave Doré · Héliodore Pisan, ملك عام)
  • Cat. 2, The Vigil of Arms (Part I, ch. III), wood engraving by Héliodore Pisan after Gustave Doré, 1863; scan from Wikimedia Commons, reduced to 835 px wide (Gustave Doré · Héliodore Pisan, ملك عام)
  • Cat. 3, The Adventure of the Windmills (Part I, ch. VIII), wood engraving by Héliodore Pisan after Gustave Doré, 1863; scan from Wikimedia Commons, reduced to 835 px wide (Gustave Doré · Héliodore Pisan, ملك عام)
  • The cover’s detail of Cat. 3: a 1,100-px square cut from the same scan and reduced to 540 px (Gustave Doré · Héliodore Pisan, ملك عام)

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

#1 · اللوحة تنتظر الصفحة المقابلة

الشيفرة في الجواب المختصر أعلاه. كل مدخل ينتقل إلى صفحة زوجية، والعنصر العائم top لا يستقر أبدًا في الصفحة التي تستشهد به، لذا تتخطى اللوحة المذكورة في الجملة الأولى من التعليق الصفحة الزوجية وتفتتح الصفحة الفردية المقابلة لها. يطلب defaultPlacement في نوع اللوحة shrink: 'page': فبكامل عرض النص يبلغ ارتفاع اللوحة 242 مم، أكثر مما تتسع له كتلة النص في الصفحة الفردية، فيصغّرها Postext مع حفظ نِسَبها حتى تتسع اللوحة وتعليقها وسطر الحقوق في الشريط الباقي فوق فسحة العنصر العائم (الموضع). يسمح minScale: 0.5 بأن تنزل اللوحة إلى نصف عرضها؛ وهنا تحتفظ كل لوحة بنحو تسعة أعشار عرضها. وينضّد captionMeasure: 'body' التعليق وسطر الحقوق بعرض اللوحة، ويوسّط align: 'center' الاثنين في الصفحة.

#2 · رأس المدخل يأتي من عنوانه

script.js · الأسطر 81–113في الشيفرة الكاملة
const [KICKER, NUMERAL] = [8.5, { size: 80, y: 7 }]; // pt: labels; the numeral, y in mm
const TITLE = { size: 30, lineHeight: 1.08 }; // pt; a multiple of the size
const HEAD_RULE = NUMERAL.y + NUMERAL.size * PT + 3; // mm: the hairline under the numeral
// mm: the lead, the entry's first paragraph, 5 mm under the hairline on the next grid line;
// the opener ends a line above it (the level's marginBottom), and the tombstone faces it.
const LEAD_Y = Math.ceil((HEAD_RULE + 5) / PT / LEAD) * LEAD * PT;
const [LEADIN, TOMB] = [{ size: 13.5, lead: 19 }, { size: 8.5, lead: 12.5 }]; // pt
const BASE = 0.8; // a line's first baseline stands 0.8 down its line box
// em: Libre Bodoni's capitals, and its figures, which stop short of them ('1': 0.716)
const [CAP_HEIGHT, FIGURE_HEIGHT] = [0.754, 0.716];
const inkTop = (size, lineHeight, height) => (BASE * lineHeight - height) * size; // pt to the ink
// The title's capitals level with the numeral's figures: 1.2 mm below the numeral's top.
const TITLE_Y = NUMERAL.y + (inkTop(NUMERAL.size, 1, FIGURE_HEIGHT)
  - inkTop(TITLE.size, TITLE.lineHeight, CAP_HEIGHT)) * PT;
// Entries open on versos, whose outer column is on the left: the side column is at x = 0.
const head = (label, numeral) => [
  text('label', label, LABEL, KICKER, 'sepia', at('container', 'top-left', 0, 0), caps(KICKER)),
  text('numeral', numeral, DISPLAY, NUMERAL.size, 'sepia',
    at('container', 'top-left', 0, NUMERAL.y, SIDE), { lineHeight: 1 }),
  text('title', '{titleText}', DISPLAY, TITLE.size, 'ink', at('container', 'top-left', MAIN_X,
    TITLE_Y, MAIN), { italic: true, lineHeight: TITLE.lineHeight }),
  { kind: 'rule', id: 'head-rule', direction: 'horizontal', thickness: pt(0.5), color: col('rule'),
    placement: at('container', 'top-left', 0, HEAD_RULE, 'fill') },
];
const entryOpener = () => ({ enabled: true, minHeight: mm(LEAD_Y - LEAD * PT),
  slot: { elements: [...head('Cat.', '{number}'),
  text('chapter', '{attr.chapter}', LABEL, KICKER, 'sepia',
    at('container', 'top-left', MAIN_X, 0, MAIN), caps(KICKER)),
  // Baseline on the lead's; the attribute's \n breaks give its three lines.
  text('tombstone', '{attr.tombstone}', LABEL, TOMB.size, 'muted',
    at('container', 'top-left', 0, LEAD_Y + BASE * (LEADIN.lead - TOMB.lead) * PT, SIDE - 6),
    { lineHeight: TOMB.lead / TOMB.size, reserve: false }), // beside the lead: no room of its own
] } });

يتضمّن كل عنوان # فصلَه وبطاقة تعريف العمل على هيئة سمات، وتتولى خانة التصميم في صفحة الافتتاح رسمهما. الرقم الكبير هو {number} الخاص بالعنوان نفسه، المأخوذ من numberingTemplate: '{1}'؛ ولأن لكل مدخل لوحة واحدة، يسير التسلسل 1 و2 و3 متوافقًا مع عدّاد Cat. للوحات. والمقدمة هي الفقرة الأولى من المدخل، داخل مجموعة :::paragraphs{style="lead"} بحجم 13.5 نقطة، ويفتتحها dropCap الخاص بالمستوى بحرف استهلالي بلون السيبيا ممتد على ثلاثة أسطر، يلتقي أعلاه بأعالي الحروف الكبيرة في السطر الأول ويستقر أسفله على خط الأساس الثالث، ويُقاس ارتفاع الحروف الكبيرة في الحالتين من الخطوط نفسها (الحروف الاستهلالية). وتُنضَّد المقدمة بحافة حرّة: لو ضُبطت بهذا المقاس لاتسعت المسافات في أسطرها القليلة الكلمات فوق حدّ 1.5× المعتمد في التعليق. وتُنهي minHeight صفحة الافتتاح قبل LEAD_Y بسطر، وهو سطر الشبكة الذي تبدأ عليه المقدمة، وتقابل بطاقة تعريف العمل السطر الأول من المقدمة دون أن تأخذ حيزًا خاصًا بها (reserve: false)، ويبدأ التعليق بعد :::space تحت المقدمة بلا إزاحة، أخفض بسطر. ويضع TITLE_Y العنوان أخفض من الرقم بمقدار 1.2 مم، فتصطف حروفه الكبيرة مع أرقامه: في Libre Bodoni يبلغ ارتفاع الأرقام 0.716 em وارتفاع الحروف الكبيرة 0.754 em.

#3 · صرّح بالنسخة الأصلية وارسم نسخة أصغر

script.js · الأسطر 316–333في الشيفرة الكاملة
// plate() sizes each plate from its master, the Commons scan at 2,400 px tall (MASTER_PX);
// the canvas draws the registered 835-px copy (the block's width on a 1,000-px page) in that box.
async function scan(file) {
  const res = await fetch(asset(file));
  if (!res.ok) throw new Error(`Scan not found (${res.status}): ${file}`);
  return createImageBitmap(await res.blob());
}
async function loadPlates() {
  const [detail, ...scans] = await Promise.all([DETAIL, ...PLATES.map((p) => p.file)].map(scan));
  const resources = [checklist(PLATES), picture('cover-detail', onPaper(detail),
    'Detail of Cat. 3: the knight and his horse caught on the sail.')];
  for (const [i, p] of PLATES.entries()) {
    registerResourceImage(p.file, onPaper(scans[i]));
    resources.push(plate(p, MASTER_PX[p.id]), // and a thumbnail: its own small file and size
      picture(`${p.id}-thumb`, onPaper(await resized(scans[i], THUMB_PX)), p.altText));
  }
  return resources;
}

يحدّد Postext حجم الصورة النقطية من عدد البكسلات المصرَّح به، بدقة المستند، ولا يطبعها أعرض مما تسمح به تلك البكسلات. تصرّح plate() بالنسخة الأصلية لكل لوحة، أي مسح Commons مصغّرًا إلى ارتفاع 2,400 بكسل: 1,900 × 2,400 بكسل للوحة Cat. 1، وهي نسخة تستطيع أن تبلغ 322 مم عند page.dpi: 150. لذلك فكتلة النص هي التي تحدد المقاس، 215 مم ارتفاعًا، وعند هذا الارتفاع تعادل 2,400 بكسل نحو 283 نقطة في البوصة. أما عند الدقة الافتراضية، 300 نقطة في البوصة، فكانت اللوحة ستتوقف عند عرض 161 مم. ويرسم Canvas داخل ذلك الإطار أي صورة سُجّلت له، لذا يجلب المثال النسخ الثلاث ذات 835 بكسل من assets/، وحجمها 0.97 ميغابايت مقابل 5.8 ميغابايت للنسخ الأصلية. ولو رُسمت اللوحات من النسخ الأصلية ذات 2,400 بكسل لامتلأت السماوات بأشرطة التموّج (moiré)، ولزاد حجم صور الالتقاط بنحو 0.3 ميغابايت، متجاوزًا حدّ 1.4 ميغابايت في دليل الوصفات.

#4 · غلاف من نمط عنوان

script.js · الأسطر 117–141في الشيفرة الكاملة
const DETAIL = 'windmills-detail-540.jpg'; // a square cut from Cat. 3, at its size on screen
const FRAME = { w: 124, y: 40, pad: 3.5 }; // mm: the picture, its top, the hairline's inset
const FRAME_X = (TRIM.w - FRAME.w) / 2;
const NAME = { size: 88, track: 8, y: 176 }; // pt, pt, mm
const centred = (id, content, family, size, color, y, more) => text(id, content, family,
  size, color, at('page', 'top', 0, y, 'fill'), { align: 'center', ...more });
const coverStyle = () => ({
  id: 'cover', numbered: false, header: { elements: [] }, footer: { elements: [] },
  advancedDesign: { enabled: true, slot: { elements: [ // painted in this order
    { kind: 'box', id: 'night', style: { backgroundColor: col('night') },
      placement: { ...at('bleed', 'top-left', 0, 0), size: { width: 'fill', height: 'fill' } } },
    { kind: 'box', id: 'frame', style: { borderColor: col('gilt'), borderWidth: pt(0.5) },
      placement: { ...at('page', 'top-left', FRAME_X - FRAME.pad, FRAME.y - FRAME.pad),
        size: { width: mm(FRAME.w + 2 * FRAME.pad), height: mm(FRAME.w + 2 * FRAME.pad) } } },
    { kind: 'image', id: 'detail', resourceId: 'cover-detail',
      placement: at('page', 'top-left', FRAME_X, FRAME.y, FRAME.w) },
    centred('kicker', '{attr.kicker}', LABEL, 8.5, 'gilt', 18, caps(8.5)),
    // Tracked capitals centre on their letters: the tracking after the É is left out.
    centred('name', '{titleText}', DISPLAY, NAME.size, 'paper', NAME.y, { lineHeight: 1,
      textTransform: 'uppercase', letterSpacing: pt(NAME.track) }),
    centred('subtitle', '{attr.subtitle}', DISPLAY, 18, 'paper', NAME.y + NAME.size * PT + 4,
      { italic: true }),
    centred('foot', '{attr.foot}', LABEL, 8.5, 'gilt', 250, caps(8.5)),
  ] } },
});

الغلاف هو العنوان الأول، # Doré {style="cover" …}، يرسمه نمط بلا أرقام صفحات. عنصر الصورة فيه يرسم windmills-detail-540.jpg، المسجّل موردًا لا تستشهد به أي فقرة، فلا يأخذ رقمًا ولا تعليقًا. الملف مربع بعرض 1,100 بكسل مقتطع من مسح طواحين الهواء ومصغّر إلى 540 بكسل، وهو عرضه على صفحة عرضها 1,000 بكسل. للاسم تباعد حروف قدره 8 نقاط، ولا يدخل التباعد الذي يلي الحرف الأخير في حساب التوسيط، فتستقر الحروف الأربعة على خط منتصف الصفحة بلا أي إزاحة.

#5 · صور مصغّرة في خلايا قائمة الأعمال

script.js · الأسطر 145–167في الشيفرة الكاملة
const THUMB_PX = 300; // px wide: 25 mm at 300 dpi, about the width the cell prints it
// The entries' head, label and numeral from attributes; the level gives span, break and margin.
const checklistStyle = () => ({ id: 'checklist', numbered: false, dropCap: false, // no initial
  advancedDesign: { enabled: true, slot: { elements: head('{attr.kicker}', '{attr.range}') } } });
const cell = (content, more) => ({ content, verticalAlign: 'middle', ...more });
const checklist = (plates) => ({
  id: 'checklist', typeId: 'list', kind: 'table', placement: { position: 'here' },
  altText: 'Checklist of the three works with thumbnails, titles, chapters and pages.',
  table: { model: { headerRowCount: 1, columnWidths: [26, 9, 70, 11], rows: [
    ['', 'Cat.', 'Work and chapter', 'Page'].map((label, i) =>
      cell(label, { isHeader: true, align: i === 3 ? 'right' : 'left' })),
    ...plates.map((p, i) => [
      { content: '', image: { resourceId: `${p.id}-thumb` } },
      cell(String(i + 1)), cell(`*${p.caption}*. ${p.illustrates}`),
      cell(String(platePage(i + 1)), { align: 'right' }),
    ]),
  ] } },
  createdAt: 0, updatedAt: 0,
});
// The cover is page 1 and entry n opens page 2n, so its plate prints on page 2n + 1.
const platePage = (n) => 2 * n + 1;
const listType = { id: 'list', name: 'List', shortLabel: 'List', captionPrefix: '', // no caption
  numberingTemplate: '{n}', resetOn: 'never', counterFormat: 'decimal' };

تُلائم image في الخلية صورةً نقطية من الموارد مع العرض الداخلي للخلية، 23 مم هنا. لكل صورة مصغّرة نسختها الخاصة بعرض 300 بكسل، مصرَّح بها بهذا المقاس، بدلًا من تصغير اللوحة ذات 835 بكسل عند الرسم. ليس للجدول نص تعليق، ولنوعه بادئة تعليق فارغة، فلا يُرسم أي تعليق. لا يضبط نمط قائمة الأعمال إلا numbered: false وتصميمه، ويأخذ من المستوى 1 امتداده على الصفحة والانتقال إلى صفحة زوجية والهامش السفلي.

#6 · أوقف البناء حين يتجاوز مدخلٌ صفحته

script.js · الأسطر 349–354في الشيفرة الكاملة
const astray = doc.pages.find((pg) => pg.role !== 'opener' && !pg.floats?.length);
if (astray) { // text run past its verso, or the blank page that follows it
  const error = new Error(`Page ${astray.pageLabel} holds no plate: shorten the entry before it.`);
  kitFail(error); // the viewer's bar says why
  throw error;
}

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

الوصفة كاملة

Sandbox
// ═══ Postext Cookbook · Nº 034 · Catalogue entries facing their plates ══════════════
// https://postext.dev/en/cookbook/catalogue-facing-plates
// Code: MIT · Text: original (CC BY 4.0), Ormsby 1885 (PD) · Plates: Doré and Pisan, 1863 (PD)
// Fonts: Ibarra Real Nova, Libre Bodoni, Sofia Sans Condensed (OFL 1.1) · Needs postext ≥ 1.25.0
import {
  buildDocumentWithFonts, prepareFonts, renderPageToCanvas, registerResourceImage,
} from 'https://esm.sh/postext';

const LANG = 'en'; // @lang: the language of the sample document ('en')
const RECIPE = 'catalogue-facing-plates';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
const palette = {
  ink: '#1b1918', paper: '#faf7f1', night: '#2a2724', // text; the page and plates; the cover
  sepia: '#8a6a45', gilt: '#c9ad86', // the accent on paper (4.6:1) and on the night (6.9:1)
  rule: '#cfc6b8', muted: '#6c665e', // hairlines; tombstones, credit lines, folios
};
// col(id): a colour linked to its palette entry, with the entry's hex beside the id.
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: 'sepia (defaults)', value: { hex: palette.sepia, model: 'hex' } },
];
const [TEXT, DISPLAY, LABEL] = ['Ibarra Real Nova', 'Libre Bodoni', 'Sofia Sans Condensed'];
const PT = 25.4 / 72; // mm per point
const [SIZE, LEAD, LINES] = [11.5, 16, 41]; // body pt, leading pt; 41 lines make the text block
const TRIM = { w: 230, h: 280 }; // mm: a catalogue trim
const [TOP, INNER, OUTER] = [24, 20, 18]; // margins, mm
const BLOCK_W = TRIM.w - INNER - OUTER; // 192 mm: the text block, and the widest plate
const BLOCK_H = LINES * LEAD * PT; // 231.4 mm
const [SIDE_PC, GUTTER] = [34, 7]; // the outer column: 65.3 mm for numeral and tombstone; mm
const SIDE = (BLOCK_W * SIDE_PC) / 100;
const MAIN_X = SIDE + GUTTER; // mm from the block's outer edge to the text column
const MAIN = BLOCK_W - MAIN_X; // 119.7 mm: the measure, about 71 characters

// #region answer: a Plate type that floats to the head of the facing recto, sized to fill it
// Each entry breaks to a verso and cites its plate in the commentary's first sentence; a 'top'
// float never lands on its citing page (gotcha: top-float-next-page), so it opens the recto.
const entryLevel = () => ({
  level: 1, span: 'page', numberingTemplate: '{1}', // {number} in the opener: Cat. 1, 2, 3
  breakBefore: { enabled: true, parity: 'even' }, // an entry opens a verso, facing its plate
  marginBottom: pt(LEAD), advancedDesign: entryOpener(),
  dropCap: { lines: 3, fontFamily: DISPLAY, color: col('sepia'), gap: mm(1.6) }, // the lead's
});
const plateType = {
  id: 'plate', name: 'Cat.', shortLabel: 'Cat.', captionPrefix: 'Cat.', // 'Cat. 1. …'
  numberingTemplate: '{n}', resetOn: 'never', counterFormat: 'decimal',

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

تنويعات

#اترك فراغًا تحت اللوحات

نسبة العرض تضيّق العنصر العائم نفسه: عند 78 % من عرض كتلة النص يبلغ ارتفاع كل لوحة نحو 188 مم في الوسط، ويبقى تحت سطر الحقوق نحو 27 مم فارغة من كتلة النص، ولا تحتاج أي لوحة إلى التصغير.

-  defaultPlacement: { position: 'top', span: 'page', align: 'center',
-    shrink: 'page', minScale: 0.5, captionMeasure: 'body' },
+  defaultPlacement: { position: 'top', span: 'page', align: 'center', width: 0.78 },

#ضع الأشكال في العمود الخارجي

للأشكال والحواشي الجانبية التي تتراكم في عمود خارجي مخصّص للعناصر العائمة بجانب الفقرة التي تستشهد بها، انظر الكتاب المدرسي ذا عمود الهامش.

أخطاء شائعة

خطأ شائع

العنصر العائم 'top' يذهب إلى الصفحة التالية لإحالته ما لم يُسمح له بتصدر صفحة الإحالة

افتراضيًا لا يصعد العنصر العائم أبدًا فوق الإحالة إليه، فالعنصر العائم 'top' الممتد بعرض الصفحة والمُحال إليه في الصفحة N يفتتح الصفحة N+1. اضبط placement.citingPage: true على المورد أو على defaultPlacement لنوعه (أو layout.floatsAtCitingPage للكتاب كله، منذ postext 1.25) فيتصدر الصفحة N بدلًا من ذلك، وينزل النص الذي فوق الإحالة تحته، إذا اتسع له المكان في حدود layout.maxTopFraction وبقي سطر الإحالة في تلك الصفحة. ولا يتصدر أبدًا الصفحة الأولى من فصل ولا صفحة بعد فاصل قسري: فهناك يظل يفتتح الصفحة التالية، ويمكن للموضع 'auto' أو 'bottom' أن يشغل أسفل صفحة الإحالة. موضع الأشكال →

خطأ شائع

الصور النقطية تأخذ مقاس طباعتها من دقتها: صرّح بالدقة لا ببكسلات محسوبة للطباعة

الصورة النقطية بلا دقة تُوضع ببكسل لكل بكسل تخطيط بدقة dpi المستند، فصورة من 2400 px عرضها 406 mm في صفحة 150 dpi. صرّح ببكسلات الملف الحقيقية وأعطِ الصورة دقتها (bitmap.resolution: 300)، أو اضبط layout.bitmapResolution لكل الصور النقطية: قيمة ppi، أو 'file' لقراءة الدقة التي يذكرها الملف. يظل العمود يحدّ الصورة. الأشكال والجداول بوصفها موارد →

فحص Sandbox · bitmapTooSmall

صورة منخفضة الدقة

السبب. صورة نقطية تُرسم بعرض يزيد على 1.5 ضعف عدد نقاطها، فستبدو ضبابية في الطباعة.

الحل. وفّر نحو 300 dpi بالحجم المطبوع، وصرّح بالعرض والارتفاع الحقيقيين للصورة النقطية. التوثيق →

الحقوق

الوصفة
Ignacio Ferro
النص
الصور
الخطوط
Ibarra Real Nova (SIL OFL 1.1) · Libre Bodoni (SIL OFL 1.1) · Sofia Sans Condensed (SIL OFL 1.1)
الشيفرة
MIT، مثل Postext
Sandbox