かんたんな説明
日本の学会誌に載る短い研究論文です。著者は文献ごとにコードを書き、Postextは引用された順に番号を振り、日本の科学技術系の学会誌が求める形で参考文献一覧を印刷します。
できあがり
架空の活字・組版研究の学会誌に載る研究ノート「号数活字の三つの系列」の2ページを、日本の学会が学会誌を組むのと同じ形で組みます。A4判、9ptのNoto Serif JPで25字×45行の2段組み、題は学会誌の緑の帯の上にShippori Mincho B1で組みます。引用は、日本の科学技術系の学会誌が使う参照文献の書き方の指針SIST 02に従います。各文献に最初に引用された順で(1)、(2, 3)と番号を振り、参考文献の下の一覧では日本人の名前を姓から書き、出版地を出版者の前に、出版年を最後に置きます。9つの号数の表、それを原寸の比率で描いた図、2つの脚注には日本語のラベルが付きます。GB/T 7714で引用する中国語論文が、この中国語版にあたります。
このレシピが答える質問
- APA、IEEEなどの引用スタイルで、文献を引用し参考文献を作るには?
- 日本語の本で、(1)の注を章末、ページの下、または見開きにわたって本文の横に置くには?
手短な答え
// Register the engine once, before the first build. SIST 02, the standard Japanese science
// and technology journals cite to, numbers works in the order they are first cited; the
// ja-JP locale writes the list's words and joins authors with と and ほか. The document's
// own locale 'ja' gives the notes their Japanese defaults: at the foot of the column,
// numbered per page, a superscript marker and a rule a third of the column.
registerCitationEngine(createCiteprocEngine({ styles: STYLES, locales: LOCALES }));
const citations = {
style: 'sist02',
locale: 'ja-JP',
bibliography: { fontSize: em(8 / BODY), lineHeight: pt(13), entrySpacing: pt(1),
labelWidth: em(2.2) }, // turnovers under the text of the entry, past the (n)
};
const footnotes = { fontSize: pt(7.5), lineHeight: pt(11.5), color: col('ink'),
separator: { color: col('rule') } }; // placement, numbering and marker: the 'ja' defaults
材料
- 機能
- 引用スタイルによる引用参考文献から作る文献一覧日本の本の注脚注番号付きキャプション「図」と「表」を文書の言語で表スタイルキャプションのスタイルリソースとしての図と表その場に置く図番号付き見出し行取りの見出し1段組みと2段組み文字グリッドデザインした章扉見出しスタイル中国語・日本語・韓国語のフォントインラインのチップ柱とノンブルPDFの書き出し
- 種類
- Noto Serif JP, Noto Sans JP, Shippori Mincho B1 (SIL OFL 1.1)
- 素材
- Figure 1, the three series of type sizes, drawn in code to scale (Postext Cookbook, CC BY 4.0)
作り方
#1 · スタイル、ロケール、注
コードは前に掲げた手短な答えです。postext-citeprocはSIST 02を'sist02'として同梱し、CSLロケールja-JPも同梱しています。このロケールは一覧の用語を日本語で書き、本文に組み込む引用では日本人の著者2人を「と」で、3人以上を「ほか」でつなぎます(引用)。本文では[@kawada1949; @suzuki2015]が(2, 3)を印刷し、高橋[@takahashi2012]がは名前の後に番号を置いて「高橋(8)が」となり、ページでは括弧の両側に、和文中の欧文の語と同じ四分アキが入ります。中国のGB/T 7714とは合印が異なります。SIST 02は番号を上付きにせず括弧に入れ、GB/T 7714は角括弧に入れて上付きにします。注には何も要りません。locale: 'ja'の横組みの文書では、注は段の下端に置かれ、ページごとに1から番号が振られ、上付きの合印と段の3分の1の長さの罫が付きます。
#2 · CSL-YAMLブロックに書く文献
文献はMarkdownの末尾の:::references{format=csl-yaml}に並べます。ZoteroがCSL YAMLとして書き出す形式です(引用の書き方)。日本人の名前はfamilyとgivenに分けて{family: 鈴木, given: 広光}と入れ、SIST 02はそれを鈴木広光と続けて印刷します。Kornickiはカンマを保ち、Kornicki, Peterとなります。叢書はcollection-titleに入れ、出版年の後に括弧付きで印刷されます。日本印刷学会誌の2本の論文は、巻、号、ページをvol. 49, no. 2, p. 76–80と示します。どの文献も実在し、CiNiiで書誌を確かめられます。

#3 · 学会誌の帯に載せる題
const BAND = 78; // mm from the trim's top: the title sits on the journal's green
const at = (id, y) => ({ anchor: { to: `#${id}`, edge: 'below' }, offset: { y: mm(y) },
size: { width: mm(AREA) } });
const line = (id, content, family, size, color, placement, extra) => ({ kind: 'text', id,
content, fontFamily: family, fontSize: pt(size), color: col(color), align: 'center',
overflow: 'wrap', placement, ...extra });
const top = (y) => ({ anchor: { to: 'container', edge: 'top-left' }, offset: { y: mm(y) },
size: { width: mm(AREA) } });
const masthead = { enabled: true, minHeight: pt(10 * PITCH), slot: { elements: [
{ kind: 'box', id: 'band', style: { backgroundColor: col('green') },
placement: { anchor: { to: 'page', edge: 'top-left' },
size: { width: 'fill', height: mm(BAND) } } },
line('journal', '活字と組版の研究', GOTHIC, 13, 'paper', top(-13), { fontWeight: 700,
align: 'left', letterSpacing: pt(2) }),
line('issue', '第12巻 第2号(2026)', GOTHIC, 8, 'mist', top(-12), { align: 'right' }),
line('kind', '{attr.kind}', GOTHIC, 8, 'mist', top(2), { fontWeight: 700,
letterSpacing: pt(2) }),
line('title', '{titleText}', TITLE, 20, 'paper', at('kind', 3), { fontWeight: 700,
lineHeight: 1.45 }),
line('english', '{attr.english}', MINCHO, 8.5, 'mist', at('title', 3)),
line('author', '{attr.authors}', MINCHO, 11, 'ink', top(BAND - 16)),
line('affiliation', '{attr.affiliation}', MINCHO, 8, 'muted', at('author', 1.5)),
] } };
表題ブロックはH1のデザインで、2段にまたがる見出しスタイルです。帯は仕上がりに固定した箱で、ラベル、題、その英訳がその上に載ります。それぞれ前の要素の下に置くので、題が3行になると英訳の行が押し下げられます。著者と所属は見出しの属性から取り、帯の下に置きます。
#4 · 要旨とそのラベル
const calloutStyles = [{ id: 'abstract', span: 'page', backgroundEnabled: false,
stripe: { enabled: true, side: 'top', width: pt(1.5), color: col('green') },
padding: { top: mm(2.5), bottom: mm(2.5), left: em(2), right: em(2) },
marginTop: pt(0), marginBottom: pt(PITCH),
body: { fontFamily: MINCHO, fontSize: pt(8.5), lineHeight: pt(14), firstLineIndent: pt(0),
textAlign: 'justify' } }];
const chipStyles = [{ id: 'label', fontFamily: GOTHIC, bold: true, color: col('green'),
backgroundEnabled: false, borderWidth: pt(0), paddingX: em(0), gap: em(1) }];
要旨は緑の上ストライプの下に置いたページ幅の囲みで、ラベルは学会誌の色の太字ゴシックのチップです。各ラベルの後にMarkdownで入力した全角スペースが、要 旨と本文の間をあけます。
#5 · 引用した位置に置く表1と図1
const SIZES = `号数\t旧号数(pt)\t新号数(pt)\t系列
初号\t42\t42\t初号系
一号\t27.5\t26.25\t一号系
二号\t21\t21\t初号系
三号\t16\t15.75\t三号系
四号\t13.75\t13.125\t一号系
五号\t10.5\t10.5\t初号系
六号\t8\t7.875\t三号系
七号\t5.25\t5.25\t初号系
八号\t4\t3.9375\t三号系`;
const SERIES = [[42, 21, 10.5, 5.25], [27.5, 13.75], [16, 8, 4]]; // old values, pt
const resources = [
{ id: 'tbl:sizes', typeId: 'table', kind: 'table', createdAt: 0, updatedAt: 0,
placement: { position: 'here' },
caption: '号数活字の大きさ。新号数はJIS Z 8305(1962)による',
table: { model: { ...parseTSV(SIZES), headerRowCount: 1, columnWidths: [16, 28, 28, 28] } } },
{ id: 'fig:series', typeId: 'figure', kind: 'svg', createdAt: 0, updatedAt: 0,
placement: { position: 'here' },
caption: '号数活字の三つの系列。上から初号系、一号系、三号系。正方形は旧号数の大きさを実寸で示す',
altText: 'Three rows of squares drawn to scale: 42, 21, 10.5 and 5.25 pt; 27.5 and 13.75 pt; '
+ '16, 8 and 4 pt. Each square is half the one before it.',
svg: { fileId: 'series.svg', width: 790, height: 520 } },
];
defaultResourceTypes('ja')は図と表を与えます。この論文では章ごとではなく通しで表1、図1と番号を振るので、テンプレートは'{n}'です。どちらも'here'で、引用する段落の下、段の中に置きます。図の正方形は、それが表す活字の大きさで描いています。初号の42ptから八号の4ptまでで、半分ずつ小さくなっていく系列がページ上で見て取れます。
レシピの全体
// ═══ Postext Cookbook · Nº 125 · A Japanese research paper cited to SIST 02 ═══════════
// https://postext.dev/en/cookbook/sist02-research-paper
// Code: MIT · Text: original (CC BY 4.0) · Pictures: drawn in code
// Fonts: Noto Serif JP, Noto Sans JP, Shippori Mincho B1 (SIL OFL 1.1) · Needs postext ≥ 1.34.0
import {
buildDocument, withLoadedFonts, renderPageToCanvas, registerCitationEngine, defaultResourceTypes,
parseTSV, registerResourceImage, 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 frame; the paper is Japanese in both
const RECIPE = 'sist02-research-paper';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: black text, one deep green for the journal, its rules and its labels
const palette = {
ink: '#1b1d1c', green: '#1f5a46', mist: '#cfe0d8', rule: '#a7b3ad', muted: '#5d6662',
paper: '#ffffff',
};
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 [MINCHO, GOTHIC, TITLE] = ['Noto Serif JP', 'Noto Sans JP', 'Shippori Mincho B1'];
const [BODY, PITCH] = [9, 15.5]; // pt: 9 pt text on a 15.5 pt line
const [CHARS, LINES] = [25, 45]; // characters to a column's line, lines to a column
const PT = 25.4 / 72; // mm in a point
const AREA = (2 * CHARS + 2) * BODY * PT; // mm: two columns and a 2-em gutter, 165
// #region answer: SIST 02 in Japanese: numbered citations, the list under 参考文献
// Register the engine once, before the first build. SIST 02, the standard Japanese science
// and technology journals cite to, numbers works in the order they are first cited; the
// ja-JP locale writes the list's words and joins authors with と and ほか. The document's
// own locale 'ja' gives the notes their Japanese defaults: at the foot of the column,
// numbered per page, a superscript marker and a rule a third of the column.
registerCitationEngine(createCiteprocEngine({ styles: STYLES, locales: LOCALES }));
const citations = {
style: 'sist02',
locale: 'ja-JP',
bibliography: { fontSize: em(8 / BODY), lineHeight: pt(13), entrySpacing: pt(1),
labelWidth: em(2.2) }, // turnovers under the text of the entry, past the (n)
};
const footnotes = { fontSize: pt(7.5), lineHeight: pt(11.5), color: col('ink'),
separator: { color: col('rule') } }; // placement, numbering and marker: the 'ja' defaults
// #endregion
// #region masthead: the journal, the paper's kind, its title and English title on a band
組み立てたscript.jsはそのまま動きます。任意のページのモジュールスクリプトに貼り付けるか、レシピをCodePenで開いてください。 GitHub上のレシピのフォルダー ↗ (新しいタブで開きます)
アレンジ
#上付きの引用番号
番号を行の上に上げる日本の学会誌も多くあります。marker: 'superscript'は番号を括弧なしで上付きに印刷し、一覧には手を加えません。
locale: 'ja-JP',
+ marker: 'superscript',#論文全体で通し番号の注
数ページの論文なら、注をページごとではなく1から最後まで通しで数えることもできます。
-const footnotes = { fontSize: pt(7.5), lineHeight: pt(11.5), color: col('ink'),
+const footnotes = { numbering: 'document', fontSize: pt(7.5), lineHeight: pt(11.5),
+ color: col('ink'),よくあるつまずき
つまずき
日本語のテキストのタグは'ja'。zh-HansやLANGにしない
レシピの版はenとesですが、日本語のサンプルはどちらの版でも日本語です。`locale: LANG`では英語やスペイン語とタグ付けされ、中国語のタグでは中国語の規則で組まれます(開明式の約物、小書きの仮名が行頭に来てもよい、図の代わりに图、PDFでは中国の字形)。postext 1.30以降、このタグはテキストを組む言語(計測、描画、埋め込みに使う言語)でもあるので、'ja'以外のタグでは日本語の字形ではなく別の字形(中国語のタグでは中国の字形)になり、改行の位置も変わります。'ja'と書いてください。日本の地域(JLReqの改行と約物、ゴマの圏点、ルビの間隔、図と表の表示名)が選ばれ、ハイフネーションが切られます。リントは、zhやkoのタグで仮名を含むテキストをエラーにします。 日本語の改行(禁則処理) →
つまずき
日本語は日本語の書体で組む
Noto Serif SCとTCは仮名を持っていますが、漢字は中国の字形(直、骨、角が異なります)で、仮名も中国のデザインで描きます。本文はNoto Serif JPかShippori Mincho B1、見出しはNoto Sans JPで組み、loadCjkFontsで読み込んでください。Fontsourceの日本語ファイルには変体仮名などの古い仮名(U+1B000–1B16F)がないため、loadCjkFontsはそこで失敗し、PDFには四角が印字されます。現代の仮名で書くか、それを持つ書体をレシピのassetsに同梱してください。Shippori Minchoにはマクロン付きの母音ōとūもないので、ローマ字はラテン文字の書体で組んでください。 仮名、漢字、ローマ字 →
つまずき
中国語の書体はcjkブロックを通じてスライス単位で読み込む
Fontsourceは中国語、日本語、韓国語のファミリーを、ウェイトごとに約100個のファイルとして配信し、各ファイルが文字の範囲を受け持ちます。loadFontsが取得するのはlatinファイルだけなので、画面では漢字がシステムの書体で出て計測が狂い、fontsourceProviderはPDFにそのlatinファイルを渡すため、漢字が空の四角で印字されます。キットのcjkブロックを挙げ、loadFontsのあとにloadCjkFonts(FONTS, markdown)を呼び(本で複数のCJK書体を使うときは、それぞれの書体で組むテキストを渡して書体ごとに1回)、renderToPdfにfontProvider: cjkPdfProviderを渡してください。どちらもテキストの文字を含むファイルを取得します。 中国語・日本語・韓国語のフォント →
- 日本人の名前は
familyとgivenに分けるか、スペースのない1つのliteralとして書いてください。BibTeXによくあるように、姓と名の間にスペースを入れた1つの文字列(author = {夏目 漱石})は姓から先として読まれますが、ローマ字表記のNatsume Sosekiは英語の名前と同じく名、姓の順に読まれます。 - 同梱のSIST 02はDOIを印刷しません。DOIが重要な論文では、本文か注にDOIを書いてください。
クレジット
- 本文
- 書き下ろしの文章, CC BY 4.0
- 画像
- Figure 1, the three series of type sizes, drawn in code to scale · Postext Cookbook · CC BY 4.0
- フォント
- Noto Serif JP (SIL OFL 1.1) · Noto Sans JP (SIL OFL 1.1) · Shippori Mincho B1 (SIL OFL 1.1)


