Em poucas palavras
Uma reportagem de revista de natureza que abre com uma foto grande no alto da página. Mostra como dispor o título, a apresentação, o autor e o crédito da foto, e depois boxes e um pequeno sinal no fim.
O que você vai compor
A reportagem principal da edição de inverno de Boreal, uma revista de natureza, em página de 225 × 297 mm. A matéria abre sob um lago de montanha sangrado no alto da página. Abaixo da foto, um chapéu espacejado encabeça um título em duas linhas, com o olho em itálico à direita e a assinatura sob ele; o crédito do fotógrafo corre sob a foto. O título é o texto do título em Markdown, e chapéu, olho, assinatura e crédito são atributos dele. A matéria continua numa página dupla em duas colunas justificadas. A par tem uma citação em destaque com as aspas penduradas e um boxe de dados no alto da coluna da direita; a ímpar, uma faixa de pinheiral no alto e um painel escuro de números no pé. Um pequeno quadrado fecha a matéria. Na página seguinte, um guia de campo reaproveita a abertura com um desenho e o chapéu em ferrugem.
Esta receita responde a
- Como acrescento a uma abertura uma linha de autor, uma linha fina ou um primeiro parágrafo com capitular?
- Como dou a cada capítulo sua própria foto, cor ou variante de abertura?
- Como componho uma epígrafe, uma dedicatória, uma assinatura ou um olho com aspas grandes?
A resposta curta
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="…"}
Ingredientes
- Funcionalidades
- Aberturas desenhadasImagens nos designs de páginaAtributos de títuloBoxes flutuantesColunas num boxe ou no textoChips no textoCapítulos que abrem em página ímparFaixa de capítulo em largura totalCabeços e fóliosEquilíbrio de colunasPosicionamento de figurasAncoragem de elementos de designÍcones e selos de canto nos boxesBoxesFiguras e tabelas como recursosEstilos de títuloPaleta de cores semânticaCabeços por tipo de páginaLinhas de fonte e créditoCores por parte
- Também usa
- Figuras exatamente aquiEstilos de parágrafoTipos de recurso personalizadosSobrescritos e subscritos
- Tipografia
- Literata, Instrument Serif, Instrument Sans (SIL OFL 1.1)
- Materiais
lake-2000.jpgthaw-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)
Preparo
#1 · Montar a abertura a partir da linha do título
O código é a resposta curta acima. Cada {attr.<key>} imprime o valor <key>="…" da linha # da matéria, e {titleText} imprime o próprio título (atributos de título), por isso cada matéria guarda os textos no próprio Markdown e todos os títulos de nível 1 compartilham um único design. A foto pende da borda superior da página e o contêiner começa 22 mm mais abaixo, de modo que depth - TOP é a borda inferior da foto medida a partir do contêiner; o crédito fica 2 mm abaixo dessa linha, no canto superior direito, e o chapéu 9 mm abaixo, no esquerdo. O título vai below (abaixo) do chapéu, na medida HEAD de 118 mm. O olho vai right-of (à direita) do título, sem largura própria, e por isso as linhas dele vão até a borda do contêiner; a assinatura vai below o olho, de modo que um olho mais longo empurra a assinatura para baixo em vez de invadi-la. O nível não tem minHeight. O título e a assinatura terminam num preenchimento vazio de 5 mm que conta na altura da abertura, e assim o texto começa na primeira linha da grade pelo menos 5 mm abaixo do que terminar mais embaixo, ocupe cada um quantas linhas ocupar.
#2 · Declarar as imagens uma vez, com os pixels reais
// 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.' }) },
];
Um elemento de design indica a imagem pelo id do recurso, por isso a foto da abertura é declarada como qualquer figura, mas nunca é citada: só a abertura a desenha, até o refile, aonde nenhum flutuante chega. Os bitmaps são medidos a 150 dpi, o valor da página, e assim os 2000 px do pinheiral dão 339 mm e são reduzidos à medida de 195 mm, cerca de 260 dpi na impressão. As imagens têm um tipo próprio, com o prefixo da legenda e o modelo de numeração vazios, e por isso a legenda do pinheiral não leva número de figura. A faixa é um flutuante top na largura da página, e um flutuante no alto abre a página seguinte à que o cita. A linha ::resource dela fica na página par, depois do parágrafo de 1944, e assim a faixa encabeça a ímpar.
#3 · Pendurar as aspas na margem
// 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) } };
Um ícone de glifo ocupa uma coluna própria ao lado do texto, o que recuaria a citação. O espaçamento negativo traz o texto de volta sobre o lado direito do quadrado do glifo, que está vazio. Um preenchimento esquerdo negativo da largura do que sobra dessa coluna (tamanho + espaçamento, 34 pt) leva depois a coluna para a margem, e o texto volta a começar na borda da coluna. A moldura do boxe continua na coluna, por isso um fundo não chegaria até as aspas. O quadrado começa 12 mm para fora, e as aspas, centralizadas nele, avançam cerca de 6 mm nos 14 mm da margem externa da página par. A edição espanhola compõe o « menor, porque o sinal angular fica mais baixo e é mais largo que as aspas curvas.
#4 · Levar os boxes ao alto de uma coluna e ao pé da página
// 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
Com placement: 'top' o boxe de dados flutua: sai do fluxo e ocupa o próximo alto de coluna livre, e o texto segue até o pé da coluna em vez de deixar um vão onde o boxe não coube. O painel de números flutua para o outro lado, até o pé da página, e ocupa as duas colunas; os três números são títulos de nível 4, um nível que a matéria nunca usa, distribuídos por breaks="3,5", que conta blocos filhos, não linhas. O sinal final é um chip sem texto visível. O paddingX dá a largura do quadrado e o corpo do chip dá a altura, ambas de 1,05 em no tamanho do próprio chip.
#5 · Cabeços que nomeiam a edição e a matéria
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
Os elementos de cabeçalho são pintados sobre a página e não reservam espaço, de modo que cada peça é ancorada à página, na margem superior, com distâncias em milímetros. A página par traz o nome da revista e a edição, tirados do front matter, e a ímpar o título da reportagem; pages: 'body' tira os dois das aberturas, que levam só o fólio, no pé. Num texto de design, a linha de base fica a 0,8 da altura da caixa de linha, que mede 1,2 vez o corpo, e por isso baseline() desce o rótulo de 7,5 pt 0,34 mm abaixo do fólio de 8,5 pt e assenta o quadrado na mesma linha. Se você mudar qualquer um dos dois corpos, as três peças continuam numa só linha de base.
#6 · Reaproveitar a abertura na matéria seguinte
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 } };
A abertura é uma função, por isso o guia de campo recebe o mesmo design, com imagem e altura próprias, por meio de um estilo de título, # Five Kinds of Ice {style="guide" kicker="Field guide" …}. O desenho desce 126 mm pela página em vez de 160; o crédito e o chapéu são medidos a partir de depth - TOP e os outros textos pendem do chapéu, por isso todos sobem 34 mm e o texto do guia começa mais acima. A paleta do estilo troca lake por ferrugem nessas páginas, e assim o chapéu, e qualquer intertítulo ou boxe ligado a lake, fica ferrugem sem um argumento de cor em opener(); um chip ligado a lake também ficaria ferrugem, e o sinal final é preto nas duas matérias.
A receita completa
// ═══ 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
O script.js montado funciona como está: cole-o como script de módulo em qualquer página ou abra a receita no CodePen. Pasta da receita no GitHub ↗ (abre em uma nova aba)
Variações
#Abrir cada matéria numa página ímpar
Com 'odd', o guia de campo passa para a página 61, e a 60 fica em branco.
- { level: 1, span: 'page', breakBefore: { enabled: true, parity: 'any' },
+ { level: 1, span: 'page', breakBefore: { enabled: true, parity: 'odd' },#Pôr o título sobre uma faixa de cor
Para um capítulo de livro didático, em que uma faixa de cor e um número grande ocupam o lugar da foto, veja Abertura de capítulo sobre uma faixa sangrada.
Erros comuns
Erro comum
Valores de atributo: sem { ou }; aspas simples se tiver "
Um valor de atributo termina na chave de fechamento, por isso não pode conter { nem }. Um valor que contém aspas duplas vai entre aspas simples; o cifrão não causa problema. Atributos de título →
Erro comum
Bitmaps tiram o tamanho de impressão de uma resolução: declare-a, não calcule pixels de impressão
Um bitmap sem resolução é colocado a um pixel por pixel da diagramação na resolução do documento, então uma foto de 2400 px mede 406 mm de largura numa página de 150 dpi. Declare os pixels reais do arquivo e dê à imagem sua resolução (bitmap.resolution: 300), ou ajuste layout.bitmapResolution para todos os bitmaps: um valor de ppi, ou 'file' para ler o que o arquivo informa. A coluna continua limitando a imagem. Figuras e tabelas como recursos →
Erro comum
Um flutuante 'top' vai para a página seguinte à sua citação, a menos que possa encabeçar a página que o cita
Por padrão um flutuante nunca fica acima da própria referência, então um flutuante 'top' na largura da página citado na página N abre a página N+1. Com placement.citingPage: true no recurso ou no defaultPlacement do seu tipo (ou layout.floatsAtCitingPage para o livro todo, desde o postext 1.25) ele encabeça a página N, e o texto acima da referência desce para baixo dele, quando cabe dentro de layout.maxTopFraction e a linha que o cita continua nessa página. Nunca encabeça a primeira página de um capítulo nem uma página depois de uma quebra forçada: ali continua abrindo a página seguinte, e 'auto' ou 'bottom' podem ocupar o pé da página que o cita. Posicionamento de figuras →
Erro comum
Os elementos de cabeçalho e rodapé são pintados sobre o texto
Os elementos de cabeçalho e rodapé são pintados por cima da página, e a área de texto não abre espaço para eles. Mantenha esses elementos dentro das margens, que são o que reserva o espaço deles. Cabeços e fólios →
Verificação do Sandbox · bitmapTooSmall
Imagem de baixa resolução
Por quê. Um bitmap é desenhado mais de 1,5 vez mais largo que seus pixels; por isso, vai sair borrado na impressão.
Correção. Forneça cerca de 300 dpi no tamanho impresso e declare a largura e a altura reais do bitmap. Docs →
- Um elemento de imagem encaixa a imagem dentro da caixa e nunca a corta. Corte o JPEG nas proporções da caixa, aqui 225 × 160 mm, ou a foto encolhe e deixa faixas brancas nas bordas da página.
- As aspas penduradas precisam de margem. Se uma edição levar a citação para uma coluna da direita, as aspas ocupam os 6 mm da medianiz e encostam no texto da coluna da esquerda: adiante ou atrase a citação um parágrafo.
- A matéria está ajustada para terminar na página 59, acima do painel de números. Umas linhas a mais mandam o final para uma página própria, por isso, depois de editar, ajuste o texto de novo nos dois idiomas.
runtMinCharacters: 40evita últimas linhas de uma palavra só. Quando a quebra de linhas não consegue evitar uma última linha curta, o motor compõe o parágrafo com uma linha a menos, com espaços entre palavras mais apertados e, se não bastar, até 0,01 em a menos entre as letras. Depois de editar, procure um parágrafo assim apertado e corte ou acrescente algumas palavras nele; o texto publicado não precisa desse ajuste em nenhum dos dois idiomas.
Créditos
- Receita
- Ignacio Ferro
- Texto
- Texto original, CC BY 4.0
- Imagens
- 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
- Fontes
- Literata (SIL OFL 1.1) · Instrument Serif (SIL OFL 1.1) · Instrument Sans (SIL OFL 1.1)
- Código
- MIT, como o Postext
Editar este texto ↗ (abre em uma nova aba)Pasta da receita no GitHub ↗ (abre em uma nova aba)


