-
Notifications
You must be signed in to change notification settings - Fork 1
/
index-enpre.qmd
246 lines (165 loc) · 4.26 KB
/
index-enpre.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
---
title: "SunQuarTeX-enpre Test"
subtitle: "Subtitle Here"
author: "sun123zxy"
institute: "SunQuarTeX"
date: "2024/02/22"
date-modified: "2024/02/22"
bibliography: index.bib
lang: en
format:
beamer: default
---
# Section A
### Texts
long **long** long long long *long long long* long long long long long long long long long long long long long long long long long long sentence.
long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph.
::::: {.columns}
::: {.column width="30%"}
- left bar.
- narrow narrow narrow narrow narrow narrow narrow narrow narrow narrow narrow narrow left bar.
:::
::: {.column width="70%"}
- right bar.
- wide wide wide wide wide wide wide wide wide wide wide wide wide wide wide wide wide right bar.
:::
:::::
### Lists
- This is a list.
- A compact list.
Wow.
- This is a list.
- A sparse list.
A definition list below.
Reflexivity
: $a \sim a$
Antisymmetry
: $a \leq b \land b \leq a \implies a=b$
Transitivity
: $a \leq b \land b \leq c \implies a \leq c$
### Citations
Blah [@deepface]. Blah blah [@deepface;@eigenfaces]. Blah blah blah^[This is a footnote].
# Section B
## Subsection 1
### Code
```c++
#include<bits/stdc++.h>
using namespace std;
int main(){
return 0;
}
```
### Tables
::: {#tbl-panel-unsolved layout-ncol=2}
|||||
|:-:|:-:|:-:|:-:|
| $L_i \times C_j$ | $2$ | $\mathbb N$ | $\mathbb R$ |
| $2$ | $4$ | $\mathbb N$ | $\mathbb R$ |
| $\mathbb N$ | $\mathbb N$ | $\mathbb N$ | ? |
| $\mathbb R$ | $\mathbb R$ | ? | $\mathbb R$ |
:Products {#tbl-cartesian-unsolved}
|||||
|:-:|:-:|:-:|:-:|
|$L_i^{C_j}$ | $2$ | $\mathbb N$ | $\mathbb R$ |
|$2$ | $4$ | $\mathbb R$ | $2^{\mathbb R}$ |
|$\mathbb N$ | $\mathbb N$ | ? | ? |
|$\mathbb R$ | $\mathbb R$ | ? | ? |
:Powers {#tbl-power-unsolved}
Several results on cardinality
:::
Referable [@tbl-cartesian-unsolved].
### Figures
![This is a figure](index-quarto.png){#fig-quarto}
Referable [@fig-quarto].
### Computations
Complex side by side. ([@fig-light-on], [@fig-light-on-1], [@fig-light-on-2])
```{python}
import numpy as np
import math
from IPython.display import Markdown, display
from tabulate import tabulate
import matplotlib.pyplot as plt
R = np.array([0,100,200,300,400,500,600,700,800,900,1000,
1100,1110,1120,1130,1140,1150,1160,1170,1180,1190,
1200,1210,1220,1230,1240,1250,1260,1270,1280,1290,
1300,1400,1500,2000,4000,math.inf])
U = np.array([24.2E-3, 0.386,0.747,1.104,1.460,1.813,2.16,2.51,2.86,3.19,3.48,
3.70,3.75,3.77,3.78,3.80,3.81,3.83,3.84,3.85,3.86,
3.87,3.90,3.92,3.93,3.94,3.95,3.95,3.96,3.97,3.98,
3.99,4.08,4.16,4.39,4.66,4.85])
I = np.array([3.6,3.6,3.6,3.6,3.6,3.5,3.5,3.5,3.5,3.5,3.4,
3.3,3.4,3.4,3.4,3.4,3.3,3.3,3.3,3.3,3.3,
3.2,3.2,3.2,3.2,3.2,3.2,3.2,3.1,3.1,3.1,
3.0,2.9,2.7,2.2,1.130,47.7E-3])
P = U*I
```
```{python}
#| label: fig-light-on
#| fig-cap: solar panel
#| fig-subcap:
#| - I-U
#| - P-R
#| layout-ncol: 2
fig, ax = plt.subplots()
ax.set_xlabel("U (V)")
ax.set_ylabel("I (mA)")
ax.plot(U, I, marker="o")
ax.grid(True)
ax.set_xlim(0)
ax.set_ylim(0)
plt.show()
fig, ax = plt.subplots()
ax.set_xlabel("R (Ω)")
ax.set_ylabel("P (mW)")
ax.plot(R, P, marker="o")
ax.grid(True)
ax.set_xlim((0, 2000))
ax.set_ylim(0)
plt.show()
```
## Subsection 2
### Theorems {.allowframebreaks}
:::{#thm-test}
## Test
This is a theorem.
$$
\sum_{d \mid n} \varphi(d) = n
$$
:::
:::{.proof}
This is a proof ended with a display math.
$$
\sum_{d \mid n} \mu(d) = [n=1]
$$
:::
:::{.proof}
This is a really really really really really really really really really really really really really really really really really really really really long proof.
:::
:::{#def-test}
This is a definition.
:::
:::{#exm-test}
## An example
This is an example.
:::
:::{.solution}
This is the solution to the example.
:::
:::{#exr-test}
This is an exercise.
:::
:::{.remark}
This is a remark of [@exr-test].
:::
:::{#lem-test}
This is a lemma.
:::
:::{#cor-test}
This is a corollary of [@thm-test].
:::
:::{#prp-test}
This is a proposition.
:::
:::{#cnj-test}
This is a conjecture.
:::