Vai al contenuto principale
Ricetta numero 135

Ricettario · Capitolo 7 · Figure e immagini

Servizio di rivista su una griglia a tre colonne

layoutType 'multiple' divide la pagina in tre colonne; placement.columns mette foto e un estratto flottante su due di esse, o su tutte e tre.

pp. 84–85 · 1–2 di 6

  • Esempio in inglese: non c’è ancora un’edizione italiana
  • Formato 225 × 297 mm
  • 3 colonne, Intercolonna di 5 mm
  • Source Serif 4 9,6/14
  • Barlow Condensed
  • Fraunces
  • 6 pagine
  • Livello
  • Postext 1.65.0
  • Impaginato in 135 ms
  • 210 righe di codice

In breve

Un servizio di viaggio di sei pagine di un mensile, composto in tre colonne strette. Mostra come collocare foto e una grande citazione su due colonne o su tutta la pagina, e un riquadro di consigli pratici in una.

Che cosa comporrai

Sei pagine del numero di novembre di Meridian, un mensile di viaggi, su una pagina di 225 × 297 mm. Il servizio si apre su una doppia pagina: una sola fotografia di saline all’alba attraversa le due pagine, con il titolo in negativo sull’acqua a sinistra e, a destra sotto l’immagine, il paragrafo d’attacco con il suo capolettera, il sommario e la firma. L’articolo prosegue poi in tre colonne giustificate di 61,7 mm ciascuna. Le fotografie occupano due colonne, l’intera larghezza o una colonna; un estratto sta su due colonne tra i paragrafi; un riquadro colorato con una mappa dell’isola apre la pagina di chiusura. Un quadratino blu chiude il testo.

Questa ricetta risponde a

  • Postext può comporre tre o più colonne di testo, o far scorrere il testo intorno a un’immagine?
  • Come decido dove va una figura: in testa alla pagina, su entrambe le colonne, esattamente qui o nel margine?
  • Come faccio flottare un riquadro in testa o al piede della pagina mentre il testo continua a scorrere?
  • Come aggiungo a un’apertura una riga d’autore, un sommario o un attacco con capolettera?

La risposta breve

script.js · righe 44–72nel codice completo
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) } };

Ingredienti

Tipo
Source Serif 4, Fraunces, Barlow Condensed (SIL OFL 1.1)
Risorse
  • flor-1200.jpg
  • pans-1840.jpg
  • quay-960.jpg
  • raker-1500.jpg
  • sieve-1500.jpg
  • spread-left-1200.jpg
  • spread-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)

Preparazione

#1 · Dividi la pagina in tre colonne, e lascia che gli elementi flottanti ne occupino una, due o tre

Il codice è la risposta breve qui sopra. layoutType: 'multiple' con columnCount: 3 divide la gabbia del testo di 195 mm in tre colonne uguali, quindi con un’intercolonna di 5 mm ciascuna è larga 61,7 mm, circa 40 caratteri di Source Serif a 9,6 pt. Il placement.columns di un’immagine occupa altrettante colonne adiacenti e le intercolonne tra di esse: la fotografia del rastrello è larga 128,3 mm, e le saline, con span: 'page', gli interi 195 mm. Lo stile dell’estratto fa lo stesso per un riquadro, con columns: 2 su uno stile placement: 'top', così flotta in testa a due colonne libere e il testo vi scorre attorno. Una griglia a tre colonne si adatta a un servizio di rivista con molte immagini, perché ogni immagine può occupare una, due o tre colonne. Un testo lungo con poche immagini si legge meglio in due colonne più larghe.

#2 · Apri su una doppia pagina, una fotografia su due pagine

script.js · righe 76–113nel codice completo
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) },
] } } };

Ogni metà della fotografia appartiene a uno stile di titolo con span: 'page', e un titolo a tutta larghezza apre sempre una nuova pagina, quindi la pagina del titolo e quella del sommario si susseguono. La metà sinistra riempie il verso e non riserva nulla (reserve: false), così il titolo può stare sull’acqua al piede. La metà destra è tagliata a 165 mm, e il paragrafo d’attacco, il sommario e la firma sono appesi al contenitore sotto di essa. Il paragrafo d’attacco è un testo grafico con un dropCap di quattro righe, largo una colonna; il suo padding inferiore vuoto conta nell’altezza dell’apertura, così le colonne cominciano 6 mm sotto di esso. continuation.pageIndexOffset: 83 fa della pagina 84 un verso, così le due metà si fronteggiano.

#3 · Dichiara le fotografie, e cita ciascuna dove deve finire

script.js · righe 172–204nel codice completo
// 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.' },
];

Un elemento flottante va alla prima testa (o al primo piede) libera delle sue colonne dopo la riga che lo cita, quindi sono le righe ::resource a decidere le pagine. La fotografia del setaccio è citata in cima alla prima colonna della quinta pagina, dove la seconda e la terza colonna sono ancora vuote, quindi ne occupa la testa nella stessa pagina. La fotografia del porto è citata in fondo a quella pagina e occupa la testa di due colonne della successiva. Le fotografie di uno stesso tipo non si sorpassano mai, quindi le loro citazioni seguono l’ordine dell’articolo. Le bitmap sono misurate ai 150 dpi della pagina: 1500 px fanno 254 mm e si riducono ai 128,3 mm di due colonne.

#4 · Testatine e folio fuori dalla doppia pagina d’apertura

script.js · righe 117–133nel codice completo
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) }] };

Gli elementi d’intestazione si dipingono sopra la pagina e non riservano spazio, quindi il numero di pagina e l’etichetta sono ancorati alla pagina nel margine superiore. pages: 'body' li tiene lontani da entrambe le pagine della doppia pagina, che sono pagine d’apertura perché ciascuna comincia con un titolo a tutta larghezza. Il recto della doppia pagina ha invece il numero di pagina al piede, grazie a pages: 'opener' e parity: 'odd'; il verso, tutto fotografia, non ne ha.

#5 · Disegna nel codice la mappa del box

script.js · righe 308–353nel codice completo
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>';
}

La mappa è una risorsa SVG con placement: 'here', citata nel blocco del riquadro, così sta sotto il titolo del riquadro alla sua giustezza. Non ha scritte: il testo in un SVG non può usare i web font della pagina, quindi è la didascalia a spiegare che cosa sono le forme. La punta di freccia sulla rotta del traghetto è un tracciato, perché un <marker> non sopravviverebbe a un’esportazione in PDF.

La ricetta completa

Sandbox
// ═══ 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)

Lo script.js composto funziona così com’è: incollalo nello script modulo di qualsiasi pagina, oppure apri la ricetta su CodePen. Cartella della ricetta su GitHub ↗ (si apre in una nuova scheda)

Varianti

#Metti l’estratto su tutte e tre le colonne

Un riquadro flottante preferisce l’attributo columns del blocco a quello del suo stile, così un estratto può occupare l’intera larghezza.

- :::callout{type="pull"}
+ :::callout{type="pull" columns="3"}

#Componi l’articolo in due colonne

Per un servizio con meno immagini e paragrafi più lunghi, vedi Servizio di rivista: dalla foto d’apertura al segno di fine, con un’impaginazione double.

Errori frequenti

Errore frequente

Un elemento flottante 'top' va alla pagina dopo la sua citazione, a meno che non possa aprire la pagina che lo cita

Per impostazione predefinita un elemento flottante non va mai sopra il proprio riferimento, quindi un flottante 'top' a tutta larghezza citato a pagina N apre la pagina N+1. Imposta placement.citingPage: true sulla risorsa o sul defaultPlacement del suo tipo (o layout.floatsAtCitingPage per tutto il libro, da postext 1.25) e aprirà invece la pagina N, con il testo sopra il riferimento che scende sotto di esso, quando entra entro layout.maxTopFraction e la riga che lo cita resta su quella pagina. Non apre mai la prima pagina di un capitolo né una pagina dopo un’interruzione forzata: lì apre ancora la pagina successiva, e 'auto' o 'bottom' possono prendere il piede della pagina che lo cita. Collocazione delle figure →

Errore frequente

Un titolo a tutta larghezza apre sempre una nuova pagina

Un titolo il cui livello o stile imposta span: 'page' viene impaginato come apertura in testa a una pagina, che abbia o no un breakBefore. Messo dopo altro testo, o dopo un’altra apertura nella stessa pagina, passa alla pagina successiva e lascia vuoto il resto di quella corrente. Un titolone su entrambe le colonne (o su entrambi i registri di una pagina verticale) sotto una testata va nella grafica dell’apertura stessa, accanto alla testata, oppure in un riquadro :::callout{span="page"} come titolo senza span, come fa newspaper-front-page con i suoi titoloni. Aperture progettate →

Errore frequente

La pagina 1 è un recto: pianifica le pagine con i numeri fisici

La pagina 1 è una pagina destra e la pagina 2 il primo verso, quindi pianifica le doppie pagine con i numeri di pagina fisici: un’apertura su una pagina pari sta di fronte alla pagina dispari che la segue. Interruzioni di pagina e di colonna →

Errore frequente

Le bitmap prendono la dimensione di stampa da una risoluzione: dichiarala, non pixel alla dimensione di stampa

Una bitmap senza risoluzione viene impaginata a un pixel per pixel di impaginazione ai dpi del documento, quindi una foto di 2400 px è larga 406 mm su una pagina a 150 dpi. Dichiara i pixel reali del file e dai all’immagine la sua risoluzione (bitmap.resolution: 300), o imposta layout.bitmapResolution per ogni bitmap: un valore in ppi, o 'file' per leggere quello indicato dal file. La colonna limita comunque l’immagine. Figure e tabelle come risorse →

  • Una fotografia su due colonne va in testa a due colonne ancora vuote. Citata nella seconda colonna, non trova una coppia simile nella sua pagina, perché resta solo la terza colonna, e aspetta la pagina successiva.
  • L’articolo è adattato per finire alla stessa altezza nella sesta pagina sotto la fotografia del porto. Dopo una modifica, controlla che l’ultima pagina sia ancora piena: qualche riga in meno e la fotografia passa a una pagina tutta sua.
  • Con righe di 40 caratteri, un paragrafo giustificato ha pochi punti di divisione. maxJustifyTracking: 15 permette a una riga che non si riesce a comporre entro il doppio dello spazio normale di prendere invece fino a 0,015 em di spaziatura tra lettere. Correggi un’ultima riga di una sola parola ritoccando il testo, come è stato fatto per queste pagine.

Crediti

Testo
Testo originale, CC BY 4.0
Immagini
  • 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
Font
Source Serif 4 (SIL OFL 1.1) · Fraunces (SIL OFL 1.1) · Barlow Condensed (SIL OFL 1.1)
Sandbox