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