Zum Hauptinhalt springen
Rezept Nummer 33

Rezepte · Kapitel 6 · Kästen und Anmerkungen

Rezeptkarte: Zutaten neben der Zubereitung

Zwei Kochbuchseiten mit weißer Rezeptkarte unter einem Etikett SERVES 4: links Zutaten, Schlagwörter und Checkliste, rechts Schritte mit roten 26-pt-Ziffern.

S. 58–59 · 1–2 von 2

  • Englisches Beispiel: noch keine deutsche Ausgabe
  • Endformat 190 × 250 mm
  • 1 Spalte
  • Figtree 9,4/12,8
  • Caveat
  • Young Serif
  • 2 Seiten
  • Stufe
  • Postext 1.57.1
  • In 51 ms gesetzt
  • 187 Zeilen Code

Kurz gesagt

Zwei Seiten aus einem Kochbuch für zu Hause, ein Rezept pro Seite. Sie zeigen, wie Sie die Zutaten und die Arbeitsschritte auf einer Karte nebeneinanderstellen.

Was Sie setzen

Zwei gegenüberliegende Seiten aus Salt & Olive Oil, einem erfundenen spanischen Kochbuch für zu Hause, im Endformat 190 × 250 mm, ein Rezept pro Seite. Ein Foto, mit Diffusionsmodellen erzeugt und als JPEG geladen, läuft randabfallend über die oberen 104 mm: eine Tortilla, aus der ein Stück herausgezogen ist, auf einem safrangelben Tisch, eine Schale Gazpacho auf einem salbeigrünen. Darüber stehen eine Dachzeile, der Titel in 42 pt Young Serif, pillenförmige Schilder für Zeit, Schwierigkeit und Saison und eine Notiz in der Handschrift Caveat, die auf das Gericht zeigt. Unter dem kursiven Vorspann sitzt an der oberen rechten Ecke einer weißen Karte ein tomatenrotes Portionsetikett. Die Zutaten laufen mit olivgrünen Strichen und Schlagwort-Chips die linke Spalte hinunter; unter denen der Tortilla stehen Strichzeichnungen einer Schüssel, einer Pfanne und eines Tellers über einer Checkliste. Die Zubereitung füllt die rechte Spalte, und jeder Schritt beginnt mit einer Mediävalziffer in 26 pt.

Dieses Rezept beantwortet

  • Wie setze ich zwei Spalten in einen Kasten (eine Textspalte neben einer Abbildungsspalte)?
  • Wie füge ich einen nummerierten Reiter („BOX 1-1“), ein Ecksymbol oder ein Randsymbol mit Linie hinzu?
  • Wie passe ich Listen an: Aufzählungszeichen je Ebene, Nummerierung (a)/(i), Aufgaben-Kontrollkästchen, Abstände, die im Raster bleiben?
  • Wie erstelle ich Inline-Chips: Tastaturtasten, Schlagwörter, Wortspeicher für Übungen?
  • Wie füge ich einem Auftakt eine Autorenzeile, einen Vorspann oder einen Einstieg mit Initiale hinzu?

Die kurze Antwort

script.js · Zeilen 26–48im vollständigen Code
// In the Markdown, :::callout{type="card" label="SERVES 4"} holds a :::columns{count=2} group
// of two nested boxes, :::callout{type="column" title="Ingredients"} and one for the method.
// The group levels its columns by cutting between blocks or lines, so loose lists would run
// the method on under the ingredients. A nested box is one block that never splits, so the
// only cut left is between the two.
const TAB = 5.6; // mm: the tab's height, and how far it rises above the card
const card = { id: 'card', background: col('card'),
  padding: { top: mm(4.5), right: mm(6), bottom: mm(5), left: mm(6) },
  // No space of its own above: the tab starts on the first grid line under the opener.
  columnGap: mm(7), marginTop: mm(0),
  // label="…" on the fence prints here: a tab on the top-right corner, a cutlery pictogram
  // beside it and a rule from the far corner that makes the tab part of the card.
  label: { fontFamily: TEXT, fontSize: pt(8), color: col('card'), // bold by default
    background: col('tomato'), height: mm(TAB), offset: mm(TAB), paddingX: mm(2.6),
    icon: { resourceId: 'cutlery', width: mm(TAB * 6 / 8), gap: mm(1.6) }, // as tall as the tab
    rule: { enabled: true, color: col('tomato'), width: pt(1.2) } } };
// The two columns: frameless boxes whose only device is a tracked title.
const NONE = { top: mm(0), right: mm(0), bottom: mm(0), left: mm(0) };
const column = { id: 'column', backgroundEnabled: false, padding: NONE,
  lists: { gap: mm(2.2), itemSpacing: pt(3.5) }, // for the steps as well as the dashes
  titleStyle: { fontFamily: TEXT, fontSize: pt(8), color: col('tomato'), // bold by default
    textTransform: 'uppercase', letterSpacing: pt(1.5), gap: mm(2.4) } };
// config() plugs them in: calloutStyles: [card, column, prep].

Zutaten

Schrift
Young Serif, Figtree, Caveat (SIL OFL 1.1)
Dateien
  • gazpacho-1520.jpg
  • tortilla-1520.jpg
  • The tortilla on its plate, a photograph (Generated With Diffusion Models, eigener Text)
  • The bowl of gazpacho, a photograph (Generated With Diffusion Models, eigener Text)
  • The note’s arrow and the pictograms, drawn in code in the page’s palette (Ignacio Ferro, CC BY 4.0)

Zubereitung

#1 · Jeder Spalte ihren eigenen Kasten geben

Mit losen Listen trennt eine Spaltengruppe in einem Kasten dort, wo ihre Spalten am besten ausgeglichen sind, zwischen Blöcken oder zwischen den Zeilen eines Blocks, sodass der erste Schritt des Gazpachos über den Spaltenabstand hinweg geteilt wird: Seine erste Zeile schließt die Zutatenspalte, der Rest eröffnet die Zubereitungsspalte. Ein verschachtelter Kasten wie in der kurzen Antwort oben ist ein Block, und die Gruppe trennt nie in seinem Inneren. Ein Bild darin braucht eine Zeile ::resource mit der Platzierung 'here', denn jede andere Platzierung macht es zum Gleitobjekt, das den Kasten verlässt und wie jede zitierte Abbildung platziert wird. Das label des Kartenstils macht aus dem label="SERVES 4" des Containers das Etikett: Ein offset gleich seiner height stellt es auf die Oberkante der Karte, und die rule läuft von der gegenüberliegenden Ecke bis zu Messer und Gabel (Kastenstile).

#2 · Die Schrittnummern auf zwei Zeilen zentrieren

script.js · Zeilen 66–76im vollständigen Code
// Young Serif has old-style figures: 1 and 2 stand 0.56 em, a little above its 0.50 em
// x-height, so 5.1 mm at STEP. A list number is centred 0.3 em (of the text) above the item's
// first baseline, with the canvas 'middle' baseline, which Chrome puts 0.24 em above Young
// Serif's own (gotcha: list-number-centred). DROP centres the figures on the step's first two
// lines, from the cap height of the first to the baseline of the second.
const [STEP, FIGURE, MIDDLE, CAP] = [26, 0.56, 0.24, 0.7]; // pt; em of each face
const DROP = (LEAD - CAP * BODY) / 2 + 0.3 * BODY + (FIGURE / 2 - MIDDLE) * STEP; // pt
const orderedLists = { fontFamily: DISPLAY, fontWeight: 400, // Young Serif ships 400 only
  numberFontSize: pt(STEP), color: col('tomato'),
  separatorColor: col('olive'), separatorGap: pt(0.6), // the default '.' as its own run
  numberVerticalOffset: pt(DROP) };

Eine Listennummer wird etwas oberhalb der ersten Grundlinie des Eintrags zentriert gezeichnet, deshalb würde numberFontSize allein die 26-pt-Ziffern auf die Höhe der ersten Zeile setzen; numberVerticalOffset senkt sie um 2,5 mm, in die Mitte des Bereichs von den Versalien der ersten Zeile bis zur Grundlinie der zweiten. Young Serif hat Mediävalziffern: 3, 4 und 5 reichen unter die Grundlinie, auf der 1 und 2 stehen. Ist separatorColor gesetzt, wird das Trennzeichen als eigener Abschnitt gezeichnet, und der voreingestellte Punkt erscheint olivgrün neben einer roten Ziffer (nummerierte Listen).

#3 · Die Checkliste mit einem Streifen Zeichnungen eröffnen

script.js · Zeilen 52–62im vollständigen Code
// :::callout{type="prep" title="Before you start"}, closed at once, is a header: a box that
// holds only its title and icon. The icon is one picture of three drawings; a width KIT times
// its size makes its box a strip, and the picture is fitted into width × size, left of the
// title. Tasks set inside the box would start after that column, 21 mm in, so the '- [ ]'
// items follow the box, where they print the default task box, '☐'.
const [STRIP, KIT] = [5, 30 / 8]; // mm: the strip's height; the drawing's width over height
const prep = { id: 'prep', backgroundEnabled: false, padding: NONE,
  marginTop: pt(LEAD), marginBottom: column.titleStyle.gap, // the tasks follow at this gap
  icon: { kind: 'resource', resourceId: 'kit', size: mm(STRIP), width: mm(STRIP * KIT),
    align: 'center' }, // the title centred on the strip
  titleStyle: { ...column.titleStyle, color: col('olive') } };

Der Kasten prep enthält nur seinen Titel und sein Symbol und dient so als Kopf: Eine Symbolbreite width vom 3,75-Fachen seiner size dehnt das Quadrat des Symbols zu einem Streifen von 18,75 × 5 mm, und die drei Zeichnungen füllen ihn links vom Titel (Kastenstile). Ein Symbol belegt neben allem anderen in seinem Kasten eine eigene Spalte, deshalb stehen die Aufgaben hinter dem Kasten, wo sie sich an den Strichen der Zutaten ausrichten, statt 21 mm eingerückt zu beginnen. Einträge - [ ] erhalten das voreingestellte Aufgabenkästchen, und unorderedLists.marginTop: 0 lässt sie im Abstand marginBottom des Kopfes folgen, den 2,4 mm, die auch die Spaltentitel halten (ungeordnete Listen).

#4 · Die Schlagwörter zu Chips machen

script.js · Zeilen 80–82im vollständigen Code
const chipStyles = [{ id: 'tag', fontSize: em(0.86), bold: true, background: col('tint'),
  borderWidth: pt(0), borderRadius: em(1), // no outline; a radius past half the height: a pill
  paddingX: em(0.7), paddingY: em(0.18), gap: em(0.3) }];

:chip[Vegetarian]{style="tag"} setzt ein Wort in einen Kasten, der nie über Zeilen hinweg umbricht. Ein borderRadius größer als die halbe Höhe des Kastens wird auf diese Hälfte begrenzt, sodass beide Enden zu Halbkreisen werden; mit borderWidth: 0 wird die Pille nur in ihrer Tönung gezeichnet. Der Kasten ist 11,4 pt hoch, weniger als der Zeilenabstand der Karte von 12,8 pt, sodass eine zweite Zeile Schlagwörter die erste nicht berühren würde (Chip-Stile).

#5 · Eine Gestaltung, ein Foto pro Rezept

script.js · Zeilen 86–120im vollständigen Code
const BAND = 104; // mm: the photo's foot; the pills sit 13 mm above it, the lead 6 mm below
const NOTE = { x: 18, y: 24, w: 70 }; // mm on the page: the box ends 2 mm before the arrow
const at = (x, y, size) => ({ anchor: { to: 'container', edge: 'top-left' },
  offset: { x: mm(x), y: mm(y - PAGE.top) }, size }); // y in mm from the top of the page
const text = (id, content, family, size, placement, extra) => ({ kind: 'text', id, content,
  fontFamily: family, fontSize: pt(size), color: col('ink'), align: 'left',
  overflow: 'wrap', placement, ...extra }); // a foot wraps too, where the default is '…'
const tracked = { fontWeight: 700, textTransform: 'uppercase', letterSpacing: pt(1.6) };
// Pills are text boxes chained right-of each other; each prints one heading attribute.
const pill = (id, after) => text(id, `{attr.${id}}`, TEXT, 8.4, after ? { anchor:
  { to: `#${after}`, edge: 'right-of' }, offset: { x: mm(1.8) } } : at(0, BAND - 13), {
  fontWeight: 600, box: { backgroundColor: col('card'), borderRadius: mm(3),
    padding: { top: mm(1.1), right: mm(2.8), bottom: mm(1.1), left: mm(2.8) } } });
// One heading style for every recipe; each heading names its photo: art="tortilla".
const opener = { id: 'receta', advancedDesign: { enabled: true, slot: { elements: [
    { kind: 'image', id: 'art', resourceId: '{attr.art}', // filled in per heading, like a text
      placement: { anchor: { to: 'page', edge: 'top-left' },
        size: { width: mm(PAGE.w), height: mm(BAND) } } },
    { kind: 'image', id: 'arrow', resourceId: 'arrow', // the note's arrow, over the photo
      placement: { anchor: { to: 'page', edge: 'top-left' },
        size: { width: mm(PAGE.w), height: mm(BAND) } } },
    text('note', '{attr.note}', HAND, 19, { anchor: { to: 'page', edge: 'top-left' },
      offset: { x: mm(NOTE.x), y: mm(NOTE.y) }, size: { width: mm(NOTE.w) } },
    { fontWeight: 600, align: 'right' }), // on the page, like the arrow and the photo
    pill('time'), pill('level', 'time'), pill('season', 'level'),
    text('title', '{titleText}', DISPLAY, 42, { anchor: { to: '#time', edge: 'above' },
      offset: { y: mm(-3.2) }, size: { width: mm(96) } }, // two lines: the \\ in the heading
    { lineHeight: 1 }), // set solid: 42 pt from line to line
    text('kicker', '{attr.kicker}', TEXT, 8.2, { anchor: { to: '#title', edge: 'above' },
      offset: { y: mm(-2.4) }, size: { width: mm(96) } }, tracked),
    // The lead is the design's lowest element: the opener reserves down to its last line, and
    // the card starts under it without a minHeight.
    text('lead', '{attr.lead}', TEXT, 10.5, at(0, BAND + 6, { width: mm(122) }),
      { italic: true, lineHeight: 1.45 }),
  ] } } };

# Tortilla \\ de patatas {style="receta" art="tortilla" kicker="…" lead="…"} wählt den Überschriftenstil und füllt seine Felder aus den Attributen, darunter den kursiven Vorspann (Überschriftenattribute). Die resourceId des Bildelements ist '{attr.art}', ein Platzhalter wie der eines Textes, sodass beide Rezepte einen Stil teilen und jede Überschrift ihr Foto angibt (Bildelemente). Jedes Schild ist right-of am vorigen verankert, der Titel above am ersten Schild und die Dachzeile über dem Titel, sodass ein längerer Titel die Dachzeile nach oben schiebt, während die Schilder auf ihrer Zeile bleiben. Der Vorspann ist das tiefste Element der Gestaltung, deshalb reserviert der Auftakt Platz bis zu dessen letzter Zeile, und die Karte beginnt ohne minHeight darunter. Die Notiz ist wie das Foto und der Pfeil (ein zweites im Code gezeichnetes Bildelement) an der Seite verankert und endet auf beiden Seiten 2 mm vor dem Pfeil, obwohl die gespiegelten Ränder den Satzspiegel auf der rechten Seite um 2 mm nach rechts verschieben.

#6 · Die Bilder als Ressourcen registrieren

script.js · Zeilen 271–293im vollständigen Code
// The opener's image elements and both icons name a resource id; the resource names the file
// the canvas paints (loadImage or loadSvg registers it). No :ref cites them, so none is numbered.
const photo = (id, altText) => ({ id, typeId: 'figure', kind: 'bitmap', createdAt: 0, updatedAt: 0,
  altText, bitmap: { fileId: `${id}-1520.jpg`, format: 'jpeg', width: 1520, height: 832 } });
const ART = { // markup, width and height in mm, and the alt text
  arrow: [arrow, PAGE.w, BAND, t({ en: 'An arrow to the dish', es: 'Una flecha al plato' })],
  cutlery: [cutlery, 6, 8, t({ en: 'Fork and knife', es: 'Tenedor y cuchillo' })],
  kit: [kit, 8 * KIT, 8, t({ en: 'A bowl with two eggs, a frying pan and a plate',
    es: 'Un bol con dos huevos, una sartén y un plato' })] };
const resources = [
  photo('tortilla', t({ en: 'A potato omelette with a slice pulled out, on a blue-rimmed plate '
    + 'and a red-checked napkin', es: 'Una tortilla de patatas con una porción separada, en un '
    + 'plato de borde azul sobre una servilleta de cuadros rojos' })),
  photo('gazpacho', t({ en: 'A bowl of gazpacho with diced vegetables and a spoon, on a '
    + 'blue-checked napkin beside a tomato', es: 'Un cuenco de gazpacho con dados de verdura '
    + 'y una cuchara, sobre una servilleta de cuadros azules junto a un tomate' })),
  ...Object.entries(ART).map(([id, [, w, h, altText]]) => ({ id, typeId: 'figure',
    kind: 'svg', createdAt: 0, updatedAt: 0, altText, svg: { fileId: `${id}.svg`, width: w * 10,
      height: h * 10 } })), // 10 px a millimetre: the sizes only set the aspect ratio here
];
const photos = resources.filter((r) => r.kind === 'bitmap').map((r) => r.bitmap.fileId);
await Promise.all([...photos.map((file) => loadImage(file, asset(file))),
  ...Object.entries(ART).map(([id, [svg]]) => loadSvg(`${id}.svg`, svg))]);

Die beiden Bildelemente des Auftakts, das Symbol des Etiketts und das Symbol im Kopf der Checkliste verweisen je auf eine Ressource, und das Canvas zeichnet die Datei, die loadImage oder loadSvg dafür registriert hat. Kein :ref zitiert diese Ressourcen, also wird keine davon zu einer nummerierten Abbildung. Die Bilder enthalten keine Wörter: Die handschriftlichen Notizen sind Gestaltungstext, der über ihnen steht.

Das ganze Rezept

Sandbox
// ═══ Postext Cookbook · Nº 033 · Recipe card: ingredients beside the method ═══════
// https://postext.dev/en/cookbook/recipe-card
// Code: MIT · Text: original (CC BY 4.0) · Photos: diffusion models · Pictograms: CC BY 4.0
// Fonts: Young Serif, Figtree, Caveat (SIL OFL 1.1) · Needs postext ≥ 1.25.0
import {
  buildDocumentWithFonts, renderPageToCanvas, registerResourceImage,
} from 'https://esm.sh/postext';

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

// ─── 1 · Design ─────────────────────────────────────────────────────────────
const palette = { ink: '#2b2118', muted: '#76634e', // text; folios and the colophon
  paper: '#f7eddb', card: '#fffdf8', // the cream page; the white recipe card on it
  tomato: '#bf3d29', olive: '#6b7a3a', tint: '#f6e3c1' }; // numbers and tab; dashes; tags
// Each colour names its palette entry and carries its hex.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
// The engine's defaults link to 'main-color': point it at the tomato, so nothing prints blue.
const colorPalette = Object.entries({ ...palette, 'main-color': palette.tomato })
  .map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));
const [TEXT, DISPLAY, HAND] = ['Figtree', 'Young Serif', 'Caveat'];
const PAGE = { w: 190, h: 250, top: 22, inner: 18, outer: 16 }; // mm, mirrored margins
const [BODY, LEAD] = [9.4, 12.8]; // pt: the text of the cards and the notes under them

// #region answer: a white card with a servings tab, two columns inside it
// In the Markdown, :::callout{type="card" label="SERVES 4"} holds a :::columns{count=2} group
// of two nested boxes, :::callout{type="column" title="Ingredients"} and one for the method.
// The group levels its columns by cutting between blocks or lines, so loose lists would run
// the method on under the ingredients. A nested box is one block that never splits, so the
// only cut left is between the two.
const TAB = 5.6; // mm: the tab's height, and how far it rises above the card
const card = { id: 'card', background: col('card'),
  padding: { top: mm(4.5), right: mm(6), bottom: mm(5), left: mm(6) },
  // No space of its own above: the tab starts on the first grid line under the opener.
  columnGap: mm(7), marginTop: mm(0),
  // label="…" on the fence prints here: a tab on the top-right corner, a cutlery pictogram
  // beside it and a rule from the far corner that makes the tab part of the card.
  label: { fontFamily: TEXT, fontSize: pt(8), color: col('card'), // bold by default
    background: col('tomato'), height: mm(TAB), offset: mm(TAB), paddingX: mm(2.6),
    icon: { resourceId: 'cutlery', width: mm(TAB * 6 / 8), gap: mm(1.6) }, // as tall as the tab
    rule: { enabled: true, color: col('tomato'), width: pt(1.2) } } };
// The two columns: frameless boxes whose only device is a tracked title.
const NONE = { top: mm(0), right: mm(0), bottom: mm(0), left: mm(0) };
const column = { id: 'column', backgroundEnabled: false, padding: NONE,
  lists: { gap: mm(2.2), itemSpacing: pt(3.5) }, // for the steps as well as the dashes
  titleStyle: { fontFamily: TEXT, fontSize: pt(8), color: col('tomato'), // bold by default
    textTransform: 'uppercase', letterSpacing: pt(1.5), gap: mm(2.4) } };
// config() plugs them in: calloutStyles: [card, column, prep].

Das zusammengesetzte script.js läuft unverändert: Fügen Sie es in das Modulskript einer beliebigen Seite ein, oder öffnen Sie das Rezept auf CodePen. Ordner des Rezepts auf GitHub ↗ (öffnet sich in einem neuen Tab)

Varianten

#Blöcke zählen, statt die Spalten in Kästen zu setzen

Ohne die Spaltenkästen gibt breaks das Kind an, das die rechte Spalte eröffnet, und jeder Listeneintrag, die Zeile mit den Schlagwörtern und der Kopf der Checkliste zählen als eins: Der Gazpacho braucht breaks="10" (acht Zutaten und die Schlagwörter kommen zuerst), die Tortilla breaks="11". Die Spaltentitel und der Abstand zwischen den Schritten aus dem Spaltenstil fallen mit ihnen weg.

 :::callout{type="card" label="SERVES 6"}
-:::columns{count=2}
-:::callout{type="column" title="Ingredients"}
+:::columns{count=2 breaks="10"}
 - **1.5 kg** ripe plum tomatoes
@@ seven more ingredients and a blank line @@
 :chip[Vegan]{style="tag"} :chip[No-cook]{style="tag"} :chip[Make ahead]{style="tag"}
-:::
-:::callout{type="column" title="Method"}
+
 1. Chop the tomatoes, seeded pepper, peeled cucumber and garlic.
@@ steps 2 to 5 @@
 :::
-:::
 :::

#Den Reiter auf die linke Ecke stellen

'top-left' spiegelt das Etikett: Es wandert an die linke Ecke, Messer und Gabel rechts daneben, und die Linie läuft von rechts herein.

     background: col('tomato'), height: mm(TAB), offset: mm(TAB), paddingX: mm(2.6),
+    position: 'top-left', // 'top-right' by default

Häufige Fehler

Häufiger Fehler

Eine Listennummer wird auf ihrer ersten Zeile zentriert, nicht auf die Grundlinie gesetzt

Die Nummer einer nummerierten Liste wird mit der Canvas-Grundlinie 'middle' gezeichnet, 0,3 em der Schrift über der ersten Grundlinie des Eintrags. Eine Nummer in einer anderen Schrift oder mit größerem numberFontSize wächst daher von dort nach oben und unten, statt auf der Zeile zu stehen: Eine Displayschrift sitzt zu hoch, und eine große Schrittnummer hängt über die erste Zeile. Positionieren Sie sie mit orderedLists.numberVerticalOffset und prüfen Sie das Ergebnis in voller Größe. Die Nummern im Inhaltsverzeichnis stehen seit postext 1.5 auf der Grundlinie; Listennummern sind weiterhin zentriert. Nummerierte Listen →

Häufiger Fehler

lists.color eines Kastens färbt auch seine Listennummern

lists.color eines Kastenstils färbt die Aufzählungszeichen des Kastens und die Nummern seiner nummerierten Listen gleichermaßen, sobald der Stil es setzt: Geben Sie einem Kasten so olivgrüne Aufzählungszeichen, werden auch seine Schrittnummern olivgrün. (Bis postext 1.4 erreichte es die Nummern nur, wenn es von unorderedLists.color abwich.) Um nur die Aufzählungszeichen eines Kastens einzufärben, setzen Sie unorderedLists.color für das Dokument und lassen lists.color im Kastenstil weg; die Nummern bleiben dann in orderedLists.color. Kästen →

Häufiger Fehler

Chips, die höher als der Zeilenabstand sind, berühren die nächste Zeile

Ein Chip, dessen Kasten höher als der Zeilenabstand ist, berührt die Chips der nächsten Zeile (die Warnung chipOverlap). Verringern Sie seinen vertikalen Innenabstand, seinen Rahmen oder seine Größe, oder vergrößern Sie den Zeilenabstand. Inline-Chips →

  • Ein Etikett hat weder textTransform noch letterSpacing, deshalb sind SERVES 4 und PARA 4 in den Containern in Versalien getippt.

Nachweise

Text
Eigener Text, CC BY 4.0
Bilder
  • The tortilla on its plate, a photograph · Generated With Diffusion Models · eigener Text
  • The bowl of gazpacho, a photograph · Generated With Diffusion Models · eigener Text
  • The note’s arrow and the pictograms, drawn in code in the page’s palette · Ignacio Ferro · CC BY 4.0
Schriften
Young Serif (SIL OFL 1.1) · Figtree (SIL OFL 1.1) · Caveat (SIL OFL 1.1)
Sandbox