Μετάβαση στο κύριο περιεχόμενο
Συνταγή αριθμός 183

Συνταγολόγιο · Κεφάλαιο 7 · Εικόνες και γραφικά

Έργα τέχνης ως τα περιθώρια, την κοπή και την αιμορραγία

Δοκίμιο έκθεσης για τέσσερα εσωτερικά του Βερμέερ: κάθε πίνακας ολοσέλιδος μέσα στα περιθώρια, ως την κοπή ή την αιμορραγία, και λεπτομέρεια πλάτους 60 mm.

Σε αυτή τη σελίδα
Έξοδος
Canvas · PDF
Επίπεδο
Μεσαίο
Postext
Δοκιμασμένο με το Postext 1.73.0
Απαιτεί ≥ 1.73.0 · postext-pdf ≥ 1.73.0
Άδεια
Ενημέρωση: 10 Νοε 2026
Κώδικας MIT · Κείμενο CC BY 4.0
  • Δείγμα στα αγγλικά: δεν υπάρχει ακόμη ελληνική έκδοση
  • Διάσταση σελίδας 160 × 195 mm
  • 1 στήλη
  • Spectral 9,6/13,5
  • Cormorant Garamond
  • Jost
  • 7 σελίδες
  • Επίπεδο
  • Postext 1.73.0
  • Σελιδοποίηση σε 23 ms
  • 177 γραμμές κώδικα

Με λίγα λόγια

Πείτε ως πού μπορεί να φτάσει κάθε πίνακας στη σελίδα του, μέσα στα περιθώρια, ως την άκρη κοπής ή πέρα από αυτήν, και δώστε σε μια λεπτομέρεια το πλάτος της σε χιλιοστά. Οι σελίδες στήνονται μόνες τους.

Τι θα στοιχειοθετήσετε

Επτά σελίδες ενός μικρού καταλόγου έκθεσης, 160 × 195 mm, για τέσσερα εσωτερικά του Γιοχάνες Βερμέερ από το Rijksmuseum, το Met και την National Gallery of Art. Το δοκίμιο ανοίγει σε δεξιά σελίδα με χαμηλωμένο τίτλο. Κάθε πίνακας που αναφέρει στέκεται μόνος του στην επόμενη ολόκληρη σελίδα: Η γαλατού στη σελίδα 2 μέσα στα περιθώρια, κάτω από την τρέχουσα κεφαλίδα της· η Κανάτα με νερό και το Γράμμα βρίσκονται αντικριστά στις σελίδες 4 και 5, η μία κομμένη στην κομμένη σελίδα, η άλλη απλωμένη στο περιθώριο αιμορραγίας πέρα από τα σημάδια κοπής, και οι δύο χωρίς κεφαλίδες ή αριθμούς σελίδας. Μια λεπτομέρεια της ζυγαριάς τυπώνεται σε πλάτος 60 mm στη σελίδα 7, με τη λεζάντα της δίπλα. Το PDF φέρει τα σημάδια, ένα TrimBox και ένα BleedBox.

Αυτή η συνταγή απαντά

  • Πώς τυπώνω έναν πίνακα ζωγραφικής ως ολοσέλιδη εικόνα (μέσα στα περιθώρια, έως την κοπή ή έως το bleed) και μια λεπτομέρεια σε ορισμένο πλάτος σε mm;
  • Πώς φτιάχνω κατάλογο έργων τέχνης: λήμμα στην αριστερή σελίδα, ολοσέλιδη εικόνα στην αντικριστή δεξιά;
  • Πώς φτιάχνω PDF έτοιμο για εκτύπωση με περιθώριο αιμορραγίας, σημάδια κοπής, σελιδοδείκτες, ετικέτες σελίδων και χρωματικό χώρο;

Η σύντομη απάντηση

script.js · γραμμές 41–53στον πλήρη κώδικα
// Every plate stands alone on the first whole page after its citation, as large as the area
// allows. true (or 'content') keeps it inside the margins with its running heads; 'trim'
// covers the page to the cut, 'bleed' to the bleed. Those two crop the picture about its
// centre, put the caption on a band of paper at the foot, and drop the heads and the folio.
const plateType = { id: 'plate', name: t({ en: 'Plate', es: 'Lámina' }),
  shortLabel: t({ en: 'plate', es: 'lámina' }), captionPrefix: t({ en: 'Plate', es: 'Lámina' }),
  numberingTemplate: '{n}', resetOn: 'never', counterFormat: 'decimal',
  defaultPlacement: { plate: true, captionMeasure: 'body' } }; // the caption as wide as it
const REACH = { milkmaid: 'content', pitcher: 'trim', letter: 'bleed', balance: 'content' };
// A width as a length is measured against the slot, not shared out of it: the detail prints
// 60 mm wide in any layout, 1.25 times the 48 mm of canvas it shows. Its caption stands
// beside it in what is left of the column.
const DETAIL = { width: { value: 60, unit: 'mm' }, captionSide: 'inside', align: 'left' };

Υλικά

Λειτουργίες
Ολοσέλιδες εικόνεςΠλάτη εικόνων σε χιλιοστάΕικόνες και πίνακες ως πόροιΠαραπομπές που τοποθετούν εικόνεςΠροσαρμοσμένοι τύποι πόρωνΑριθμημένες λεζάντεςΣτιλ λεζάνταςΓραμμές πηγής και πίστωσηςΠλευρικές λεζάντεςΠεριθώριο αιμορραγίας και σημάδια κοπήςΚεφαλίδες ανά ρόλο σελίδαςΤρέχουσες κεφαλίδες και αριθμοί σελίδαςΣυμμετρικά περιθώριαΣχεδιασμένες εναρκτήριες σελίδεςΙδιότητες επικεφαλίδωνΣτιλ παραγράφωνΣημασιολογική χρωματική παλέταΕξαγωγή PDF
Γραμματοσειρές
Spectral, Cormorant Garamond, Jost (SIL OFL 1.1)
Αρχεία
  • balance-1700.jpg
  • balance-detail-1051.jpg
  • letter-2400.jpg
  • milkmaid-1800.jpg
  • pitcher-2400.jpg
  • Plate 1, Johannes Vermeer, The Milkmaid, c. 1660, Rijksmuseum SK-A-2344; the museum’s image reduced to 1,800 px high (Rijksmuseum, Amsterdam, CC0 1.0)
  • Plate 2, Johannes Vermeer, Young Woman with a Water Pitcher, c. 1662, The Met 89.15.21; the museum’s image, its unpainted edges cut off, reduced to 2,400 px high (The Metropolitan Museum of Art, New York (Open Access), CC0 1.0)
  • Plate 3, Johannes Vermeer, Woman Reading a Letter, c. 1663, Rijksmuseum SK-C-251; the museum’s image reduced to 2,400 px high (Rijksmuseum, Amsterdam, CC0 1.0)
  • Plate 4, Johannes Vermeer, Woman Holding a Balance, c. 1664, National Gallery of Art 1942.9.97; the museum’s image reduced to 1,700 px high (National Gallery of Art, Washington (Open Access), CC0 1.0)
  • Figure 1, a 48 × 63 mm detail of plate 4 cut from the museum’s full-resolution image and reduced to 800 px wide (National Gallery of Art, Washington (Open Access), CC0 1.0)

Προετοιμασία

#1 · Ένας τύπος για τις ολοσέλιδες εικόνες, μία έκταση για κάθε πίνακα

Ο κώδικας είναι η σύντομη απάντηση παραπάνω. Ο τύπος των ολοσέλιδων εικόνων ορίζει plate: true ως προεπιλεγμένη τοποθέτηση, έτσι ένας πίνακας που αναφέρει το δοκίμιο πηγαίνει στην πρώτη σελίδα που μπορεί να έχει ολόκληρη και μεγαλώνει ως την επιφάνεια στοιχειοθεσίας με τη λεζάντα του από κάτω. Το REACH το παρακάμπτει ανά πίνακα: τα 'trim' και 'bleed' καλύπτουν τη σελίδα και περικόπτουν την εικόνα γύρω από το κέντρο της, γι' αυτό διαλέξτε πίνακες με σχήμα κοντά σε εκείνο της σελίδας (αυτοί έχουν πλάτος 0,85 έως 0,89 για σελίδα 0,82). Το captionMeasure: 'body' κρατά τη λεζάντα μιας εσωτερικής ολοσέλιδης εικόνας όσο φαρδιά είναι η εικόνα.

#2 · Διαστασιολογήστε κάθε αρχείο για το σημείο όπου τυπώνεται

script.js · γραμμές 150–202στον πλήρη κώδικα
// JPEGs in assets/ at the pixels each needs for 300 ppi where it prints: 2,400 px high for
// the plates that cover the page (195 mm + 2 × 3 mm of bleed is 7.9 in), less for the rest.
const PAINTINGS = {
  milkmaid: [[1617, 1800], { en: 'Johannes Vermeer, *The Milkmaid*, c. 1660',
    es: 'Johannes Vermeer, *La lechera*, h. 1660' }, { en: 'Oil on canvas, 45.5 × 41 cm. '
    + 'Rijksmuseum, Amsterdam, SK-A-2344, purchased with the support of the Vereniging '
    + 'Rembrandt. Public domain.', es: 'Óleo sobre lienzo, 45,5 × 41 cm. Rijksmuseum, '
    + 'Ámsterdam, SK-A-2344, adquirido con el apoyo de la Vereniging Rembrandt. Dominio '
    + 'público.' }, { en: 'A kitchen maid in a yellow bodice and blue apron pours milk from '
    + 'a jug into a bowl beside a basket of bread, under a window on the left.', es: 'Una '
    + 'criada con corpiño amarillo y delantal azul vierte leche de una jarra en un cuenco, '
    + 'junto a un cesto de pan, bajo una ventana a la izquierda.' }],
  pitcher: [[2116, 2400], { en: 'Johannes Vermeer, *Young Woman with a Water Pitcher*, '
    + 'c. 1662', es: 'Johannes Vermeer, *Joven con una jarra de agua*, h. 1662' },
  { en: 'Oil on canvas, 45.7 × 40.6 cm. The Metropolitan Museum of Art, New York, 89.15.21, '
    + 'Marquand Collection, gift of Henry G. Marquand, 1889. Public domain.', es: 'Óleo sobre '
    + 'lienzo, 45,7 × 40,6 cm. The Metropolitan Museum of Art, Nueva York, 89.15.21, '
    + 'colección Marquand, donación de Henry G. Marquand, 1889. Dominio público.' },
  { en: 'A young woman in a white linen hood opens a window with one hand and holds a '
    + 'silver-gilt pitcher in a basin with the other; a map hangs behind her.', es: 'Una joven '
    + 'con toca de lino blanco abre una ventana con una mano y sujeta con la otra una jarra '
    + 'de plata dorada sobre una palangana; detrás cuelga un mapa.' }],
  letter: [[2039, 2400], { en: 'Johannes Vermeer, *Woman Reading a Letter*, c. 1663',
    es: 'Johannes Vermeer, *Mujer leyendo una carta*, h. 1663' }, { en: 'Oil on canvas, '
    + '46.5 × 39 cm. Rijksmuseum, Amsterdam, SK-C-251, on loan from the City of Amsterdam '
    + '(A. van der Hoop Bequest). Public domain.', es: 'Óleo sobre lienzo, 46,5 × 39 cm. '
    + 'Rijksmuseum, Ámsterdam, SK-C-251, en préstamo de la ciudad de Ámsterdam (legado '
    + 'A. van der Hoop). Dominio público.' }, { en: 'A woman in a blue jacket stands reading '
    + 'a letter in front of a map of Holland, between two chairs, lit from the left.',
  es: 'Una mujer con chaqueta azul lee una carta de pie ante un mapa de Holanda, entre dos '
    + 'sillas, con la luz a la izquierda.' }],
  balance: [[1502, 1700], { en: 'Johannes Vermeer, *Woman Holding a Balance*, c. 1664',
    es: 'Johannes Vermeer, *Mujer con una balanza*, h. 1664' }, { en: 'Oil on canvas, '
    + '39.7 × 35.5 cm. National Gallery of Art, Washington, 1942.9.97, Widener Collection. '
    + 'Public domain.', es: 'Óleo sobre lienzo, 39,7 × 35,5 cm. National Gallery of Art, '
    + 'Washington, 1942.9.97, colección Widener. Dominio público.' }, { en: 'A woman stands '
    + 'at a table spread with pearls and coins, holding up a small balance; a painting of the '
    + 'Last Judgment hangs behind her.', es: 'Una mujer, de pie ante una mesa con perlas y '
    + 'monedas, sostiene en alto una pequeña balanza; detrás cuelga un Juicio Final.' }],
  'balance-detail': [[800, 1051], { en: 'Detail of :ref{id="balance"}: the beam and its two '
    + 'empty pans. The 48 mm of canvas it shows print 60 mm wide, 1.25 times their size.',
  es: 'Detalle de la :ref{id="balance"}: el astil y sus dos platillos vacíos. Los 48 mm de '
    + 'lienzo que muestra se imprimen a 60 mm, 1,25 veces su tamaño.' }, { en: 'National '
    + 'Gallery of Art, Washington. Public domain.', es: 'National Gallery of Art, Washington. '
    + 'Dominio público.' }, { en: 'A hand holds a small balance by its loop between thumb '
    + 'and forefinger; both pans hang empty.', es: 'Una mano sostiene una pequeña balanza por '
    + 'el aro entre el pulgar y el índice; los dos platillos cuelgan vacíos.' }],
};
const resources = Object.entries(PAINTINGS).map(([id, [[w, h], caption, note, alt]]) => ({
  id, typeId: REACH[id] ? 'plate' : 'detail', kind: 'bitmap', createdAt: 0, updatedAt: 0,
  bitmap: { fileId: `${id}-${h > w ? h : w}.jpg`, format: 'jpeg', width: w, height: h },
  caption: t(caption), note: t(note), altText: t(alt),
  ...(REACH[id] && { placement: { plate: REACH[id] } }) }));

Ο προέλεγχος μετρά την περικοπή: μια ολοσέλιδη εικόνα ως το περιθώριο αιμορραγίας έχει εδώ ύψος 201 mm μαζί με το περιθώριο, γι' αυτό το αρχείο της χρειάζεται 2.400 px για να φτάσει τα 300 ppi, και οι δύο εικόνες μέσα στα περιθώρια χρειάζονται λιγότερα. Αυτές τυπώνονται σε 303 έως 348 ppi. Το page.cutLines στη ρύθμιση δίνει στο φύλλο τα 3 mm περιθωρίου αιμορραγίας του· χωρίς αυτό, το 'bleed' σταματά στην κομμένη σελίδα όπως το 'trim'.

#3 · Τρέχουσες κεφαλίδες που αφήνουν ήσυχες τις ολοσέλιδες εικόνες

script.js · γραμμές 73–86στον πλήρη κώδικα
// pages: 'body' keeps them off the opener; a plate set to the trim or the bleed takes the
// 'plate' role, which no element here names, so its page prints bare.
const head = (id, content, parity, edge, x, extra = {}) => ({ kind: 'text', id, content,
  parity, pages: 'body', fontFamily: LABEL, fontSize: pt(7.5), color: col('muted'),
  placement: at('page', edge, x, 11), ...caps(7.5), ...extra });
const folio = { color: col('ink'), letterSpacing: pt(0.6) };
const header = { elements: [
  head('verso-folio', '{pageNumber}', 'even', 'top-left', OUTER, folio),
  head('verso-title', '{title}', 'even', 'top-left', OUTER + 8),
  head('recto-title', '{chapterTitle}', 'odd', 'top-right', -(OUTER + 8)),
  head('recto-folio', '{pageNumber}', 'odd', 'top-right', -OUTER, folio),
] };
const footer = { elements: [head('drop-folio', '{pageNumber}', 'all', 'top', 0,
  { ...folio, pages: 'opener', placement: at('container', 'top', 0, 8) })] };

Μια ολοσέλιδη εικόνα ως την κομμένη σελίδα ή ως το περιθώριο αιμορραγίας δίνει στη σελίδα της τον ρόλο 'plate'. Αυτές οι κεφαλίδες ορίζουν pages: 'body', έτσι τυπώνονται πάνω από τις εσωτερικές εικόνες και φεύγουν στις σελίδες 4 και 5. Ένα στοιχείο που πρέπει να τυπωθεί εκεί έτσι κι αλλιώς, για παράδειγμα μια μικρή πίστωση στη γωνία, ονομάζει το 'plate' στο pages του.

#4 · Μια λεπτομέρεια σε μέγεθος που μπορείτε να δηλώσετε

Ο τύπος της λεπτομέρειας ορίζει width: { value: 60, unit: 'mm' } με captionSide: 'inside'. Ένα μήκος μετριέται σε σχέση με τη θέση του, δεν μοιράζεται από αυτήν, έτσι τα 48 mm του καμβά που δείχνει η περικοπή τυπώνονται στα 60 mm, 1,25 φορές το μέγεθός τους, σε οποιαδήποτε στήλη ή έκδοση, και η λεζάντα μπορεί να το αναφέρει.

Η πλήρης συνταγή

Sandbox
// ═══ Postext Cookbook · Nº 183 · Art plates to the margins, the trim and the bleed ═════
// https://postext.dev/en/cookbook/art-plates-to-the-bleed
// Code: MIT · Text: original (CC BY 4.0) · Paintings: Rijksmuseum, The Met, NGA (CC0)
// Fonts: Spectral, Cormorant Garamond, Jost (SIL OFL 1.1) · Needs postext ≥ 1.73.0
// An exhibition essay on four interiors by Vermeer. Each painting is a full-page plate: two
// inside the margins, one to the trimmed edge, one out to the bleed. A detail prints 60 mm wide.
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 = 'art-plates-to-the-bleed';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: a warm paper and ink, and the ultramarine of the Delft jackets
const palette = {
  ink: '#22201c', // text: a warm near-black
  accent: '#2c4a7c', // kicker, caption labels: the blue of the reading woman's jacket
  rule: '#c9bfae', // the opener's hairline
  muted: '#6b6359', // running heads, folios, credit lines
  paper: '#fbf9f4', // the page, and the band under a caption set over a plate
};
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': pointed at the accent, no default blue shows.
  { id: 'main-color', name: 'accent (defaults)', value: { hex: palette.accent, model: 'hex' } },
];
// #endregion
const [TEXT, DISPLAY, LABEL] = ['Spectral', 'Cormorant Garamond', 'Jost'];
const [PAGE_W, PAGE_H, TOP, BOTTOM, INNER, OUTER] = [160, 195, 20, 22, 18, 24]; // mm
const BLEED = 3; // mm of picture past the trim on the bleed plate, and the crop marks' offset
const LEAD = 13.5; // body leading in pt
const at = (to, edge, x, y, size) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) },
  ...(size && { size }) });
const caps = (size) => ({ fontWeight: 500, textTransform: 'uppercase',
  letterSpacing: pt(size * 0.2) });

// #region answer: a plate type, and how far each picture reaches
// Every plate stands alone on the first whole page after its citation, as large as the area
// allows. true (or 'content') keeps it inside the margins with its running heads; 'trim'
// covers the page to the cut, 'bleed' to the bleed. Those two crop the picture about its
// centre, put the caption on a band of paper at the foot, and drop the heads and the folio.
const plateType = { id: 'plate', name: t({ en: 'Plate', es: 'Lámina' }),
  shortLabel: t({ en: 'plate', es: 'lámina' }), captionPrefix: t({ en: 'Plate', es: 'Lámina' }),
  numberingTemplate: '{n}', resetOn: 'never', counterFormat: 'decimal',
  defaultPlacement: { plate: true, captionMeasure: 'body' } }; // the caption as wide as it

Το συντεθειμένο script.js εκτελείται ως έχει: επικολλήστε το στο module script οποιασδήποτε σελίδας ή ανοίξτε τη συνταγή στο CodePen. Φάκελος της συνταγής στο GitHub ↗ (ανοίγει σε νέα καρτέλα)

Παραλλαγές

#Στείλτε κάθε ολοσέλιδη εικόνα ως το περιθώριο αιμορραγίας

Δώστε σε κάθε πίνακα την ίδια έκταση: κάθε εικόνα καλύπτει τότε τη σελίδα της, χωρίς κεφαλίδες ή αριθμό σελίδας, και αλλάζει μόνο η περικοπή.

-const REACH = { milkmaid: 'content', pitcher: 'trim', letter: 'bleed', balance: 'content' };
+const REACH = { milkmaid: 'bleed', pitcher: 'bleed', letter: 'bleed', balance: 'bleed' };

#Τυπώστε τη λεπτομέρεια στο πραγματικό της μέγεθος

Κόψτε 60 mm καμβά από το αρχείο του μουσείου και κρατήστε το πλάτος: η λεζάντα τότε γράφει 1:1. Με το πρωτότυπο αρχείο αυτού του πίνακα στα 1.666 ppi, κάθε λεπτομέρεια ως λίγα χιλιοστά ξεπερνά ακόμη τα 300 ppi.

Συνήθη λάθη

  • Μια ολοσέλιδη εικόνα που αναφέρεται στην ίδια παράγραφο με μια άλλη περιμένει τη σελίδα μετά από εκείνη, αφού μια σελίδα που κρατά ήδη ένα κινητό στοιχείο παραλείπεται, το πολύ τρεις φορές.
  • Τα πλάτη σε pt και mm λειτουργούν· τα px και em δεν διαβάζονται ως μήκος, και η εικόνα παίρνει ολόκληρη τη θέση της.
  • Ένας πίνακας πολύ φαρδύτερος από τη σελίδα χάνει τα πλάγιά του σε μια εικόνα ως την κομμένη σελίδα ή ως το περιθώριο αιμορραγίας. Κρατήστε τα οριζόντια τοπία μέσα στα περιθώρια, όπου φαίνεται ολόκληρη η εικόνα.

Ευχαριστίες

Συνταγή
Ignacio Ferro
Κείμενο
  • The essay, the captions and the note on the plates · Postext Cookbook · CC BY 4.0
Εικόνες
Γραμματοσειρές
Spectral (SIL OFL 1.1) · Cormorant Garamond (SIL OFL 1.1) · Jost (SIL OFL 1.1)
SandboxPDF