かんたんな説明
中国の学術誌に載る短い研究論文です。著者は出典ごとにコードを書き、Postextが引用順に出典へ番号を振り、中国の学術誌が求める形で文献一覧を組みます。
できあがり
出版学の架空の学術誌『示例出版研究』(「出版研究の例」)に載る研究論文の2ページを、中国の大学紀要が論文を組むように組みます。判型は16开の184 × 260 mmで、2段組み、1行に小五号の23字を15 ptのグリッドに並べます。ページ幅の表題ブロックには、藍色の帯に載せた誌名、太字の黒体の表題、著者、所属、キーワード付きの要旨が入ります。引用は文献の国家規格GB/T 7714—2015の番号方式(顺序编码制)に従います。各文献は最初に引用された順に番号を取り、番号は角括弧に入れて上付きで印刷し、3つ以上連続する番号は範囲になります。文献一覧では各項目に文献種別コードを付け、中国語の文献では著者3名のあとに等を、欧文の文献では「et al.」を書きます。APA 7で引用する博士論文の一章は同じ引用記法を著者年方式で使います。
このレシピが答える質問
- 中国の規格GB/T 7714に従って、縦組みでも引用するには?
- APA、IEEEなどの引用スタイルで、文献を引用し参考文献を作るには?
手短な答え
// Register the engine once, before the first build. The GB/T 7714 numeric style writes
// superscript [n] in the order works are first cited, joins three or more in a row into a
// range and sets the list with its type codes: [M] book, [J] article, [D] thesis, [C]
// conference paper, [EB/OL] web page. Its CSL file holds a second layout for works whose
// language is English, with "et al." for 等: a Western entry takes "et al." and a Chinese
// one keeps 等, each chosen by the entry's `language`.
registerCitationEngine(createCiteprocEngine({ styles: STYLES, locales: LOCALES }));
const citations = {
style: 'china-national-standard-gb-t-7714-2015-numeric',
locale: 'zh-CN', // 等, 卷, 版 and the other terms of the list
bibliography: { fontSize: em(7.5 / BODY), lineHeight: pt(12), entrySpacing: pt(1.5),
labelWidth: em(1.7) }, // turnovers under the text, not past it: [1] and a space
};
材料
- 機能
- 引用スタイルによる引用参考文献から作る文献一覧文字グリッド中国語・日本語・韓国語のフォント中国語の約物の幅1段組みと2段組みデザインした章扉デザイン要素の基準位置番号付き見出し見出しスタイル番号のない章囲みインラインのチップ柱とノンブルセマンティックカラーパレットPDFの書き出し
- 種類
- Noto Serif SC, Noto Sans SC, LXGW WenKai TC (SIL OFL 1.1)
- 素材
- なし:画像はすべてコードで描画
作り方
#1 · スタイルと、欧文文献のためのレイアウト
コードは前出の手短な答えにあります。引用エンジンは最初の組版の前に一度だけ登録します。postext-citeprocにはGB/T 7714の3つのスタイル、番号方式、著者年方式、注方式が入っています(引用)。本文では引用は角括弧に入れたキーです。[@tinker1963]は上付きの[1]を、[@rayner2016; @dyson2001; @lin2023]は[2–4]を印刷します。2つ続く番号は列挙のまま[5,6]になります。再び引用された文献は最初の番号を保ちます。第3段落の[4]や、論文の後半の[1]と[2]がそうです。
規格は、欧文文献では最初の3名の著者のあとに「et al.」、中国語文献では等を求めます。同梱のCSLファイルにはそのための2つのレイアウトがあり、一方は英語の文献用です。各項目は自分のlanguageフィールドに応じてレイアウトを選びます。Raynerと共著者4名は「RAYNER K, SCHOTTER E R, MASSON M E J, et al.」に、林岚と共著者3名は「林岚, 周明远, 陈思齐, 等」になります。locale: 'zh-CN'で一覧のそれ以外の語が中国語になります。
#2 · CSL-YAMLブロックに書く文献
文献はMarkdownの末尾の:::references{format=csl-yaml}ブロックに、ZoteroがCSL YAMLとして書き出す形式で並べます(文献データ)。コードはCSLの種別で決まります。bookは[M]、article-journalは[J]、thesisは[D]、paper-conferenceは//と会議録名のあとに[C]を、webpageは[EB/OL]と角括弧に入れた閲覧日を印刷します。DOIのある雑誌論文は[J/OL]になり、規格どおりDOIを残します。中国語の名前はliteralに入れるので、スタイルが姓と名に分けることはありません。:::bibliography{title=""}で一覧を番号のない見出し「参考文献」の下に置き、labelWidthで2行目以降を番号の外ではなく項目のテキストの下にそろえます。

#3 · 帯に載せた表題ブロック
const BAND = 30; // mm from the trim's top
const at = (id, edge, y) => ({ anchor: { to: id ? `#${id}` : 'container', edge },
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 onBand = (x, y) => ({ anchor: { to: 'page', edge: 'top-left' },
offset: { x: mm(x), y: mm(y) }, size: { width: mm(AREA) } });
const [JOURNAL, ISSUE] = ['示例出版研究', '第44卷 第3期 2026年9月']; // the journal's band
const masthead = { enabled: true, minHeight: pt(9 * LEAD), slot: { elements: [
{ kind: 'box', id: 'band', style: { backgroundColor: col('indigo') },
placement: { anchor: { to: 'page', edge: 'top-left' },
size: { width: 'fill', height: mm(BAND) } } },
line('journal', JOURNAL, HEI, 15, 'paper', onBand(15.8, 13),
{ fontWeight: 700, align: 'left', letterSpacing: pt(3) }),
line('issue', ISSUE, HEI, 8, 'mist', onBand(15.8, 16),
{ align: 'right' }),
line('title', '{titleText}', HEI, 17, 'ink', at('', 'top-left', 14),
{ fontWeight: 700, lineHeight: 1.45 }),
line('authors', '{attr.authors}', KAI, 12, 'ink', at('title', 'below', 4)),
line('affiliations', '{attr.affiliations}', SONG, 7.5, 'muted', at('authors', 'below', 2)),
] } };
表題ブロックはH1のデザインで、両段にまたがる見出しスタイルです。帯は仕上がり枠に固定した囲みで、その上に誌名を白で置きます。表題、著者、所属は見出しとその属性から取り、それぞれ直前の要素の下に置く(#title、below)ので、表題が3行になると残りが押し下げられます(幅と詳細デザイン)。
#4 · 要旨とそのラベル
// In 宋, not 楷: the one Kai on Fontsource is a Taiwan face (gotcha: cjk-face-region).
const calloutStyles = [{ id: 'abstract', span: 'page', backgroundEnabled: false,
padding: { top: pt(0), bottom: pt(0), left: em(2), right: em(2) },
marginTop: pt(0), marginBottom: pt(LEAD),
body: { fontFamily: SONG, fontSize: pt(BODY), lineHeight: pt(LEAD), firstLineIndent: pt(0),
textAlign: 'justify' } }];
const chipStyles = [{ id: 'label', fontFamily: HEI, bold: true, color: col('indigo'),
backgroundEnabled: false, borderWidth: pt(0), paddingX: em(0), gap: em(0.5) }];
要旨はページ幅の囲みで、左右を2字ずつ字下げします。ラベルはチップです。:chip[摘 要:]{style="label"}は語を太字の黒体、学術誌の藍色で、枠なしに組みます(チップスタイル)。中国の学術誌は要旨を楷体で組むことが多いのですが、ここでは「よくあるつまずき」に書いた理由で宋体のままにしています。
const palette = {
ink: '#1a1a1a', indigo: '#24427a', mist: '#b8c6e0', rule: '#9aa3b5', muted: '#5f6470',
paper: '#ffffff',
};
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = Object.entries({ ...palette, 'main-color': palette.indigo })
.map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));
レシピの全体
// ═══ Postext Cookbook · Nº 090 · A Chinese paper cited to GB/T 7714 ═════════════════
// https://postext.dev/en/cookbook/gbt7714-chinese-paper
// Code: MIT · Text: original (CC BY 4.0) · Pictures: none
// Fonts: Noto Serif SC, Noto Sans SC, LXGW WenKai TC (SIL OFL 1.1) · Needs postext ≥ 1.34.0
import {
buildDocument, withLoadedFonts, 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 frame; the paper is Chinese in both editions
const RECIPE = 'gbt7714-chinese-paper';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: black text, one indigo for the journal's name, its rules and its labels
const palette = {
ink: '#1a1a1a', indigo: '#24427a', mist: '#b8c6e0', rule: '#9aa3b5', muted: '#5f6470',
paper: '#ffffff',
};
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = Object.entries({ ...palette, 'main-color': palette.indigo })
.map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));
// #endregion
const [SONG, HEI, KAI] = ['Noto Serif SC', 'Noto Sans SC', 'LXGW WenKai TC']; // 宋, 黑, 楷
const [BODY, LEAD] = [9, 15]; // pt: 小五 on a 15 pt line, the grid both columns share
const [CHARS, LINES] = [23, 40]; // 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, 152.4
// #region answer: GB/T 7714 numbered: [1] in citation order, [2–4], 等 or et al. by language
// Register the engine once, before the first build. The GB/T 7714 numeric style writes
// superscript [n] in the order works are first cited, joins three or more in a row into a
// range and sets the list with its type codes: [M] book, [J] article, [D] thesis, [C]
// conference paper, [EB/OL] web page. Its CSL file holds a second layout for works whose
// language is English, with "et al." for 等: a Western entry takes "et al." and a Chinese
// one keeps 等, each chosen by the entry's `language`.
registerCitationEngine(createCiteprocEngine({ styles: STYLES, locales: LOCALES }));
const citations = {
style: 'china-national-standard-gb-t-7714-2015-numeric',
locale: 'zh-CN', // 等, 卷, 版 and the other terms of the list
bibliography: { fontSize: em(7.5 / BODY), lineHeight: pt(12), entrySpacing: pt(1.5),
labelWidth: em(1.7) }, // turnovers under the text, not past it: [1] and a space
};
// #endregion
// #region masthead: the journal's name on an indigo band, then title, authors, affiliations
const BAND = 30; // mm from the trim's top
const at = (id, edge, y) => ({ anchor: { to: id ? `#${id}` : 'container', edge },
組み立てたscript.jsはそのまま動きます。任意のページのモジュールスクリプトに貼り付けるか、レシピをCodePenで開いてください。 GitHub上のレシピのフォルダー ↗ (新しいタブで開きます)
アレンジ
#上付きの代わりに亀甲かっこ
引用番号を本文と同じ大きさで行の中に印刷する学術誌もあります。markerは番号の示し方だけを変え、スタイルには触れません。'brackets'は行中の[1]を、'corner'は〔1〕を印刷します。
locale: 'zh-CN', // 等, 卷, 版 and the other terms of the list
+ marker: 'brackets',#中国語の文献を先に
中国語と欧文が混在する参考文献では、中国語の文献を欧文文献より前に並べることがあります。番号方式では一覧の番号が上から順に並ばなくなるので、著者年方式のほうが向いています。
- style: 'china-national-standard-gb-t-7714-2015-numeric',
+ style: 'china-national-standard-gb-t-7714-2015-author-date',
locale: 'zh-CN', // 等, 卷, 版 and the other terms of the list
- bibliography: { fontSize: em(7.5 / BODY), lineHeight: pt(12), entrySpacing: pt(1.5),
+ bibliography: { groupByLanguage: true, fontSize: em(7.5 / BODY), lineHeight: pt(12),よくあるつまずき
つまずき
文書のタグはLANGではなくzh-Hansかzh-Hantにする
レシピの版はenとesですが、中国語のサンプルはどちらの版でも中国語です。`locale: LANG`では英語やスペイン語とタグ付けされ、ラテン文字の語がハイフネーションされ、図にFigureやFiguraの表示名が付き、PDFの言語も誤ります。postext 1.30以降、このタグはテキストを組む言語(計測、描画、埋め込みに使う言語)でもあるので、英語やスペイン語のタグでは、中国語のフォントの数字と、ラテン文字のテキストと共通の約物が別の字形になり、改行の位置も変わります。タグは自分で書いてください。'zh-Hans'(中国本土の慣習:GBの改行規則、開明式の約物)または'zh-Hant'(台湾:全角で中央に置く約物)、香港なら'zh-HK'です。単なる'zh'は簡体字、本土として読まれます。日本語のサンプルには'ja'を使います(つまずき「ja-locale-tag」)。 中国語の改行 →
つまずき
中国語の書体はcjkブロックを通じてスライス単位で読み込む
Fontsourceは中国語、日本語、韓国語のファミリーを、ウェイトごとに約100個のファイルとして配信し、各ファイルが文字の範囲を受け持ちます。loadFontsが取得するのはlatinファイルだけなので、画面では漢字がシステムの書体で出て計測が狂い、fontsourceProviderはPDFにそのlatinファイルを渡すため、漢字が空の四角で印字されます。キットのcjkブロックを挙げ、loadFontsのあとにloadCjkFonts(FONTS, markdown)を呼び(本で複数のCJK書体を使うときは、それぞれの書体で組むテキストを渡して書体ごとに1回)、renderToPdfにfontProvider: cjkPdfProviderを渡してください。どちらもテキストの文字を含むファイルを取得します。 中国語・日本語・韓国語のフォント →
- 括弧なしの
@zhou2019のような叙述的な引用は、著者名を示して番号を付けますが、キーは漢字の部分まで続くため、@zhou2019认为は存在しないキーとして読まれます。中国語の論文がもともとそうするように、名前を本文に書いてそのあとに引用を置き、周明远[@zhou2019]认为と書いてください。 - 同梱の番号方式のスタイルはロケーターを印刷しません。
[@zhou2019, 页 45]はページなしの[5]になります。GB/T 7714ではページを上付きの括弧のあとに置き[5]45としますが、スタイルが対応するまではページを文中に書いてください。 - Fontsourceにある唯一の楷書体LXGW WenKai TCは台湾向けの書体で、,と。を文字枠の中央に描きます。
zh-Hansではエンジンが文字枠の右半分を詰めるため、字形が欠けます。そのため要旨はNoto Serif SCで組み、楷書体は約物を含まない著者名に使っています。 - 文字グリッドでは段末そろえが既定でオフです。すべての行がグリッドに乗り、次の見出しが入らない段は短く終わります。オフのままだと、1ページ目の第2段は3行短く終わり(見出し「2 结果」はそれ自体の2行と、その下の本文2行を必要とするため、2ページ目の頭に送られます)、最後のページは第1段がいっぱいになって第2段が半分ほどで終わります。このレシピは
headings.balancing.enabled: trueにしています。段末そろえは短い段の見出しの上にグリッドの行を丸ごと足し、文字を文字枠からずらして字間を広げることはありません。最後のページの2段も同じ高さで終わります。
クレジット
- 本文
- 書き下ろしの文章, CC BY 4.0
- フォント
- Noto Serif SC (SIL OFL 1.1) · Noto Sans SC (SIL OFL 1.1) · LXGW WenKai TC (SIL OFL 1.1)


