Zum Hauptinhalt springen
Rezept Nummer 143

Rezepte · Kapitel 9 · Vollständige Publikationen

Ein Wochenbulletin: die ersten Berichte über AIDS

Zwei CDC-Berichte von 1981 als Bulletin auf US Letter: Kopf, Fallberichte mit Dachzeilen, Stile für Reported by und Editorial Note, nummerierte Literatur.

Auf dieser Seite

S. 1 von 6

  • Englisches Beispiel: noch keine deutsche Ausgabe
  • Endformat 215,9 × 279,4 mm
  • 2 Spalten, Spaltenabstand 6,3 mm
  • IBM Plex Serif 9,5/13
  • IBM Plex Sans Condensed
  • Libre Franklin
  • 6 Seiten
  • Stufe
  • Postext 1.65.0
  • In 303 ms gesetzt
  • 180 Zeilen Code

Kurz gesagt

Ein Gesundheitsbulletin von 1981, neu auf Briefpapier gesetzt. Jede Art von Absatz eines Berichts (die Fälle, die Liste der meldenden Ärzte, der Kommentar der Redaktion) ist eigens gestaltet, und die Literatur wird für Sie nummeriert.

Was Sie setzen

Sechs Seiten eines epidemiologischen Wochenbulletins auf US Letter, mit einem Nachdruck der beiden Berichte, in denen die Centers for Disease Control zum ersten Mal beschrieben, was später als AIDS bekannt wurde: fünf Fälle von Pneumocystis-Pneumonie in Los Angeles (5. Juni 1981) und die Fälle von Kaposi-Sarkom, die folgten (3. Juli 1981). Der Kopf ist ein eigener Entwurf im Geist eines Regierungsbulletins jener Zeit, ein blaues Band mit einer schmalen Wortmarke über zwei Spalten Plex Serif. Jede Stimme eines Berichts hat ihren eigenen Stil: Fallberichte unter fetten nummerierten Bezeichnungen, die Zeile Reported by in kleiner Kursive, die Editorial Note, Literaturverweise in Klammern und eine nummerierte Liste. Text, Literatur und Tabellen sind so, wie die CDC sie druckte; die Zeitleiste und die Falltabelle auf Seite 2 stammen von den Herausgebern.

Dieses Rezept beantwortet

  • Wie setze ich einen wöchentlichen Bulletin-Bericht: Zeitungskopf, Fallberichte, Anmerkung der Redaktion und nummerierte Literaturangaben?
  • Wie zitiere ich Werke und erstelle das Literaturverzeichnis nach APA, IEEE oder einem anderen Zitierstil?
  • Wie erstelle ich eine Tabelle mit Kopfzeilen, verbundenen Zellen, Spaltenbreiten und Ausrichtung je Zelle?
  • Wie setze ich einen Open-Access-Artikel aus arXiv oder PubMed Central mit Postext neu, mit seinen Zitaten, Abbildungen und seiner Lizenzzeile?

Die kurze Antwort

script.js · Zeilen 84–104im vollständigen Code
// :::paragraphs{style="…"} wraps the blocks of each voice; **Patient 1:** is a run-in label.
const voice = (id, family, size, lead, extra) => ({ id, fontFamily: family, fontSize: pt(size),
  lineHeight: pt(lead), color: col('ink'), boldColor: col('ink'), ...extra });
const aside = { textAlign: 'left', firstLineIndent: pt(0), snapToGrid: false };
const paragraphStyles = [
  // Case histories and the Editorial Note: the body texture, bold labels in the accent.
  voice('case', TEXT, 9.5, LEAD, { boldColor: col('accent'), boldFontWeight: 600 }),
  voice('editorial', TEXT, 9.5, LEAD, { boldColor: col('accent'), boldFontWeight: 600 }),
  // "Reported by …": the authors' line, italic small type in the condensed sans, off the grid.
  voice('reported', LABEL, 7.8, 10.2, { ...aside, italic: true, color: col('muted'),
    hyphenation: false, marginTop: pt(4), marginBottom: pt(6) }),
  // A line the reprint adds, in the label face and the accent: never taken for 1981 text.
  voice('editor', LABEL, 8, 10.6, { ...aside, italic: true, color: col('accent'),
    marginTop: pt(3), marginBottom: pt(5) }),
  voice('colophon', LABEL, 7.4, 9.6, { ...aside, color: col('muted'), marginTop: pt(LEAD) }),
];
// MMWR cited (1) in citation order, and each report (its H1 is a chapter) counted from 1.
registerCitationEngine(createCiteprocEngine({ styles: STYLES, locales: LOCALES }));
const citations = { style: 'american-medical-association', marker: 'parentheses',
  numbering: 'chapter', bibliography: { scope: 'chapter', fontSize: em(0.86),
    lineHeight: pt(10.6), entrySpacing: pt(1.5), labelAlign: 'right' } };

Zutaten

Schrift
IBM Plex Serif, Libre Franklin, IBM Plex Sans Condensed (SIL OFL 1.1)
Dateien
  • Figure 1, timeline of the five cases, drawn in code from the dates in the case reports (Ignacio Ferro, eigener Text)

Zubereitung

#1 · Ein Absatzformat pro Stimme

Den Code finden Sie oben unter Die kurze Antwort. Ein Bulletinbericht ist in mehreren Registern geschrieben: die Fallberichte, die Liste der Personen, die sie gemeldet haben, der Kommentar der Redaktion. Jede Passage in :::paragraphs{style="…"} einzuschließen gibt ihr ein Aussehen, ohne die Wörter anzurühren, sodass die Zeile Reported by auf 7,8 pt schmale Kursive außerhalb des Grundlinienrasters fällt, während die Fallberichte die Textur des Grundtextes behalten, mit ihren Bezeichnungen **Patient 1:** in der Akzentfarbe. Die Zitationen sind als [@walzer1974] geschrieben; american-medical-association mit marker: 'parentheses' setzt sie als (1) und listet die Werke in der Reihenfolge der Zitationen, wie es das Wochenblatt tat, numbering: 'chapter' zählt die Zitationen jedes Berichts ab 1, und scope: 'chapter' setzt seine Liste mit denselben Nummern darunter.

#2 · Ein Kopf, der den ersten Bericht eröffnet

script.js · Zeilen 38–65im vollständigen Code
// Kicker and dateline are attributes of each report's H1; {titleText} read with inlineMarks
// keeps the italic genus. The July report opens where June ends, under a double rule.
const reportHead = (y, size) => [
  text('kicker', '{attr.kicker}', LABEL, 8.5, { ...caps(8.5), color: col('accent'),
    placement: at('container', 'top-left', 0, y, MEASURE) }),
  text('title', '{titleText}', DISPLAY, size, { fontWeight: 800, lineHeight: 1.08,
    inlineMarks: true, placement: at('#kicker', 'below', 0, 2.2, MEASURE) }),
  text('dateline', '{attr.dateline}', LABEL, 9, { color: col('muted'),
    placement: at('#title', 'below', 0, 2, MEASURE) }),
];
const masthead = { enabled: true, minHeight: mm(72), slot: { elements: [
  { kind: 'box', id: 'band', style: { backgroundColor: col('accent') }, placement: {
    anchor: { to: 'page', edge: 'top-left' }, size: { width: 'fill', height: mm(49) } } },
  // The series line, the reprint's number, its description and contents are the first H1's.
  text('series', '{attr.series}', LABEL, 8,
    { ...caps(8), color: col('paper'), placement: at('page', 'top-left', SIDE, 11, 120) }),
  text('number', '{attr.reprint}', LABEL, 8, { ...caps(8), color: col('paper'), align: 'right',
    placement: at('page', 'top-right', -SIDE, 11, 50) }),
  text('wordmark', 'Surveillance Notes', DISPLAY, 50, { fontWeight: 800, color: col('paper'),
    letterSpacing: pt(-1), lineHeight: 1, placement: at('page', 'top-left', SIDE - 1, 18) }),
  text('issue', '{attr.issue}', TEXT, 9.5,
  { lineHeight: 1.3, placement: at('container', 'top-left', 0, 29, 92) }),
  text('contents', '{attr.contents}', LABEL, 8, { inlineMarks: true, lineHeight: 1.3,
    placement: at('container', 'top-right', 0, 29, 76), align: 'left' }),
  rule('rule-a', 46.5, 2), rule('rule-b', 48, 0.5), ...reportHead(52, 23),
] } };
const opener = { enabled: true, minHeight: mm(26), slot: { elements: [rule('rule-a', 0, 2),
  rule('rule-b', 1.5, 0.5), ...reportHead(5, 18)] } };

Der Kopf ist die Gestaltung des Überschriftenstils des ersten Berichts, daher erscheint er nur einmal, auf Seite 1, und die Kolumnentitel lassen diese Seite aus (pages: 'body'). Dachzeile und Datumszeile kommen aus Attributen der H1 jedes Berichts, und der Titel ist {titleText}: Ein Textelement mit inlineMarks: true behält die kursive Gattung der Überschrift. Der Juli-Bericht beginnt mit denselben drei Elementen unter einer Doppellinie. Sein Überschriftenstil läuft mit spanBreak: false über die ganze Seitenbreite, sodass die Überschrift dort beginnt, wo der Juni-Bericht endet: Die Spalten darüber enden auf gleicher Höhe, und der Text läuft darunter in beiden Spalten weiter, so wie das Wochenblatt einen Bericht an den anderen anschloss.

#3 · Drei Tabellen aus tabulatorgetrenntem Text

script.js · Zeilen 439–472im vollständigen Code
const NUMBER = /^[\d,.()% –]*$/; // a column of counts aligns right, its heading centred
const table = (tsv, headerRows, columnWidths) => {
  const model = parseTSV(tsv, { headerRows });
  const numeric = model.rows[0].map((_, c) => model.rows.slice(headerRows)
    .every((row) => NUMBER.test(row[c].content)));
  return { ...model, columnWidths, rows: model.rows.map((cells, r) => cells.map((cell, c) =>
    (numeric[c] ? { ...cell, align: r < headerRows ? 'center' : 'right' } : cell))) };
};
// Two header rows, as the weekly printed them: "25th week ending" spans two columns.
const notifiable = [[0, 0, 1, 0], [0, 1, 0, 2], [0, 3, 1, 3], [0, 4, 0, 6]]
  .reduce((m, [r1, c1, r2, c2]) => mergeCells(m, { start: { row: r1, col: c1 },
    end: { row: r2, col: c2 } }), table(NOTIFIABLE, 2, [3.6, 1, 1, 1, 1.1, 1.1, 1.1]));
const added = 'Compiled for this reprint from the case reports; not part of the 1981 report.';
const res = (id, typeId, kind, placement, more) => ({ id, typeId, kind, placement,
  createdAt: 0, updatedAt: 0, ...more });
const resources = [
  res('fig-timeline', 'figure', 'svg', { position: 'bottom', span: 'page' }, {
    svg: { fileId: 'timeline.svg', width: 1780, height: 490 },
    caption: 'The five patients, September 1980 to May 1981, by month. The illness before '
      + 'the pneumonia is counted back from the month of diagnosis, as each report gives it.',
    note: `Drawn by the editors. ${added}`,
    altText: 'A timeline of five rows, one per patient: Pneumocystis pneumonia diagnosed '
      + 'between February and April 1981, two deaths in March and May.' }),
  res('tbl-cases', 'table', 'table', { position: 'top', span: 'page' }, {
    caption: 'The five case reports at a glance.', note: added,
    table: { model: table(CASES, 1, [0.7, 0.45, 1, 2.2, 2.4, 1.5]) } }),
  res('tbl-complaints', 'table', 'table', { position: 'bottom' }, {
    caption: 'Presenting complaints in 20 patients with Kaposi’s sarcoma',
    table: { model: table(COMPLAINTS, 1, [2, 1.15]) } }),
  res('tbl-notifiable', 'table', 'table', { position: 'here' }, {
    caption: 'Summary — cases of specified notifiable diseases, United States',
    note: 'Cumulative totals include revised and delayed reports through previous weeks.',
    table: { model: notifiable, styleId: 'weekly' } }),
];

Jede Tabelle ist ein Inhaltsslot mit tabulatorgetrenntem Text, dem Format, das eine Tabellenkalkulation kopiert, und parseTSV macht daraus ein Modell. Eine Spalte mit Zahlen ist rechtsbündig, ihre Überschrift zentriert; vier Aufrufe von mergeCells bauen den zweizeiligen Kopf der Übersicht meldepflichtiger Krankheiten. Der Tabellentyp setzt seinen Zähler bei jeder H1 zurück (resetOn: 'h1'), sodass jeder Bericht seine eigene Table 1 hat, wie 1981.

#4 · Ein Blau, überall verknüpft

script.js · Zeilen 17–21im vollständigen Code
const palette = { ink: '#1c1f24', accent: '#1f3f74', tint: '#e6eaf1', rule: '#a7b1c2',
  muted: '#566070', paper: '#ffffff' };
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = Object.entries({ ...palette, 'main-color': palette.accent })
  .map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));

Band, Bezeichnungen, Seitenzahlen, Tabellenköpfe und Diagramm verweisen alle auf denselben Eintrag der Palette, sodass jemand, der accent gegen die eigene Farbe eines Bulletins tauscht, die sechs Seiten auf einmal umfärbt.

Das ganze Rezept

Sandbox
// ═══ Postext Cookbook · Nº 143 · A weekly bulletin report: the first AIDS reports ═══
// https://postext.dev/en/cookbook/outbreak-report-bulletin
// Code: MIT · Text: CDC, MMWR 1981;30:250–252 and 305–308 (public domain) · Chart: original
// Fonts: IBM Plex Serif, Libre Franklin, Plex Sans Condensed (OFL) · Needs postext ≥ 1.34.0
import {
  buildDocumentWithFonts, renderPageToCanvas, registerCitationEngine, registerResourceImage,
  defaultResourceTypes, parseTSV, mergeCells, inlineSvgFonts,
} 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 = 'outbreak-report-bulletin';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: a federal blue on office white, every colour linked by id
const palette = { ink: '#1c1f24', accent: '#1f3f74', tint: '#e6eaf1', rule: '#a7b1c2',
  muted: '#566070', paper: '#ffffff' };
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = Object.entries({ ...palette, 'main-color': palette.accent })
  .map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));
// #endregion
const [TEXT, DISPLAY, LABEL] = ['IBM Plex Serif', 'Libre Franklin', 'IBM Plex Sans Condensed'];
const [TRIM_W, TRIM_H, TOP, BOTTOM, SIDE, GUTTER] = [215.9, 279.4, 22, 20, 19, 6.35];
const MEASURE = TRIM_W - 2 * SIDE; // US Letter, two columns of 86 mm
const LEAD = 13; // pt: 9.5 pt Plex Serif, as a bulletin sets two columns of Letter

const text = (id, content, family, size, extra) => ({ kind: 'text', id, content, align: 'left',
  fontFamily: family, fontSize: pt(size), color: col('ink'), overflow: 'wrap', ...extra });
const at = (to, edge, x, y, width) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) },
  ...(width && { size: { width: mm(width), height: 'auto' } }) });
const caps = (size, extra) => ({ fontFamily: LABEL, fontSize: pt(size), fontWeight: 600,
  letterSpacing: pt(size * 0.18), textTransform: 'uppercase', ...extra });
const rule = (id, y, thickness) => ({ kind: 'rule', id, color: col('accent'),
  thickness: pt(thickness), placement: at('container', 'top-left', 0, y, MEASURE) });

// #region masthead: the bulletin's band, issue strip and contents over the first report
// Kicker and dateline are attributes of each report's H1; {titleText} read with inlineMarks
// keeps the italic genus. The July report opens where June ends, under a double rule.
const reportHead = (y, size) => [
  text('kicker', '{attr.kicker}', LABEL, 8.5, { ...caps(8.5), color: col('accent'),
    placement: at('container', 'top-left', 0, y, MEASURE) }),
  text('title', '{titleText}', DISPLAY, size, { fontWeight: 800, lineHeight: 1.08,
    inlineMarks: true, placement: at('#kicker', 'below', 0, 2.2, MEASURE) }),
  text('dateline', '{attr.dateline}', LABEL, 9, { color: col('muted'),
    placement: at('#title', 'below', 0, 2, MEASURE) }),
];
const masthead = { enabled: true, minHeight: mm(72), slot: { elements: [

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

#Hochgestellte Literaturnummern

Die meisten medizinischen Fachzeitschriften stellen die Nummern hoch, statt sie in Klammern zu setzen.

-const citations = { style: 'american-medical-association', marker: 'parentheses',
+const citations = { style: 'american-medical-association', marker: 'superscript',

#Jeden Bericht auf einer neuen Seite beginnen

Eine Nachdruckreihe, die ihre Berichte einzeln ablegt, beginnt jeden auf einer frischen Seite.

-    { id: 'report', span: 'page', spanBreak: false, advancedDesign: opener },
+    { id: 'report', span: 'page', advancedDesign: opener },

#Die Vancouver-Liste verwenden

Ein medizinischer Fachartikel im Vancouver-Stil bearbeitet den mitgelieferten Stil elsevier-vancouver für die Literaturform der NLM.

Häufige Fehler

  • Ohne numbering: 'chapter' laufen die Literaturnummern durch das ganze Dokument, und scope: 'chapter' teilt nur die Listen: Der Juli-Bericht zitierte die Werke 4 und 6 bis 23, wo das Wochenblatt 1 bis 19 druckte.
  • Die Anmerkung von 1981 Paired specimens not run in parallel ist mit einem Sternchen markiert: footnotes.numberFormat: 'symbols' setzt *, †, ‡ und beginnt auf jeder Seite neu. Von diesen Zeichen steht nur das Sternchen in der Datei latin einer Fontsource-Schrift (das Kreuz steht in latin-ext, das Doppelkreuz in keiner der beiden), daher braucht eine Seite mit zwei oder drei Fußnoten eine Schrift, die sie hat, oder symbols: ['*', '§', '¶'].
  • Der Wortlaut von 1981 bleibt wie gedruckt, die Begriffe jener Zeit eingeschlossen, und das Impressum sagt es. Ein Nachdruck korrigiert nichts an dem Text, den er wiedergibt; was die Herausgeber hinzufügen (die Zeitleiste, die Falltabelle, die blaue kursive Zeile unter dem ersten Absatz), steht in einem eigenen Stil und ist gekennzeichnet.

Nachweise

Text
  • "Pneumocystis Pneumonia — Los Angeles", MMWR 1981;30(21):250–252, and "Kaposi's Sarcoma and Pneumocystis Pneumonia Among Homosexual Men — New York City and California", MMWR 1981;30(25):305–308, re-set in full from the printed issues; Table 1 of the first report and Figure 1 added by the editors from the case reports. "All material in the MMWR Series is in the public domain and may be used and reprinted without special permission; citation as to source, however, is appreciated." · Centers for Disease Control (CDC) · gemeinfrei
Bilder
  • Figure 1, timeline of the five cases, drawn in code from the dates in the case reports · Ignacio Ferro · eigener Text
Schriften
IBM Plex Serif (SIL OFL 1.1) · Libre Franklin (SIL OFL 1.1) · IBM Plex Sans Condensed (SIL OFL 1.1)
SandboxPDF