#let NN = $bb(N)$ #let ZZ = $bb(Z)$ #let QQ = $bb(Q)$ #let RR = $bb(R)$ #let CC = $bb(C)$ #let eps = $epsilon$ #let norm(x) = $lr(||#x||)$ #let inner(a, b) = $lr(angle.l #a, #b angle.r)$ #let bigO(x) = $cal(O)(#x)$ #let callout(label, accent, bg, title: none, body) = block( width: 100%, fill: bg, stroke: (left: 2.5pt + accent), inset: (x: 10pt, y: 8pt), radius: (right: 3pt), breakable: true, )[ #text(weight: "bold", fill: accent)[ #label#if title != none [ (#title)]#"." ] #h(0.35em) #body ] #let definition(title: none, body) = callout( "Определение", rgb("#2563eb"), rgb("#eff6ff"), title: title, body ) #let theorem(title: none, body) = callout( "Теорема", rgb("#b91c1c"), rgb("#fef2f2"), title: title, body ) #let lemma(title: none, body) = callout( "Лемма", rgb("#7c3aed"), rgb("#f5f3ff"), title: title, body ) #let remark(title: none, body) = callout( "Замечание", rgb("#475569"), rgb("#f8fafc"), title: title, body ) #let proof(body) = block(width: 100%, breakable: true, above: 0.6em, below: 0.9em)[ #emph[Доказательство.] #body #h(1fr) #box(width: 0.55em, height: 0.55em, stroke: 0.65pt) ] #let ticket(num, title, new-page: false) = { if new-page { pagebreak(weak: true) } heading(level: 1)[Билет #num. #title] } #let exam-notes( subject: "Предмет", semester: "МФТИ ВШПИ · 1 семестр, осень 2026", show-outline: true, body, ) = { set document(title: subject) set page( paper: "a4", margin: (x: 1.8cm, y: 2cm), numbering: "1 / 1", header: context { if counter(page).get().first() > 1 [ #set text(size: 8.5pt, fill: luma(120)) #subject #h(1fr) #semester #v(-0.6em) #line(length: 100%, stroke: 0.4pt + luma(200)) ] }, ) set text(lang: "ru", size: 10.5pt) set par(justify: true, leading: 0.62em) set heading(numbering: none) set list(indent: 0.8em) set enum(indent: 0.8em) show math.equation.where(block: true): set block(breakable: true) show heading.where(level: 1): it => { v(1.2em, weak: true) block( width: 100%, below: 0.7em, stroke: (bottom: 0.8pt + luma(160)), inset: (bottom: 4pt), )[ #text(size: 13pt, weight: "bold")[#it.body] ] } show heading.where(level: 2): it => { v(0.8em, weak: true) text(size: 11pt, weight: "bold", fill: luma(50))[#it.body] v(0.3em, weak: true) } show raw.where(block: true): block.with( width: 100%, fill: luma(247), stroke: 0.5pt + luma(220), inset: 8pt, radius: 3pt, breakable: true, ) align(center)[ #text(size: 18pt, weight: "bold")[#subject] \ #v(0.2em) #text(size: 10pt, fill: luma(110))[#semester] ] v(0.8em) if show-outline { outline(title: [Содержание билетов], depth: 1, indent: auto) pagebreak() } body }