本文へスキップ
レシピ番号89

レシピ集 · 第5章 · 本の構成

シカゴ式の注を付けた歴史論文

4ページの歴史論文。[@key, 87]の引用がページの地にシカゴ式の注として組まれます。初出は完全な形、以降は短縮形で、末尾に参考文献が付きます。

このページの内容
ジャンル
論文・学術書
出力
Canvas · PDF
レベル
中級
Postext
Postext 1.65.0で検証済み
1.25.0以上が必要 · postext-pdf ≥ 1.25.0
ライセンス
2026年10月11日更新
コードMIT · 本文CC BY 4.0

1ページ(全4ページ)

  • 英語の見本:日本語版はまだありません
  • 仕上がり156 × 234 mm
  • 1段
  • Crimson Pro 11/14
  • IBM Plex Sans Condensed
  • 4ページ
  • レベル
  • Postext 1.57.1
  • 組版時間607 ms
  • コード131行

かんたんな説明

イギリスの町がロンドンの時刻に合わせるようになった経緯を扱う論文です。著者が引いた出典はそれぞれページの下の番号付きの注になり、文献の一覧は最後に付きます。

できあがり

ある学術誌の技術史シリーズの抜き刷りです。1840年から1880年の間に、イギリスの町がそれぞれの正午を捨ててロンドンの正午に合わせた経緯を、約1,100語の論文で扱います。ページは156 × 234 mmの見開き対称で、Crimson Proの11/14 ptで組み、1ページ目の上半分に鉄道車両の緑の帯を敷きます。著者は出典をすべて[@howse1980, 87]のようなキーで書き、Postextはそれぞれを、シカゴ式の注と参考文献のスタイルで、ページの地に番号付きの注として組みます。ある文献の最初の注は著者、タイトル、出版社を示し、それ以降の注は短縮形になります。著者自身の説明的な注も同じ通し番号を使い、論文の最後を参考文献が締めくくります。

このレシピが答える質問

  • シカゴ・スタイルで引用を脚注にし、2回目以降は短縮形にするには?
  • APA、IEEEなどの引用スタイルで、文献を引用し参考文献を作るには?

手短な答え

script.js · 32〜49行コード全体で見る
// 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') },
};

材料

種類
Crimson Pro, IBM Plex Sans Condensed (SIL OFL 1.1)
素材
なし:画像はすべてコードで描画

作り方

#1 · 引用ごとに注を1つ

コードは上の手短な答えにあります。chicago-notes-bibliographyは注のスタイルなので、本文中の引用は上付きの番号を残し、その文言は著者自身の[^notes]と同じ通し番号の脚注へ移ります。notes: 'footnote'はそれを明示的に指定します。citeproc-jsはすでに引いた文献を記録しているので、注3は「Derek Howse, Greenwich Time and the Discovery of the Longitude (Oxford University Press, 1980), 87」となり、同じ本を再び引く注4は「Howse, Greenwich Time and the Discovery of the Longitude, 90–91」となります。同梱のスタイルは『シカゴ・マニュアル』第18版で、「Ibid.」をやめて短縮形を繰り返すので、注11と注12は短縮形を2回印刷します。

#2 · 著者の書く注も引用する

[^note]の中の引用はその注にとどまり、行内に組まれます。その文献の初出なら完全な形になります。注1は、著者の一文の後にSchivelbuschの完全な書誌が続いています。引用はどれもスタイルのピリオドで終わるので、引用で終わる注には、Markdownで自分のピリオドを付ける必要はありません。

#3 · 前置き、後置き、所在表示

[see @simmons1991, 346–47; and @bartky2000, chap. 9]は、最初の文献の前に「see」を置き、2つの文献をセミコロンで区切り、それぞれの所在表示を残します。数字だけならページです。chap.とcap.は、どちらの言語でも章を示します。所在表示の後のテキストは後置きです。[@howse1980, 82–84, on the mail-coach timepieces]は、ページの後にその語句を印刷します。

#4 · 章扉を帯の中に置く

script.js · 53〜74行コード全体で見る
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) },
  ] },
};

帯は仕上がり線から122 mm下まで伸び、本文はその9 mm下から始まります。年代は見出しの属性years="1840–1880"から取り、Crimson Pro Lightの54 ptで組むので、カードにはタイトルと同じくらい大きな数字が見えます。署名の属性は偶数ページの柱にも使われます。

script.js · 16〜23行コード全体で見る
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' } }));

レシピの全体

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') },

組み立てたscript.jsはそのまま動きます。任意のページのモジュールスクリプトに貼り付けるか、レシピをCodePenで開いてください。 GitHub上のレシピのフォルダー ↗ (新しいタブで開きます)

アレンジ

#注を最後にまとめる

学術誌によっては、注を論文の後にまとめます。引用は完全な形と短縮形をそのまま保ちます。

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

#「Ibid.」を復活させる

シカゴ式の第17版は、直前と同じ文献を引く注に「Ibid.」を印刷します。Zoteroのスタイルリポジトリーにあるそのスタイルの.cslファイルを文字列に貼り付け、カスタムスタイルとして使います。

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

よくあるつまずき

  • 引用の後にピリオドを打って注を終えないでください。スタイルがすでに引用をピリオドで閉じていて、Postextは2つをまとめないので、注がピリオド2つで終わってしまいます。
  • 注のスタイルで角括弧なしの@howse1980と書くと、文の中には注番号だけが残り、「As ¹ says」のように著者名が消えます。名前は自分で書き、引用は角括弧に入れてください。As Howse says,[@howse1980]のように書きます。

クレジット

レシピ
Ignacio Ferro
本文
書き下ろしの文章, CC BY 4.0
フォント
Crimson Pro (SIL OFL 1.1) · IBM Plex Sans Condensed (SIL OFL 1.1)
SandboxPDF