#let lab( num: 0, name: [], doc ) = [ #set document( title: "Егор_Капралов_1.5_" + str(num), author: "Капралов Егор" ) #set page( paper: "a4", margin: (left: 30mm, right: 15mm, top: 20mm, bottom: 20mm), numbering: "1" ) #set text( font: "Liberation Serif", size: 12pt, lang: "ru", region: "RU" ) #set par( justify: true, ) #set heading(numbering: (..nums) => { let level = nums.pos().len() if level == 1 { numbering("Задание 1.", ..nums) } else { numbering("1.", ..nums) } }) #show heading: it => { set text(size: 14pt, weight: "bold") block(above: 1.5em, below: 1.5em, it) } #show outline: it => { show heading: it => { set align(center) upper(it) } block(below: 2.5em, it) } #import "../title.typ": itmo_title #itmo_title( type: [Лабораторная работа №#num], name: name, subject: [Частотные методы] ) #outline(title: [Содержание]) #pagebreak() #doc ]