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

レシピ集 · 第3章 · 見出しと章扉

雑誌の特集:写真の扉からエンドマークまで

1つのadvancedDesignの扉が、裁ち落としの写真と、見出しのキッカー、見出し、リード、署名を組みます。続いて2つのフロートの囲みとチップのエンドマーク。

このページの内容
  • 英語の見本:日本語版はまだありません
  • 仕上がり225 × 297 mm
  • 2段, 段間6 mm
  • Literata 9.6/13.4
  • Instrument Sans
  • Instrument Serif
  • 4ページ
  • レベル
  • Postext 1.57.1
  • 組版時間113 ms
  • コード240行

かんたんな説明

ページ上部の大きな写真で始まる自然雑誌の記事です。題、短い導入文、著者、写真のクレジットの置き方と、そのあとの囲みや小さな終わりの印の作り方がわかります。

できあがり

自然雑誌『Boreal』冬号の特集ページで、判型は225 × 297mmです。記事は、ページ上部に裁ち落としで渡した山の湖の写真の下から始まります。写真の下では、字間を広げたキッカーが2行の見出しの上に乗り、その右にイタリックのリード、その下に署名が来ます。写真家のクレジットは写真のすぐ下に入ります。見出しはMarkdownの見出しのテキストで、キッカー、リード、署名、クレジットはその属性です。記事は見開きにわたって両端そろえの2段で続きます。偶数ページには引用符がぶら下がるプルクオートと、右の段の頭にデータ囲み。奇数ページには上部に松林の帯、地に暗色の数字のパネルがあります。小さな四角で記事が終わります。次のページでは、フィールドガイドが図版と錆色のキッカーで同じ扉を使います。

このレシピが答える質問

  • 章扉に著者名の行、リード文、ドロップキャップ付きの導入文を加えるには?
  • 章ごとに異なる写真、色、章扉のバリエーションを与えるには?
  • エピグラフ、献辞、署名、大きな引用符の付いたプルクオートを組むには?

手短な答え

script.js · 40〜77行コード全体で見る
const TOP = 22; // top margin in mm: an opener's container starts here
const sans = { fontFamily: 'Instrument Sans', fontWeight: 600, textTransform: 'uppercase' };
const HEAD = 118; // mm: the headline's measure; the standfirst takes the rest of the line
// Empty padding paints nothing but counts: the story starts on the first grid line at least
// 5 mm under the lower of the headline and the byline, however many lines each one runs to.
const air = { padding: { bottom: mm(5) } };
const at = (id, edge, x, y, width) => ({ anchor: { to: id, edge },
  offset: { x: mm(x), y: mm(y) }, ...(width && { size: { width: mm(width) } }) });
const opener = (resourceId, depth) => ({ // depth: how far down the page the picture bleeds
  enabled: true, // no minHeight: the story starts under the headline and byline (see air)
  slot: {
    elements: [ // the photo is an element, not a float: no float reaches the trim
      { kind: 'image', id: 'photo', resourceId, placement: { anchor: { to: 'bleed',
        edge: 'top-left' }, size: { width: 'fill', height: mm(depth) } } },
      // The photo hangs from the page's top edge, the words from the container, TOP mm lower:
      // depth − TOP is the photo's foot, so the credit sits 2 mm under it and the kicker 9 mm.
      { kind: 'text', id: 'credit', content: '{attr.credit}', ...sans, fontWeight: 500,
        fontSize: pt(6.5), letterSpacing: pt(0.6), color: col('muted'), align: 'right',
        placement: at('container', 'top-right', 0, depth - TOP + 2) },
      { kind: 'text', id: 'kicker', content: '{attr.kicker}', ...sans, fontSize: pt(8.5),
        letterSpacing: pt(1.7), color: col('lake'), align: 'left',
        placement: at('container', 'top-left', 0, depth - TOP + 9) },
      { kind: 'text', id: 'headline', content: '{titleText}', fontFamily: 'Instrument Serif',
        fontSize: pt(58), color: col('ink'), align: 'left', box: air, // wraps: a heading design
        lineHeight: 0.94, // tight: the two lines of the headline nearly touch
        placement: at('#kicker', 'below', 0, 2.5, HEAD) },
      { kind: 'text', id: 'standfirst', content: '{attr.standfirst}', italic: true,
        fontFamily: 'Instrument Serif', fontSize: pt(13.5), lineHeight: 1.22, // a multiple
        color: col('ink'), align: 'left',
        placement: at('#headline', 'right-of', 7, 3.2) }, // wraps at the container's edge
      { kind: 'text', id: 'byline', content: '{attr.byline}', ...sans, fontSize: pt(7.5),
        letterSpacing: pt(1.3), color: col('ink'), align: 'left', box: air,
        placement: at('#standfirst', 'below', 0, 3.5) },
    ],
  },
}); // hook-up: headings.levels[0] = { level: 1, span: 'page', breakBefore, advancedDesign:
// opener('lake', 160) }. {titleText} prints the heading's text, {attr.<key>} its <key>="…":
// # The Lake That Keeps Time {kicker="…" standfirst="…" byline="…" credit="…"}

材料

種類
Literata, Instrument Serif, Instrument Sans (SIL OFL 1.1)
素材
  • lake-2000.jpg
  • thaw-2000.jpg
  • Clouds mirrored in a mountain lake (the opener photograph) (Ales Krivec, CC0 1.0)
  • Walk in a thawing forest (the photo band) (Hannah Donze, CC0 1.0)

作り方

#1 · 見出しの行から扉を組む

コードは上の手短な答えにあります。{attr.<key>}はそれぞれ記事の#行にある<key>="…"の値を印字し、{titleText}は見出しそのものを印字します(見出しの属性)。そのため各記事は自分の言葉を自分のMarkdownに持ち、レベル1の見出しはすべて1つのデザインを共有します。写真はページの天の縁に固定され、コンテナーは22mm下から始まるので、depth - TOPはコンテナーから測った写真の下端になります。クレジットはその線の2mm下の右上に、キッカーは9mm下の左上に置きます。見出しはキッカーのbelowに、118mmのHEADの行長で組みます。リードは見出しのright-ofに置いて独自の幅を指定しないので、コンテナーの端で折り返します。署名はリードのbelowに置くので、リードが長くなれば署名は重ならずに押し下げられます。このレベルにはminHeightがありません。見出しと署名はどちらも空の5mmの内側余白で終わり、それが扉の高さに数えられるので、それぞれが何行になっても、記事は2つのうち低いほうの下端から少なくとも5mm下の、最初のグリッド行から始まります。

#2 · 写真は一度だけ、実際のピクセル数で宣言する

script.js · 205〜236行コード全体で見る
// The pictures are not numbered: their own type, with an empty caption prefix and template,
// keeps a figure number off the pine wood's caption.
const photoType = { id: 'photo', name: t({ en: 'Photograph', es: 'Fotografía' }),
  shortLabel: t({ en: 'photo', es: 'foto' }), captionPrefix: '', numberingTemplate: '',
  resetOn: 'never', counterFormat: 'decimal' };
const PX = 10; // the drawing's pixels per mm
const resources = [
  { id: 'lake', typeId: 'photo', kind: 'bitmap', createdAt: 0, updatedAt: 0, // never cited:
    // the opener fits it inside its box, so the JPEG is cropped to the box, 225 × 160 mm
    bitmap: { fileId: 'lake-2000.jpg', format: 'jpeg', width: 2000, height: 1422 },
    altText: t({ en: 'A still mountain lake mirroring clouds between autumn slopes.',
      es: 'Un lago de montaña en calma que refleja las nubes entre laderas otoñales.' }) },
  { id: 'thaw', typeId: 'photo', kind: 'bitmap', createdAt: 0, updatedAt: 0,
    // Pixels at the page's 150 dpi (gotcha: bitmap-print-size): 2000 px make 339 mm, so the
    // band shrinks to the 195 mm measure. At 300 dpi it would print 169 mm wide.
    bitmap: { fileId: 'thaw-2000.jpg', format: 'jpeg', width: 2000, height: 944 },
    // A top float opens the page after its ::resource line (gotcha: top-float-next-page):
    // the line sits on the verso, so the band heads the recto.
    placement: { position: 'top', span: 'page' },
    caption: t({ en: 'Early March in the pine wood above the shore: the snow goes first where '
      + 'the sun reaches the ground, weeks before the ice lets go of the lake.',
    es: 'Principios de marzo en el pinar sobre la orilla: la nieve se retira primero donde el '
      + 'sol llega al suelo, semanas antes de que el hielo suelte el lago.' }),
    note: t({ en: 'Photograph: Hannah Donze, CC0, via Wikimedia Commons',
      es: 'Fotografía: Hannah Donze, CC0, vía Wikimedia Commons' }),
    altText: t({ en: 'A walker on a snowy path between tall pines.',
      es: 'Un caminante en un sendero nevado entre pinos altos.' }) },
  { id: 'ice-art', typeId: 'photo', kind: 'svg', createdAt: 0, updatedAt: 0, // drawn below
    svg: { fileId: 'ice-art.svg', width: TRIM * PX, height: ART * PX },
    altText: t({ en: 'A lake in section: snow, white ice, black ice and water under a low sun.',
      es: 'Un lago en sección: nieve, hielo blanco, hielo negro y agua bajo un sol bajo.' }) },
];

デザイン要素は写真をリソースidで指すので、扉の写真はほかの図と同じように宣言しますが、引用はしません。描くのは扉だけで、どのフロートも届かない仕上がり線まで広げます。ビットマップはページの150dpiで測るので、松林の2000pxは339mmになり、195mmの行長に縮んで、印刷では約260dpiになります。写真には専用の種類を設け、キャプションの接頭辞と番号のテンプレートを空にしているので、松林のキャプションには図番号が付きません。帯はページ幅のtopフロートで、トップフロートはそれを引用したページの次のページに置かれます。その::resource行は偶数ページの1944年の段落のあとにあるので、帯は奇数ページの頭に来ます。

#3 · 引用符を余白にぶら下げる

script.js · 112〜130行コード全体で見る
// The glyph is centred in an icon square that the box keeps as a column, size + gap wide,
// left of the text. A negative gap pulls the text back over the square's empty right side,
// and a left padding of −(size + gap) moves that column out into the margin, so the text
// starts on the column's edge and the mark hangs outside it. The frame stays on the column
// (a background would stop short of the mark). « sits lower and runs wider than “, so the
// Spanish mark is set smaller.
const MARK = t({ en: { glyph: '“', size: 50, column: 34 }, // pt; the column is 12 mm
  es: { glyph: '«', size: 28, column: 22.5 } });
// The paddings are optical: once the next paragraph snaps to the grid, the quote has
// the same air above and below it, in both languages.
const quote = { id: 'pullquote', backgroundEnabled: false, marginTop: pt(LEAD),
  marginBottom: pt(0), padding: { top: pt(8), right: pt(0), bottom: pt(7),
    left: pt(-MARK.column) }, // negative: the icon column starts out in the margin
  icon: { kind: 'glyph', glyph: MARK.glyph, fontFamily: 'Instrument Serif',
    size: pt(MARK.size), color: col('lake') },
  titleStyle: { gap: pt(MARK.column - MARK.size) }, // negative too: size + gap = column
  body: { fontFamily: 'Instrument Serif', fontSize: pt(19), lineHeight: pt(1.5 * LEAD),
    textAlign: 'left', hyphenation: false, color: col('lake'), // display type: no hyphens
    italicColor: col('lake'), firstLineIndent: pt(0) } };

グリフのアイコンは本文の横に専用の列を取るので、そのままでは引用が字下げされます。負のgapで、グリフの正方形の右側の空いた部分に本文を戻します。続いて、その列の残りの幅(サイズ + gap、34pt)と同じ幅の負の左内側余白で列を余白へ押し出すと、本文は段の端から始まります。ボックスの枠は段の上にとどまるので、背景を付けると引用符の手前で途切れます。正方形は12mm外から始まり、その中央に置いた引用符は、偶数ページの14mmの小口の余白に約6mmぶら下がります。スペイン語版では«を小さく組みます。ギユメは引用符より低い位置に座り、幅も広いからです。

#4 · 囲みを段の頭とページの地にフロートさせる

script.js · 134〜157行コード全体で見る
// Floated boxes keep one body line from the text, so they need no margins of their own.
const glance = { id: 'glance', placement: 'top', // floats to the next column head: no hole
  backgroundEnabled: false, // one device, the stripe; the text keeps the column's edges
  stripe: { enabled: true, side: 'top', width: pt(2.5), color: col('lake') },
  padding: { top: mm(2.5), right: pt(0), bottom: pt(0), left: pt(0) },
  titleStyle: { ...sans, fontWeight: 700, fontSize: pt(7.5), letterSpacing: pt(1.5),
    color: col('lake'), gap: mm(2) },
  body: { fontFamily: 'Instrument Sans', fontSize: pt(8.6), lineHeight: pt(12.2),
    textAlign: 'left', hyphenation: false, firstLineIndent: pt(0) } }; // ink from bodyText
const numbers = { id: 'numbers', span: 'page', placement: 'bottom', // floats to a page foot
  background: col('ink'), columnGap: mm(8),
  padding: { top: mm(5), right: mm(6), bottom: mm(5.5), left: mm(6) },
  titleStyle: { ...sans, fontWeight: 700, fontSize: pt(7.5), letterSpacing: pt(1.5),
    color: col('ice'), gap: mm(1) },
  body: { fontFamily: 'Instrument Sans', fontSize: pt(9), lineHeight: pt(12.5),
    textAlign: 'left', hyphenation: false, color: col('ice'), firstLineIndent: pt(0) } };
// The panel's figures are level-4 headings (#### 31), a level the story never uses.
const figures = { level: 4, fontSize: pt(40), lineHeight: pt(40), color: col('ember'),
  marginBottom: pt(4) };
// The end mark is a chip of one space, :chip[ ]{style="end"}: an empty box. Its lengths are
// in its own ems: paddingX makes the width, and the height is its font size's band (0.8
// ascent + 0.25 descent). It is ink, like the text it closes, in the story and in the guide.
const endMark = { id: 'end', background: col('ink'), borderWidth: pt(0), borderRadius: pt(0),
  fontSize: em(0.62), paddingX: em(0.525), paddingY: em(0), gap: em(0.8) }; // 1.05 em square

placement: 'top'にするとデータ囲みはフロートになります。流れから外れて次の空いた段の頭を取るので、囲みが入りきらなかった場所にすき間を残さず、本文は段の地まで続きます。数字のパネルは逆にページの地へフロートし、両段にまたがります。3つの数字は記事が使わないレベル4の見出しで、breaks="3,5"で配置します。これは行ではなく子ブロックを数えます。エンドマークは見える文字のないチップです。paddingXが四角の幅を、チップのフォントサイズが高さを決め、どちらもチップ自身のサイズで1.05emです。

#5 · 号と記事を示す柱

script.js · 81〜108行コード全体で見る
const FOLIO_PT = 8.5; // the folio's size in pt
const LABEL_PT = 7.5; // the label's size in pt
const SQUARE = 2.1; // mm: the lake square's side, the folio's cap height
const label = { ...sans, fontSize: pt(LABEL_PT), letterSpacing: pt(1.3), color: col('muted') };
const folio = { fontFamily: 'Instrument Sans', fontWeight: 700, fontSize: pt(FOLIO_PT),
  color: col('ink') };
// A design text's baseline sits 0.8 down its line box, 1.2 × its size (the default lineHeight).
const baseline = (size) => size * 1.2 * 0.8 * 25.4 / 72; // mm from its box's top, size in pt
const HEAD_Y = 12; // mm from the top edge to the folio's box, inside the 22 mm top margin
const LINE = HEAD_Y + baseline(FOLIO_PT); // the heads' one baseline, from the top edge
const pin = (edge, x, y = HEAD_Y) => ({ anchor: { to: 'page', edge },
  offset: { x: mm(x), y: mm(y) } }); // in the margin (gotcha: header-paints-over-text)
const sides = [['even', 'left', 1], ['odd', 'right', -1]]; // 1: the outer edge is on the left
const header = { elements: sides.flatMap(([parity, edge, s]) => [
  { kind: 'text', id: `folio-${parity}`, content: '{pageNumber}', ...folio,
    placement: pin(`top-${edge}`, s * OUTER) },
  { kind: 'box', id: `square-${parity}`, style: { backgroundColor: col('lake') },
    placement: { ...pin(`top-${edge}`, s * (OUTER + 7.5), LINE - SQUARE), // on the line
      size: { width: mm(SQUARE), height: mm(SQUARE) } } },
  // The smaller label's baseline sits higher in its box (0.34 mm at 7.5 and 8.5 pt), so its
  // box goes that much lower: folio, square and label share one baseline at any size.
  { kind: 'text', id: `head-${parity}`, ...label,
    content: s > 0 ? '{title} · {subtitle}' : '{chapterTitle}',
    placement: pin(`top-${edge}`, s * (OUTER + 11.5), LINE - baseline(LABEL_PT)) },
].map((element) => ({ ...element, parity, pages: 'body' }))) }; // no running heads on openers
const footer = { elements: sides.map(([parity, edge, s]) => ({ kind: 'text', parity,
  id: `drop-folio-${parity}`, ...folio, content: '{pageNumber}', pages: 'opener', align: edge,
  placement: pin(`bottom-${edge}`, s * OUTER, -11) })) }; // an opener's only folio, at the foot

ヘッダーの要素はページの上に描かれ、スペースを確保しないので、どの部品も天の余白の中でページに固定し、ミリメートル単位でずらします。偶数ページはフロントマターから誌名と号を、奇数ページは特集の題を示し、pages: 'body'でどちらも扉には出しません。扉には地のノンブルだけが入ります。デザインのテキストのベースラインは、サイズの1.2倍の行ボックスの上から0.8の位置にあるので、baseline()は7.5ptのラベルを8.5ptのノンブルより0.34mm下げ、四角を同じ行に立たせます。どちらかのサイズを変えても、3つの部品は1本のベースラインを共有したままです。

#6 · 次の記事にも扉を使い回す

script.js · 161〜164行コード全体で見る
const ART = 126; // mm: the drawing bleeds less far down the page than the photograph
// On its pages, 'lake' turns rust in the opener, the headings, the boxes and the chips.
const guide = { id: 'guide', advancedDesign: opener('ice-art', ART),
  palette: { lake: palette.rust } };

扉は関数なので、フィールドガイドは見出しスタイル# Five Kinds of Ice {style="guide" kicker="Field guide" …}を通じて、自分の図版と深さで同じデザインを得ます。図版は160mmではなく126mmまで裁ち落としで下がります。クレジットとキッカーはdepth - TOPから測り、ほかの文字はキッカーに固定されているので、すべて34mm上がり、ガイドの本文はより高い位置から始まります。スタイルのパレットはそれらのページでlakeを錆色に対応させるので、キッカーと、lakeにリンクした小見出しや囲みは、opener()に色の引数を渡さなくても錆色になります。lakeにリンクしたチップも錆色になりますが、エンドマークはどちらの記事でもインキの色にしています。

レシピの全体

Sandbox
// ═══ Postext Cookbook · Nº 004 · Magazine feature: photo opener to end mark ═══════
// https://postext.dev/en/cookbook/magazine-feature-opener
// Code: MIT · Text: original (CC BY 4.0) · Photos: Ales Krivec, Hannah Donze (CC0)
// Fonts: Literata, Instrument Serif, Instrument Sans (SIL OFL 1.1) · Needs postext ≥ 1.25.0
// A nature feature from a winter issue. The level-1 heading carries its kicker, standfirst,
// byline and photo credit as attributes, and one opener design lays them out under a bleed
// photograph; the story runs on with a pull quote, a fact box, a photo band, a numbers panel
// and an end mark, and the next item reuses the opener with a drawing in place of the photo.
import {
  buildDocumentWithFonts, renderPageToCanvas, registerResourceImage,
} from 'https://esm.sh/postext';

const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'magazine-feature-opener';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
// Every colour below is linked to this palette by id.
const palette = {
  ink: '#15191c', // text: a blue-black
  lake: '#2d6a7d', // the accent: kickers, crossheads, the quote, the fact box's stripe
  ember: '#c8773d', // the panel's figures: 5.2:1 on ink (only 3.4:1 on paper)
  rust: '#9a5a2e', // the field guide's accent, swapped in for 'lake' by its heading style
  ice: '#dbe8ec', // the type on the dark panel and the drawing's sky
  rule: '#c7cdd1', // the drawing's far ridge and air bubbles
  muted: '#66707a', // running heads, credits, the colophon
  paper: '#ffffff',
};
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = [
  ...Object.entries(palette).map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } })),
  // The engine's defaults link to 'main-color': point it at the accent, so nothing prints blue.
  { id: 'main-color', name: 'lake (defaults)', value: { hex: palette.lake, model: 'hex' } },
];
const TRIM = 225; // page width in mm, shared with the drawing
const INNER = 16; // inner margin in mm
const OUTER = 14; // outer margin in mm: folios and running heads align to it
const LEAD = 13.4; // body leading in pt: the baseline grid

// #region answer: a bleed photo, then the heading's kicker, headline, standfirst, byline and credit
const TOP = 22; // top margin in mm: an opener's container starts here
const sans = { fontFamily: 'Instrument Sans', fontWeight: 600, textTransform: 'uppercase' };
const HEAD = 118; // mm: the headline's measure; the standfirst takes the rest of the line
// Empty padding paints nothing but counts: the story starts on the first grid line at least
// 5 mm under the lower of the headline and the byline, however many lines each one runs to.
const air = { padding: { bottom: mm(5) } };
const at = (id, edge, x, y, width) => ({ anchor: { to: id, edge },
  offset: { x: mm(x), y: mm(y) }, ...(width && { size: { width: mm(width) } }) });
const opener = (resourceId, depth) => ({ // depth: how far down the page the picture bleeds

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

アレンジ

#どの記事も奇数ページから始める

'odd'にすると、フィールドガイドは61ページに移り、60ページは白ページになります。

- { level: 1, span: 'page', breakBefore: { enabled: true, parity: 'any' },
+ { level: 1, span: 'page', breakBefore: { enabled: true, parity: 'odd' },

#題を色の帯に載せる

写真の代わりに色の帯と大きな番号を使う教科書の章については、裁ち落としの帯を敷いた章扉を参照してください。

よくあるつまずき

つまずき

属性値には{も}も書けない。"を含む値は一重引用符で囲む

属性値は閉じ波かっこで終わるため、{や}を含められません。二重引用符を含む値は一重引用符で囲みます。ドル記号は問題ありません。 見出しの属性 →

つまずき

ビットマップの印刷サイズは解像度で決まる。印刷用のピクセル数を計算せず、解像度を宣言する

解像度のないビットマップは、文書のdpiで1ピクセルを1レイアウトピクセルとして置かれるため、2400 pxの写真は150 dpiのページで幅406 mmになります。ファイルの実際のピクセル数を宣言し、画像に解像度を与える(bitmap.resolution: 300)か、すべてのビットマップにlayout.bitmapResolutionを設定します。値はppi、またはファイルが記す解像度を読む'file'です。段の幅は引き続き画像の上限になります。 リソースとしての図と表 →

つまずき

'top'のフロートは参照ページの先頭を許さない限り次のページに置かれる

既定では、フロートが自分の参照より上に置かれることはありません。そのため、Nページで参照したページ幅の'top'フロートはN+1ページの頭に置かれます。リソースまたはその種類のdefaultPlacementにplacement.citingPage: trueを設定すると(本全体ならlayout.floatsAtCitingPage、postext 1.25から)、layout.maxTopFraction以内に収まり参照行がそのページに残る場合は代わりにNページの先頭に置かれ、参照より前の本文はその下に送られます。章の最初のページと強制改ページの後のページの先頭には置かれません。その場合は次のページに置かれ、'auto'または'bottom'なら参照したページの下端に入れられます。 図の配置 →

つまずき

ヘッダーとフッターの要素は本文の上に描かれる

ヘッダーとフッターの要素はページの上に重ねて描かれ、本文の領域はそのための場所を空けません。要素は余白の中に収めてください。その場所を確保するのは余白です。 柱とノンブル →

Sandboxの検査 · bitmapTooSmall

低解像度の画像

原因. ビットマップがピクセル数の1.5倍を超える幅で描画されるため、印刷するとぼやけて見えます。

対処. 印刷サイズで約300dpiの画像を用意し、ビットマップの実際の幅と高さを宣言してください。 ドキュメント →

  • 画像要素は写真をボックスの中に収め、切り抜くことはありません。JPEGをボックスの縦横比、ここでは225 × 160mmに切っておきます。そうしないと写真が縮み、ページの縁に白い帯が残ります。
  • ぶら下がる引用符には余白が必要です。編集でプルクオートが右の段に移ると、引用符は6mmの段間を埋め、左の段の本文に触れます。引用を1段落前か後ろに移してください。
  • 記事は59ページで、数字のパネルの上で終わるようにコピーフィットしています。数行増えると記事の末尾が独立したページに送られるので、編集したあとは両方の言語でもう一度コピーフィットしてください。
  • runtMinCharacters: 40は1語だけの最終行を防ぎます。行分割で短い最終行を避けられないとき、エンジンは段落を1行短く組み、語間を詰め、それでも足りなければ字間を最大0.01em詰めます。編集したあとは、そこまで詰めて組まれた段落を探し、代わりに数語を削るか足してください。収録した原稿は、どちらの言語でもこの修正を必要としません。

クレジット

レシピ
Ignacio Ferro
本文
書き下ろしの文章, CC BY 4.0
画像
フォント
Literata (SIL OFL 1.1) · Instrument Serif (SIL OFL 1.1) · Instrument Sans (SIL OFL 1.1)
Sandbox