Presentation Slides
Use this skill for slide decks, especially LaTeX Beamer presentations with mathematical or research content.
Goal
Produce slides that are:
- mathematically connected,
- visually clean,
- readable without overflow,
- consistent in notation and language,
- shaped to this user's presentation preferences by default.
What This Skill Does
- creates new Beamer talks,
- rewrites existing decks,
- improves mathematical exposition,
- repairs layout and overflow,
- merges or splits frames when needed,
- turns paper material into presentation form.
What This Skill Does Not Do
- it does not leave mathematical gaps unexplained,
- it does not keep ugly overflow just because the PDF compiles,
- it does not answer user confusion with meta-commentary boxes when the slide itself should be rewritten,
- it does not casually rename notation across slides.
Default Workflow
- Read the source first.
- Identify the deck's mathematical story.
- Check whether current slides are too dense, disconnected, or notation-inconsistent.
- Rewrite slide content before polishing layout.
- Compile after substantial edits.
- Treat overflow and heavy shrink as errors to fix.
Core Rules
1. Read Before Editing
- Prefer local paper
.texsources if they exist. - Otherwise use local notes/library entries.
- Read the paper PDF if the notes are not enough for strict slides.
2. Mathematical Chain
- New formulas must be motivated by previous slides.
- The deck should read as a chain, not as a bag of facts.
- Theorem conditions should appear in formulas when possible, not only in prose.
- If the user asks for stronger theory, rebuild the slide from the source paper rather than paraphrasing loosely.
3. Language
- Default slide prose is Russian.
- Keep method names, code, commands, file names, and only standard technical terms in English.
- Remove decorative or unnecessary English phrases from slide bodies.
4. Notation
- Keep notation stable across the whole deck.
- Reuse notation already accepted by the user.
- Do not rename core objects casually.
- If the user rejects a notation choice once, preserve the preferred one later.
5. Reacting To User Feedback
- If the user says something is unclear, rewrite the slide itself.
- Do not solve that by adding a side box that says, in effect, “here is why this is here”, unless that mathematical object genuinely belongs as part of the slide's logic.
- The answer should become obvious from the revised slide content itself.
- If the user asks to combine slides, combine them.
- If the user asks to remove a slide, remove it unless there is a clear dependency that must first be rebuilt elsewhere.
6. Layout Policy
- Prefer framed blocks, balanced columns, and visual hierarchy over plain fact lists.
- Keep one main idea per frame.
- If content does not fit, split the frame before shrinking aggressively.
- Use proof frames or backup frames for dense derivations.
7. Overflow Policy
Overfull \hboxis an error.Overfull \vboxis an error.Frame text is shrunkis usually an error.- A clean log does not mean the deck is clean. A
tcolorboxinsidecolumnsthat runs past the bottom of a frame is silently cut by the page edge: no warning,latexmkexits 0. Never report a deck as done without runningscripts/check_overflow.pyon the built PDF and gettingall pages fit. It also catches tables running off the right edge. - Fix in this order:
- cut redundant text
- drop the least load-bearing box
- shrink the figure
- rebalance columns
- split the frame
- Do not rely on heavy shrink as the default solution.
- Capacity on 16:9 at 10pt (frame body ~205 pt): a column holds a figure or three short boxes, not both; a full-width figure leaves room for at most two boxes under it; six boxes on one frame is a guaranteed cut.
8. Lab Style — The Default
Every deck for this lab uses the BRAIn Lab house style unless the user explicitly asks for
something else. Authoritative compact reference: examples/lab-style-mini.tex, with
examples/lab-style-notes.md for the mandatory traits.
- Palette comes from two sources: the poster template
~/brainlab/ops/communications/posters/lora-duo/brainposter.styand, decisive for slides, the lab deck~/brainlab/large-models/optimizer-state-compression/huawei-optimizers/notes/talks/Talk3_Efficient_Pretraining_30min.pptx:plum#854C65(full-bleed background of title / section / closing frames, and heading colour on content frames),cream#FAF8F1(content background, and text on plum),amber#FFD183(headings on plum),amberink#A9741A(amber readable on cream),ink#1F1B18,red#B0453F(problems),muted#8C8078. - Never a white background — cream
#FAF8F1. Plain white looks flat and does not sit with the rest of the palette. Figures go in white cards on the cream ground, which then read as cards. - The deck's rhythm is the alternation of full-bleed plum frames and cream content frames. That
alternation is what makes it look designed. Use the
plumframeenvironment for the plum ones. \usetheme{metropolis},aspectratio=169, seriflmodern— not monospace.- Frame title: plum text on cream plus a thin plum rule at text width. Turn the theme progress
bar off (
progressbar=none): it spans the whole page, looks coarser and breaks overflow checking. - Title slide: typography only — no logo, no author line, no
$ run --...lines. Large amber title, thin amber rule, cream subtitle, date bottom-left andBRAIn Labbottom-right. - Box convention:
mathboxwhite card (equations, tables),ideaboxfaint plum (ideas, results),thmboxamber (theorems, stable facts, surprising findings),probboxfaint red (problems). All four carryfontupper=\small; without it three boxes never fit a column. \fcap{...}for figure captions must contain\parinside the group, otherwise\scriptsizedoes not control the leading and the caption renders oversized.
9. Figures — Find Before You Draw
- A figure from the paper always beats a hand-rolled schematic. Before generating anything in
matplotlib, pull the original: check
~/brainlab/*/*/literature/_attachments/<arxiv-id>/first (thepaper-ingestskill already extracted figures for some papers), thencurl -sL https://arxiv.org/e-print/<id>and untar.grep -rhoE 'includegraphics\[[^]]*\]\{[^}]*\}' *.texshows which figures the paper itself actually uses. - Crop only with
pdfcrop --margins 3. Do not set a CropBox by hand (pymupdf and pdfTeX disagree about CropBox vs MediaBox and the figure lands offset). To take one panel of a multi-panel figure, narrow the MediaBox first, thenpdfcrop. - Do not squeeze a portrait figure into a 16:9 frame whole: cut out the wide fragment that carries the idea.
- Own figures, when no source figure exists: matplotlib, white background, serif fonts,
mathtext.fontset=cm, palette colours above — use#5E8797for lines, because#9DE1FCitself is unreadable on white.
10. Terminal Style — Only On Request
- Use it only when the user asks for
terminal styleorтерминальный стиль. It is a slide theme, not the lab's identity: anything representing the lab uses the palette above. - Authoritative reference:
examples/terminal-style-mini.tex, traits inexamples/terminal-style-notes.md. - Interpret it as:
\usetheme{metropolis},aspectratio=169, dark background (#0D1117), dark card/title background (#161B22), green accent (#00FF88), blue secondary (#58A6FF), orange theorem accent (#FF7B54), red problem accent (#FF6B6B), monospace bold titles, section dividers in the same visual language, compacttcolorboxblocks, clean plain final slide. - Title slide there is rich: top
// tagline, thin rules, title, blue subtitle, coloured author and affiliation lines, one or two$ run --.../$ git clone ...lines, optional QR row. - Figures on the dark canvas must sit in a white
figcardpanel, otherwise they look broken.
Preferred Output Shape For Theory Decks
- motivation
- precise setup
- derivation or approximation step
- theorem or guarantee
- algorithmic consequence
- empirical or practical note
Reference Files
Load only what is needed:
references/beamer-workflow.md- compile-and-fix workflow for Beamerreferences/user-presentation-preferences.md- detailed user-specific rules for mathematical slides, feedback handling, notation, and layoutexamples/lab-style-mini.tex- default style anchor: BRAIn Lab house styleexamples/lab-style-notes.md- mandatory visual traits of the lab style, figure sourcing, frame capacityscripts/check_overflow.py- detects frames whose content is silently cut by the page edge; run it before calling a deck doneexamples/terminal-style-mini.tex- style anchor for the dark terminal theme, only when askedexamples/terminal-style-notes.md- mandatory visual traits of terminal style in short form


