Zum Hauptinhalt springen
Rezept Nummer 198

Rezepte · Kapitel 10 · Ausgabe und Integration

Ein Band einer Reihe, die Reihe auf seinen Vorsätzen

Band XI einer gebundenen Reihe in zwölf Bänden: zwei ISBN am Strichcode, eine Einbanddecke für alle Bände und die ganze Reihe auf den Vorsätzen.

Auf dieser Seite
Ausgabe
Canvas · PDF
Postext
Getestet mit Postext 1.92.0
Erfordert ≥ 1.92.0 · postext-pdf ≥ 1.92.0
Lizenz
Aktualisiert am 23. Nov. 2026
Code MIT · Text CC BY 4.0

S. 1 · 27 von 29

  • Englisches Beispiel: noch keine deutsche Ausgabe
  • Endformat 120 × 185 mm
  • 1 Spalte
  • Crimson Pro 11/15,2
  • Cormorant Garamond
  • Josefin Sans
  • 29 Seiten
  • Stufe
  • Postext 1.92.0
  • In 110 ms gesetzt
  • 238 Zeilen Code

Kurz gesagt

Ein gebundenes Buch aus einer Reihe von zwölf, mit seinen Bogen für die Druckerei: die Einbanddecke in den Farben der Reihe mit der Bandnummer und die beiden Vorsätze im Inneren, auf denen die Umschläge und Titel aller zwölf Bücher stehen.

Was Sie setzen

Die betrügerische Heirat, die elfte der zwölf Exemplarischen Novellen von Cervantes, als Band XI einer Reihe, die jede Novelle in einem eigenen gebundenen Band bringt. Die 26 Seiten stehen in Crimson Pro 11/15,2 auf einer Seite von 120 × 185 mm. Daraus macht buildCover drei Bogen für den Buchbinder: die bedruckte Einbanddecke im Ochsenblutrot der Reihe, mit goldenem Rahmen um das Gemälde und der Bandnummer in einem goldenen Ring, und den vorderen und hinteren Vorsatz, die sich die Reihe teilen: Die Bände I bis VI eröffnen das Buch, VII bis XII schließen es, jede Hälfte als Gemälde auf dem Spiegel und als nummerierte Liste auf dem fliegenden Blatt. Neben dem Strichcode, der die ISBN des Bandes trägt, druckt die Decke die ISBN des Gesamtwerks.

Dieses Rezept beantwortet

  • Wie drucke ich einen Band einer Reihe mit der Gesamt-ISBN und den übrigen Titeln auf den Vorsätzen?

Die kurze Antwort

script.js · Zeilen 30–58im vollständigen Code
// The collection is data of the book, beside its versions. The volume's barcode carries its
// own ISBN, and the collection's `isbn` prints as a line above the bars. `catalogue` lists
// the twelve titles with their cover pictures, and `volume` names the one this book is: the
// endpapers set the list and the pictures from it (section 4), this volume marked in both.
const collection = {
  name: t({ en: 'Exemplary Novels', es: 'Novelas ejemplares' }),
  isbn: '978-84-0000-200-8',
  catalogue: [
    work('The Little Gipsy Girl', 'La gitanilla', 'gitanilla'),
    work('The Generous Lover', 'El amante liberal', 'amante'),
    work('Rinconete and Cortadillo', 'Rinconete y Cortadillo', 'rinconete'),
    work('The Spanish-English Lady', 'La española inglesa', 'espanola'),
    work('The Licentiate Vidriera', 'El licenciado Vidriera', 'vidriera'),
    work('The Force of Blood', 'La fuerza de la sangre', 'fuerza'),
    work('The Jealous Estremaduran', 'El celoso extremeño', 'celoso'),
    work('The Illustrious Scullery-Maid', 'La ilustre fregona', 'fregona'),
    work('The Two Damsels', 'Las dos doncellas', 'doncellas'),
    work('The Lady Cornelia', 'La señora Cornelia', 'cornelia'),
    work('The Deceitful Marriage', 'El casamiento engañoso', 'casamiento'),
    work('The Dialogue of the Dogs', 'El coloquio de los perros', 'coloquio'),
  ],
};
collection.volume = collection.catalogue[VOLUME - 1].id;
const production = {
  collection,
  // A printed case with a flat spine: the case sheet and two endpapers, no jacket.
  versions: [{ id: 'hardcover', name: t({ en: 'Hardcover', es: 'Tapa dura' }),
    binding: 'case-flat', isbn: '978-84-0000-198-8', isbnAddOn: '90000' }],
};

Zutaten

Schrift
Crimson Pro, Cormorant Garamond, Josefin Sans (SIL OFL 1.1)
Dateien
  • amante-320.jpg
  • casamiento-1000.jpg
  • casamiento-320.jpg
  • celoso-320.jpg
  • coloquio-320.jpg
  • cornelia-320.jpg
  • doncellas-320.jpg
  • espanola-320.jpg
  • fregona-320.jpg
  • fuerza-320.jpg
  • gitanilla-320.jpg
  • rinconete-320.jpg
  • vidriera-320.jpg
  • The front cover: a pale ensign leaning on his sword at the gate of the hospital of Valladolid, in oils (Generated With Diffusion Models, eigener Text)
  • The cover painting of volume 1, The Little Gipsy Girl, on the endpapers, painted to match the front cover (Generated With Diffusion Models, eigener Text)
  • The cover painting of volume 2, The Generous Lover, on the endpapers, painted to match the front cover (Generated With Diffusion Models, eigener Text)
  • The cover painting of volume 3, Rinconete and Cortadillo, on the endpapers, painted to match the front cover (Generated With Diffusion Models, eigener Text)
  • The cover painting of volume 4, The Spanish-English Lady, on the endpapers, painted to match the front cover (Generated With Diffusion Models, eigener Text)
  • The cover painting of volume 5, The Licentiate Vidriera, on the endpapers, painted to match the front cover (Generated With Diffusion Models, eigener Text)
  • The cover painting of volume 6, The Force of Blood, on the endpapers, painted to match the front cover (Generated With Diffusion Models, eigener Text)
  • The cover painting of volume 7, The Jealous Estremaduran, on the endpapers, painted to match the front cover (Generated With Diffusion Models, eigener Text)
  • The cover painting of volume 8, The Illustrious Scullery-Maid, on the endpapers, painted to match the front cover (Generated With Diffusion Models, eigener Text)
  • The cover painting of volume 9, The Two Damsels, on the endpapers, painted to match the front cover (Generated With Diffusion Models, eigener Text)
  • The cover painting of volume 10, The Lady Cornelia, on the endpapers, painted to match the front cover (Generated With Diffusion Models, eigener Text)
  • The cover painting of volume 11, The Deceitful Marriage, on the endpapers, painted to match the front cover (Generated With Diffusion Models, eigener Text)
  • The cover painting of volume 12, The Dialogue of the Dogs, on the endpapers, painted to match the front cover (Generated With Diffusion Models, eigener Text)

Zubereitung

#1 · Die Reihe gehört zu den Daten des Buches

Der Code ist die oben stehende kurze Antwort. production.collection hält die Reihe: ihren Namen, ihre ISBN, einen catalogue mit Kennung, Titel und Bild für jeden Band und volume, die Kennung des Eintrags, der dieses Buch ist. Die isbn der Reihe druckt Postext neben dem Strichcode: eine schwarze Zeile in 6,5 pt über den Balken, „ISBN Gesamtwerk“, in der Sprache des Buches. Nennt die Ausgabe eine eigene workIsbn, wird diese gedruckt. Beide ISBN sind Beispielnummern aus dem Block 978-84-0000 und gehören zu keinem Buch. Die Prüfungen der Konfiguration melden ein volume, das nicht im Katalog steht, und eine Reihen-ISBN mit falscher Prüfziffer.

#2 · Eine Ausstattung für jeden Band

script.js · Zeilen 63–80im vollständigen Code
// Every position is in mm from the top-left corner of its zone (the case's front is
// 116 × 191 mm: the 120 × 185 trim, set back 7 mm at the joint, 3 mm square round it).
const box = (id, zone, x, y, width, height, color, extra) => ({ id, kind: 'box', zone, x, y,
  width, height, color: col(color), ...extra });
const picture = (id, zone, x, y, width, height, resourceId, extra) => ({ id, kind: 'image', zone,
  x, y, width, height, resourceId, fit: 'cover', ...extra });
// `basis`: the spine drawn on; a thicker book stretches the bands and keeps the badge centred.
const spine = { basis: { width: 10, height: 191 } };
const livery = [
  box('frame', 'front', 11.2, 59.2, 93.6, 105.6, 'gold'),
  picture('art', 'front', 12, 60, 92, 104, 'cover-art'),
  picture('badge', 'front', 51.5, 169, 13, 13, 'badge', { fit: 'contain' }),
  box('head-band', 'spine', 0, 13, 10, 0.8, 'gold', spine),
  box('foot-band', 'spine', 0, 160, 10, 0.8, 'gold', spine),
  picture('spine-badge', 'spine', 1, 167, 8, 8, 'badge', { fit: 'contain', ...spine }),
  // A paper label for the barcode, whose caption is set in black.
  box('label', 'back', 53, 147, 61, 40, 'bone'),
];

Die Gestaltung der Decke ist in jedem Band der Reihe dasselbe Objekt; nur VOLUME, das Gemälde und die Texte ändern sich. Jedes Element sitzt relativ zu seiner Zone: Hat ein anderer Band mehr Seiten und einen dickeren Rücken, wandert die Vorderseite mit ihrem Feld. Auf dem Rücken hält basis die 10 mm Rückenbreite fest, für die die Bänder gezeichnet wurden; ein Rücken von 8,3 mm oder 14 mm dehnt die Bänder auf seine Breite und hält den Ring auf der Mittelachse. Die Zeile über dem Strichcode steht in Schwarz, deshalb liegt der Strichcode auf einem hellen Etikett.

#3 · Jeder Vorsatz hat eine eigene Gestaltung

script.js · Zeilen 84–99im vollständigen Code
// The case takes the livery; each endpaper names a design in `sheets`. At the front the
// pastedown is the left page, at the back the right one: volumes I–VI open the book,
// VII–XII close it, the pictures always on the pastedown, in the case's colour. A catalogue
// element grids the titles' pictures in its box; `stroke` outlines this volume's.
const shelf = (first, last) => ({ id: `shelf-${first}`, kind: 'catalogue', zone: 'pastedown',
  x: 26.5, y: 18, width: 67, height: 149, columns: 2, gap: 7, first, last,
  stroke: { color: col('gold'), width: 0.8 } });
const endpaper = (first, last) => ({ background: col('endpaper'),
  zones: { pastedown: col('case') }, elements: [shelf(first, last)],
  verticalAlign: { flyleaf: 'middle' } });
const cover = {
  background: col('case'),
  elements: livery,
  verticalAlign: { back: 'top' },
  sheets: { endpaperFront: endpaper(1, 6), endpaperBack: endpaper(7, 12) },
};

cover.sheets gibt einem Bogen eine Gestaltung, die die des Umschlags ersetzt: hier endpaperFront und endpaperBack, jede mit ihrem Grund, der Spiegel in der Farbe der Decke, und einem catalogue-Element. Das Element ist ein Kasten in einer Zone, den die Engine mit den Bildern der Titel von first bis last füllt, in columns Spalten mit gap mm Abstand, jedes Bild füllt seine Zelle. Der Titel, dessen Kennung collection.volume ist, wird mit dem stroke des Elements umrandet; auf diesen Vorsätzen ist das der goldene Rahmen um Band XI. Die Ausstattung der Decke kommt nicht auf die Vorsätze, denn jeder Bogen zeichnet nur seine eigene Gestaltung. Vorn im Buch ist der Spiegel die linke Seite, hinten die rechte, so liegen die Gemälde immer auf der Pappe.

Die Titel kommen aus dem Umschlag-Markdown, das allen Bogen dient. Ein Rahmen, der seine Bogen nennt, steht nur auf diesen:

:::frame{slot="flyleaf" sheet="endpaperBack"}
:::paragraphs{style="ad-head"}
Exemplary Novels
:::
 
::catalogue{numbers="I" first=7 last=12}
:::

::catalogue steht für die Titel des Katalogs, je ein Absatz: die Stelle in der Zählweise, die numbers nennt, ein Halbgeviert-Leerraum und der Titel. Die Zeilen bekommen die Absatzvorlage cover-catalogue, die dieses Bandes cover-catalogue-current; der Code definiert beide neu, zentriert in Crimson Pro, den aktuellen in Dunkelrot. Der Rahmen der Rückseite nennt case jacket, die Vorsätze lassen ihn also weg.

#4 · Drei Bogen aus einem Buch

script.js · Zeilen 421–432im vollständigen Code
const sheet = async (kind) => {
  const built = buildCover({ config, version: 'hardcover', pages: book.pages,
    markdown: coverText, metadata: book.metadata, resources, sheet: kind });
  if (!('config' in built)) throw new Error(built.issues.map((i) => i.kind).join(', '));
  // The barcode's digits name OCR-B, which no font server has: the label face sets them.
  for (const [id, bytes] of Object.entries(built.files)) {
    await loadSvg(id, new TextDecoder().decode(bytes)
      .replace(/font-family="[^"]*"/g, 'font-family="Josefin Sans"'));
  }
  return { built, doc: await buildDocumentWithFonts(built.content, built.config, kitFonts(FONTS)) };
};
const sheets = [await sheet('cover'), await sheet('endpaperFront'), await sheet('endpaperBack')];

Derselbe Aufruf mit sheet: 'cover', 'endpaperFront' und 'endpaperBack' erzeugt die Decke und die beiden Vorsätze, jeweils ein einseitiges Dokument in eigener Größe. Die 26 Seiten werden auf zwei Lagen zu 16 Seiten aufgerundet, 16 Blatt zu 240 µm; mit 0,5 mm Zugabe ist der Buchblock 4,3 mm dick und der Rücken der Decke 8,3 mm, zwei Pappen zu 2 mm eingerechnet. Die Rückenbeschriftung wird am Rücken der Decke gemessen, der über dem Minimum von 6 mm liegt. Das PDF enthält die 26 Seiten, danach die Decke und die Vorsätze.

Das ganze Rezept

Sandbox
// ═══ Postext Cookbook · Nº 198 · A volume of a collection, its endpapers the series ═══
// https://postext.dev/en/cookbook/collection-volume-endpapers
// Code: MIT · Text: Cervantes, tr. W. K. Kelly (public domain) · Art: diffusion models
// Fonts: Crimson Pro, Cormorant Garamond, Josefin Sans (SIL OFL 1.1) · Needs postext ≥ 1.92.0
//
// Volume XI of the twelve Exemplary Novels, one novella per hardcover: the series livery on
// the case, two ISBNs by the barcode, the twelve titles of the collection on the endpapers.
import {
  buildDocumentWithFonts, renderPageToCanvas, registerResourceImage, inlineSvgFonts,
} from 'https://esm.sh/postext';
import { buildCover, workIsbnCaption } from 'https://esm.sh/postext/production';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';

const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'collection-volume-endpapers';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
const palette = { ink: '#2a211c', accent: '#7a2a22', muted: '#6c6258', paper: '#fbf7ee',
  case: '#5e1c1a', gold: '#d2ae6a', bone: '#f1e8d4', endpaper: '#ece0c6' };
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.accent, model: 'hex' } },
];
const VOLUME = 11; // this book's place in the collection
const roman = (n) => 'I II III IV V VI VII VIII IX X XI XII'.split(' ')[n - 1];
const work = (en, es, id) => ({ id, title: t({ en, es }), resource: `cat-${id}` });

// #region answer: the volume and its collection: two ISBNs and the series' catalogue
// The collection is data of the book, beside its versions. The volume's barcode carries its
// own ISBN, and the collection's `isbn` prints as a line above the bars. `catalogue` lists
// the twelve titles with their cover pictures, and `volume` names the one this book is: the
// endpapers set the list and the pictures from it (section 4), this volume marked in both.
const collection = {
  name: t({ en: 'Exemplary Novels', es: 'Novelas ejemplares' }),
  isbn: '978-84-0000-200-8',
  catalogue: [
    work('The Little Gipsy Girl', 'La gitanilla', 'gitanilla'),
    work('The Generous Lover', 'El amante liberal', 'amante'),
    work('Rinconete and Cortadillo', 'Rinconete y Cortadillo', 'rinconete'),
    work('The Spanish-English Lady', 'La española inglesa', 'espanola'),
    work('The Licentiate Vidriera', 'El licenciado Vidriera', 'vidriera'),
    work('The Force of Blood', 'La fuerza de la sangre', 'fuerza'),
    work('The Jealous Estremaduran', 'El celoso extremeño', 'celoso'),
    work('The Illustrious Scullery-Maid', 'La ilustre fregona', 'fregona'),
    work('The Two Damsels', 'Las dos doncellas', 'doncellas'),
    work('The Lady Cornelia', 'La señora Cornelia', 'cornelia'),
    work('The Deceitful Marriage', 'El casamiento engañoso', 'casamiento'),

Das zusammengesetzte script.js läuft unverändert: Fügen Sie es in das Modulskript einer beliebigen Seite ein, oder öffnen Sie das Rezept auf CodePen. Ordner des Rezepts auf GitHub ↗ (öffnet sich in einem neuen Tab)

Varianten

#Die Decke mit einem Schutzumschlag

Bei einer Einbanddecke fügt flaps einen Schutzumschlag hinzu, einen vierten Bogen mit eigenen Klappen. Strichcode und Gesamt-ISBN wandern auf seine Rückseite, und der Klappentext, dessen Rahmen jacket nennt, geht mit.

   versions: [{ id: 'hardcover', name: t({ en: 'Hardcover', es: 'Tapa dura' }),
-    binding: 'case-flat', isbn: '978-84-0000-198-8', isbnAddOn: '90000' }],
+    binding: 'case-flat', isbn: '978-84-0000-198-8', isbnAddOn: '90000', flaps: true }],

#Den nächsten Band setzen

Für Band XII bleibt die Gestaltung, wie sie ist: VOLUME nennt den Katalogeintrag in collection.volume, und Ring, goldener Rahmen auf den Vorsätzen und hervorgehobener Titel folgen ihm. Umschlag-Markdown, Gemälde und ISBN sind die jenes Bandes.

-const VOLUME = 11; // this book's place in the collection
+const VOLUME = 12; // this book's place in the collection

Häufige Fehler

  • Die Bogen kommen in der erfassten Liste nach den Seiten des Buches: Die Decke ist Seite 27, die Seitenzahl des Buches plus eins. Eine Änderung, die dem Buch eine Seite hinzufügt, verschiebt sie.
  • Die Prüfung contentInConfig des Kochbuchs hält die Zeile, die buildCover über den Strichcode druckt, für Text in einer Gestaltung. Der Code trägt sie in checks.contentInConfig.allow ein, im Wortlaut von workIsbnCaption, der Funktion, die auch die Engine verwendet.
  • Ein catalogue-Element zeichnet nur die Bilder. Die Titelliste ist das ::catalogue im Markdown; ein Bogen ohne diese Zeile zeigt die Gemälde ohne Namen darunter.
  • Die Ziffern des Strichcodes verlangen OCR-B, das kein Schriftserver anbietet. Laden Sie den Strichcode mit einer font-family, die der Code ohnehin lädt, sonst scheitert das PDF.

Nachweise

Text
  • The Deceitful Marriage, translated by Walter K. Kelly, from The Exemplary Novels of Cervantes (London, Bohn’s Standard Library, 1846; 1881 reprint), Project Gutenberg eBook #14420 · Miguel de Cervantes · gemeinfrei
  • El casamiento engañoso, from the Novelas ejemplares in the 1825 edition as transcribed on Wikisource · Miguel de Cervantes · gemeinfrei
Bilder
  • The front cover: a pale ensign leaning on his sword at the gate of the hospital of Valladolid, in oils · Generated With Diffusion Models · eigener Text
  • The cover painting of volume 1, The Little Gipsy Girl, on the endpapers, painted to match the front cover · Generated With Diffusion Models · eigener Text
  • The cover painting of volume 2, The Generous Lover, on the endpapers, painted to match the front cover · Generated With Diffusion Models · eigener Text
  • The cover painting of volume 3, Rinconete and Cortadillo, on the endpapers, painted to match the front cover · Generated With Diffusion Models · eigener Text
  • The cover painting of volume 4, The Spanish-English Lady, on the endpapers, painted to match the front cover · Generated With Diffusion Models · eigener Text
  • The cover painting of volume 5, The Licentiate Vidriera, on the endpapers, painted to match the front cover · Generated With Diffusion Models · eigener Text
  • The cover painting of volume 6, The Force of Blood, on the endpapers, painted to match the front cover · Generated With Diffusion Models · eigener Text
  • The cover painting of volume 7, The Jealous Estremaduran, on the endpapers, painted to match the front cover · Generated With Diffusion Models · eigener Text
  • The cover painting of volume 8, The Illustrious Scullery-Maid, on the endpapers, painted to match the front cover · Generated With Diffusion Models · eigener Text
  • The cover painting of volume 9, The Two Damsels, on the endpapers, painted to match the front cover · Generated With Diffusion Models · eigener Text
  • The cover painting of volume 10, The Lady Cornelia, on the endpapers, painted to match the front cover · Generated With Diffusion Models · eigener Text
  • The cover painting of volume 11, The Deceitful Marriage, on the endpapers, painted to match the front cover · Generated With Diffusion Models · eigener Text
  • The cover painting of volume 12, The Dialogue of the Dogs, on the endpapers, painted to match the front cover · Generated With Diffusion Models · eigener Text
Schriften
Crimson Pro (SIL OFL 1.1) · Cormorant Garamond (SIL OFL 1.1) · Josefin Sans (SIL OFL 1.1)
SandboxPDF