typst-itmo/chastotnie-methods/lab-template.typ
erius 90d1f589b5 Fixed gitignore
Added fourier.py program for lab1
More work done on lab1
2024-09-10 04:52:58 +03:00

73 lines
1.5 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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 raw.where(block: true): code => {
show raw.line: line => {
text(fill: gray)[#line.number]
h(1em)
line.body
}
code
}
#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
]
#let numbered_eq(content) = math.equation(block: true, numbering: "(1)", content)