-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeta.typ
More file actions
80 lines (65 loc) · 1.9 KB
/
meta.typ
File metadata and controls
80 lines (65 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#import "@preview/quick-maths:0.2.1": shorthands
/// Основная метаинформация
#let conf(
titl: [],
desc: [],
datet: datetime,
head: content,
doc,
put_author: false,
) = {
set text(lang: "ru")
set document(
title: titl,
author: "Максим Бондаренков",
description: desc
+ [. Распространяется на условиях лицензии CC-BY-SA-4.0. Исходный код конспекта доступен в #link("https://github.com/ognevny/MAI-materials")],
date: datet,
)
let header_text = {
if put_author {
emph(head + [. Конспект составил студент группы М1О-232БВ-24 Бондаренков М.В.])
} else {
emph(head)
}
}
set page(
paper: "a4",
numbering: "1",
header: [
#set text(5pt)
#h(1fr) #header_text
],
margin: (
top: 10mm,
bottom: 15mm,
left: 10mm,
right: 10mm,
),
)
set par(justify: true)
set enum(full: true)
show figure.where(kind: table): set figure.caption(position: top)
show circle: set align(center + horizon)
set rect(stroke: 0.5pt)
show: shorthands.with(
($+-$, $plus.minus$),
)
doc
}
// Недостающие операторы
#let arctg = math.op("arctg")
#let const = math.op("const")
#let grad = math.op("grad")
/// Разделитель для vec()
#let delimsys = ("{", "|")
/// Раскрашивает лишь подчёркивание
#let clrundrln(color: black, equation) = block(
stroke: (bottom: color),
outset: (bottom: 1.5pt),
$equation$,
)
/// У нас принято обозначать вектора палочкой над переменным, поэтому это сокращение нужно для большей читаемости
#let ov(var) = $overline(#var)$
/// Для ТММ пока
#let un(var) = $underline(#var)$