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

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

MLA形式の引用文献一覧を付けた人文学の論文

文学論文の[@key, 48]形式の引用を、MLA第9版の著者名とページによる参照に変えます。引用ブロックと、BibTeXのデータから作るWorks Citedの一覧も入ります。

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

1ページ(全4ページ)

  • 英語の見本:日本語版はまだありません
  • 仕上がり150 × 230 mm
  • 1段
  • Spectral 10.6/14.4
  • Spectral SC
  • 4ページ
  • レベル
  • Postext 1.57.1
  • 組版時間94 ms
  • コード141行

かんたんな説明

キーツの詩を論じた論文を、文学研究誌が刷るとおりに組んだ例です。著者は出典ごとに短いコードを書き、Postextが著者名とページを括弧に入れて印刷し、最後にMLA形式で引用文献の一覧を付けます。

できあがり

文学の季刊誌に載る論文です。キーツの『ギリシャの壺に寄せるオード』の最後の2行を誰が語っているのかを論じた4ページで、150 × 230 mmの誌面にSpectralで組み、節見出しと柱はSpectral SCです。章扉は黒い釉薬の色の帯と、その下の赤い粘土色の細帯に収まります。アッティカの壺の2色です。引用はMLA第9版に従います。文学部や美術史学科の多くが使う形式で、括弧に著者名とページを入れ、文中で著者に触れていればページだけ、同じ著者の作品が2つあれば短縮題を添え、Works Citedの一覧は独立したページに置きます。引用はどれもテキスト中のキーで、形式は設定1つで決まります。

このレシピが答える質問

  • APA、IEEEなどの引用スタイルで、文献を引用し参考文献を作るには?

手短な答え

script.js · 32〜44行コード全体で見る
// The text cites with [@keats-letters, 48] → (Keats, Letters 48): MLA prints the author
// and the page, and adds a short title when two works share an author. [-@eliot1932, 230]
// drops the name the sentence already gives → (230). The list is alphabetical, and a
// second work by the same author opens with a dash (MLA's ---) instead of the name.
registerCitationEngine(createCiteprocEngine({ styles: STYLES, locales: LOCALES }));
const citations = {
  style: 'modern-language-association', // MLA 9th edition, author-page
  link: true, // a citation jumps to its entry in Works Cited
  bibliography: {
    // MLA's half-inch hanging indent, scaled to a 108 mm measure.
    fontSize: em(0.94), lineHeight: pt(13.4), hangingIndent: em(2.2), entrySpacing: pt(3),
  },
};

材料

種類
Spectral, Spectral SC (SIL OFL 1.1)
素材
なし:画像はすべてコードで描画

作り方

#1 · 形式はMLA、データはBibTeX

コードは上の手短な答えにあります。引用エンジンは一度だけ登録し、citations.styleで同梱のMLA形式を指定します。citeproc-jsがそれを使って各引用と一覧を書きます。文献は論文の末尾の:::references{format=bibtex}ブロックに、文献管理ソフトが書き出す形のまま置きます。MLAではキーツの2作品に短縮題が必要で、それを各項目のshorttitleが与えます(CSLでの項目名はtitle-shortです)。

#2 · 4種類の引用

本文が[@jack1967]で作品を引くと「(Jack)」と印刷されます。論文がその本を全体として参照しているからです。ページを付けた[@keats-letters, 41]は「(Keats, Letters 41)」と印刷されます。キーツの作品を2つ引いているので、citeprocが両者を区別するために短縮題を加えます。文中ですでに批評家の名前を出しているときは、[-@eliot1932, 230]が名前を省いて「(230)」と印刷します。ページのない地の文での引用@stillinger1974 recordsは名前だけを「Stillinger records」と印刷し、名前の後の空白は1つです。MLAでは括弧に入れるものがないからです。オードを一度行番号付きで引いたら、以降の引用はMLAが認めるとおり行番号だけを付け、ふつうの括弧で手で打ちます。

#3 · 出典をピリオドの後に置くブロック引用

script.js · 48〜52行コード全体で見る
// More than four lines of prose go in a Markdown blockquote: in ink, indented, with no
// first-line indent. Its citation follows the final full stop, as MLA asks.
const blockquote = {
  color: col('ink'), italic: false, indent: em(2), firstLineIndent: em(0),
};

ネガティブ・ケイパビリティについての書簡は散文で4行を超えるので、Markdownの引用ブロックとして本文から離して組みます。正体、本文の色で、2 em下げ、1行目の字下げはありません。MLAは引用ブロックの出典を最後のピリオドの後に置くので、原稿も…fact and reason. [@keats-letters, 48]のように同じにします。上下の:::space{lines=0.5}が引用を前後の段落から離します。

#4 · Works Citedを独立したページに

script.js · 119行コード全体で見る
  headingStyles: [{ id: 'works-cited', breakBefore: { enabled: true, parity: 'any' } }],

見出しには改ページするスタイルを与え、:::bibliography{title=""}がその下に、2つ目の題を付けずに一覧を置きます。一覧はアルファベット順でぶら下げインデントを付け、キーツの2つ目の作品は、MLAが同じ著者の繰り返しに求めるとおり、名前の代わりに3 em幅のダッシュで始まります。柱を出さないこのページと章扉では、地側にノンブルを刷ります。

#5 · 壺の2色で組む章扉

script.js · 56〜81行コード全体で見る
const BAND = 116; // mm from the trim's top
const opener = {
  enabled: true,
  minHeight: mm(BAND - MARGIN.top + 4), // the text starts a line under the band
  slot: { elements: [
    { kind: 'box', id: 'band', style: { backgroundColor: col('glaze') },
      placement: { ...at('page', 'top-left'), size: { width: 'fill', height: mm(BAND) } } },
    { kind: 'box', id: 'foot', style: { backgroundColor: col('clay') },
      placement: { ...at('page', 'top-left', 0, BAND - 3), size: { width: 'fill',
        height: mm(3) } } },
    { kind: 'text', id: 'kicker', content: '{attr.kicker}', fontFamily: LABEL, fontWeight: 600,
      fontSize: pt(9), letterSpacing: pt(1.6), color: col('slip'), align: 'left',
      placement: at('container', 'top-left', 0, 6) },
    { kind: 'text', id: 'title', content: '{titleText}', fontFamily: TEXT, fontWeight: 300,
      italic: true, fontSize: pt(56), lineHeight: 0.95, color: col('paper'), align: 'left',
      overflow: 'wrap', placement: { ...at('container', 'top-left', -1, 30),
        size: { width: mm(110), height: 'auto' } } },
    { kind: 'text', id: 'sub', content: '{attr.sub}', fontFamily: TEXT, fontWeight: 300,
      fontSize: pt(13), lineHeight: 1.25, color: col('paper'), align: 'left', overflow: 'wrap',
      placement: { ...at('container', 'top-left', 0, 66),
        size: { width: mm(96), height: 'auto' } } },
    { kind: 'text', id: 'byline', content: '{attr.byline}', fontFamily: LABEL, fontWeight: 600,
      fontSize: pt(9.5), letterSpacing: pt(1.2), color: col('slip'), align: 'left',
      placement: at('container', 'top-left', 0, 82) },
  ] },
};
script.js · 16〜23行コード全体で見る
const palette = {
  ink: '#1f1a17', glaze: '#231c19', clay: '#9a3d22', slip: '#e3a27e', rule: '#c9bdb0',
  muted: '#6b6159', paper: '#fffdf9',
};
// Every colour is linked to its palette entry by id.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = Object.entries({ ...palette, 'main-color': palette.clay })
  .map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));

帯の深さは116 mmで、キッカー、Spectral Lightイタリック56 ptの題、副題、署名を収めます。どれも見出しの属性から取ります。粘土色の細帯は、帯の下端から3 mm上に固定した2つ目の箱です。

レシピの全体

Sandbox
// ═══ Postext Cookbook · Nº 096 · A humanities essay with MLA works cited ══════════
// https://postext.dev/en/cookbook/mla-humanities-essay
// Code: MIT · Text: original (CC BY 4.0) · Pictures: none
// Fonts: Spectral, Spectral SC (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 = 'mla-humanities-essay';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: the black glaze and the red clay of an Attic vase
const palette = {
  ink: '#1f1a17', glaze: '#231c19', clay: '#9a3d22', slip: '#e3a27e', rule: '#c9bdb0',
  muted: '#6b6159', paper: '#fffdf9',
};
// Every colour is linked to its palette entry by id.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = Object.entries({ ...palette, 'main-color': palette.clay })
  .map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));
// #endregion
const TEXT = 'Spectral', LABEL = 'Spectral SC';
const TRIM = { width: 150, height: 230 }; // a literary quarterly
const MARGIN = { top: 22, bottom: 22, inner: 19, outer: 21 };
const LEAD = 14.4; // pt
const at = (to, edge, x = 0, y = 0) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) } });

// #region answer: MLA 9 author-page citations and a Works Cited list
// The text cites with [@keats-letters, 48] → (Keats, Letters 48): MLA prints the author
// and the page, and adds a short title when two works share an author. [-@eliot1932, 230]
// drops the name the sentence already gives → (230). The list is alphabetical, and a
// second work by the same author opens with a dash (MLA's ---) instead of the name.
registerCitationEngine(createCiteprocEngine({ styles: STYLES, locales: LOCALES }));
const citations = {
  style: 'modern-language-association', // MLA 9th edition, author-page
  link: true, // a citation jumps to its entry in Works Cited
  bibliography: {
    // MLA's half-inch hanging indent, scaled to a 108 mm measure.
    fontSize: em(0.94), lineHeight: pt(13.4), hangingIndent: em(2.2), entrySpacing: pt(3),
  },
};
// #endregion

// #region quotation: a block quotation, set in and upright
// More than four lines of prose go in a Markdown blockquote: in ink, indented, with no

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

アレンジ

#一覧を論文に続けて組む

Works Citedを改ページせずに最後の段落の後に組む雑誌なら、見出しスタイルから改ページを外します。

-  headingStyles: [{ id: 'works-cited', breakBefore: { enabled: true, parity: 'any' } }],
+  headingStyles: [{ id: 'works-cited', breakBefore: { enabled: false } }],

#シカゴ・スタイルの著者・年形式で引く

同じ論文をシカゴ・スタイルにすると、「(Brooks 1947, 165)」のように著者名の後に年が入り、一覧もそれに合わせます。

-  style: 'modern-language-association', // MLA 9th edition, author-page
+  style: 'chicago-author-date',

よくあるつまずき

  • citeproc-jsは題をデータのとおりに印刷します。MLAは英語の題にタイトルケースを使うので、文献にもそのとおりに書いてください。

クレジット

レシピ
Ignacio Ferro
本文
フォント
Spectral (SIL OFL 1.1) · Spectral SC (SIL OFL 1.1)
SandboxPDF