Vai al contenuto principale
Ricetta numero 89

Ricettario · Capitolo 5 · Struttura del libro

Un saggio di storia con note Chicago

Un saggio di storia di quattro pagine le cui citazioni [@key, 87] diventano note Chicago a piè di pagina: complete la prima volta, brevi poi, con bibliografia.

In questa pagina
Output
Canvas · PDF
Livello
Intermedio
Postext
Provata con Postext 1.65.0
Richiede ≥ 1.25.0 · postext-pdf ≥ 1.25.0
Licenza
Aggiornata il 11 ott 2026
Codice MIT · Testo CC BY 4.0
  • Esempio in inglese: non c’è ancora un’edizione italiana
  • Formato 156 × 234 mm
  • 1 colonna
  • Crimson Pro 11/14
  • IBM Plex Sans Condensed
  • 4 pagine
  • Livello
  • Postext 1.57.1
  • Impaginato in 607 ms
  • 131 righe di codice

In breve

Un saggio su come le città britanniche adottarono l’ora di Londra. Ogni fonte citata dall’autore diventa una nota numerata a piè di pagina, e l’elenco delle opere viene alla fine.

Che cosa comporrai

Un estratto dalla collana di storia della tecnologia di una rivista: un saggio di circa 1.100 parole su come, tra il 1840 e il 1880, le città britanniche rinunciarono al proprio mezzogiorno per quello di Londra. La pagina è di 156 × 234 mm, a margini speculari, in Crimson Pro a 11/14 pt, con una fascia verde ferrovia sulla metà superiore della prima pagina. L’autore scrive ogni fonte come una chiave, [@howse1980, 87], e Postext la compone come nota numerata a piè di pagina nello stile Chicago note e bibliografia. La prima nota di un’opera dà autore, titolo ed editore; ogni nota successiva dà la forma breve. Le note discorsive dell’autore prendono i numeri dalla stessa sequenza, e la bibliografia chiude il saggio.

Questa ricetta risponde a

  • Come compongo le citazioni come note a piè di pagina, in stile Chicago, con forme brevi per le citazioni successive?
  • Come cito le opere e costruisco la bibliografia in APA, IEEE o un altro stile citazionale?

La risposta breve

script.js · righe 32–49nel codice completo
// The text cites with [@howse1980, 87]; a note style turns every citation into a
// footnote. The first note for a work gives it in full, later ones in the short form
// (author, short title, page), and the bibliography lists the works by author.
registerCitationEngine(createCiteprocEngine({ styles: STYLES, locales: LOCALES }));
const citations = {
  style: 'chicago-notes-bibliography', // CMOS 18th edition, notes and bibliography
  notes: 'footnote', // each citation in a note at the foot of the page
  link: true, // a note's citation jumps to its bibliography entry
  bibliography: { fontSize: em(0.92), lineHeight: pt(13), hangingIndent: em(1.8),
    entrySpacing: pt(3) },
};
// The citation notes share the numbering and the look of the author's own [^notes].
const footnotes = {
  placement: 'column', numbering: 'chapter',
  fontSize: pt(8.5), lineHeight: pt(10.75), spaceBetween: pt(2),
  textAlign: 'left', // ragged: the gap after a note's number stays the same in every note
  separator: { width: 0.3, lineWidth: pt(0.5), color: col('rule') },
};

Ingredienti

Tipo
Crimson Pro, IBM Plex Sans Condensed (SIL OFL 1.1)
Risorse
Nessuna: ogni immagine è disegnata nel codice

Preparazione

#1 · Una nota per ogni citazione

Il codice è nella risposta breve qui sopra. chicago-notes-bibliography è uno stile a note, quindi una citazione nel testo lascia un numero in apice e le sue parole vanno in una nota a piè di pagina numerata insieme alle [^notes] dell’autore; notes: 'footnote' lo indica in modo esplicito. citeproc-js tiene traccia delle opere già citate, così la nota 3 dice Derek Howse, Greenwich Time and the Discovery of the Longitude (Oxford University Press, 1980), 87 e la nota 4, che cita di nuovo lo stesso libro, dice Howse, Greenwich Time and the Discovery of the Longitude, 90–91. Lo stile incluso è la 18ª edizione del Chicago Manual, che abbandona Ibid. e ripete la forma breve, quindi le note 11 e 12 stampano due volte la forma breve.

#2 · Anche le note dell’autore citano

Una citazione in una [^note] resta in quella nota e si compone in linea, per esteso se è la prima apparizione dell’opera: la nota 1 è la frase dell’autore seguita dal riferimento completo a Schivelbusch. Ogni citazione finisce con il punto dello stile, quindi una nota che si chiude con una citazione non ha bisogno di un punto proprio nel Markdown.

#3 · Prefissi, suffissi e locatori

[see @simmons1991, 346–47; and @bartky2000, chap. 9] mette see prima della prima opera, separa le due con un punto e virgola e conserva il locatore di ciascuna. Un numero da solo è una pagina; chap. e cap. indicano un capitolo in entrambe le lingue. Il testo dopo il locatore è un suffisso: [@howse1980, 82–84, on the mail-coach timepieces] stampa la frase dopo le pagine.

#4 · L’apertura sta in una fascia

script.js · righe 53–74nel codice completo
const BAND = 122; // mm from the trim's top
const opener = {
  enabled: true,
  minHeight: mm(BAND - MARGIN.top + 9), // the text starts 9 mm under the band
  slot: { elements: [
    { kind: 'box', id: 'band', style: { backgroundColor: col('green') },
      placement: { ...at('page', 'top-left'), size: { width: 'fill', height: mm(BAND) } } },
    { kind: 'text', id: 'kicker', content: '{attr.kicker}', fontFamily: LABEL, fontWeight: 600,
      fontSize: pt(7.5), letterSpacing: pt(1.4), textTransform: 'uppercase', color: col('tint'),
      align: 'left', placement: at('container', 'top-left', 0, 4) },
    { kind: 'text', id: 'years', content: '{attr.years}', fontFamily: TEXT, fontWeight: 300,
      fontSize: pt(54), lineHeight: 1, color: col('tint'), align: 'left',
      placement: at('container', 'top-left', -1, 16) },
    { kind: 'text', id: 'title', content: '{titleText}', fontFamily: TEXT, fontWeight: 600,
      fontSize: pt(25), lineHeight: 1.08, color: col('paper'), align: 'left', overflow: 'wrap',
      placement: { ...at('container', 'top-left', 0, 47),
        size: { width: mm(112), height: 'auto' } } },
    { kind: 'text', id: 'byline', content: '{attr.byline}', fontFamily: LABEL, fontWeight: 600,
      fontSize: pt(9), letterSpacing: pt(0.6), color: col('tint'), align: 'left',
      placement: at('container', 'top-left', 0, 92) },
  ] },
};

La fascia scende per 122 mm dal rifilo e il testo comincia 9 mm sotto. Le date vengono da un attributo del titolo, years="1840–1880", composto in Crimson Pro Light a 54 pt, così la scheda mostra una cifra grande quanto un titolo; anche l’attributo della firma alimenta la testatina sui versi.

script.js · righe 16–23nel codice completo
const palette = {
  ink: '#211d1a', green: '#24493d', tint: '#dfe8e2', rule: '#b7b0a4', muted: '#6a645b',
  paper: '#fbf9f4',
};
// col() links a colour to its palette entry; the hex is the value the entry holds today.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = Object.entries({ ...palette, 'main-color': palette.green })
  .map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));

La ricetta completa

Sandbox
// ═══ Postext Cookbook · Nº 089 · A history essay with Chicago notes ═══════════════
// https://postext.dev/en/cookbook/history-essay-chicago-notes
// Code: MIT · Text: original (CC BY 4.0) · Pictures: none
// Fonts: Crimson Pro, IBM Plex Sans Condensed (SIL OFL 1.1) · Needs postext ≥ 1.25.0
import {
  buildDocumentWithFonts, renderPageToCanvas, registerCitationEngine,
} from 'https://esm.sh/postext';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';
import { createCiteprocEngine, STYLES, LOCALES } from 'https://esm.sh/postext-citeproc';

const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'history-essay-chicago-notes';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: a railway green for the opener band, ink and warm paper for the rest
const palette = {
  ink: '#211d1a', green: '#24493d', tint: '#dfe8e2', rule: '#b7b0a4', muted: '#6a645b',
  paper: '#fbf9f4',
};
// col() links a colour to its palette entry; the hex is the value the entry holds today.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = Object.entries({ ...palette, 'main-color': palette.green })
  .map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));
// #endregion
const TEXT = 'Crimson Pro', LABEL = 'IBM Plex Sans Condensed';
const TRIM = { width: 156, height: 234 }; // a journal offprint, trimmed like a trade book
const MARGIN = { top: 22, bottom: 22, inner: 20, outer: 17 };
const LEAD = 14; // pt
const at = (to, edge, x = 0, y = 0) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) } });

// #region answer: Chicago notes and bibliography, one note per citation
// The text cites with [@howse1980, 87]; a note style turns every citation into a
// footnote. The first note for a work gives it in full, later ones in the short form
// (author, short title, page), and the bibliography lists the works by author.
registerCitationEngine(createCiteprocEngine({ styles: STYLES, locales: LOCALES }));
const citations = {
  style: 'chicago-notes-bibliography', // CMOS 18th edition, notes and bibliography
  notes: 'footnote', // each citation in a note at the foot of the page
  link: true, // a note's citation jumps to its bibliography entry
  bibliography: { fontSize: em(0.92), lineHeight: pt(13), hangingIndent: em(1.8),
    entrySpacing: pt(3) },
};
// The citation notes share the numbering and the look of the author's own [^notes].
const footnotes = {
  placement: 'column', numbering: 'chapter',
  fontSize: pt(8.5), lineHeight: pt(10.75), spaceBetween: pt(2),
  textAlign: 'left', // ragged: the gap after a note's number stays the same in every note
  separator: { width: 0.3, lineWidth: pt(0.5), color: col('rule') },

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 le note alla fine

Alcune riviste raccolgono le note dopo il saggio; le citazioni conservano le loro forme complete e brevi.

-  placement: 'column', numbering: 'chapter',
+  placement: 'chapterEnd', numbering: 'chapter',

#Scrivi di nuovo Ibid.

La 17ª edizione dello stile Chicago stampa Ibid. per una nota che ripete l’opera precedente. Incolla il file .csl di quello stile, dal repository degli stili di Zotero, in una stringa e usalo come stile personalizzato.

-  style: 'chicago-notes-bibliography', // CMOS 18th edition, notes and bibliography
+  style: 'custom', customStyle: CHICAGO_17TH_CSL, // the XML of the .csl file

Errori frequenti

  • Non chiudere una nota con un punto dopo una citazione: lo stile chiude già la citazione con un punto, e Postext non unisce i due, quindi la nota finirebbe con due punti.
  • In uno stile a note, @howse1980 senza parentesi quadre lascia nella frase solo il numero della nota, As ¹ says, senza il nome dell’autore. Scrivi tu il nome e cita tra parentesi quadre: As Howse says,[@howse1980].

Crediti

Testo
Testo originale, CC BY 4.0
Font
Crimson Pro (SIL OFL 1.1) · IBM Plex Sans Condensed (SIL OFL 1.1)
SandboxPDF