Kurz gesagt
Ein Essay darüber, wie britische Städte zur Londoner Zeit kamen. Jede Quelle, die der Autor zitiert, wird zu einer nummerierten Note am Fuß der Seite, und die Liste der Werke steht am Ende.
Was Sie setzen
Ein Sonderdruck aus der technikgeschichtlichen Reihe einer Zeitschrift: ein Essay von etwa 1.100 Wörtern darüber, wie britische Städte zwischen 1840 und 1880 ihren eigenen Mittag für den Londoner aufgaben. Die Seite misst 156 × 234 mm, gespiegelt, in Crimson Pro mit 11/14 pt, mit einem Band in Eisenbahngrün über der oberen Hälfte der ersten Seite. Der Autor schreibt jede Quelle als Schlüssel, [@howse1980, 87], und Postext setzt jede als nummerierte Note am Fuß der Seite im Chicago-Stil „notes and bibliography“. Die erste Note zu einem Werk nennt Autor, Titel und Verlag; jede spätere die Kurzform. Die eigenen erläuternden Noten des Autors nehmen ihre Nummern aus derselben Folge, und die Bibliografie schließt den Essay ab.
Dieses Rezept beantwortet
- Wie setze ich Zitate als Fußnoten im Chicago-Stil, mit Kurzformen für spätere Zitate?
- Wie zitiere ich Werke und erstelle das Literaturverzeichnis nach APA, IEEE oder einem anderen Zitierstil?
Die kurze Antwort
// 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') },
};
Zutaten
- Funktionen
- Zitate in FußnotenZitate in einem ZitierstilLiteraturverzeichnis aus den QuellenFußnotenGestaltete AuftakteÜberschriftenattributeKolumnentitel und SeitenzahlenGespiegelte RänderAbsatzformateSemantische FarbpalettePDF-Export
- Schrift
- Crimson Pro, IBM Plex Sans Condensed (SIL OFL 1.1)
- Dateien
- Keine: Jedes Bild wird im Code gezeichnet
Zubereitung
#1 · Eine Note für jedes Zitat
Der Code steht in der kurzen Antwort oben. chicago-notes-bibliography ist ein Notenstil, also hinterlässt eine Zitation im Text eine hochgestellte Nummer, und ihr Wortlaut geht in eine Fußnote, die mit den eigenen [^notes] des Autors durchgezählt wird; notes: 'footnote' sagt das ausdrücklich. citeproc-js merkt sich, welche Werke es bereits zitiert hat, sodass Note 3 Derek Howse, Greenwich Time and the Discovery of the Longitude (Oxford University Press, 1980), 87 lautet und Note 4, die dasselbe Buch erneut zitiert, Howse, Greenwich Time and the Discovery of the Longitude, 90–91. Der mitgelieferte Stil ist die 18. Auflage des Chicago Manual, die Ibid. abschafft und die Kurzform wiederholt, also zeigen die Noten 11 und 12 zweimal die Kurzform.
#2 · Auch Noten des Autors zitieren
Eine Zitation in einer [^note] bleibt in dieser Note und wird inline gesetzt, vollständig, wenn das Werk zum ersten Mal erscheint: Note 1 ist der Satz des Autors, gefolgt von der vollständigen Angabe zu Schivelbusch. Jede Zitation endet mit dem Schlusspunkt des Stils, also braucht eine Note, die mit einer Zitation endet, im Markdown keinen eigenen Punkt.
#3 · Präfixe, Suffixe und Fundstellen
[see @simmons1991, 346–47; and @bartky2000, chap. 9] setzt see vor das erste Werk, trennt die beiden mit einem Semikolon und behält die Fundstelle jedes Werks. Eine bloße Zahl ist eine Seite; chap. und cap. bezeichnen in beiden Sprachen ein Kapitel. Text nach der Fundstelle ist ein Suffix: [@howse1980, 82–84, on the mail-coach timepieces] setzt die Wendung hinter die Seitenangabe.
#4 · Der Auftakt sitzt in einem Band
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) },
] },
};
Das Band reicht 122 mm von der Oberkante der beschnittenen Seite herab, und der Text beginnt 9 mm darunter. Die Jahreszahlen kommen aus einem Attribut der Überschrift, years="1840–1880", gesetzt in Crimson Pro Light mit 54 pt, sodass die Karte eine Zahl so groß wie ein Titel zeigt; das Attribut für die Autorenzeile speist auch den Kolumnentitel der linken Seiten.
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' } }));
Das ganze Rezept
// ═══ 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') },
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 Noten ans Ende setzen
Manche Zeitschriften sammeln die Noten nach dem Essay; die Zitationen behalten ihre Voll- und Kurzformen.
- placement: 'column', numbering: 'chapter',
+ placement: 'chapterEnd', numbering: 'chapter',#Wieder Ibid. schreiben
Die 17. Auflage des Chicago-Stils setzt Ibid. für eine Note, die das vorige Werk wiederholt. Fügen Sie die .csl-Datei dieses Stils aus dem Zotero-Stilverzeichnis in einen String ein und verwenden Sie ihn als eigenen Stil.
- style: 'chicago-notes-bibliography', // CMOS 18th edition, notes and bibliography
+ style: 'custom', customStyle: CHICAGO_17TH_CSL, // the XML of the .csl fileHäufige Fehler
- Beenden Sie eine Note nach einer Zitation nicht mit einem Punkt: Der Stil schließt die Zitation bereits mit einem ab, und Postext verschmilzt die beiden nicht, sodass die Note mit zwei Punkten endete.
- In einem Notenstil hinterlässt
@howse1980ohne Klammern nur die Notennummer im Satz, As ¹ says, ohne den Namen des Autors. Schreiben Sie den Namen selbst und zitieren Sie in Klammern:As Howse says,[@howse1980].
Nachweise
- Rezept
- Ignacio Ferro
- Text
- Eigener Text, CC BY 4.0
- Schriften
- Crimson Pro (SIL OFL 1.1) · IBM Plex Sans Condensed (SIL OFL 1.1)
- Code
- MIT, wie Postext
Diesen Text bearbeiten ↗ (öffnet sich in einem neuen Tab)Ordner des Rezepts auf GitHub ↗ (öffnet sich in einem neuen Tab)


