-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate_document.qmd
114 lines (88 loc) · 1.69 KB
/
template_document.qmd
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
format:
chribel-summary-quarto-pdf:
include-in-header:
- text: "\\usepackage[datesep=.]{datetime2}"
- text: "\\DTMsetdatestyle{ddmmyyyy}"
- text: "\\usepackage{blindtext}"
toc: true
classoption: twocolumn
# [DOCUMENT INFORMATION]
title: "A Summary Title"
subtitle: "Summary"
author: "Me, the cool author blablablablablabla"
# [PAGE OPTIONS]
lang: de-CH
babel-lang: nswissgerman
# [HEADER & FOOTER]
fancyhdr:
header:
right: "You're reading a summary"
center: ""
left: "Monkey University"
footer:
right: "Monkey Course"
center: "\\thepage\\ / \\pageref{LastPage}"
left: "\\today"
source:
github: "https://www.youtube.com/watch?v=VGhcSupkNs8"
accentcolor: "124E82" # must be given as hex, sadly :(
chribel-fontfamily:
- name: AlegreyaSans # used for section headings, title page
- name: cmbright # used for paragraph and math
- name: inconsolata
options: "scaled=0.95" # for code blocks
---
```cpp
int8_t hello;
void main(void) {
hello = 1;
while(true) {
hello++;
if(hello=10) {
hello = 0;
}
}
}
```
```{#lst-hello .cpp lst-cap="hello"}
int8_t hello;
void main(void) {
hello = 1;
while(true) {
hello++;
if(hello=10) {
hello = 0;
}
}
}
```
@lst-hello
:::{#lst-hello2 lst-cap="hello"}
:::
`\vspace{-4mm}`{=latex}
```cpp
int8_t hello;
int8_t add(int8_t a, int8_t b);
int8_t subtract(int8_t a, int8_t b);
void main(void) {
hello = 1;
while(true) {
hello++;
if(hello=10) {
hello = 0;
}
}
}
int8_t add(int8_t a, int8_t b) {
return a + b;
}
int8_t subtract(int8_t a, int8_t b) {
return a - b;
}
```
```{=latex}
\blindtext
\blindtext
```
@lst-hello2