repo
stringlengths 26
115
| file
stringlengths 54
212
| language
stringclasses 2
values | license
stringclasses 16
values | content
stringlengths 19
1.07M
|
---|---|---|---|---|
https://github.com/tfachmann/typst-as-library | https://raw.githubusercontent.com/tfachmann/typst-as-library/main/README.md | markdown | Apache License 2.0 | # Typst as Library
As of March 15th, 2024 (typst version `0.11.0`) it has finally been published to [crates.io](https://crates.io/crates/typst), so there is no more need for git dependencies.
This repository shows how to use [typst](https://github.com/typst/typst) as a library in Rust.
```rust
fn main() {
let content = "= Hello, World!";
// All the abstraction needed is here (!)
let world = TypstWrapperWorld::new("./".to_owned(), content.to_owned());
// Render document
let mut tracer = Tracer::default();
let document = typst::compile(&world, &mut tracer).expect("Error compiling typst");
// Output to pdf
let pdf = typst_pdf::pdf(&document, Smart::Auto, None);
fs::write("./output.pdf", pdf).expect("Error writing PDF.");
}
```
You can run the example above via `cargo run --example readme`
---
## Acknowledgment
Code has been inspired by
- [https://github.com/fenjalien/obsidian-typst](https://github.com/fenjalien/obsidian-typst)
- [https://github.com/mattfbacon/typst-bot](https://github.com/mattfbacon/typst-bot)
|
https://github.com/gigu003/typst-templates | https://raw.githubusercontent.com/gigu003/typst-templates/main/factsheet/_extensions/fact/typst-template.typ | typst | MIT License |
// This is an example typst template (based on the default template that ships
// with Quarto). It defines a typst function named 'article' which provides
// various customization options. This function is called from the
// 'typst-show.typ' file (which maps Pandoc metadata function arguments)
//
// If you are creating or packaging a custom typst template you will likely
// want to replace this file and 'typst-show.typ' entirely. You can find
// documentation on creating typst templates and some examples here:
// - https://typst.app/docs/tutorial/making-a-template/
// - https://github.com/typst/templates
#let factsheet(
title: none,
doc,
) = {
let head_color = rgb(159, 70, 49)
let footer_text(term) = {
set text(fill: luma(255), size: 15pt)
text[#term]
}
let header_text(term, size:20pt) = {
set text(fill: luma(255), size: size)
text[#term]
}
let bg_header_footer = context{
for i in (1, 2) {
if i == 1 {
place(top, rect(
fill: head_color,
width: 100%,
height: 200pt,
))
} else if i == 2 {
place(bottom, rect(fill: head_color,
width: 100%,
height: 60pt
))
}
}
}
let fact_header={
table(
columns: (2fr, 4fr, 2fr), align: horizon + center, stroke: none,
rows: (30%, 50%, 20%),
table.cell(rowspan: 2, align: center,inset: 10pt,)[
#image("./_extensions/fact/logo1977.gif", height: 90%)],
table.cell(rowspan: 2)[#header_text(size:60pt)[#title]], [],[],
table.cell(align: center)[#header_text[Henan Cancer Hospital]],[],
table.cell(align: right+bottom)[#header_text[Cancer Fact Sheet]],
)
}
let fact_footer = {
grid(
columns: (2fr, 1fr, 2fr),
align: center + horizon,
footer_text[The Henan Province Cancer Registration Report (2023)],
counter(page).display("1/1",both: true,),
align(right)[#footer_text[Made by <NAME>, All Rights Reserved.]],
)
}
set page(
width: 1050pt,
height: 1486pt,
fill: luma(250),
margin: (top: 250pt, right: 50pt, bottom: 50pt, left: 50pt),
background: bg_header_footer,
header: fact_header,
footer: fact_footer,
)
doc
}
|
https://github.com/Jollywatt/typst-wordometer | https://raw.githubusercontent.com/Jollywatt/typst-wordometer/master/tests/word-count-of/test.typ | typst | MIT License | #import "/src/lib.typ": *
#set page(width: 15cm, height: auto)
#let el = [
One two _three_ four *five* six.
== Seven eight
#box[Nine #h(1fr) ten eleven $ sqrt(#[don’t mind me]) $ twelve.]
Thirteen #text(red)[fourteen]
- #highlight[fifteen]
- sixteen #box(rotate(-5deg)[seventeen])
- eighteen!
]
#rect(el)
#word-count-of(el)
#pagebreak()
#let el = [
#stack(
dir: ltr,
spacing: 1fr,
table(columns: 3, [one], [two], [three #super[four]], [#sub[five] six], [seven]),
rotate(180deg)[eight],
circle[nine ten],
)
#figure(circle(fill: red, [eleven]), caption: [twelve thirteen])
]
#rect(el)
#word-count-of(el)
#pagebreak()
#let el = [
"One *two*, three!" #text(red)[Four], five.
#rect[Six, *seven*, eight.]
]
#rect(el)
#word-count-of(el)
|
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/game-theoryst/0.1.0/src/ul.typ | typst | Apache License 2.0 | // "Colored Underline": Underline numbers in game table
//Underlines value in table with colored line (`col`)
//The number itself remains black by default (`tcol`), but is boldfaced
/*
ToDo: check that `cont` is math, possibly increase functionality to text for convenience sake
- Normal text could just be underlined with `#underline()`
*/
#let cul(cont, ucol, tcol: black) = {
set text(fill: ucol)
math.bold(math.underline(text(fill: tcol, cont)))
}
// Utilities for red/blue underlining, corresponding to default player name colors
// "Horizontal Underline" + "Vertical Underline"
#let bul(cont, col: black) = { cul(cont, col) }
#let hul(cont, col: red) = { cul(cont, col) }
#let vul(cont, col: blue) = { cul(cont, col) }
#let hful(cont, col: red) = { cul(cont, col, tcol: col) }
#let vful(cont, col: blue) = { cul(cont, col, tcol: col) }
|
https://github.com/alexanderjophus/typstcv | https://raw.githubusercontent.com/alexanderjophus/typstcv/main/template.typ | typst | #show link: underline
#let primary_colour = rgb("#ff7f00") // orange
#let link_colour = rgb("#1E90FF") // blue
#let section_header(txt) = {
text(15pt, font: "IBM Plex Sans Medium", fill: primary_colour)[#underline(extent: 2pt)[#txt]]
}
#let dot_separator(array) = {
layout(size => style(styles => [
#let w = 0pt
#let rows = ()
#let row = ()
#for item in array {
if w + measure(item, styles).width < size.width * 0.85 {
w += measure(item + " • ", styles).width
row.push(item)
} else {
rows.push(row)
row = ()
row.push(item)
w = measure(item, styles).width
}
}
#rows.push(row)
#rows.map(r => r.join(" • ")).join(linebreak())
]))
}
#let skills(languages, skills) = {
section_header("Skills")
linebreak()
text(12pt)[#dot_separator(languages)]
dot_separator(skills)
}
#let links(ls) = {
section_header("Links")
linebreak()
ls.map(
l => text(weight: "bold", l.domain) + "://" + text(fill: link_colour, link(l.url)[#underline[#l.display]])
).join(linebreak())
linebreak()
}
#let interests(content) = {
section_header("Interests")
linebreak()
dot_separator(content)
linebreak()
}
#let education(
university: "",
degree: "",
graduation_date: "",
result: "",
dissertation_title: "",
) = {
section_header("Education")
linebreak()
text(12pt, weight: "medium")[#university]
linebreak()
text(9pt)[#degree]
linebreak()
text(9pt)[#graduation_date | #result]
linebreak()
text(9pt, weight: "medium")[Dissertation: ]
text(9pt)[#dissertation_title]
linebreak()
}
#let community(cs) = {
section_header("Community")
linebreak()
text(9pt)[#cs.map(c => "• " + c).join(linebreak())]
linebreak()
}
#let summary(txt) = {
section_header("Summary")
linebreak()
text(11pt)[#txt]
linebreak()
}
#let experience(
company: "",
role: "",
start_date: "",
end_date: "",
stack: [],
achievements: [],
) = {
text(12pt, weight: "medium")[#company | #role | #start_date - #end_date]
linebreak()
text(weight: "bold", 9pt)[#stack.join(" • ")]
linebreak()
text(9pt)[#achievements.map(a => "• " + a).join(linebreak())]
}
#let experience_list(exps) = {
section_header("Experience")
linebreak()
exps.map(exp => text(exp)).join(linebreak())
}
#let template(
name: "",
email: "",
title: "",
phone_number: "",
l: [],
r: [],
) = {
set document(
title: name + "'s CV",
author: name,
)
set text(9.8pt, font: "IBM Plex Sans")
set page(
margin: (x: 32pt, y: 40pt),
)
align(center, text(20pt)[= #name])
align(center, text(14pt, email + " • " + text(fill: primary_colour, title) + " • " + phone_number))
line(stroke: 1pt + primary_colour, length: 100%)
grid(
columns: (2fr, 5fr),
rows: (auto, auto),
gutter: 3pt,
l,
r,
)
} |
|
https://github.com/tingerrr/masters-thesis | https://raw.githubusercontent.com/tingerrr/masters-thesis/main/src/de/chapters/3-non-solutions.typ | typst | #import "/src/util.typ": *
#import "/src/figures.typ"
Initial wurden zur Reduzierung der Latenzen im T4gl-Laufzeitsystem verschiedene Veränderungen auf Sprachebene, wie die Einführung von Move-Semantik oder neuer Syntax/Annotationen in T4gl-Arrays, in Erwägung gezogen.
In den folgenden Abschnitten werden diese kurz umrissen, warum diese für das Problem unzureichend sind und wie diese Erkenntnisse zum Lösungsansatz in @chap:persistence führten.
= Move-Semantik <sec:move>
Eine der möglichen Lösungen zur Reduzierung von Array-Kopien in T4gl ist die Einführung einer Move-Semantik ähnlich derer in Rust oder `std::move` in C++.
Durch explizite oder implizite _Moves_ reduziert man die Anzahl an Kopien von Daten, in den Fällen, wo Daten explizit übergeben und nicht kopiert werden sollen.
Soll zum Beispiel ein Array an eine Funktion übergeben und danach nicht außerhalb dieser Funktion verwendet werden, kann statt einer Kopie ein _Move_ durchgeführt werden.
@lst:cpp-move zeigt die Initialisierung dreier Vektoren.
Zuerst wird der Vektor `foo` angelegt.
Danach wird der Vektor `foo` kopiert, um `bar` zu initialisieren.
Darauf hin wird `baz` durch den _Move_ von `bar` initialisiert.
Im Anschluss sind `foo` und `baz` mit der Sequenz `[0, 1, 2]` belegt, während `bar` leer ist.
#figure(
```cpp
std::vector<int> foo = {0, 1, 2};
std::vector<int> bar = foo; // copy!
std::vector<int> baz = std::move(bar); // no copy!
```,
caption: [Demonstration der Move-Semantik in C++.],
) <lst:cpp-move>
In C++ wird durch den Aufruf von `std::move` ein _MoveConstructor_ aufgerufen, dessen Aufgabe es ist, aus einer alten Instanz eines Typs Daten in die neue Instanz zu übertragen, ähnlich wie bei einer Kopie.
Im Gegensatz zu einer Kopie, wird die alte Instanz aber in einen undeterminierten aber validen Zustand gesetzt, dieser ist implementierungsdefiniert, aber meistens der Standardwert eines Typs.
Bei Klassen wie `shared_ptr` oder `unique_ptr` ist das das Äquivalent zu ```cpp nullptr```, im Falle des Vektors wird beim _Move_ der Daten von `bar` zu `baz` die Instanz `bar` zum leeren Vektor ohne das die eigentlichen Elemente im Vektor verschoben werden.
#figure(
```rust
let foo = vec![0, 1, 2];
let bar = foo.clone(); // copy!
let baz = bar; // no copy!
```,
caption: [Demonstration der Move-Semantik in Rust.],
) <lst:rust-move>
In @lst:rust-move ist die Rust-Variante von @lst:cpp-move zu sehen.
Der Unterschied liegt darin, dass `bar` danach nicht leer ist, sondern für die weitere Referenzierung ungütlig.
Zugriffe auf die Variable `bar` sind nach der dritten Zeile nicht mehr erlaubt und werden zur Kompilierzeit geprüft.
Beide Varianten ermöglichen es, potentiell teure Kopien zu vermeiden, indem die Verantwortung über Daten des Programms von einem Punkt zum anderem übertragen wird.
Die C++-Variante kann in T4gl eingeführt werden, ohne das Verhalten alter Skripte zu verändern.
Zuweisungen in T4gl würden weiterhin intern Daten teilen, statt direkt Kopien anzulegen.
Neue Skripte können durch explizitem _Move_ von Instanzen Kopien vermeiden.
Daraus folgt aber auch, das alte Skripte keinen Nutzen daraus ziehen, ohne dass diese überarbeitet werden müssen.
Bei Unachtsamkeit durch den T4gl-Programmierer können fälschlicherweise Instanzen verwendet werden, welche durch einen _Move_ deinitialisiert wurden.
Die Rust-Variante verhindert durch die Invalidierung von Variablen, welche auf der rechten Seite eines _Move-Assignments_ standen, dass solche Instanzen verwendet werden, kann aber durch diese Restriktion Migrationsaufwand von Projekten vorraussetzen, welcher bei der C++-Variante optional wäre.
In beiden Fällen sind also Codeänderungen bei T4gl-Projekten vonnöten, um von der verringerten Anzahl an Kopien zu profitieren.
Ungeachtet dessen löst dieses veränderte Verhalten nicht das eigentliche Problem, wenn eine Kopie durchgeführt werden muss, ist diese immer noch teuer.
Außerdem benötigt die Rust-Variante nicht-triviale Änderungen an der Analyse-Stufe des T4gl-Kompilers.
= Annotationen
Wie im vorherigen Abschnitt beschrieben, müssen die Kosten von Kopien selbst reduziert werden.
Kopien zu vermeiden bekämpft nur ein Symptom der Implementierung, ohne die Ursache zu beheben.
Wenn T4gl-Arrays zu groß sind, sind Kopien rechentechnisch zu aufwendig.
#figure(
```t4gl
@ArrayMax(1024)
String[Integer] array
```,
caption: [Eine `ArrayMax` Annotation begrenzt das Array auf 1024 Elemente.],
) <lst:max-annot>
Ein alternativer Lösungsansatz zur Reduzierung der Kosten von Kopien sind Annotationen, welche die Größe von T4gl-Arrays begrenzen.
@lst:max-annot zeigt, wie eine solche Annotation verwendet werden könnte.
Es gibt verschiedene Möglichkeiten, solche Annotationen zu implementieren:
+ Überprüfung zur Analyse-Stufe:
Ähnlich der statischen T4gl-Arrays (z.B. `String[10]`) müsste überprüft werden, dass die Länge des Arrays 1024 nicht übersteigt.
+ Überprüfung zur Laufzeit:
Überschreitung der Maximallänge würde einen Laufzeitfehler hervorrufen.
Das Verhalten von statischen Arrays ist verhältnismäßig simpel, die Funktionen `insert` oder `remove` können zu Kompilizerzeit schon nicht aufgerufen werden und Elemente sind durchgängig initialisiert.
Bie Dynamischen Arrays ist das anders.
Um die Überschreitung der Maximallänge zur Analyse-Stufe zu überprüfen, müsste der Kompiler zur Analyse-Stufe Annahmen über unbekannte Größen treffen, von welchen die Anzahl der Elemente abhingen.
Hängen diese von Laufzeitwerten wie _I/O_ ab, dann ist die Analyse in den meisten Fällen unmöglich.
Es ist auch nicht trivial zu überprüfen, wann ein T4gl-Array durch ein anderes intialisiert wurde, welches eine solche Annotation hat.
Die Zuweisung von verschiedenen T4gl-Instanzen kann ebenfalls von Laufzeitvariablen abhängen.
Bei Überprüfung zur Laufzeit wird zwar verhindert, dass T4gl-Arrays eine Maximallänge überschreiten, das erfolgt aber durch einen Laufzeitfehler.
Wird ein Laufzeitfehler nicht verarbeitet, beendet dieser das Programm.
Ähnlich der Move-Semantik in @sec:move müssen Annotationen explizit zu alten Projekten hinzugefügt werden, um von diesen zu profitieren.
Eine Analyse ist beinahe unmöglich und Laufzeitfehler sind in den meisten Fällen schlimmer als Verzögerungen.
Des Weiteren verhindern diese nur Kopien von Arrays mit mehr Elementen als die Annotation angibt, wird eine Annotation aber mit einem Wert wie $2^64$ verwendet, ist diese nutzlos.
|
|
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/math/frac-00.typ | typst | Other | // Test that denominator baseline matches in the common case.
$ x = 1/2 = a/(a h) = a/a = a/(1/2) $
|
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/recursion-03.typ | typst | Other | // Test capturing with unnamed function.
#let f = 10
#let f = () => f
#test(type(f()), "integer")
|
https://github.com/Mc-Zen/quill | https://raw.githubusercontent.com/Mc-Zen/quill/main/src/tequila.typ | typst | MIT License | #import "tequila-impl.typ": build, h, gate, mqgate, x, y, z, cx, cz, s, sdg, sx, sxdg, t, tdg, p, rx, ry, rz, u, barrier, swap, meter, graph-state, qft, ccx, ccz, cca, cccx, multi-controlled-gate |
https://github.com/huyufeifei/grad | https://raw.githubusercontent.com/huyufeifei/grad/master/docs/paper/src/thesis.typ | typst | #import "template/template.typ": *
#import "misc.typ": *
#show: doc => conf(
cauthor: "罗博文",
eauthor: "<NAME>",
studentid: "1120203276",
cheader: "",
ctitle: "操作系统的驱动隔离改进与实现",
etitle: "Driver Isolation Improvement and Implementation for Operating System",
school: "计算机学院",
cmajor: "计算机科学与技术",
csupervisor: "陆慧梅",
esupervisor: "",
date: "2024年5月30日",
cabstract: cabs,
ckeywords: ckw,
eabstract: eabs,
ekeywords: ekw,
acknowledgements: ack,
blind: false,
doc,
)
#include "ch1.typ"
#include "ch2.typ"
#include "ch3.typ"
#include "ch4.typ"
#include "ch5.typ"
#include "ch6.typ"
#pagebreak(weak: true)
#bibliography(("ref.yaml"))
// #bibliography(("ref.yaml"), style: "ieee")
// #pagebreak(weak: true)
// #appendix()
|
|
https://github.com/ClazyChen/Table-Tennis-Rankings | https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2020/WS-03.typ | typst |
#set text(font: ("Courier New", "NSimSun"))
#figure(
caption: "Women's Singles (1 - 32)",
table(
columns: 4,
[Ranking], [Player], [Country/Region], [Rating],
[1], [CHEN Meng], [CHN], [3499],
[2], [SUN Yingsha], [CHN], [3402],
[3], [LIU Shiwen], [CHN], [3309],
[4], [WANG Manyu], [CHN], [3298],
[5], [ITO Mima], [JPN], [3292],
[6], [DING Ning], [CHN], [3265],
[7], [ZHU Yuling], [MAC], [3238],
[8], [WANG Yidi], [CHN], [3190],
[9], [QIAN Tianyi], [CHN], [3129],
[10], [CHEN Xingtong], [CHN], [3108],
[11], [ISHIKAWA Kasumi], [JPN], [3105],
[12], [#text(gray, "MU Zi")], [CHN], [3091],
[13], [HE Zhuojia], [CHN], [3064],
[14], [GU Yuting], [CHN], [3060],
[15], [#text(gray, "WU Yang")], [CHN], [3058],
[16], [HAYATA Hina], [JPN], [3049],
[17], [JEON Jihee], [KOR], [3046],
[18], [CHENG I-Ching], [TPE], [3036],
[19], [#text(gray, "FENG Yalan")], [CHN], [3025],
[20], [SUN Mingyang], [CHN], [3015],
[21], [HASHIMOTO Honoka], [JPN], [3010],
[22], [NAGASAKI Miyu], [JPN], [3002],
[23], [ZHANG Rui], [CHN], [2984],
[24], [#text(gray, "KIM Song I")], [PRK], [2980],
[25], [SATO Hitomi], [JPN], [2968],
[26], [KATO Miyu], [JPN], [2951],
[27], [#text(gray, "ZHANG Qiang")], [CHN], [2950],
[28], [LIU Fei], [CHN], [2950],
[29], [FENG Tianwei], [SGP], [2933],
[30], [HAN Ying], [GER], [2932],
[31], [HIRANO Miu], [JPN], [2930],
[32], [SHIBATA Saki], [JPN], [2924],
)
)#pagebreak()
#set text(font: ("Courier New", "NSimSun"))
#figure(
caption: "Women's Singles (33 - 64)",
table(
columns: 4,
[Ranking], [Player], [Country/Region], [Rating],
[33], [#text(gray, "CHEN Ke")], [CHN], [2918],
[34], [SHAN Xiaona], [GER], [2905],
[35], [#text(gray, "LI Jiayi")], [CHN], [2903],
[36], [KIHARA Miyuu], [JPN], [2903],
[37], [SHI Xunyao], [CHN], [2877],
[38], [YANG Xiaoxin], [MON], [2877],
[39], [YU Fu], [POR], [2870],
[40], [#text(gray, "LI Qian")], [POL], [2868],
[41], [MITTELHAM Nina], [GER], [2866],
[42], [#text(gray, "CHA Hyo Sim")], [PRK], [2861],
[43], [NI Xia Lian], [LUX], [2848],
[44], [CHEN Szu-Yu], [TPE], [2841],
[45], [FAN Siqi], [CHN], [2834],
[46], [LIU Weishan], [CHN], [2834],
[47], [YU Mengyu], [SGP], [2833],
[48], [ANDO Minami], [JPN], [2833],
[49], [#text(gray, "LIU Xi")], [CHN], [2829],
[50], [CHOI Hyojoo], [KOR], [2826],
[51], [#text(gray, "GU Ruochen")], [CHN], [2823],
[52], [#text(gray, "KIM Nam Hae")], [PRK], [2822],
[53], [#text(gray, "CHE Xiaoxi")], [CHN], [2822],
[54], [SOLJA Petrissa], [GER], [2822],
[55], [#text(gray, "HU Melek")], [TUR], [2806],
[56], [DIAZ Adriana], [PUR], [2796],
[57], [OJIO Haruna], [JPN], [2796],
[58], [DOO Hoi Kem], [HKG], [2792],
[59], [#text(gray, "LI Jie")], [NED], [2791],
[60], [YANG Ha Eun], [KOR], [2790],
[61], [GUO Yuhan], [CHN], [2787],
[62], [LEE Zion], [KOR], [2776],
[63], [CHEN Yi], [CHN], [2774],
[64], [ZENG Jian], [SGP], [2773],
)
)#pagebreak()
#set text(font: ("Courier New", "NSimSun"))
#figure(
caption: "Women's Singles (65 - 96)",
table(
columns: 4,
[Ranking], [Player], [Country/Region], [Rating],
[65], [#text(gray, "EK<NAME>")], [SWE], [2772],
[66], [SUH Hyo Won], [KOR], [2771],
[67], [#text(gray, "MAT<NAME>")], [JPN], [2761],
[68], [SO<NAME>], [HKG], [2760],
[69], [#text(gray, "LI Fen")], [SWE], [2760],
[70], [EERLAND Britt], [NED], [2756],
[71], [POLCANOVA Sofia], [AUT], [2755],
[72], [KUAI Man], [CHN], [2748],
[73], [PESOTSKA Margaryta], [UKR], [2739],
[74], [BATRA Manika], [IND], [2729],
[75], [LEE Ho Ching], [HKG], [2724],
[76], [KIM Hayeong], [KOR], [2723],
[77], [#text(gray, "HAMAMOTO Yui")], [JPN], [2721],
[78], [YUAN Jia Nan], [FRA], [2718],
[79], [#text(gray, "LIU Xin")], [CHN], [2717],
[80], [CHENG Hsien-Tzu], [TPE], [2712],
[81], [#text(gray, "LI Jiao")], [NED], [2707],
[82], [<NAME>], [KOR], [2703],
[83], [ZHU Chengzhu], [HKG], [2695],
[84], [<NAME>], [JPN], [2693],
[85], [<NAME>i], [POR], [2692],
[86], [<NAME>], [ROU], [2690],
[87], [<NAME>], [JPN], [2690],
[88], [MIKHAILOVA Polina], [RUS], [2682],
[89], [LEE Eunhye], [KOR], [2677],
[90], [LIU Jia], [AUT], [2669],
[91], [WINTER Sabine], [GER], [2668],
[92], [WANG Amy], [USA], [2664],
[93], [#text(gray, "LANG Kristin")], [GER], [2662],
[94], [#text(gray, "MAEDA Miyu")], [JPN], [2662],
[95], [WANG Xiaotong], [CHN], [2660],
[96], [SAMARA Elizabeta], [ROU], [2659],
)
)#pagebreak()
#set text(font: ("Courier New", "NSimSun"))
#figure(
caption: "Women's Singles (97 - 128)",
table(
columns: 4,
[Ranking], [Player], [Country/Region], [Rating],
[97], [GRZYBOWSKA-FRANC Katarzyna], [POL], [2659],
[98], [#text(gray, "HUANG Yingqi")], [CHN], [2657],
[99], [<NAME>], [RUS], [2654],
[100], [<NAME>], [CZE], [2653],
[101], [<NAME>], [SVK], [2652],
[102], [#text(gray, "<NAME>")], [JPN], [2650],
[103], [BILENKO Tetyana], [UKR], [2650],
[104], [SZOCS Bernadette], [ROU], [2648],
[105], [<NAME>], [USA], [2642],
[106], [<NAME>], [THA], [2640],
[107], [<NAME>], [TPE], [2637],
[108], [<NAME>], [HUN], [2637],
[109], [<NAME>], [THA], [2636],
[110], [<NAME>], [JPN], [2636],
[111], [KIM Byeolnim], [KOR], [2635],
[112], [<NAME>], [PRK], [2631],
[113], [<NAME>], [HUN], [2629],
[114], [#text(gray, "<NAME>")], [JPN], [2622],
[115], [WU Yue], [USA], [2621],
[116], [#text(gray, "MA Wenting")], [NOR], [2614],
[117], [#text(gray, "<NAME>ami")], [JPN], [2613],
[118], [YOO Eunchong], [KOR], [2612],
[119], [<NAME>], [KOR], [2611],
[120], [GASNIER Laura], [FRA], [2610],
[121], [#text(gray, "SOMA Yumeno")], [JPN], [2608],
[122], [#text(gray, "PAVLOVICH Viktoria")], [BLR], [2608],
[123], [WU Yangchen], [CHN], [2602],
[124], [#text(gray, "PARK Joohyun")], [KOR], [2600],
[125], [#text(gray, "SUN Jiayi")], [CRO], [2598],
[126], [#text(gray, "KIM Youjin")], [KOR], [2592],
[127], [TAKAHASHI Bruna], [BRA], [2587],
[128], [LI Yu-Jhun], [TPE], [2585],
)
) |
|
https://github.com/rabotaem-incorporated/algebra-conspect-1course | https://raw.githubusercontent.com/rabotaem-incorporated/algebra-conspect-1course/master/utils/core.typ | typst | Other | #import "../config.typ"
#let chapter_state = state("chapter", "")
#let clabel(name) = {
[
$$#label(name)
]
}
#let notes(
name: none,
short-name: none,
lector: none,
info: none,
document_body,
) = {
set document(author: "Rabotaem Inc.", title: name)
set page(
paper: "a4",
margin: 6%,
numbering: "1",
number-align: right + top,
header: [
#chapter_state.display(it => {
if it != "" {
stack(
spacing: .5em,
[
#it
],
line(length: 100%),
)
}
})
],
header-ascent: 2em,
footer: [
#counter(page).display(it => {
if it != 1 {
stack(
spacing: .5em,
line(length: 100%),
[
@start[#short-name]
#h(1fr)
#it
]
)
}
})
]
)
show outline.entry.where(
level: 1
): it => {
v(12pt, weak: true)
strong(it)
}
set text(
lang: "ru",
region: "ru",
size: 12pt,
)
set heading(
numbering: "1.1.1.",
)
set enum(
numbering: "1.a)",
)
set math.equation(numbering: (..nums) => "")
show heading.where(level: 1): it => {
chapter_state.update(it.body.text)
[
#pagebreak(weak: true)
#it
]
}
show "≥": "⩾"
show "≤": "⩽"
[
#clabel("start")
#align(center + horizon)[
#text(
size: 30pt
)[
*#name*
]
#if lector != none {
v(
5%,
weak: true,
)
text(
size: 20pt,
)[
Лектор: #lector
]
}
]
#align(center + bottom)[
#text(
size: 18pt,
style: "italic",
weight: 500
)[
#info
]
]
//#set par(justify: true)
#outline(indent: true)
#document_body
]
}
#let last_theorem = state("last_theorem", none)
#let make_theorem(th_type, th_type_plural: none, color: white, highlight_color: none, glues_to: ()) = {
if highlight_color == none {
highlight_color = color.lighten(25%)
}
(name: none, plural: false, content, glue: false) => par[
#locate(loc => {
let lt = last_theorem.at(loc)
// [Value: #lt]
let th_label = query(selector(<end-of-last-th>).before(loc), loc)
let last_th_page = if th_label.len() > 0 {
th_label.last().location().page()
} else {
-1
}
if (glue or lt in glues_to) and last_th_page == loc.page() {
if not config.monochrome {
v(-0.4em)
} else {
v(-0.4em + 1pt)
}
}
})
#last_theorem.update(th_type)
#let th_type = th_type
#if plural and th_type_plural != none {
th_type = th_type_plural
}
#let th_content = [
#if name != none [
#let name_string = if type(name) == "string" {
name
} else {
name.text
}
#if name_string.starts-with(regex("(об |о |О |Об )")) [
#let name_string = name_string.replace("О ", "о ").replace("Об ", "об ")
*#th_type #name_string.*
] else [
*#th_type (#name).*
]
] else [
*#th_type.*
]
#sym.space.hair #content
#box()<end-of-last-th>
]
#let th_block = block.with(
outset: .4em,
inset: .4em,
width: 100%,
fill: if not config.monochrome { color.lighten(90%) } else { none },
stroke: if not config.monochrome {
(left: highlight_color, )
} else {
(
left: highlight_color + 2pt,
right: highlight_color + 1pt,
top: highlight_color + 1pt,
bottom: highlight_color + 1pt,
)
},
)
#th_block(th_content)
]
}
#let TODO(content) = rect(
stroke: red + 2pt,
fill: red.lighten(90%),
width: 100%, inset: 0.2cm,
)[
#text(weight: "extrabold")[TODO: ]
#sym.space.hair
#if content != [] { content } else [ Дописать ]<todo-like>
]
#let th_color = if not config.monochrome { red } else { luma(20%) }
#let oth_color = if not config.monochrome { blue } else { luma(30%) }
#let def_color = if not config.monochrome { orange } else { luma(40%) }
#let proof_color = if not config.monochrome { gray } else { luma(80%) }
#let magic_color = if not config.monochrome { purple } else { luma(60%) }
#let magic = make_theorem("Магия какая-то", color: magic_color)
#let th = make_theorem("Теорема", color: th_color)
#let lemma = make_theorem("Лемма", color: th_color)
#let pr = make_theorem("Предложение", color: oth_color)
#let follow = make_theorem(
"Следствие", color: oth_color,
th_type_plural: "Следствия",
glues_to: ("Теорема", "Лемма", "Доказательство")
)
#let def = make_theorem("Определение", color: def_color)
#let prop = make_theorem("Свойство", th_type_plural: "Свойства", color: oth_color)
#let props = prop.with(plural: true)
#let notice = make_theorem("Замечание", highlight_color: proof_color)
#let example = make_theorem("Пример", th_type_plural: "Примеры",
highlight_color: def_color.lighten(25%), glues_to: (
"Теорема", "Лемма", "Предложение", "Следствие",
"Свойство", "Свойства", "Замечание", "Определение",
"Доказательство", "Обозначение",
))
#let examples = example.with(plural: true)
#let exercise = make_theorem("Упражнение", highlight_color: proof_color)
#let denote = make_theorem("Обозначение", color: def_color)
#let proof = make_theorem("Доказательство", highlight_color: proof_color,
glues_to: (
"Теорема", "Лемма", "Предложение", "Следствие",
"Свойство", "Свойства", "Замечание"
)
)
#let proof-left-to-the-reader = proof.with[Доказательство остается читателю в качестве упражнения. <todo-like> ]
#import "shortcuts.typ": *
#let ticket(name, step-fn: none, post-step-fn: none) = if config.enable-ticket-references {
let ticket-counter = counter("ticket")
let width = 0.7cm
let offset = 0.5cm
let color = if not config.monochrome { blue.lighten(60%) } else { gray }
if step-fn != none {
ticket-counter.update(step-fn)
} else {
ticket-counter.step()
}
block(above: 0.2cm, below: 0.2cm,
rect(stroke: none, width: 100%, par[
#align(end, text(size: 0.75em, fill: color.darken(30%))[
Билет #ticket-counter.display();.
#name.
])
#v(-0.7em)
#line(length: 100% + width + offset, stroke: (
paint: color,
dash: "dashed"
))
#place(dy: -1cm)[#hide(name)<ticket>]
#link(<ticket-reference>, place(
dx: offset,
end,
)[
#place(polygon(
fill: color.lighten(70%),
stroke: color + 1pt,
(0pt, 0pt),
(0pt, width),
(width * 0.5, width * 1.5),
(width, width),
(width, 0pt),
))
#place(dy: width * 0.15, block.with(width: width)(
align(text(fill: color.darken(30%), weight: "bold")[
#text(size: 1.5em, ticket-counter.display())
#move(dy: -1.6em, text(size: 0.5em)[билет])
], center)
))
])
]
))
if post-step-fn != none {
ticket-counter.update(post-step-fn)
}
}
|
https://github.com/kilpkonn/CV | https://raw.githubusercontent.com/kilpkonn/CV/master/modules_en/education.typ | typst | // Imports
#import "@preview/brilliant-cv:2.0.3": cvSection, cvEntry, hBar
#let metadata = toml("../metadata.toml")
#let cvSection = cvSection.with(metadata: metadata)
#let cvEntry = cvEntry.with(metadata: metadata)
#cvSection("Education")
#cvEntry(
title: [Master of Computer Science],
society: [TalTech – Tallinn University of Technology],
date: [2021 - 2024],
location: [Tallinn, Estonia],
logo: image("../src/logos/taltech.jpg"),
description: list(
[GPA: 5.0/5.0],
[Thesis: Term Search in Rust],
[Courses: Data Mining #hBar() Machine Vision #hBar() Software Verification #hBar() Logical Programming],
),
tags: ("F#", "R", "Rust", "C", "Prolog")
)
#cvEntry(
title: [Bachelors of Science in Computer Science],
society: [TalTech – Tallinn University of Technology],
date: [2018 - 2021],
location: [Tallinn, Estonia],
logo: image("../src/logos/taltech.jpg"),
description: list(
[GPA: 5.0/5.0],
[Thesis: Development of Time Tracking and Visualization System for Programming],
[Courses: Web Systems Development #hBar() Game Development #hBar() Robotics #hBar() Functional Programming],
),
tags: ("Python", "Java", "Kotlin", "C#", "Idris2")
)
|
|
https://github.com/RolfBremer/gloss-awe | https://raw.githubusercontent.com/RolfBremer/gloss-awe/main/sample-usage.typ | typst | Apache License 2.0 | #import "./gloss-awe.typ": *
// This typst file demonstrates the usage of the glossary package.
#set text(lang: "en", font: "Arial", size: 10pt)
#show raw: it => {set text(size: 1.1em); it}
// Format headings
#set heading(numbering: none)
#show heading: it => {
set block(above: 2em)
set text(blue)
[#it]
}
// Front Matter
#align(center)[
#text(size: 23pt)[Typst-Glossary]
#linebreak() #v(1em)
#text(size: 16pt)[A Glossary Package for Typst]
#linebreak() #v(.5em)
#text(size: 12pt)[Version 0.1.5 (25.7.2024)]
#linebreak() #v(.5em)
#text(size: 10pt)[<NAME>, <NAME>]
#v(4em)
]
= Sample Document to Demonstrate the Package Gloss-Awe
#grid(
columns: (1fr, 1fr),
[
This package can create a glossary for a document. The glossary entries are pulled from a
pool of entries using only entries, that are marked in the document. The package creates
warnings for marked entries, that cannot be found in the entry pool, but this warnings can
be suppressed with a parameter to the `make-glossary()` function.
// Here we use the optional `showmarker` parameter to format the marked entry.
Using the glossary package in a
#gls(entry: "Typst", showmarker: m => text(weight: "bold", fill: teal, m), [typst])
document consists of some simple steps:
+ Importing the package `gloss-awe`.
+ Marking the words or phrases to include in the glossary with `gls[]`.
+ Optional: Defining a showmarker for the marker.
+ Read in one or more glossary pool(s) (from file(s) or create it in the document itself).
+ Generating the glossary page by calling the `make-glossary(..glossary-pool)` function.
],
[
#figure(
image("/Global/Pics/Screenshot Glossary.png", width: 90%),
caption: [Glossary Page],
)
]
)
== Importing the Package
The glossary package is available on GitHub
(https://github.com/RolfBremer/typst-glossary). It is still in development and may have
breaking changes in its next #gls[iteration].
```typ
#import "./gloss-awe.typ": *
```
The package is also available via Typst's build-in Package Manager:
```typ
#import "@preview/gloss-awe:0.1.5": *
```
Note, that the version number ("0.1.5") have to be adapted to get the wanted version.
== Marking of Entries
We have marked several words to be included in the glossary page at the end of the
document. The marked entries are shown on the glossary page.
```typ
This is a #gls[Sample] to demonstrate the 'gloss-awe' package.
```
The previous markup marks "Sample" as reference for the glossary. If "Sample" is
contained in the Glossary-Pool, it will be included into the resulting glossary page. If
the Entry in the pool has a different key word, the following marker syntax can be used:
```typ
This is a #gls(entry: "Example")[Sample] to demonstrate the 'gloss-awe' package.
```
In this case, the entry for "Example" is taken from the glossary pool, while in the
document the term "Sample" is used.
The `entry` parameter should also be used, if the entry text (display) is some rich
content, like a math expression.
=== Complex Content
To reference a Glossary entry with a complex name, like this #gls[Complex Content]
containing a whitespace, it is a good idea to use the entry parameter of the
`gls`-function, to map it to a non-complex entry in a glossary pool, or, create the pool
entry with a string as its key (see sample code!).
Other, even more complex content, may definitely need an entry text given. The entry text
controls where the entry is sorted in, and also is it used for the lookup in the glossary
pools.
```typ
#gls(entry: "Kreisfläche", $A=pi r^2$)
#gls(entry: "E=MC2", $ E=m c^2 $)
#gls(entry:"I1" ,$ I = rho^2 * sigma^3 $)
```
#v(2em)
#gls(entry: "Kreisfläche", $A=pi r^2$)
#gls(entry: "E=MC2", $ E=m c^2 $)
#gls(entry:"I1" ,[$ I = rho^2 * sigma^3 $])
=== Glossary Entries that are not visible in the Documents Content
It is also possible to reference glossary entries without having them occur in the content
of the document. They will only appear in the glossary. The function
`#gls-add[Keyword]` can be used to create such a reference.
Here we use different notations to add entries with `gls-add()`:
```typ
#gls-add[Calcium]
#gls-add("Beryllium")
#gls-add[Potassium - Hydrochloride]
#gls-add["Iron"]
```
#gls-add[Calcium]
#gls-add("Beryllium")
#gls-add[Potassium - Hydrochloride]
#gls-add["Iron"]
== Defining a showmarker
For review reasons, the marked entries can be made more visible in the resulting
document. For example like here:
// Show the marked glossary entries ...
#let my-gls = gls.with(showmarker: w => text(fill: teal, [#w]))
```typ
#let my-gls = gls.with(showmarker: w => text(fill: teal, [#w]))
```
This function can be used to mark entries that then appear colored in the
#my-gls[typst] document.
The index markers now show up in the resulting document and can easily be reviewed.
To define this behavior generally, the gls function can be redefined like this:
```typ
#let gls = gls.with(showmarker: w => text(fill: teal, [#w]))
```
== Casing
Note that the #gls(entry: "Casing")[casing] of the entries matters. It may sometimes be
desirable to just ignore the casing while generating the glossary page, but there are
cases where casing is important - especially when it comes to trademarks and logos. An
example is provided here, where "#gls[Context]" as well as "#gls[ConTeXt]" is contained in
the glossary.
Starting with version 0.1.0, gloss-awe supports custom sorting: A function can be provided
to make-glossary() to determine the sort key for the entries.
```typ
#make-glossary(global-glossary, sort: x => lower(x))
```
or shorter:
```typ
#make-glossary(global-glossary, sort: lower)
```
== Hiding entries from the glossary page
It is also possible to hide entries (temporarily) from the generated glossary page without
removing any markers for them from the document.
The following sample will hide the entries for "Amaranth" and "Butterscotch" from the
glossary, even if it is marked with `gls[...]` or `gls-add[...]` somewhere in the
document.
```typ
#let hidden-entries = (
"Amaranth",
"Butterscotch"
)
#make-glossary(glossary-pool, excluded: hidden-entries)
```
== The Glossary Pool(s)
The pool contains the definitions for the entries. In this sample, we read the pool(s) from
one or more files -- here from typst files. But they may also be #gls[XML]-Files or other
sources. The `make-glossary()` method can take more than one pool at once. The matching of
marked entries is done in the order the pools where given in the parameters of the method.
The first match wins.
The pools are typst dictionaries, where the key is the marked word. The entry under this
key is itself a dictionary, containing one or more entries with well known keys:
- description\
This is the description of the marked word.
- link\
This optional entry can contain an external link (URL).
more well known entries may come in future versions.
== The Glossary Page
To actually create the glossary page, the `make-glossary()` function has to be called. Of
course, it can be embedded into an appropriately formatted environment, like this:
```typ
#columns(2)[
#make-glossary(glossary-pool, sort-key: lower, suppress-missing: false)
]
```
Note: the parameter `suppress-missing` is set to false (which is the default). So marked
entries that could not be found in the provided glossary pools, are marked with a
#text(red, "No glossary entry") on the glossary page.
The next sample uses two different pools: a specific pool and a global pool.
```typ
#columns(2)[
#make-glossary(specific-pool, glossary-pool, sort-key: lower)
]
```
= Why Having a Glossary in Times of Search Functionality on the Internet?
A well-defined Glossary can be very helpful in documents where very specific meanings of
certain Terms are used. For example, the term "Context". In a specific document it
may refer not to the general context, but may be used for a specific data structure in a
system. In another document it may refer to a typesetting system with the name "ConTeXt".
A Glossary can be used to define things for the document's context. It is used to agree on
a #gls(entry: "Common Definition")[common definition] of Terms used in the document.
= Test Text
In this section, we have some more sample text to have some more references for the
glossary. The rest of this section is #gls[Test Text], so it may not carry much meaning in
it. It is more like #lorem(20).
The #gls[Commit-SHA] of Git is a very nice key to identify specific versions. The term
_#gls[Supercalifragilisticexpialigetisch]_ comes to mind, if one thinks about really long
words, but that's another story.
#pagebreak()
= Glossary<Glossary>
To create the glossary page, we load the #gls(entry: "Glossary Pool")[glossary~pool] from
a file and call the `make-glossary()` function with it.
Here we generate the glossary page with referenced entries in two columns:
#line(length: 100%, stroke: .1pt + gray)
// We hide these entries in the glossary, even if is marked in the document.
#let hidden-entries = (
"Amaranth",
"Artificial"
)
#import "/Global/GlossaryPool.typ": glossary-pool
#columns(2)[
// Here we emit the actual glossary page; we use the lower function to sort the entries.
#make-glossary(glossary-pool,
excluded: hidden-entries,
sort-key: lower,
suppress-missing: false)
]
#pagebreak(weak: true)
= Glossary (with additional local pool)
This Glossary uses an additional glossary pool file to resolve the marked entries.
#line(length: 100%, stroke: .1pt + gray)
#import "/Global/GlossaryPool.typ": glossary-pool
#import "/Global/LocalGlossaryPool.typ": local-glossary-pool
#let emptyGlossary = () // This is to test, if an empty glossary is ignored.
#columns(2)[
// Here we emit the actual glossary page; we do not provide a specific function
// to sort the entries in this case.
#make-glossary(local-glossary-pool, glossary-pool, emptyGlossary, excluded: hidden-entries)
]
|
https://github.com/fyuniv/CornellNoteTemplate | https://raw.githubusercontent.com/fyuniv/CornellNoteTemplate/main/template.typ | typst | Other | // A cornell note template for creating worksheets.
#let left_column_width = 28%
#let cornellnote(
// college title or logo
college: "",
// subject title
course: "Precalculus",
//note date
date: "",
// topic/section of the note
topic: "",
//name of the instructor
instructor: "",
//semester
term: "",
left_column: left_column_width,
//note content
body
) = {
set table(stroke: 1.5pt)
set text(font: "Noto Sans", size: 11pt)
set page(
paper: "us-letter",
margin: (
top: if college != "" {15em} else {12.5em},
bottom: 16em,
x:0.5in
),
header-ascent: 0%,
footer-descent: 0%,
header: {
if college != "" {
align(center)[#box(height:2.5em)[#college]];
} else {}
set text(14pt)
grid(
columns: (60%, 40%),
[
#text(16pt)[*Subject:*] #box(stroke: (bottom:2pt), width: 75%, inset: (bottom: 3pt))[#course]
],
align(right)[
#text(16pt)[*Date:*] #box(stroke: (bottom:2pt), inset: (bottom: 3pt), width:60%)[#date]
]
)
box(width: 100%, height: 3em, stroke: 2pt, inset: 6pt)[
#align(start+top)[
#text(14pt)[*Topic:*] (Chapter/section)\
#topic
]
]
v(-0.75em)
table(
columns: (left_column_width, 100%-left_column_width),
rows: 1.5em,
text(14pt)[*Questions/Ideals*],
text(14pt)[*Notes*:]
)
},
footer: {
box(width: 100%, height: 12em, stroke: 2pt, inset: 6pt)[#text(16pt)[*Summary:*]]
{set text(11.5pt, weight: 500)
grid(
columns: (1fr,)*3,
rows: 1em,
align(left)[
#term
],
align(center)[
#counter(page).display("1 / 1", both: true)
],
align(right)[
#if instructor != "" [
*Instructor:*] #instructor
]
)
}
}
)
table(
columns: (left_column_width, 100%-left_column_width),
rows: auto,
[],
{body; v(1fr)}
)
}
|
https://github.com/Kasci/LiturgicalBooks | https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/CSL_old/oktoich/Hlas4/3_Streda.typ | typst | #let V = (
"HV": (
("", "Jáko dóbľa", "Na krest vozdvizájem, i kopijém probodájem, i pérsty okrovavľájem Vladýko, svoboždénije podpisál jesí nám preblahíj, i rukopisánije Adáma prarodíteľa rasterzáv, svobodíl jesí čelovíčeskoje suščestvó. Sehó rádi vospivájem ščédre, júže páče umá tvojú blahostýňu."),
("", "", "Vospivájem tvojá stradánija Vladýko Iisúse: krest, kopijé že i trósť, húbu i hvózdija, bijénija, bahrjanícu, i vinéc ot térnija, oplevánija že i poruhánija, jáže preterpíl jesí vóleju. Veličáju tvojé nezlóbive jedíne žiznodávče dolhoterpínije, i víroju slavoslóvľu ťá čelovikoľúbče."),
("", "", "Krestú tvojemú čestnómu poklaňájusja preblahíj, ľubóviju oblobyzája, i slávľu tvojé jéže páče umá sošéstvije, bezmírnuju mílosť i neizrečénnyja ščedróty, i bohátuju blahostýňu, jejáže rádi spásl jesí čelovéčeskoje jestestvó, soderžímo bývšeje vo ťmí prehrišénij. Sláva Christé raspjátiju tvojemú."),
("", "", "Na kresťí jáko uzrí prihvoždájema ťá Hóspodi, Áhnica i Máti tvojá divľášesja. Čtó viďínije sijé, vzyváše, Sýne voždeľínnyj? Sijá tí nepokorívyj sónm vozdajét bezzakónnyj, íže mnóhich tvojích čudés naslaždéjsja? No sláva neizrečénnomu schoždéniju tvojemú Vladýko."),
("", "", "Áhnca i pástyrja ťá na drévi jáko víďi, áhnica róždšaja rydáše, i máterski tebí viščáše: Sýne ľubézňijšij, káko na drévo krestnoje vozdvíhlsja jesí dolhoterpelíve? Káko rúci i nózi tvojí Slóve, prihvozdíšasja ot bezzakónnych, i króv tvojú izlijál jesí Vladýko?"),
("", "", "Jáko víďi ťá Hóspodi Ďíva i Máti tvojá na kresťí povíšena divľášesja, i vzirájušči hlahólaše: čtó ti vozdáša, íže mnóhich tvoích daróv nasláždšijisja Vladýko? No moľúsja, ne ostávi mjá jedínu v míri, no potščísja voskrésnúti, sovozstavľája práotca."),
("Krestobohoródičen", "", "Ne rydáj mené Máti, zrjášči na drévi povíšena tvojehó Sýna i Bóha, na vodách povísivšaho zémľu neoderžímo, i vsjú tvár sozdávšaho: íbo voskrésnú, i proslávľusja, i ádova cárstvija sokrušú krípostiju, i pohubľú tohó sílu, i svjázannyja izbávľu ot zloďíjstva jehó, jáko blahoutróben, i Otcú mojemú privedú, jáko čelovikoľúbec."),
),
"S": (
("", "", "Orúžije nepobidímoje Christé, krest tvój dál jesí nám: i sím pobiždájem prilóhi čuždáho."),
("", "", "Vsehdá imúšče Christé, krest tvój na pómošč, síti vrážija udób popirájem."),
("", "", "Imúšče derznovénije ko Spásu svjatíji, molíte neprestánno za ný hríšnyja, ostavlénije prehrišénij prosjášče, i dušám nášym véliju mílosť."),
("Krestobohoródičen", "Zvánnyj svýše", "Raspinájema Christá čelovikoľúbca víďašči prečístaja, i rébra iskopovájema kopijém, pláčušči vopijáše: Čtó sijé Sýne mój? Čtó tí bezblahodátniji ľúdije vozdáša, za jáže sotvoríl jesí dóbraja ím, i tščíšisja bezčádstvovati mjá vseľubézňijšij? udivľájusja blahoutróbne, tvojemú vólnomu raspjátiju."),
),
)
#let P = (
"1": (
("", "", "Otvérzu ustá mojá, i napólňatsja Dúcha, i slóvo otrýhnu caríci Máteri, i javľúsja svítlo toržestvúja, i vospojú rádujasja tojá čudesá."),
("", "", "Neizmírnuju Bóžiju múdrosť i sílu róždši preneporóčnaja, Christá bez símene plótiju, deržávu kríposti, i božéstvennoje velíčije sťažála jesí roždestvóm tvojím, Bohorodíteľnice."),
("", "", "O páče umá roždestvá tvojehó prečístaja, ímže obohatísja zemných mnóžestvo netľínijem, i ťá nýňi blažít dostójno, chodátaicu obnovlénija."),
("", "", "Boľáščaho iscilí dušéju i ľílom Ďívo, rabá tvojehó osinénijem tvoím: ťá bo predstáteľnicu vsím súščym v pečáli poznách, jáko róždšuju spasénije náše."),
("", "", "Ľúťi pohružájemu v pučíňi skorbéj, i búreju bezmírnych obstojánij, spasénija prostérši mí rúku, izvedí Vladýčice iz hlubiný zól."),
),
"3": (
("", "", "Tvojá pisnoslóvcy Bohoródice, živýj i nezavístnyj istóčniče, lík sebí sovokúpľšyja duchóvno utverdí v božéstvenňij tvojéj slávi, vincév slávy spodóbi."),
("", "", "Kropíši iscilénij strují boľáščym Ďívo, vsjúdu: ťjá bo istóčnika pokazá milosérdija Vladýčice, íže mílosti Hospóď iz tebé roždéjsja páče umá."),
("", "", "Krasén čertóh božéstvennomu Slóvu, i božéstvennyj nevístnik výše jestestvá, Ďívo Máti bylá jesí: ťímže mílosti tvoích ščedrót otvérzi mí, ko spaséniju vozvoďášči."),
("", "", "Umertvísja vsjá kríposť mojá ot mnóžestva bezmírnych zól: mnóhimi úbo skorbmí otčájachsja. Pomozí mí Hospožé, jáže žízň róždšaja, i pláčuščym uťišénije."),
("", "", "Pomíluj jedína Bohomáti, pomíluj i uščédri dúšu mojú okajánnuju, potopľáemuju bísy lukávymi i strasťmí i préžde vrémene smérti mojejá, sijú očístiti umilosérdisja."),
),
"4": (
("", "", "Neizsľídnyj Bóžij sovít, jéže ot Ďívy voploščénija tebé výšňaho, prorók Avvakúm usmotrjája zovjáše: sláva síľi tvojéj Hóspodi."),
("", "", "Kórene i črésl ťá cárskich, vsích cár jáko súšču voždeľív, výššu cheruvím i serafím soďíla, vés Bohoródice vséľsja v ťá."),
("", "", "Čelovíčeskaho rádi poroždénija, soďíteľ voploščájem, iz tebé rodísja i predstáteľnicu nelóžnu christijánom ťá pokazá: ťímže k tvojemú króvu pribiháju, čístaja."),
("", "", "Króv, i zastuplénije, i pribížišče búdi mí Ďívo rabú tvojemú, i iscilí mja ot bezmírnych zól, vospiváti ťá prečístaja: sláva neizrečénnomu roždestvú tvojemú."),
("", "", "Nedoumíjusja, i slezjú, i steňú ot strástnych mojích pomyšlénij, i ťá moľú: jáko jesí istóčnik mílosti, ot boľíznej mojích izbávi mjá, vedúšči k božéstvennomu umiléniju."),
),
"5": (
("", "", "Užasóšasja vsjáčeskaja o božéstvenňij slávi tvojéj: tý bo neiskusobráčnaja Ďívo, imíla jesí vo utróbi nad vsími Bóha, i rodilá jesí bezľítnaho Sýna, vsím vospivájuščym ťá mír podavájuščaja."),
("", "", "Iscilénij vódy tóčiši prísno Ďívo vsím boľáščym jáko óblak oduševlén sýj carjá Christá. Ťímže moľú ťa priľížno: rósu iscilénija mňí boľáščemu nizposlí."),
("", "", "Ne prestáj moľášči, jehóže rodilá jesí Bohonevísto Ďívo, jáko Spása i Vladýku, razrišénije mí dážď skorbéj i boľíznej, i k rádosti netľínňij mjá vozvedí, proščája mí prehrišénija."),
("", "", "Upovánije mí jesí prečístaja, i spaséniju pochvalá. Ťímže pribiháju k tvojemú pokróvu: ne hnušájsja mené, hrichí mnóhimi i boľízňmi skórbnymi nýňi pohloščénnaho, no predvarí i spasí mjá."),
("", "", "Hrózd zrílyj, káko na drévi vísiši? Sólnce slávy, káko vozdvíhlsja jesí, svít sólnca pomračívyj v strásti tvojéj? Spáse, róždšaja ťjá áhnica drévle vopijáše tí, Máterski vosklicájušči."),
),
"6": (
("", "", "Priidóch vo hlubiný morskíja, i potopíla mjá jésť búrja mnóhich hrichóv: no jáko Bóh iz hlubiný vozvedí živót mój mnohomílostive."),
("", "", "Zrák vospriját rábij ot tebé Ďívo, vsích cár i Bóh náš, i výššu ťá jáko Bohoródicu pokazá cheruvím i strášnych serafím."),
("", "", "Jáže jedína róždši Bóžiju žízň, i vsím spasénije dajúščaho, otčájanna mjá súšča spaséniju spodóbi, i strastéj mojích vostánije presicý."),
("", "", "Tvojú podážď pómošč, i izbávi mjá bíd i skorbéj, izbavľájušči mjá napástej i prehrišénij mojích, jáže vsích róždšaja izbavlénije."),
("", "", "O tebí Ďívo, chválimsja, i tobóju ľútych izbavľájemsja: naďíjuščesja na ťá nachoždénija ne bojímsja zločestívych várvar, vospivájuščiji ťá."),
),
"S": (
("", "", "Ďívo preneporóčnaja Máti Christá Bóha, orúžije prójde tvojú presvjatúju dúšu, jehdá raspinájema víďila jesí vóleju Sýna i Bóha tvojehó: jehóže preblahoslovénnaja moľášči ne prestáj, proščénije prehrišénij nám darováti."),
),
"7": (
("", "", "Ne poslužíša tvári Bohomúdriji páče sozdávšaho, no óhnennoje preščénije múžeski poprávše, rádovachusja pojúšče: prepítyj otcév Hospóď i Bóh blahoslovén jesí."),
("", "", "Ízsše jáko skudéľ strasťmí vsjá kríposť mojá, i sé ádu priblížichsja, ot úz vsepáhubnych predvarí Máti Bóžija, i ischití ot oderžáščich pečálej rukóju mílosti tvojejá."),
("", "", "Rasterzájemi utróbi mojéj ot zlób mnohoobráznych, i jéže žíti rasterzájusja mnóžestvom prehrišénij i boľíznej mojích: no izbávi mjá ot obojích prečístaja, žízň nám róždšaja."),
("", "", "Cárstva Christóva vseščédraho, Ďívo prečístaja, otvérsti mí jáko blahája spodóbi, i boľíznej dušetľínnych i nachoždénij izbáviti, tvojími molítvami blahoslovénnaja."),
("", "", "Oboščrény boľízni ránam mojím ot bezmírnych mojích prehrišénij, vedút v smérť dušévnuju i ťilésnuju: no ischití mja Vladýčice, jáko síľna, ot vsjákich skorbéj i nedúhov."),
),
"8": (
("", "", "Ótroki blahočestívyja v peščí, roždestvó Bohoródičo spasló jésť: tohdá úbo obrazújemoje, nýňi že ďíjstvujemoje, vselénnuju vsjú vozdvizájet píti tebí: Hóspoda pójte ďilá, i prevoznosíte jehó vo vsjá víki."),
("", "", "Véšč strastéj ternonósnych sťažách, i žálom sích probodájem jésm: ťímže otčájachsja, úzami podavľájem jésm i napásťmi, prečístaja Máti Christá Bóha: ot níchže mjá izbavľájušči, podážď vsích prehrišénij proščénije tvojími molítvami."),
("", "", "Svíščnice svíta trisólnečnaho súšči, zaréju blahoutróbija tvojehó ťmú otimí prehrišénij mojích Bohorodíteľnice, izbavlénije núždnych boľíznej podajúšči, víroju pojúščemu i prevoznosjáščemu prečístoje tvojé roždestvó."),
("", "", "Vés vséľsja vo črévo tvojé, neizhlahólanno voplotísja presúščnyj Bóh prisnoďívo, míru zastúpnicu ťá, i óbščuju pómošč soďílav: ťímže moľú ťá, izbávitisja ľútych strastéj mojích, i úz prehrišénij."),
("", "", "V čás Ďívo, končíny mojejá, rukí bisóvskija, i osuždénija, i otvíta i strášnaho ispytánija, i mytárstv hórkich, i kňázja ľútaho, i ohňá víčnaho ischití mja Bohomáti."),
),
"9": (
("", "", "Vsják zemnoródnyj da vzyhrájetsja dúchom prosviščájem, da toržestvújet že bezplótnych umóv jestestvó, počitájuščeje svjaščénnoje toržestvó Bohomátere, i da vopijét: rádujsja vseblažénnaja Bohoródice, čístaja prisnoďívo."),
("", "", "Ród zemnýj voznesésja roždestvóm tvojím, synopoložénije vzém Božéstvennym sovokuplénijem: i slikújet nebésnoje mnóžestvo so zemnými, pojúšče ťá dostodólžno čístaja, jáko Máter súšču Bóha nášeho, i míru vsemú pribížišče."),
("", "", "Vés býv otňúd sťáhnuv hrichí mojími, ot bezmírnych rán i boľíznej, tvojú pómošč prizyváju Vladýčice, i zastuplénije, jéže podážď vsích izbavľájušči mjá ľútych bíd i skorbéj."),
("", "", "Pínije s písneju i chvalénije spleténija nýňi ot boľíznennyja duší prinošáju s ľubóviju, tebí róždšej jestestvóm Christá Bóha, jehóže bahoprebýtna priímši, i prošénija mojá Bohoródice vsjá ispólnši, molítvami tvojími sobľudí."),
("", "", "Prosvití, čístaja Bohorodíteľnice, dúši mojejá óči, da ne postíhnet mené hrichóvnaja ťmá ťážkaja, nižé hlubiná pokrýjet mjá otčájanija: no samá mjá spasí, i okormí, predstáteľnice vírnych nepostýdnaja."),
),
)
#let U = (
"S1": (
("", "", "Iskupíl ný jesí ot kľátvy zakónnyja čestnóju tvojéju króviju, na kresťí prihvozdívsja, i kopijém probóďsja, bezsmértije istočíl jesí čelovíkom: Spáse náš sláva tebí."),
("", "", "Na kresťí ťa Spáse, prihvozdíša Judéji, ímže ot jazýk nás prizvál jesí Christé Bóže náš: prostérl jesí dláni na ném vóleju tvojéju, kopijém že v rébra tvojá prijál jesí probostísja mnóžestvom ščedrót tvojích, jedíne čelovikoľúbče."),
("Krestobohoródičen", "", "Beznevístnaja Máti tvojá Christé, jáko uzrí na kresťí ťa vozvyšájema, rydájušči máterski takovája viščáše: čtó nóvoje, i stránnoje sijé čúdo, Sýne mój? Káko bezzakónnyj sónm ko krestú ťa prihvoždájet vsích žiznodávca, svíte mój sladčájšij?"),
),
"S2": (
("", "", "Skóro predvarí, préžde dáže ne porabotímsja vrahóm chúľaščym ťá, i preťáščym nám Christé Bóže náš: pohubí krestóm tvoím borjúščyja nás, da urazumíjut, káko móžet pravoslávnych víra, molítvami Bohoródicy, jedíne čelovikoľúbče."),
("", "", "Na kresťí prihvóžďsja na lóbňim vóleju svojéju, mojú drévňuju jázvu hrichóvnuju iscilíl jesí Vladýko, mnóhija rádi blahostýni: jáko položílsja jesí choťínijem čelovikoľúbče Spáse náš, za ród čelovíčeskij, i ot rébr tvojích iskápal jesí króv i vódu, víroju pojúščym ťá."),
("", "", "Síloju Krestnoju podvíhšesja dóbri, sopostáta vrahá nizložíste krípko, terpínijem vášym svjatíji strastonóscy: ťímže čestnýja soveršájušče vírno pámjati váša, osvjaščájemsja ďíjstvom, i blahodátiju Dúcha vsesvatáho molítvami vášimi, svjaščénniji Christóvy orúžnicy, o míri Spásu molítesja."),
("Krestobohoródičen", "", "Ďíva i áhnica víďivši na kresťí, bez símene iz nejá áhnca róždšahosja, i kopijém probodéna, pečáli ujázvena strilámi vopijáše, boľíznenno vosklicájušči: čtó nóvoje táinstvo? Káko umiráješi, íže životá jedín Hospóď? Ťímže voskresní, pádšaho sovozdvizája práotca."),
),
"S3": (
("", "", "V rají mja ľúúťi pádšaho, čelovikoubíjcy hórkim sovítom, na kránijevom mísťi páki vozdvíhl jesí Christé, drévom uvračeváv júže ot dréva kľátvu, ubívyj léstiju umertvívšaho mjá zmíja, i darovál mí jesí Božéstvennuju žízň. Sláva božéstvennomu raspjátiju tvojemú Hóspodi."),
("", "", "Na drévi razumív ťá, povíšena sólnca právednaho Christé, sólnce svít pomračí, tvár že podvizášesja, i mértviji jáko ot sná skóro iz hrobóv vostáchu Slóve, božéstvennuju pisnoslóvjašče deržávu slávy tvojejá."),
("Krestobohoródičen", "", "Ďívo preneporóčnaja Máti Christá Bóha, orúžije prójde tvojú presvjatúju Dúšu, jehdá raspinájema vídela jesí vóleju, Sýna tvojehó i Bóha: jehóže preblahoslovénnaja moľášči ne prestáj, proščénije prehrošénij nám darováti."),
),
"K": (
"P1": (
"1": (
("", "", "Mórja čermnúju pučínu nevlážnymi stopámi drévnij pišešéstvovav Izráiľ, krestoobráznyma Moiséovyma rukáma, Amalíkovu sílu v pustýni pobidíl jésť."),
("", "", "Propnýj nébo, rasprostérl jesí Iisúse dláni svojá, jazýki daléče súščyja ot tebé, jáko bláh i milosérd, svítlo k sebí prizyvája."),
("", "", "Krestóm tvojím Christé mój Slóve, ohradí mja, jáko da ne búdu ulovlénije vólku, mojejá íščušču pohíbeli, i po vsjá dní síti mňí, i lovlénija hotóvjašču."),
("Múčeničen", "", "Boľízňmi svojími múčenicy, boľíznem vsím chodátaja nizložíste, i nýňi nasľídovaste neboľíznennuju žízň, i vsjáku boľízň oblehčeváete blažénniji, vsehdá ot dúš i ťilés nášich."),
("Múčeničen", "", "Nerišímymi úzami, vý svjatíji svjazáste mnohokóznennaho, za Christá vjážemi múdriji, svjazávšahosja vóleju, i vsjákuju prélesť razrušívša: ťímže dostójno ublažájetesja"),
("Bohoródičen", "", "Ďíva po roždeství, prebylá jesí, Bóha bo rodilá jesí prečístaja vozdvížena na kresťí i zemnýja sovozdvíhšaho. Ťímže ťá vsí vírniji velehlásno ublažájem."),
),
"2": (
("", "", "Mórja čermnúju pučínu nevlážnymi stopámi drévnij pišešéstvovav Izráiľ, krestoobráznyma Moiséovyma rukáma, Amalíkovu sílu v pustýni pobidíl jésť."),
("", "", "Jáko súšči čisťíjšaja prečístaja vsjákija tvári, jéže nečístymi strasťmí, ľúťi oskvernénnoje sérdce mojé, čístoju molítvoju tvojéju Bohorodíteľnice, očísti."),
("", "", "Jáko súšči čisťíjšaja prečístaja vsjákija tvári, jéže nečístymi strasťmí, ľúťi oskvernénnoje sérdce mojé, čístoju molítvoju tvojéju Bohorodíteľnice, očísti."),
("", "", "Sléz i vozdychánij izbávi mjá, predležáščich mí v búduščem strášňim suďí, Bohoprijátnymi molítvami tvojími, Ďívo Máti prečístaja, jáže k ziždíteľu i Bóhu nášemu."),
),
),
"P3": (
"1": (
("", "", "Jáže jedína páče umá, roždestvóm tvojím svobodíla jesí ot kľátvy ród čelovíčeskij, plotskími strasťmí poraboščéna mjá, prečístaja, tvojími moľbámi svobodí."),
("", "", "Veselítsja o tebí cérkov tvojá Christé, zovúšči: tý mojá kríposť Hóspodi, i pribížišče i utverždénije."),
("", "", "Vozdvizájem na krest, nizvérženyja vo tľú voznésl jesí Christé Bóže náš, i vrahá svérhl jesí Vladýko."),
("", "", "Mečí vrážija pritupíšasja, tebí probodénu v rébra Slóvo Ótčeje ipostásnoje, i Jedém otvérzesja."),
("Múčeničen", "", "Óhnennymi rikámi preléstnyja ríki ukrotíša múčenicy, i plámeň uhasíša mnohobóžija."),
("Múčeničen", "", "Raspinájemi, i nohoťmí strúžemi Christóvy múčenicy, vrahóv i zmíja mečém terpínija zakláste."),
("Bohoródičen", "", "Neporóčnaja áhnica, víďašči ťjá Vladýko, vozdvížena na kresťí, plačévno rydájušči, pojáše deržávu tvojú."),
),
"2": (
("", "", "Ne múdrostiju, i síloju, i bohátstvom chválimsja, no tobóju Ótčeju ipostásnoju múdrostiju Christé: ňísť bo svját, páče tebé čelovikoľúbče."),
("", "", "Prevýššuju cheruvím moľú ťa Vladýčice, nizpádšij mój úm napásťmi zmíjevymi, strastéj ťilésnych pokaží výššij."),
("", "", "Prevýššuju cheruvím moľú ťa Vladýčice, nizpádšij mój úm napásťmi zmíjevymi, strastéj ťilésnych pokaží výššij."),
("", "", "Vo ispytániji strášňim, jehdá chóščet mjá Hospóď osudíti mnohosohrišívšaho, da obrjášču ťá vseneporóčnaja, izbavľájuščuju mjá osuždénija."),
("", "", "Ščedrótami tvojími nemilosérdnyja mojá nrávy preloží, mílostiju tvojéju Christé, i nemílostiva mjá súšča spasí, moľbámi róždšija ťá."),
),
),
"P4": (
"1": (
("", "", "Vozneséna ťá víďivši cérkov na kresťí, Sólnce právednoje, stá v číňi svojém, dostójno vzyvájušči: sláva síľi tvojéj Hóspodi."),
("", "", "Vozdvížena ťá na drévo choťínijem sólnca slávy, smotrjája sólnce ťmóju oblečésja, i kámenije raspadášesja, i cerkóvnaja zavísa razdrásja."),
("", "", "Raspinájemu tebí Spáse, i kopijém probodájemu, obraščájuščejesja orúžije dajáše pleščí, poveľínijem tvojím Hóspodi, razbójniku blahonrávnomu, pisnoslóvjašču deržávu tvojú."),
("Múčeničen", "", "Ohraždájemi orúžijem krestá tvojehó strástotérpcy tvojí Hóspodi, ne ujázvleni javíšasja strilóju zlóby, i sťíny razoríša idolobísija neutverždényja."),
("Múčeničen", "", "Jákože svjaščénija neporóčnaja, i žértvy, i prinošénija vsesožžénija cíly, za milosérdije obniščávšemu Hóspodevi, múčenicy privedóstesja, boľíznem vozdajánija prijémľušče."),
("Bohoródičen", "", "Jáže bezľítnaho v ľíto poróždši, i ďívstvo neporóčno jedína sťažávši, na drévo vozdvížena jáko víďivši Hóspoda, boľízňmi dúšu svojú razďiľáše."),
),
"2": (
("", "", "Vozneséna ťá víďivši cérkov na kresťí, Sólnce právednoje, stá v číňi svojém, dostójno vzyvájušči: sláva síľi tvojéj Hóspodi."),
("", "", "Svjaščénija súšči Božéstvennyj dóm, istočívšahosja na blahoďijánija svojehó sozdánija prečístaja, dúšu mojú osvjatí, i pomyšlénija prosvití."),
("", "", "Svjaščénija súšči Božéstvennyj dóm, istočívšahosja na blahoďijánija svojehó sozdánija prečístaja, dúšu mojú osvjatí, i pomyšlénija prosvití."),
("", "", "Víjemo vítrom zlóby pomyšlénije mojé, i ľínostiju vsé pohružájemo, molítvami tvojími utverdí Vladýčice, i ot napadénija ischití."),
("", "", "Palátu carévu nebésnuju oduševlénnuju, nýňi moľú ťa Ďívo: dóm svjatýja Tróicy, molítvami tvojími pokaží mja, vertép razbójnikom prebyvájuščaho."),
),
),
"P5": (
"1": (
("", "", "Tý Hóspodi mój, svít v mír prišél jesí, svít svjatýj obraščájaj iz mráčna nevíďinija, víroju vospivájuščyja ťá."),
("", "", "Probodénym tvojím rébrom, netľínija istočáješi mňí strují Božéstvennyja, o Vladýko, rebrá prestuplénijem, v tľínije popólzšemusja."),
("", "", "Čestnýj krest tvój, na vrahí jésť pobída: jehóže dál jesí nám Slóve, dušám vo spasénije, víroju vospivájuščym ťá."),
("Múčeničen", "", "So óhnennymi služíteľmi mértviji nýňi sovokupíšasja, óhň veščéstvennyj prošédše velíkich múk, jáko múčenicy presvítliji."),
("Múčeničen", "", "Rušími plóti mnóhimi stradáňmi, nerazrušénna k ziždíteľu dušévnaja utverždášesja múčenikov ľubóv."),
("Bohoródičen", "", "Íže jedín blahíj, všédyj vo črévo tvojé netľínnoje prečístaja, voploščájem javísja i ráspjat: jáko da ot istľínija nás izbávit."),
),
"2": (
("", "", "Nečestíviji ne úzrjat slávy tvojejá Christé, no mý ťá Jedinoródne, Otéčeskija slávy sijánije Božestvá, ot nóšči útreňujušče, vospiváem ťá čelovikoľúbče."),
("", "", "Áhnica, róždšaja áhnca Bóžija, dúšu mojú vzyščí preľščénnuju navítom zmijínym, i na horách Vladýčice, zabluždájemuju prestuplénijem."),
("", "", "Téploju molítvoju tvojéju, mrázom ľútym pomerzájemuju dúšu mojú, k teploťí ziždíteľa Božéstvennyja ľubvé, blahočéstno spodvíhni Bohoródice prisnoďívo."),
("", "", "Jáže dóbraja i neporóčnaja v ženách čístaja, okajánnuju mojú dúšu strástnaho poróka nýňi svobodí, i čísťi požíti mí, molítvami tvojími ustrój."),
("", "", "Dúšu mojú sochraní jáko zínicu óka, pod króvom krilú tvojéju blahája prečístaja, i ot duchóv lukávstvija, tomlénija i mučénija izbávi mjá."),
),
),
"P6": (
"1": (
("", "", "Požrú ti so hlásom chvalénija Hóspodi, cérkov vopijét tí, ot bisóvskija króve očíščšisja, rádi mílosti ot rébr tvojích istékšeju króviju."),
("", "", "Vsjákija výše čésti prebóľšij sýj, obezčéstitisja preterpíl jesí, jáko da mjá zľí obezčéstivšahosja počtíši, i krestóm spaséši čelovikoľúbče."),
("", "", "Na drévo voznosím i mértv úbo býl jesí Hóspodi, umertvíteľa že sotvorív mértva duší mojejá, i vsjákaho ispólnena studá: i nýňi tvórče mój, pojú tvojú sílu."),
("Múčeničen", "", "Ujázven býsť ujazvívyj vás vselukávyj, neiscíľnymi múkami, i nohámi vášimi múčenicy, nizložísja, i zrím jésť ot vsích naruhájem."),
("Múčeničen", "", "Iscilénija istočájet múčeničeskich moščéj prách ležáščij vo hróbi, i jákože prách bísy razrušájet, i razlíčnyja isciľájet čelovíkov boľízni."),
("Bohoródičen", "", "Hvozďmí ťa zakonoprestúpnych sobór prihvozdí na kresťí, i pečáli nýňi orúžijem mojé sérdce rasterzáju, o Sýne mój! Ďíva vopijáše slezjášči."),
),
"2": (
("", "", "Požrú ti so hlásom chvalénija Hóspodi, cérkov vopijét tí, ot bisóvskija króve očíščšisja, rádi mílosti ot rébr tvojích istékšeju króviju."),
("", "", "Smérti potrebíteľ býsť roždestvó tvojé Ďívo, umirájuščym že živót i izbavlénije. Sehó rádi moľú ťja: dúšu mojú umerščvlénnuju voskresí."),
("", "", "Prostrí mňí pómošči rúku čelovikoľúbče, v pučíňi žitéjsťij oburevájemu, moľbámi Mátere tvojejá, i výšnich neizčétnych síl."),
("", "", "Seló jéže božéstvennyj vozrastávšeje klás, osláblennuju dúšu mojú, i hládom božéstvennych ďijánij istájemuju ne prézri, no napitáj Sýna tvojehó božéstvennoju blahodátiju."),
("", "", "Uspí strástnaja dvizánija ťilesé i vzyhránija mojá plotskája umú poviní jákože žrebjá, uspívši čístaja, snóm tvojích molítv."),
),
),
"P7": (
"1": (
("", "", "V peščí avraámstii ótrocy persídsťij, ľubóviju blahočéstija páče, néželi plámenem opaľáemi, vzyváchu: blahoslovén jesí v chrámi slávy tvojejá Hóspodi."),
("", "", "Raspjátsja choťáj na drévi náh, jedíne bezsmértnyj, oblačájaj nébo óblaki, i íže drévle práotca obnažívšaho, oblékl jesí víčnyj."),
("", "", "Na krest voznéslsja jesí, i padýj Adám vozstál jésť: kopijém probodén býl jesí v rébra Vladýko, i jázvu smértnuju priját mnohokóznennyj, blahoslovéna deržáva tvojá Hóspodi."),
("Múčeničen", "", "Krasňíjše krasňíjšemu Slóvu sojediňájemi, vsechváľniji stradáľcy, i míra otňúd otlučístesja, vjážemi i sokrušájemi, i vrahú prísno zapinájušče."),
("Múčeničen", "", "Sťíny prélesti utverždénija nizložíste božéstvennymi stradáňmi voístinnu slávniji stradáľcy, i vírnym sťiná javístesja, i chranílišča, vás blahočéstno blažáščym."),
("Bohoródičen", "", "V peščí rósu jávľšaho Christá Bóha, otrokovíce, nikákože opáľša črévo tvojé, víďašči povíšena na drévi, slávľaše jéže páče umá tvojehó sošéstvije."),
),
"2": (
("", "", "V peščí avraámstii ótrocy persídsťij, ľubóviju blahočéstija páče, néželi plámenem opaľáemi, vzyváchu: blahoslovén jesí v chrámi slávy tvojejá Hóspodi."),
("", "", "Božéstvennaja horó otrokovíce, ot nejáže kámeň otsičésja, sokrušívyj stolpý ídoľskija, duší mojejá istukánnaja, i sérdca mojehó okamenénnoje otžení nedoumínije."),
("", "", "Ne pokolebásja otrokovíce, jákože prijémšaja vo utróbi tvojéj, prezrínijem kolébľuščaho zémľu, i jáže na néj, jehdá chóščet: ťímže utverdí mja, prilóhi vrážijimi koléblemaho."),
("", "", "Nizlahájušči mí plotskája mudrovánija, vsehó mja Bohoródice, pokaží duchóvna dobroďíteľmi ukrášena, jehóže vselukávyj slasťmí nekrasotóju pomračí."),
("", "", "Božéstvennyj okríne milosérdija i bláhosti istočí mi obíľno bohátstvo tvojích ščedrót, skvérnu prehrišénij mojích omyvájušči, i plotskóje uhasí razžžénije."),
),
),
"P8": (
"1": (
("", "", "Rúci rasprostér Danijíl, ľvóv zijánija v róvi zatčé: óhnennuju že sílu uhasíša, dobroďíteliju prepojásašesja, blahočéstija račíteli ótrocy, vzyváše: blahoslovíte vsjá ďilá Hospódňa Hóspoda."),
("", "", "Prostér dláni na kresťí Vladýko, rukí neuderžánnyja choťá iscilíti prehrišénija: hvozďmí že prihvozdílsja jesí Hóspodi, vés rázum pervozdánnaho otjémľa strástnyj, pojúšča: blahoslovíte vsjá ďilá Hospódňa Hóspoda."),
("", "", "Razdirájetsja rukopisánije pervozdánnaho Adáma, probodénijem božéstvennych rébr tvojích: kápľami že króve Vladýko, osvjaščájetsja vsjá zemľá, vo hlásich blahodarénija prísno zovúšči: blahoslovíte vsjá ďilá Hospódňa Hóspoda."),
("Múčeničen", "", "Stojáchu posreďí ohňá, jákože orošájemi, i neopaľáemi vseslávniji múčenicy, i ótročeskuju vospivájušče v sohlásiji tájňim, voístinnu božéstvennuju písň: blahoslovíte vsjá ďílá Hospódňa Hóspoda."),
("Múčeničen", "", "Nepostojánnyj terpjášče óhň proizvolénijem, ťmóju múk ne priložístesja k sujeťí múčenicy, no o Bóze ukripľáemi, pritekóste k svítu nezachodímomu, vopijúšče: blahoslovíte vsjá ďilá Hospódňa Hóspoda."),
("Bohoródičen", "", "Umerščvľáema zrjášči Christá, mnohopítaja Vladýčica, i umertvívšaho čelovíki umerščvľájušča vrahá, jáko Vladýku pojáše pláčušči, i dolhoterpíniju jehó divjáščisja vopijáše: blahoslovíte vsjá ďilá Hospódňa Hóspoda."),
),
"2": (
("", "", "Rúci rasprostér Danijíl, ľvóv zijánija v róvi zatčé: óhnennuju že sílu uhasíša, dobroďíteliju prepojásašesja, blahočéstija račíteli ótrocy, vzyváše: blahoslovíte vsjá ďilá Hospódňa Hóspoda."),
("", "", "Zríl plód rodilá jesí Vladýčice, ot nehóže smérť jádši pohíbe. Ťímže zovú ti, plodóm hrichá umerščvlénaho mjá ľstívno, oživí pojúšča: blahoslovíte vsjá ďilá Hospódňa Hóspoda."),
("", "", "Uspí dvižénije strástnoje mýsli mojejá, neusýpnoju tvojéju molítvoju, prečístaja Vladýčice, i vozstávi mjá o sná ľínostnaho píti v bódrosti duší: blahoslovíte vsjá ďilá Hospódňa Hóspoda."),
("", "", "Rastórhni prehrišénij mojích plenícu, i ťilésnyja vostánija utiší Bohoródice: lukávaja že posicý umyšlénija, i očísti ot tájnych pomyšlénij skóro rabá tvojehó, vsích vírnych predstáteľnice i izbavlénije."),
("", "", "Ne boíšisja li, okajánnaja dušé, támo klevetník klevéščuščich tvojá zlája ďijánija bezčíslennaja? Sehó rádi pokájsja ko preblahómu, i sposóbnicu jedínu prečístuju priimí: tá bo jésť čelovíkom pribížišče."),
),
),
"P9": (
"1": (
("", "", "Kámeň nerukosíčnyj ot nesikómyja horý tebé Ďívo, krajeuhóľnyj otsičésja, Christós, sovokupívyj razstojáščajasja jestestvá. Ťím veseľáščesja ťá Bohoródice veličájem."),
("", "", "Sé žízň povíšena na kresťí vsím javísja: sólnce že tohó ne terpjášči lučí ostavľáet, i zemľá kolébletsja, i pomyšlénija utverždájutsja na blahočéstiji i čistoťí."),
("", "", "O káko ťá zakonodávca bezzakónnyj sobór osuždájet Iisúse mój, na drévi umréti, životá vsích súšča i Hóspoda, i rádi strastéj vsím čelovíkom istočájušča bezsmértije?"),
("Múčeničen", "", "Ustý vášimi Bohoslóvnymi propovídaste vsemúdrenno voploščénije Slóva Bóžija, posreďí zakonoprestúpnych vráh vsechváľniji: i svjaščénno postradávše, pobídy vincý vinčástesja."),
("Múčeničen", "", "Jáko svitlodnévnyja zvízdy, vsjú tvár ozarjájete stradánij svjaščénnych blistáňmi, i iscilénij Božéstvennymi svitlosťmí, i strastéj razorjájete nóšč hlubókuju Božéstvenniji múčenicy."),
("Bohoródičen", "", "Prosvití čístaja dúšu mojú ot hrichóv omračénuju, i otžení zól mojích óblaki, svíta óblače, jáže pomračívšejesja sólnce drévle víďivši vnehdá raspjátisja bezsmértnomu."),
),
"2": (
("", "", "Kámeň nerukosíčnyj ot nesikómyja horý tebé Ďívo, krajeuhóľnyj otsičésja, Christós, sovokupívyj razstojáščajasja jestestvá. Ťím veseľáščesja ťá Bohoródice veličájem."),
("", "", "Rastórhni soúz zól mojích božéstvennym kopijém Sýna tvojehó, i razriší okajánnuju mojú dúšu, okovánnuju i bídstvujuščuju, i k ľubví privjaží, Ďívo Máti Bóha nášeho."),
("", "", "Jáže nebés šíršaja Ďívo, uťisnénoje mojé sérdce vsjákim prilóhom soprotívnym, v široťí bezstrástija vozvedí ťísnoju stezéju chodíti mjá ukripľájušči vsehdá."),
("", "", "Da ťá slávľu Ďívo voístinnu preproslávlennuju, vsjákaho bezslovésija hrichóvnaho izbávi mjá, i slávy nebésnyja pričástnika sotvorí pribihájuščaho k mílosti tvojéj."),
("", "", "Ustávi sovíty vsjá, jáže na ný vooružénnych Máti Bóha výšňaho, rádosti že ispólni upovájuščich na ťá da usérdno vsí tvojé propovémy zastuplénije."),
),
),
),
"ST": (
("", "Samohlásen", "Sťiná búdi nám krest tvój, Iisúse Spáse náš: inóho bo upovánija vírniji že ímamy, tóčiju tebé na ném plótiju prihvóždšahosja, i podajúšča nám véliju mílosť."),
("", "", "Dál jesí známenije bojáščymsja tebé Hóspodi, krest tvój čestnýj, ímže posramíl jesí načála ťmý i vlásti, i vozvél jesí nás na pérvoje blažénstvo. ťímže tvojé čelovikoľúbnoje smotrénije slávim, Iisúse vsesíľne, Spáse dúš nášich."),
("Múčeničen", "", "Káko vášym ne udivímsja podvihóm, svjatíji múčenicy, jáko ťílom umirájuščym obložéni, bezplótnyja vrahí pobidíste? Ne ustrašíša vás mučíteľskaja preščénija, ne užasíša vás múk priložénija: voístinnu dostójno ot Christá proslávistesja, i dušám nášym prosíte vélija mílosti."),
("Krestobohoródičen", "Jáko dóbľa", "Umerščvľájema víďašči Christá prečístaja Vladýčica, umerščvľájušča ľstívaho, vosklicáše hórci vzyvájušči, iz utróby tojá proizšédšemu, i dolhoterpíniju jehó čuďáščisja vzyváše: čádo mojé ľubézňijšeje, ne zabúdi rabú tvojú, ne zakosní čelovikoljúbče, mojé uťišénije."),
)
)
#let L = (
"B": (
("", "", "Drévom Adám rajá býsť izselén: drévom že krestnym razbójnik v ráj vselísja. Óv úbo vkúš, zápoviď otvérže sotvóršaho: óv že sraspinájem, Bóha ispovída tajáščahosja, pomjaní mja, vopijá, vo cárstviji tvojém."),
("", "", "Prihvozdílsja jesí na kresťí, mnóhija rádi Christé bláhosti, probodén býl jesí v rébra, dvá istóčnika istočívyj ostavlénija: zemľá že ne terpjášči zríti derznovénija trjasášesja, kámenije raspadášesja, uhasáše sólnce, kolebáchusja hóry i chólmi, stráchom deržávy tvojejá."),
("", "", "Prostértyja drévle neuderžánno k drévu razumínija práotči rúki, ispravľája Christé popolznénije, rasprostérlsja jesí vóleju, i tvoí prihvozdíl jesí rúci dolhoterpilíve, sozdávyj čelovíka rukóju, za bezmírnuju blahostýňu. Sláva páče umá Slóve, blahoutróbiju tvojemú."),
("", "", "Onebesívše zémľu svjatíji presvítlymi sijániji pódvihov čestných, ímiže ťmú vsjú razoríste sújetstva, i k svítu nezachodímomu vselístesja pričástijem obožájemi, i vsím ozarjájete svít razumínija, vás po dólhu ublažájuščym."),
("", "", "Pochvalú i slávu i čésť, vsevinóvňij Tróice podajém, i trisvjatými hlásy ánheľskuju písň prinosjášče Otcú beznačáľnu, i Sýnu, i Dúchu, vzyvájem razbójnika blahorazúmnaho hlás, vospivájušče i vopijúšče: pomjaní nás vo cárstviji tvojém."),
("", "", "Vozdvížena na kresťí vóleju víďašči prečístaja, Sýna svojehó i Bóha, divjáščisja pláčušči hlahólaše, vsjáčeskaja udobrívšemu: hďí zájde dobróta tvojá Hóspodi? Čtó sijá neblahodárnyj tebí vozdadé sobór, vmísto blahích? Pojú páče umá tvojú blahostýňu."),
)
) |
|
https://github.com/RodolpheThienard/typst-template | https://raw.githubusercontent.com/RodolpheThienard/typst-template/main/reports/2/example.typ | typst | MIT License | #import "template2.typ" : project
#show: project.with(
title: "Title",
subtitle: "Subtitle",
img: "images/logo.png",
authors: (
(
name: "Name",
affiliation: "Affiliation",
email: "Email",
),
),
)
|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/042%20-%20Strixhaven%3A%20School%20of%20Mages/010_A%20Silent%20Voice%20Calls.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"A Silent Voice Calls",
set_name: "Strixhaven: School of Mages",
story_date: datetime(day: 30, month: 04, year: 2021),
author: "<NAME>",
doc
)
Twenty-three students of Silverquill, the College of Eloquence, stood at attention along the outer edge of the Rose Stage, while six of them sat on their heels, doubled over in pain, struggling to muffle their heartbroken cries. Upright or not, they had each positioned themselves in a circle and watched together as the one considered the best of them—Killian Lu—readied a curse meant to tear Professor Razineth apart.
#figure(image("010_A Silent Voice Calls/01.jpg", width: 100%), caption: [Killian, Ink Duelist | Art by: Ryan Pancoast], supplement: none, numbering: none)
This morning's lesson involved an impromptu duel concerning the Seven Phonetic Attitudes: #emph[tone] , #emph[rhythm] , #emph[pitch] , #emph[placement] , #emph[resonance] , #emph[acoustics] , and #emph[volume] . Killian, like his classmates, had assumed Razineth, the renowned proctor of the Intention & Subtext II course, was using this duel as a simple learning exercise. To their surprise, however, Razineth was unrelenting and vicious with his attacks. The sallow-faced kor inkmaster, with his elusive shadow-ink arm, easily overcame their protective heart charms and tore into their young spirits like a hot knife through butter.
Volume had been assigned to Killian. It was indeed the hardest of the attitudes to master, let alone control, and he knew the attack to come would take all of his energy, both to produce and maintain. Given his stellar reputation, the son of the great Dean Embrose Lu, this was, #emph[of course] , a calculated assignment; one surely made in cahoots with his father, who was, #emph[of course] , watching from a distance—always looking for any area of improvement.
Killian bent his knees and dug his heels into the ground. Slowly and steadily, he began to fill his lungs. Then, as if rehearsed in a mystical dance, he swept his arms through the air, summoning thick, inky ropes that swirled about him and fed themselves into three massive spheres high above the stage.
"Wow," said Razineth sarcastically. "Someone may have actually taken their summer meditations seriously." His voice was like a hiss, strident and snakelike, and his words were broadcast through his mercurial inkling that slithered above the stage.
Killian thought of his own inkling, Doco, for a moment and lamented his absence from the fight. Embrose thought the creature a distraction and urged Killian to never rely on others to fight his battles for him. #emph[Doco wouldn't be fighting the duel; he would simply be helping me here and there.] Killian felt his teeth grinding together with frustration.
At the start of the class, Razineth professed that he would hinder himself to level the dueling field, using only voiceless consonants in the battle to show that great power can lie in the smallest things. With him, the simple sibilance of an #emph[s ] transformed his ink magic into sharpened daggers, and the pop of a #emph[p ] expelled earth-shaking blasts of cannon fire.
"Well?" said the professor, his face hard and unimpressed by Killian's display. "Power lies in the breath, boy. #emph[Breathe] ."
Killian halted his movements at the command. The massive spheres of ink he had conjured were now frozen in time and hung in the air like dangling boulders.
#emph["I'd happily oblige you, professor," ] whispered Killian,#emph[ "but the stench of your breath has handily poisoned the air!"]
Unbeknownst to Razineth, a line of ink, thinner than the width of a spider's web, had been snaking upward from the ground like a tall vine behind him, and at Killian's sharp insult it grasped hold of the professor, enwrapping his neck, his existing arm, and both legs. Four rapid-fire #emph[s] 's between Razineth's teeth cleanly severed the ink shackles, but in the time it took for him to escape, Killian had already sent one of his onyx spheres hurtling down upon him. Moments before it made contact, Killian screamed into it:
#emph["Hardly the time to applaud your efforts, when our duel has just begun!"]
At the phrase, the sphere burst open, and where its pieces landed immediately sprang ink-made trolls wielding hammers and axes. In response, an endless #emph[shh ] exploded from the professor's mouth, summoning a tidal wave of ink which rushed out of his shadow-ink arm and covered him in a protective orb of blackness. Feverishly, the trolls hacked at the shield, but as they did, they were instantly absorbed and made it grow larger.
Killian quickly sent another ink boulder to the ground, screaming into it even louder than before. #emph["Shh?!] #emph[That soothing sound of so much rushing water would ring better with you drowning in it!"] At his curse, the boulder morphed into a black column the size of a tower and solid as stone. The obsidian obelisk smashed down upon Razineth's shield like a smith's hammer to shapeless, hot metal, sending deep fissures down every side. Razineth responded with an alacritous flurry of #emph[t] 's that, upon leaving his mouth, transformed into a thousand black arrows that decimated the column entirely. The display left Killian speechless. Seeing an opening, Razineth turned the arrows upon him.
#emph["Decrepit parasite!" ] Killian imprecated, allowing his survival to momentarily trump witty repartee. #emph["Crooked serpent!"] At once every fragment of the crumbling column transformed into ravens that intercepted every arrow meant for his heart. Then, through gnashing teeth, Killian summoned all the volume and vitriol he could and spewed it into his final orb.
#emph["WASTE OF MUSCLE! WASTE OF SINEW!SHARD-BORN UNLOVABLE BEAST!DECAYED AND WITHERED PEON!] #linebreak #emph[MULLING VARLET TO SAY THE LEAST!"]
The sky above them grew dark as the boulder flattened into a swirling disk that stretched on for what seemed like miles. A point suddenly appeared at its center, the start of a wild cyclone, and in less than a blink, it touched down, catching the professor in its torrent. Killian's throat burned and he could taste blood, but he could not let up:
#emph["CAUSTIC CARRION, RANCOROUS RETCH,] #linebreak #emph[GROSS AND GLEEKING GASBAG!] #linebreak #emph[BLIGHT AFFLICTED, WOE INFECTED] #linebreak #emph[SMOLDERED, EMACIATED SLAG!"]
Venom fortified his final push to win the day, and through the swirling maelstrom Killian spied Razineth's silhouette battling his fit of power. He was winning! His eyes widened with expectation. He took in the six faces of the professor's previous victims, expecting to see happy retribution in their eyes, but he found only sorrow—pity for another unfortunate soul soon to join them in their misery. And #emph[he] would be the cause.
That is when Killian felt it—the searing pain of the blow that would end this violent match. While he was distracted, a soft #emph[t] had leapt from Razineth's tongue. He looked down to his chest, and there he saw the head of the dripping, black arrow that had run him through. He fell to his knees, struggling to pull it out before the ink seeped inside.
He looked out to his classmates one last time and caught the bloodshot gaze of <NAME>. Her attitude of pitch had been trampled by Razineth's conjured herd of wild ink horses. They were not friends and hardly acquaintances; she was a new student, and they had barely exchanged even a nod of greeting since the start of the semester. Nevertheless, there was a gravity she possessed that drew his eyes to hers. She gave him an empathetic smile of solidarity. Killian was thankful for that.
In the next moment, the professor's ink took hold. Killian was at once overcome with utter despair and sadness. The crushing yet familiar sound of his father's hard-soled boots retreating from him echoed painfully in his imagination; he could even feel the weight of so many volumes of battle poetry his father would place in his arms. A long afternoon of study was indeed ahead. As tears fell from his eyes, he doubled over, and like the six who fell before, succumbed to a cruel defeat.
It took the better part of the afternoon for Killian to return to himself. He was unceasingly plagued by bouts of depression and terrible hallucinations, until the professor's ink-tentacled curse had been peeled away from his spine and ribcage. Had he been struck by a second arrow, Killian would have surely torn his own flesh apart.
The final hallucination brought him back to the Loquacious Lyceum, the intense training ground hidden within the many corridors of the Biblioplex. The course was mandatory but meant only for the upperclassmen of Silverquill. Killian, at his father's suggestion, had taken the test to enter and, as expected, passed with flying colors. The Lyceum housed an enchanted, ever-growing forest that overtook and suffocated anyone trapped beneath its leaves. To curse the flora without ceasing was the only way to escape certain death. This was a challenge that had been met by hundreds of inkmasters for decades, including Embrose, and Killian had survived it. In this curse-ridden memory, however, the plants cried out horribly, like wounded soldiers pleading for their lives as he was forced to level them without mercy. His heart ached at the sight of so much destruction, and he hated himself for destroying so many beautiful things.
Killian opened his eyes and found himself staring up at a kind-faced quillmancer nurse with gold light rippling around her. He was in the infirmary, resting on a soft cot. Sunlight poured in from the high stone windows that made the entire room shine with the nurse's same golden hue—a brilliance refracted in Dean Shaile's owlin-white wings. She was standing at the entrance to the room, watching as the nurse extracted another strand of Razineth's ink out of Killian's bare chest.
"Battle poetry," Dean Shaile began. "Such ancient magic only finds its way to the most diligent of Silverquill. Your father would be~let's say~mildly satisfied?"
Killian cleared his throat several times, feeling the weight of the duel still heavy upon it.
"Mages like you, son of the great Embrose Lu," the dean went on with an almost cynical smile, "can venture into unimaginable depths of potential—both the light and the dark. I caution you, though. You must learn to embrace the light every now and again. Better for the soul."
"White magic is not effective in battle, I'm afraid," Killian replied, just before the nurse removed a final strand of reawakened grief from his heart.
"On the contrary," replied Shaile. "Battle is when it is #emph[most] effective. It can win the war."
Killian stared into the dean's kind eyes, expecting more. The advice she provided was never short-winded; it was always her goal to impart lasting wisdom through critical thinking. She and his father differed in that way, which fueled their contentious relationship. In the Dean of Shadow's purview, wisdom was only attained through negative reinforcement. How could they ever agree?
"Like a hole in a tapestry," she went on, "light can pierce even the most stubborn bit of darkness. But try as it might, though it can dim it at times, darkness can never pierce the light."
Killian reflected on her words for a moment, but his ponderings were interrupted by a pain in his hand. He winced, scratching at his palm.
"No rest for the wary, I suppose," Shaile said with a smile, familiar with this reaction from other Silverquill students.
Killian immediately hopped to his feet, grabbed his robes, and marched toward the door. Before exiting, Shaile stopped him with a soft hand to his shoulder.
"The cosmos is vast," she said with a touch of maternal spirit, "and Eloquents are not the only ones who shape it. Don't spend all your magic in one place."
Killian headed straight for the docks—the fastest route to the Biblioplex, and his father would be by moat. The meeting place had been written on his palm in patriscrit, or parental ink, which Eloquent teachers and parents alike used to remind children of upcoming appointments or items they often forgot. Not to mention, it itched like hell until whatever written was said aloud.
"Semantics," Killian said. The patriscrit faded.
He arrived at Dock XVII just in time to see the Semantics-bound boat pushing itself away. Immediately, he broke into a sprint. Then, hitting the edge of the dock, he leapt from one foot.
#emph["Like sturdy, somber, steppingstones,the waters 'neath my feet do hold."]
Killian spoke the spell aloud as he soared through the air, and the waters responded in kind—rippling with white energy that formed several solid places for each airborne foot to land. Step, step, step. And with a final leap, he touched down on the boat's deck.
Killian preferred seclusion, but to his disappointment, he would not take this ride alone. Seated at the opposite end of the boat was another Silverquill student who turned at the thud of his feet and pulled back her hood.
"So #emph[that's] how the great Killian Lu is never late for anything," Fannessa jabbed with a smile. "Light magic is good for something, I guess."
It was something his father would say.
Killian sighed as he took a seat across from her. Fannessa settled back, her two long dark braids swinging over her shoulders, and appraised him with lavender-tinted eyes that stood out against her mahogany skin. He gathered that she was the type who could effortlessly go from bubbly and animated to calculating and mysterious in a flash.
"So that Razineth, huh?" she began. "He really takes that course seriously, doesn't he?"
"It is a serious course," Killian replied plainly.
"True. But an arrow to the heart is pretty ruthless."
"It was a successful duel."
"Successful?"
"I learned a new weakness. I hesitated. It won't happen again."
Fannessa smirked, fascinated by his answer.
"Mercy is for fools," she declared. He nodded on reflex. His father had said the same many times. As much as he tried to, though, it was a motto Killian could never truly get behind.
"Either way, you were really incredible today. Such dark, raw power. You could have killed a lesser mage." She smiled. "Wouldn't #emph[that] have been a sight to see."
"I wasn't trying to #emph[kill] him," Killian said quickly. "I don't want to kill~I was just trying to win."
Fannessa slid to the edge of her seat and leaned in even closer, taking in his new nervous energy. She watched as he pulled at the skin of his neck, massaging his throat.
"Did you hurt yourself?"
"No," Killian said sharply. "I'm~I'll be fine."
Her eyebrows raised as if some fantastic idea was forming. "You know, there's an elixir a little birdie told me about that can heal a sore throat in minutes. I might know a girl who knows a guy at Bow's End that can whip one up no problem."
"Bow's End is for slack-wits and procrastinators," said Killian. "There are rules by which a Lu must comport himself."
"So I've heard," she almost sang with a devious grin. "Might have to break one. Or head to the infirmary again. Dean Lu wouldn't like that at all."
"I can't."
"Right." She sat back, making no effort to mask her disapproval. "Strixhaven is, after all, an institute of learning. Nothing more." She stood to her feet. "No rest for the wary, I suppose."
The latter phrase caught Killian off guard. It was the one Dean Shaile had spoken to him just before he left the infirmary.
The boat suddenly butted against the Semantics Dock. With a graceful backwards leap, Fannessa slipped onto another boat passing by—one heading in the direction of Bow's End.
"You should step out in the sun once in a while, <NAME>," she said, flipping her braids behind her shoulders. "We're not meant to grow in the shadows."
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
Killian sat for a moment as her boat disappeared and considered her words, knowing exactly to whose shadow she was referring. He felt a nervous heat rising on his skin as his mind turned over. Another shake from the boat, annoyed that he had yet to disembark, saved him from his spiraling thoughts.
He sprinted up the stone stairway leading into the Biblioplex and hurried across the open concourse. Weaving effortlessly through throngs of students engaged in jovial, non-academic conversation, he made his way to a high stone archway inscribed with the words #emph[Hall of Semantics] .
"<NAME>!" came a male voice suddenly. From the darkness of the archway appeared the lumbering body of Quintorius, a student of Lorehold.
"Hello, Quint," said Killian.
"All of Silverquill is talking about you and your duel today," Quintorius replied with intensely bright eyes. "Lorehold, too." He chuckled softly. "Well, just me. Volume is some very serious stuff. By the sound of it, you are a natural."
"You do love your research," said Killian, recalling how often he saw him to-and-fro through the stacks last summer. He practically lived in the library.
Maneuvering around the immense heap of books in his arms, Quintorius retrieved a thin tome with his elephantine trunk and offered it to Killian.
"<NAME>, the Mute Quillancer," Killian read aloud. "A mute?"
"He cast all of his spells using an ancient form of sign language when volume took his voice," Quintorius exclaimed. "He was incredible. In fact, he charmed an entire army to lay down their arms and shake hands in truce. He understood that death and destruction are notes any instrument can play." He tapped his trunk on the book. "The symphony of creation is far more dramatic."
He paused for a moment, as if surprised by his own words.
"How very #emph[Silverquill ] of me to say," Quint finished with another chuckle.
Killian felt another sting in his palm.
"I have to go," said Killian, pushing past him. "My meditations are about to begin."
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
The Hall of Semantics was forever cast in moonlight and steeped in a heavy fog. A candle shone through the milky haze, beckoning Killian forth, and he followed the light with quickened steps.
Embrose stood in the shadow of a high book stack, tall and menacing, his black robes flapping in a stiff wind that set the fog to churning. His skin was gray in the silver moonbeams, but the whites of his eyes pierced the murky air like stars. A short distance from him was a wooden table, and upon it, the candle that had led Killian there. The flame illuminated the pages of a thick bound book.
"You left yourself vulnerable, didn't you?" asked Embrose in a voice so deep it caused the ground to quake.
"I thought I had caught all of the professor's arrows, father," Killian replied, already knowing that no answer he gave would prevent the coming lecture.
"You thought wrong, didn't you?"
"Perhaps if Doco was allowed to fight at my side again—he always helps me in times of trouble."
"This is not a damn game of Mage Tower, Killian. Reliance on your inkling makes you dependent, weak, and #emph[unfocused] ." He stepped forward, eyes flashing. "Eloquents, the supreme arbiters of the cosmos and enforcers of all magical contracts, are resolute and unwavering in their word. Eloquents, the prized role which you mean to attain after your time here, do not benefit—"
"From distraction. I know," Killian said with a huff.
He turned his eyes to the floor to escape the disapproval radiating from his father's hard face.
"Your breath was shallow today; your shoulders were raised to your ears; you were constantly sticking your neck out like some vastland daemogoth. You're going to get yourself hurt or worse conjuring in such a way!"
"Apologies, father," Killian spoke, doing all he could to hide the scratching in his voice. "I was not expecting to duel so soon. And with a teacher no less."
"You should always expect the unexpected," Embrose interjected fiercely.
"Light magic would be unexpected," Killian spoke softly. "Perhaps #emph[creating] something would be better than destroying it."
"Pretty words of quillmancers and lumimancers will not save you from certain death!" Embrose roared. "Oriq hearts do not bend in battle; mage hunter souls are never mended. They must be broken!" Reams of ink exploded out of him like black lava and white fire from a volcano. "You are in line to be one of the greatest inkmasters in history. Because you are such, many enemies will try to steal away that greatness. You must never give them an opportunity!"
"#emph[I got it] ," Killian whispered sharply to the floor.
"What did you say?"
Killian quickly straightened and lifted his head. "I said, 'I understand, father.'"
In the tangible quiet to follow, Killian felt the muscles at the turn of the dean's jaw flex several times—a surreptitious grinding of teeth behind a thin-lipped grimace. He felt his father's piercing eyes studying him. Hoping to cut the tension, Killian shuffled to the table where he took a seat in front of the book, purposefully opened to a chapter entitled, "Threnody and Requiem: Lost Battle Poetry."
"Your words must be like serrated daggers, cutting enough to peel flesh from bone. Eviscerate the prey you have come to hunt and feast upon it. That is the only way to defeat your enemies. Do you understand?"
"Yes, Dean Embrose."
Embrose paused a moment before turning to leave, stirred by the stark formality in Killian's words.
"This is for your own good, son. You will learn that one day."
#figure(image("010_A Silent Voice Calls/02.jpg", width: 100%), caption: [Crushing Disappointment | Art by: <NAME>], supplement: none, numbering: none)
Killian spent the rest of the afternoon reciting and memorizing the battle poems, which only continued to weaken his voice, both physically and emotionally. At his request, goblets of water appeared, which he drank feverishly. They had done little to nothing to aid his recovery but did all to activate his small bladder. Speaking was now a nearly impossible chore, and the pain radiating through his throat was becoming unbearable. #emph[White magic could help me] , he thought. But admitting himself to the infirmary a second time would be nothing less than disgraceful, and he was forbidden to study it himself any further than the most basic of conjurings.
He laid his forehead on the table and stared helplessly at the floor. There, between his shining black boots, inched the book Quintorius had given him, moving completely on its own. When it finally came to a halt, a mass of black ink dribbled out of it, then formed itself into an inky bobble-headed creature—Doco, Killian's inkling.
Doco's onyx skin swam with the text of the book he had inhabited. He gave Killian an empathetic simper, hoping to lift his spirits with something other than battle poetry to read. Killian could not smile back. In fact, staring down at the book, he was suddenly filled with great trepidation. His voice was going, and he was a Silverquill. How could he ever perform without it?
His worrisome thoughts shifted to Fannessa. Perhaps he should take her up on her offer. What other choice did he have?
Resolved, he collected the book and Doco, slipped them into his robes, and exited the room.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
In the shadow of the last Dawnbow stone, Killian watched from a distance as three Witherbloom students entered Bow's End Tavern. Heavy wooden doors swung open for them on their own, and the domed structure holding them exhaled with live, sweeping Prismari music. Before disappearing beyond the threshold, the third Witherbloom student looked back and noticed him.
Her green skin, shining gold eyes, and hair of damp leaves gave her away immediately. It was his friend Dina, also a second-year. The two of them had gone through quite the ordeal last semester in Detention Bog, but sadly, they had exchanged few words since.
"Are you waiting for someone, Killy?" Dina asked, still at a distance.
Killian cringed at the pet name, which sounded more morbid than cute. #emph[Killy] . He hesitated to speak, feeling the scratch already creeping up his throat. He nodded instead.
"Do you think they may be inside?" she asked.
Killian looked around another time. Seeing no sign of Fannessa, he decided to approach.
"I'd love to catch up, but I can't dither," said Dina, holding the door for him. "I have a date. Our third. Something new I'm trying—making friends. Vickus is his name. He's a fourth-year, and he's almost nice."
"Almost?" asked Killian.
"Nice to me, but he can be a bit of a brute. I made some tea for him," she went on, presenting a green canister secured by a vine over her shoulder. "You can try it if you'd like. It's quite strong. Best not to ask what's in it. Unless you like the taste of vineclinger teeth."
"That's what's in it?" asked Killian.
"Best not to ask. In we go." Taking his hand herself, they entered.
Bow's End was a large, circular building with a high domed ceiling. Windows allowed light to shine in around the perimeter, illuminating passageways to other halls, but the area within the circle was dimly lit, solely illuminated by floating candles that changed color with the notes of the music. The main bar was in the very center, and floating above it was the stage where the Prismari band played. Spread out around them were round tables and stools occupied by students drinking from frothing goblets and eating seasoned meats.
It took only a moment for Killian to spot Fannessa. She was seated by herself at the end of one long table like a great queen at a feast.
"I see who I'm looking for, Killy," said Dina. "Wouldn't mind if I left you, would you?"
"No—" Killian began to reply, but she had already started walking away from him.
Killian turned his eyes back to Fannessa and gave a soft smile. He quickly moved to her.
"Well, well, look who decided to make an appearance," exclaimed Fannessa, "<NAME>, the rule breaker~and with a #emph[girlfriend] no less?"
"Oh no! Dina~is not~she~is not," Killian stumbled. The pain in his throat, and Fannessa's knowing grin, cut off any further explanation. He took a seat across from her, unamused.
"So~did you hear?" Fannessa started again. "Razineth is planning to have duels with us once a week."
"#emph[Really] ?" Killian asked hoarsely.
"Yep. So you'll have to prove yourself again and again and again."
Killian inhaled deeply, frustrated at the prospect, knowing that his magic would have to grow more violent.
"I guess that's what it takes to be an Eloquent, huh?" she went on. "A life of duty. No freedom. Plus, you being Dean Embrose's only son."
"I'd like to take you up on that drink, if I may," Killian interrupted.
Fannessa smiled, amused by his desperation. "Say no more, #emph[Killy] . Say no more."
Killian eyed her as she stood from the table and headed toward the bar. Again, she had said something he had heard in private, but a cool smile from her dismissed the thought. Maybe it was just a coincidence.
Escaping her gaze, he pulled Quintorius's book from inside his robes. Doco materialized from the pages and peeked out. The inkling gave a smile and a wink, happy to see Killian in a slightly better mood. Then, using its inky paws, it turned to a page in the book full of pictures—drawings of hands and fingers fixed in many different shapes and positions. Words of affirmation were written beneath each depiction: #emph[kind-hearted] ,#emph[ virtuous] ,#emph[ love] , and many more. Killian made the sign for "light" under the table and closed his eyes. #emph[Create something] , he thought to himself as he focused his intention. It took only moments until he saw the blackness behind his eyelids glow orange and felt the heat of the candles on the table intensify. It worked.
"Haven't seen you in here before, Lu," came a soupy male voice from over his shoulder.
Killian didn't have to look back to know it was a Witherbloom gloating at him. They always carried the scent of the Bog. This student, however, had spattered himself with something floral to mask it; hoping to impress someone perhaps. He sat up, slipping the book back into his robes.
"Dina tells me you two are close," said the Witherbloom, his tone suspicious. "She tells me you spend time together?"
"Spent," Killian replied. "In the Bog. I just helped her with a project."
He looked over to Fannessa and saw her watching the interaction, eager to see what would unfold.
"A project." The Witherbloom's tone turned threatening, his brutal, jealous nature revealing itself. "#emph[Ongoing] ?"
"Vickus," Killian heard Dina say from a short distance away.
Killian stood and turned around completely. The fourth-year was tall and wide-shouldered. Green, vine-like hair gripped his pale face, and his emerald eyes flashed in Killian's inky black ones. In his hand he held a thorny pest that had begun to wriggle.
"No," Killian said, giving one last attempt to assuage him. "She is just a friend."
Vickus smirked, flashing his vampire teeth, and the veins of his costume suddenly began to glow with green light.
"Two in one day, Killy," said Fannessa taking a seat. She then placed a goblet of bubbling purple liquid on the table and slid it over to him. He took it. "Someone's popular."
"Let's not do this," said Killian. "Please."
"No," said Vickus. "Let's."
The pest gave a screech as its life force left and entered his host. Green magic grew out of the fourth-year's back like a writhing tree, its leaves bending to form an enormous, ethereal bust of the deceased pest.
Ever prepared for magical duels to erupt, Bow's End transformed itself into an arena with tables and chairs floating to fixed positions around the circumference of the space; the students remained seated upon them, including Dina and Fannessa. The bar and the stage rose as well, leaving an open pathway for curses to flow between the duelers.
Killian knew word would travel quickly about this duel. It would be best to be heralded as the winner, especially in the ears of the Silverquill and his father. So, he quickly drank the contents of the goblet down, praying it would provide relief, and instantly, it did.
The warmth of the honey-flavored liquid coating his throat brought with it intoxicating, renewed energy. He gasped with surprise, feeling himself again. #emph[No] ~better than himself—better than he had ever felt, as the drink swam over him and fueled his first attack.
#emph["Oh, brutish Bog boy, now you say you're green with envy, when all this time I thought you were green from inhaling your own stench every day." ] As the words left his mouth, black currents of magic poured out of his back, transforming into the long, skeletal legs and thorax of a spider. The legs lifted him high above Vickus, who stared up at him with disdain. He heard delight and surprise from the crowd of students above them.
#emph["Like a withering flower, you'll wither, Witherbloom," ] cursed Killian. Then, from his massive thorax, he spewed thick strings of ink that formed webbed bars around his opponent. Vickus dodged each attack deftly and fired thorny spell-orbs back at him. Killian avoided his assaults and returned curse after inky curse of his own.
Killian was shocked at the rawness of his own power—the danger in it. Every attack felt more destructive than the last, and each one was delivered without a shred of remorse. It was not long before the entire area was covered in the thick black webs born of his scourge.
Now Vickus was panting with exhaustion. The pest's energy was nearly spent. In one final effort to defeat Killian, the young Witherbloom summoned a whipping bevy of tree roots from the ground that sought to overtake him. The move left him exposed for a moment, and seeing his opening (just as Razineth had done in class), Killian fired a sharp #emph[t ] from his tongue. The black ink arrow shot across the tavern and tore into Vickus's chest. Wasting no time, Killian then wrapped Vickus in his webs, leaving him helpless as a fly.
#emph["Jealous infinitesimal wart, putrid sack of melancholy," ] Killian whispered, drawing near to him. #emph["Your precious Dina pities you. She is one creature you will never have, no matter how hard you try to cover your stink!"]
As he spoke, every ounce of ink stretching across the room, including the ink arrow, entered Vickus's body. Killian watched as his opponent's eyes faded from gold to black.
"Killy!" shouted Dina, her voice frightened.
He looked up at her, staring directly into a terrified face that pleaded with him to go no further. His gaze then shifted to Fannessa, who looked the opposite, beholding the battle with devilish delight.
"Make your father proud, <NAME>!" Fannessa cheered, urging him to deal the final blow.
Killian turned back to Vickus, whose black eyes were now wide with terror, his soul breaking apart. His victim had begun to descend, and he was reminded of just how horrible it felt to be undone—to suffer alone in the dark.
#emph[I don't want this] , Killian thought, his conscience rebelling. #emph[I don't want to hurt you.]
Killian opened his mouth to call the curses back, but to his dismay, no sound escaped. He tried harder but felt mercy catch in his throat, as if something inside of him—something dark and malevolent, awakened by the concoction Fannessa had given him—was halting his efforts. He shot a second glance up to Fannessa and found her staring daggers at him, frustrated that he had not dealt the final blow. This was indeed her doing.
The time to save Vickus was running short. With no voice and no other alternative, Killian again retrieved the tale of the Mute from his robes and opened its pages. Doco, of the same mind and eagerly awaiting his opportunity to help, sprang into action, transforming himself into two ink-laden hands which signed a simple phrase.
#emph[You—are—enough.]
From their first interaction, Killian saw a man intensely fueled by jealousy and a deep fear of being overlooked. Seeing Killian hand in hand with Dina had ignited both emotions. What would save him, what Killian could imbue in him, was confidence. That is what he could create and what would last.
Killian quickly repeated the phrase with his own hands, focusing his intention. At once, white light rippled out of him, moving the spider legs to retreat into his body. Then, just as the nurse had done to save him, he called the writhing ink spells out. But more than that, he infused them with pure white magic, enriched them with his good intention, and sent them back into the Witherbloom's heart. Vickus's eyes began to shine like two glowing suns, and his body rippled with healing gold light. His fear had been replaced by joy. Killian even caught a smile pulling at the young man's lips, before he laid his head down to rest. With that, the duel was over.
Applause rained down from above and music began to play again as the tavern transformed back into its previous state. Killian did not wait around for it to settle but bounded directly to the bathroom.
Once inside, he ran to the sink, turned on the faucet and began to scoop handfuls of water into his mouth. His throat felt like it was on fire, and each gulp only seemed to make the blaze grow.
"So~what happened back there?" asked Fannessa slowly, her voice almost sinister, as she entered the room after him. She locked the door behind her. "You could have ended him."
"#emph[Not] #emph[] #emph[. . .] #emph[ right] ," Killian huffed, sticking his mouth back under the faucet.
"'Eviscerate the prey you had come to hunt and feast upon it.' Isn't that what your father told you to do?"
Killian shot her a fierce look. This was the third time she had quoted phrases said to him in private. #emph[Had she been following?]
"Yes, I've been following you," she admitted. "We've been watching you for a very, very long time."
Killian began to back away from her, now confused and growing frightened.
"#emph[What—was in—that drink] ?" he demanded.
"Nothing in particular—a bit of ale, herbs, some Oriq magic to suppress all that guilt you carry."
Fannessa held out both of her hands and slowly walked toward him. A bright spark popped into the space above her hands that grew into a spinning ball of purple fire. The ball continued to expand and twist, eventually taking the shape of a glowing black helmet. Killian stiffened at the sight of it, recognizing the Oriq mask. Fannessa too became engulfed in purple flames that burned her Silverquill robes away, revealing jagged, gray Oriq armor underneath. The enemy had come to him, and when he was most vulnerable.
"An inkmaster with a conscience does not an Eloquent make," said Fannessa with a smile.
The helmet left her hands and floated over to Killian.
"Our leader sees great promise in you," she went on, "but the road to your true destiny is full of terrors no one at Strixhaven could ever prepare you for. Look at yourself now—your voice sacrificed for them, for Razineth, for your father's expectations. All that big talk and bravado for what?" She circled him as she spoke. "The power you called upon while dueling that pathetic Witherbloom #emph[without] the countless hours of training, #emph[without] fear, #emph[without] empathy, is what you'll need to become who you are meant to be."
"And that is?" asked Killian, eyes fixed on the mask.
"Free."
#figure(image("010_A Silent Voice Calls/03.jpg", width: 100%), caption: [Tempted by the Oriq | Art by: Billy Christian], supplement: none, numbering: none)
The mask lowered itself to Killian's hands. Slowly, he took it. A tense moment passed between them. It seemed the drink she'd given him had done a great deal more than empower him—it had made him unnaturally susceptible to her suggestions. Pressure building in his head made him feel as if his skull might explode. He wanted it all to end—the regret, the disappointments, the expectations—and in the silence, he entertained the idea of disappearing into the purple Oriq fire.
"Put the mask on, <NAME>." She now stood at his back. A black helmet of her own manifested on her head, the final step in her transformation. "Join us. Together, we will destroy every obstacle in our way."
In that moment, Doco emerged, still swimming with the Mute's spells. The inkling hovered between Killian and the helmet and stared into the pained eyes of a friend desperately searching for an answer. With a nod of knowing, Doco melted into a wisp of ink and wrote out a simple message in the air in front of him.
#emph[We don't destroy. We create.]
Killian inhaled deeply, feeling a weight fall from his shoulders—a sudden freedom that came with finally accepting who he really wanted to be. He slowly shook his head, declining the Oriq's offer. The mask immediately evaporated from Killian's hands.
#emph["Pathetic little imp,"] cursed Fannessa. The sound of her ink magic sloshing above him swilled in his ears as it began to embody her words. Each blob gave a sharp hiss as they formed into jagged stalactites above him. #emph["You're not worthy of the Oriq. You are a lowly, insufferable fool. And you'll die like one."]
Suddenly, Killian heard screams and spell blasts echoing from outside. Another battle was raging beyond the door, but this one was far larger than the first.
"You didn't think I'd come alone, did you?" Fannessa gloated. She stretched out her hand, her entire body swirling with ink and burning with purple fire. "Our mage hunters will wipe them all out~including your little girlfriend."
Doco morphed again into three hand symbols, and without turning around, Killian mimicked them with his own. #emph[Light—bring—light.] At once the room rippled with blinding white magic. A swirling ball of gold light surrounded him, repelling the sharpened spears Fannessa launched in his direction. Everything the light touched seemed to shine like the sun. And like the sun, he rose high into the air.
#figure(image("010_A Silent Voice Calls/04.jpg", width: 100%), caption: [Beaming Defiance | Art by: <NAME>ón], supplement: none, numbering: none)
Fannessa hurled her curses at him, but none could penetrate the light. Killian repeated the same gestures as he did to create the shield, and the ball of light grew until it finally overtook her, holding her fast. Drawing close, staring into her wild, frightened eyes, Killian tapped his tongue to the back of his teeth and released a soft #emph[t] . An arrow, golden and shimmering, imbued with virtuous intention, was conjured. It glided softly through the air and sank into her.
#emph[I speak mercy into you.]
She let out an otherworldly cry before the fires raging in her eyes receded into quiet pools of gold. Then, suddenly, the door to the room exploded. Like a stone catapulted, an armored creature with arthropodal limbs folded in on itself rocketed past Killian and across the room. As it soared over Fannessa, its folds opened, and several chittering legs collected her. Charging onward, it crashed through the wall and escaped into the sky.
Killian and Doco hurried after them, soaring through the massive hole left in the structure. They stopped just beyond it and stared up at the broken clouds the enemy had left in their wake. Fannessa and the mage hunter were gone. But a battle was still raging as two more mage hunters were on the attack. Teeth bared, the hideous creatures whipped their spear-like tails with incredible precision, slashing into the bodies of the students that engaged them. Any attack sent the monsters' way was dodged, as if they had expected the blow to come. The citizens of Strixhaven were quickly losing this battle.
Fortunately, Killian had studied these creatures; his father had made sure of it. The glowing spines stretching from their armored skulls were key to their detection of magic and enabled them to easily avoid attacks.
Doco sprang into action, stretching himself into twenty black blobs that revolved around Killian in a circle. Each one molded itself into the shape of a hand signal from the book as they passed in front of him, and Killian mimicked the symbol with his own hands. Faster and faster, the shapes passed into his view, and faster and faster, he copied them, until Doco was a spinning coil of black ink and the sign became fluent.
#emph[I speak peace into you now so light may drive the darkness out.]
Just then, the intense glow of the mage hunter spines dimmed and was replaced with rippling whiteness. Blinded, the mage hunters wildly swiped the air with their talons, desperate to defend themselves from their invisible foes. Killian's spells flowed like water down their backs and along their tails, where it consumed their termini, immobilizing them.
"<NAME>! He's got them!" Vickus shouted, now at full strength, thrashing at the beasts with thorn-laced branches. He locked eyes with Killian, and the two shared a moment of warrior's respect—a newfound camaraderie. "Attack with everything you got!"
The wounded mages followed the order, forming a massive circle around the shuddering beasts, throwing every spell they had in their artillery. The fifty students blasted a barrage of diverse magic from every college of Strixhaven into the monsters, penetrating their armor, splitting it open. The final attack came from Dina, who hurled an enormous ball of pulsing beryl magic at the horrid creatures and shattered them into pieces. With the monsters' demise assured, all mage eyes turned heavenward to Killian, in awe of what he had done. They had won, and he had made it so.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
Killian settled against a wall a short time later, completely drained from the battle. He had given everything he had against Fannessa and the mage hunters, including his voice, which he still feared would never return.
"Although we are no longer in the bar," came Dina's voice from the other side of the wall, "you look like someone who needs a drink, Killy."
She slid around the corner in her typical carefree fashion, as if the battle had never happened. Her face was now glowing with enchanting green light that refracted the fluorescence of liquid she was pouring into a small wooden bowl. The odor wafting from the suspicious concoction was enough to make Killian's stomach turn over~which it nearly did. But he didn't object. He prayed silently and prepared for the treatment she had to offer.
"One of the students I tutor put it in his head that my teas were #emph[deadly] ," said Dina, bringing a finger to Killian's chin and tipping his head back. "I disagree. My blends are ripe with herbs designed for healing ailments like your voice. This batch is one of my favorites and has only a #emph[few] side effects. In we go."
"I wouldn't do that," called Vickus suddenly. His voice was lighter now, laced with a grin. "Herbs from the bog can make human organs~melt sometimes. Better see a nurse." Dina eyed him over her shoulder as he approached them. "Oh, #emph[and] it was a gift for me. Thank you, Dina. Need some help?"
Vickus offered Killian his hand, and Killian took it.
"The rumors are true," he began when Killian was on his feet. "You Silverquill are a vicious bunch. You know, before the mage hunters attacked, that girl you were with made it known to all of us that Strixhaven would burn and that all of us would perish at the hands of the Oriq. She said some truly evil stuff. Did she get away?"
The all-too-familiar sting of failure shot through Killian's chest. In spite of this awakening and acceptance of the incredible power that lived within him, he had let the enemy escape. His father may have been right. Light magic had not been enough to bring the enemy to justice.
"Good," said Vickus.
Killian eyed him, confused and taken aback.
"You #emph[changed] her," Dina chimed.
Vickus, still holding Killian's hand, placed the other around it warmly. "If what she felt was anywhere near what you made me feel," Vickus went on, "she will never be the same. And that change will spread beyond her to the other Oriq, shifting their hearts, turning them from their terrible ways. You've created a way to bring them to the light. Not even the Dean of Shadow could deny that."
Killian smiled, nearly blushing from their commendation. Having heard the exchange, Doco emerged and perched himself on Killian's shoulder. The bubbling inkling gave his companion a warm nudge of congratulations, encouraging him to heed what they had said and believe them. The light he had denied for so long had done more than his black magic could ever do—it #emph[created ] change.
Rounds of applause in the distance drew Killian's eyes to the horizon. There he saw, beating in the brightness of the second sun, the smiling, battle-worn faces of his peers, his unconquerable comrades, who had witnessed the power of his light. Scanning the line of them, Killian suddenly caught his father's gaze. Embrose, arms folded and face stern, was standing amid the crowd, along with several professors, who too had arrived just in time to see him win the day. <NAME> and Razineth stood on either side of him, celebrating Killian's victory along with the others.
Killian straightened, holding his head high, and stared back into his father's eyes. This was not an expression of defiance but a gesture of peace—a hope for compromise between two opposing ideals that were finally meeting in the middle.
#emph[The cosmos is vast, and Eloquents are not the only ones who shape it.] The words echoed loudly in Killian's mind, and with all his intention, he directed them into his father's heart. A flash of light flickered in Embrose's eyes. Killian could see the message had been received. But would it be accepted?
A brief moment passed between them before Killian saw the smallest of twinges pull at one side of Embrose's mouth—it was what one might consider the beginnings of a smile, a sign of mild approval. The action even raised his father's head ever so slightly, sending warm energy flowing in his son's direction. Suddenly, Killian felt a sharp sting in the palm his hand. He turned it over and emblazed in #emph[patriscrit] over the pale skin.
"#emph[I can create] ,"#emph[ ] Killian said aloud.
As the ink faded, he breathed in the fresh air, now ripe with the hope of a new destiny ahead. The time had finally come for him to step out of the dark of the shadow and finally into the light of the sun. He was ready.
|
|
https://github.com/ohmycloud/computer-science-notes | https://raw.githubusercontent.com/ohmycloud/computer-science-notes/main/Misc/proto2kafka.typ | typst | = 使用 Python 发送 protobuf 数据到 Kafka
```bash
pip install protobuf==3.1.0
pip install protobuf==3.20.0
# Windows
protoc iot-proto\src\main\resources\mqtt.proto --python_out=iot-proto\src\main\python
# Linux
protoc iot-proto/src/main/resources/mqtt.proto --python_out=iot-proto/src/main/python
```
脚本如下:
```python
import re
import mqtt_pb2
from mqtt_pb2 import Mqtt
path = r'data.log'
with open(path) as f:
for line in f.readlines():
if "inclusion" in line:
array = line.split(':[', 1)
topic = re.split("\s+", array[0])[2]
value = array[1]
print(f"[{value}")
```
如果报出下面的错误, 则说明安装的 protobuf 版本和 protoc 的版本不兼容。要降 protobuf 的版本:
```
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
```
从 .gz 文件中读取文本, 解析为 protobuf Message, 转发到 Kafka。
```python
from kafka import KafkaProducer
from kafka import KafkaConsumer
from mqtt_pb2 import Mqtt
from datetime import datetime
from kafka.errors import KafkaError
import mqtt_pb2
import click
import gzip
import time
import json
class CustomKafkaProducer():
def __init__(self, bootstrap_servers, topic):
self.topic = topic
self.producer = KafkaProducer(bootstrap_servers = bootstrap_servers)
def send_data(self, value):
try:
producer = self.producer
producer.send(self.topic, value=value)
producer.flush()
except KafkaError as e:
print (e)
def parse_json_str(json_str) -> dict:
dict = {}
server_time, json_data = json_str.split(' ')
topic, payload = json_data.split(':[{')
dict['server_time'] = int(time.mktime(datetime.strptime(server_time, "%Y-%m-%d %H:%M:%S.%f").timetuple())) * 1000
dict['topic'] = topic
dict['payload'] = "[{" + payload
dict['client_id'] = 'client_test'
return dict
@click.command()
@click.option('--input-path', default='test.gz', help='input file name')
@click.option('--topic', default='test', help='topic name')
@click.option('--group-id', default='group_test', help='consumer group id')
@click.option('--bootstrap-servers', type=list, default=['127.0.0.1'], help='bootstrap_servers')
def test(input_path, topic, group_id, bootstrap_servers):
sender = CustomKafkaProducer(bootstrap_servers=bootstrap_servers, topic=topic)
consumer = KafkaConsumer(topic, group_id=group_id, bootstrap_servers=bootstrap_servers)
with gzip.open(input_path) as f:
for line in f:
line = line.decode('utf-8').strip()
if not 'inclusion' in line:
continue
dict = parse_json_str(line)
cm = mqtt_pb2.Mqtt()
cm.client_id = dict['client_id']
cm.topic = dict['topic']
cm.payload = json.dumps( {'topic': dict['topic'], 'value': dict['payload']})
cm.server_time = dict['server_time']
print(cm)
sender.send_data(cm.SerializeToString())
for msg in consumer:
cmm = mqtt_pb2.Mqtt()
cmm.ParseFromString(msg.value)
print(cmm)
print('------------------------------------------------')
if __name__ == '__main__':
test()
```
|
|
https://github.com/0xPARC/0xparc-intro-book | https://raw.githubusercontent.com/0xPARC/0xparc-intro-book/main/summer-notes-evan/src/0821-multilinear.typ | typst | #import "@local/evan:1.0.0":*
= Advanced math seminar for August 21: Multilinear polynomial commitment scheme (<NAME>)
== What is Binius and why is it important?
If you've seen PLONK before, it works in a field $FF_q$ where $q approx 2^256$ is a large prime.
In PLONK, values are packaged as the values of a polynomial $f$ at roots of unity.
Part of the problem is that using $FF_q$ as the base field generates a lot of overhead:
for example, in real life, our values are often $0$/$1$ bits,
but they would have to be encoded as a $256$-bit number in $FF_q$.
Binius instead tries to package the values not at roots of unity,
but instead at the values of a multilinear polynomial on the hypercube.
== Commitment schemes
=== What's a commitment scheme for?
We start with a reminder of what commitment scheme is for.
Let's think back to PLONK.
In PLONK, we had the concept of a KZG commitment.
This lets us commit to a list of values; for example,
if we had a list of 1,000,000 values,
we can interpolate the polynomial $f(1)$, $f(2)$, ..., $f(1000000)$ through those values
and send just a _single_ commitment (which is a single field element)
that can be opened at any particular value like $f(13)$.
So in general, a polynomial commitment scheme ought to let us _commit_ to a polynomial $f$
and then _open_ the commitment at any value of $f$
(and prove this value is right, without having to give the whole polynomial).
=== A different kind of polynomial
Binius will commit to a different kind of polynomial.
In KZG, we used single-variable polynomials $f(x)$,
but for Binius, we will need to commit to a _multilinear polynomial_.
To describe this, I need to define two concepts:
- Multilinear polynomials
- Reed-Solomon codes
We talk about these notes.
== Prerequisite: multilinear polynomials
=== Definition
#definition[
A multilinear polynomial is an $n$-variable polynomial which is variable
in each _individual_ variable, but not necessarily as a whole.
]
For example, if we had a multilinear polynomial in variables $x$, $y$, $z$,
then things like $1$, $x$, $y$, $z$, $x y$, $x y z$ could appear, but not $x^2$ or $x y^2 z^3$.
#example[Three variables gives eight coefficients][
A three-variable multilinear polynomial is determined by eight coefficients:
the coefficients of $1$, $x$, $y$, $z$, $x y$, $y z$, $z x$, $x y z$.
In general, an $n$-variable multilinear polynomial is determined by $2^n$ coefficients.
]
=== Interpolation
Now, think back to Lagrange interpolation.
When we had a single-variable polynomial $f(x)$, let's say of degree $5$,
it's determined by six coefficients $f(x) = a_0 + a_1 x + ... + a_5 x^5$.
Or, turning it on its head, if we pick six points, we could find a (unique) polynomial through them.
So, if we have an $n$-variable mutlilinear polynomial,
then we would hope to be able to interpolate a unique polynomial through $2^n$ inputs.
In our case, we will specifically want to do interpolation
where the $2^n$ values are a _hypercube_ ${0,1}^n$.
Let's work this out concretely with two variables.
A generic two-variable polynomial would have the shape
$ f(x,y) = a + b x + c y + d x y. $
Let's do a hands-on interpolation example.
#exercise[
Find coefficients $(a,b,c,d)$ such that
$
f(0,0) &= 1 \
f(0,1) &= 5 \
f(1,0) &= 3 \
f(1,1) &= 2.
$
]
#soln[
The idea is to fix $x$ and interpolate $y$ as a linear polynomial first: we should have
$
f(0,y) &= 1+4y \
f(1,y) &= 3-y.
$
Then we do the same idea again through the coefficients of $y$:
$ f(x,y) = (1+2x) + (4-5x)y. #qedhere $
]
We have worked over $RR$ here, but in general for Binius we could imagine using instead
elements of the tower of fields
=== Extrapolation <extrapolation>
Let's go back to the table
$
f(0,0) &= 1 \
f(0,1) &= 5 \
f(1,0) &= 3 \
f(1,1) &= 2.
$
Here's a question:
#question[
Can you calculate $f(0,3)$ without having to interpolate the polynomial?
(That is, without referring to the interpolation we did earlier.)
]
#soln[
The trick is that $ell(y) := f(0,y)$ is a linear function,
so if $ell(0) = 1$ and $ell(1) = 5$ then we should have $ell(2) = 9$ and $ell(3) = 13$.
]
More generally, if
$ f(0,0) = alpha " and " f(0,1) = beta $
then the general answer is
$ f(0,3) = 3 beta - 2 alpha$
by considering the line $f(0,y) = alpha + (beta-alpha) y$.
Similarly, if we have
$ f(1,0) = gamma " and " f(1,1) = delta $
then
$ f(1,3) = 3 delta - 2 gamma. $
== Prerequisite: Reed-Solomon codes
For this prerequisite, we'll go back to a single-variable polynomial.
Suppose you have four numbers, let's say $e$, $f$, $g$, $h$.
We want to provide some commitment to these four values,
that can be _spot-checked_. Let's explain how.
Our goal is to produce a single-variable polynomial such that
$ p(0) = e, #h(1em) p(1) = f, #h(1em) p(2) = g, #h(1em) p(3) = h. $
We know we can interpolate a cubic polynomial through them.
Rather than tell just these four values, we're actually going to tell eight values,
by adding the following four additional values:
$ p(4) = ..., #h(1em) p(5) = ..., #h(1em) p(6) = ..., #h(1em) p(7) = ... . $
The upshot of this is that a cubic polynomial is always determined by four points,
so if we wanted to try to "cheat" and change a value,
I would have to change _at least five_ of the eight values.
(That is, if we only change four values.)
That is, by doubling the length of the message, we allow _spot checking_,
in the sense that cheating would change at least half the components of the message.
== Prerequisite: Merkle trees
See #url("https://en.wikipedia.org/wiki/Merkle_tree")
(it's a simple construction, I promise).
tl;dr: A Merkle tree lets you commit a list of $N$ objects such that the commitment
is a single hash, and revealing a single element is done with a proof of length $log_2 N$.
== The commitment scheme for a multilinear polynomial
We are now ready to describe the commitment scheme for a multilinear polynomial.
=== Providing the commitment
Let's imagine for concreteness we have a four variable polynomial $f(w,x,y,z)$.
We're going to put the values of the polynomial in a table as follows:
$
mat(
f(#text(red)[0,0],#text(blue)[0,0]),
f(#text(red)[0,0],#text(blue)[0,1]),
f(#text(red)[0,0],#text(blue)[1,0]),
f(#text(red)[0,0],#text(blue)[1,1]);
f(#text(red)[0,1],#text(blue)[0,0]),
f(#text(red)[0,1],#text(blue)[0,1]),
f(#text(red)[0,1],#text(blue)[1,0]),
f(#text(red)[0,1],#text(blue)[1,1]);
f(#text(red)[1,0],#text(blue)[0,0]),
f(#text(red)[1,0],#text(blue)[0,1]),
f(#text(red)[1,0],#text(blue)[1,0]),
f(#text(red)[1,0],#text(blue)[1,1]);
f(#text(red)[1,1],#text(blue)[0,0]),
f(#text(red)[1,1],#text(blue)[0,1]),
f(#text(red)[1,1],#text(blue)[1,0]),
f(#text(red)[1,1],#text(blue)[1,1]);
)
$
We extend each _row_ of the table using the Reed-Solomon idea.
That is, for the $i$th row, we interpolate $p_i$ through that row and use that to double its length.
$
mat(
underbrace(f(#text(red)[0,0],#text(blue)[0,0]), =p_1(0)),
underbrace(f(#text(red)[0,1],#text(blue)[0,0]), =p_1(1)),
underbrace(f(#text(red)[1,0],#text(blue)[0,0]), =p_1(2)),
underbrace(f(#text(red)[1,1],#text(blue)[0,0]), =p_1(3)),
p_1(4), p_1(5), p_1(6), p_1(7);
underbrace(f(#text(red)[0,0],#text(blue)[0,1]), =p_2(0)),
underbrace(f(#text(red)[0,1],#text(blue)[0,1]), =p_2(1)),
underbrace(f(#text(red)[1,0],#text(blue)[0,1]), =p_2(2)),
underbrace(f(#text(red)[1,1],#text(blue)[0,1]), =p_2(3)),
p_2(4), p_2(5), p_2(6), p_2(7);
underbrace(f(#text(red)[0,0],#text(blue)[1,0]), =p_3(0)),
underbrace(f(#text(red)[0,1],#text(blue)[1,0]), =p_3(1)),
underbrace(f(#text(red)[1,0],#text(blue)[1,0]), =p_3(2)),
underbrace(f(#text(red)[1,1],#text(blue)[1,0]), =p_3(3)),
p_3(4), p_3(5), p_3(6), p_3(7);
underbrace(f(#text(red)[0,0],#text(blue)[1,1]), =p_4(0)),
underbrace(f(#text(red)[0,1],#text(blue)[1,1]), =p_4(1)),
underbrace(f(#text(red)[1,0],#text(blue)[1,1]), =p_4(2)),
underbrace(f(#text(red)[1,1],#text(blue)[1,1]), =p_4(3)),
p_4(4), p_4(5), p_4(6), p_4(7);
)
$
Next, we produce a _Merkle tree_ on the set of columns;
*the Merkle root is our commitment*.
This means that we can reveal any individually column.
=== Opening the commitment
Let's suppose someone wants to query $f(3,2,4,3)$.
Of course, one dumb thing we can do is just provide all $16$ values,
but our goal is to do better.
The idea of our commitment is to do just the second half: if we could send the four values of
- $f(0,0,#text(green)[4,3])$
- $f(0,1,#text(green)[4,3])$
- $f(1,0,#text(green)[4,3])$
- $f(1,1,#text(green)[4,3])$
and prove their correctness, then this would be enough to unveil $f(3,2,4,3)$.
So the general situation, we are improving $N$ to $sqrt(N)$ over the naive method
(where $N = 2^("big")$ rather than $N = 2^4$ here).
The way we think about this is to imagine adding a new "phantom" row to the table corresponding
to the challenge $f(bullet,bullet,4,3)$ that was provided.
(The Merkle commitment for all the other tables is already fixed, and sent.)
$
mat(
underbrace(f(#text(red)[0,0],#text(blue)[0,0]), =p_1(0)),
underbrace(f(#text(red)[0,1],#text(blue)[0,0]), =p_1(1)),
underbrace(f(#text(red)[1,0],#text(blue)[0,0]), =p_1(2)),
underbrace(f(#text(red)[1,1],#text(blue)[0,0]), =p_1(3)),
p_1(4), p_1(5), p_1(6), p_1(7);
underbrace(f(#text(red)[0,0],#text(blue)[0,1]), =p_2(0)),
underbrace(f(#text(red)[0,1],#text(blue)[0,1]), =p_2(1)),
underbrace(f(#text(red)[1,0],#text(blue)[0,1]), =p_2(2)),
underbrace(f(#text(red)[1,1],#text(blue)[0,1]), =p_2(3)),
p_2(4), p_2(5), p_2(6), p_2(7);
underbrace(f(#text(red)[0,0],#text(blue)[1,0]), =p_3(0)),
underbrace(f(#text(red)[0,1],#text(blue)[1,0]), =p_3(1)),
underbrace(f(#text(red)[1,0],#text(blue)[1,0]), =p_3(2)),
underbrace(f(#text(red)[1,1],#text(blue)[1,0]), =p_3(3)),
p_3(4), p_3(5), p_3(6), p_3(7);
underbrace(f(#text(red)[0,0],#text(blue)[1,1]), =p_4(0)),
underbrace(f(#text(red)[0,1],#text(blue)[1,1]), =p_4(1)),
underbrace(f(#text(red)[1,0],#text(blue)[1,1]), =p_4(2)),
underbrace(f(#text(red)[1,1],#text(blue)[1,1]), =p_4(3)),
p_4(4), p_4(5), p_4(6), p_4(7);
underbrace(f(0,0,#text(green)[4,3]), =q(0)),
underbrace(f(0,1,#text(green)[4,3]), =q(1)),
underbrace(f(1,0,#text(green)[4,3]), =q(2)),
underbrace(f(1,1,#text(green)[4,3]), =q(3)),
q(4), q(5), q(6), q(7);
)
$
Ignoring protocol stuff for the moment, let's ask:
the prover has all of the first four rows.
How would the prover calculate the last row?
The first half of the phantom row is done by using the extrapolation we described before
in @extrapolation, using just the first four columns.
The second half is more interesting.
There's actually two ways to get $q(4)$, for example, that give the same answer:
- Using the phantom row:
We know $q(0)$, $q(1)$, $q(2)$, $q(3)$,
and then we can do Lagrange interpolation.
- Using the fifth column: perform the @extrapolation procedure
on $p_1(4)$, $p_2(4)$, $p_3(4)$, $p_4(4)$.
Now let's get back to the protocol.
The prover sends the entire bottom phantom row, and asserts they calculated it right.
In order to verify it's correct,
the verifier will pick a random column on the right half of the table
and ask the prover to reveal it (via the Merkle tree).
For example, if the prover asks to reveal the $7$th column,
then the verifier opens the Merkle commitment for
$ mat(p_1(7); p_2(7); p_3(7); p_4(7)) $
and the verifier checks that $q(7)$ is indeed what you get via @extrapolation.
== Where does the binary come in?
The commitment scheme we've describe is actually called the _Brakedown_ commitment scheme.
The Binius one, instead of working over $RR$ like we did here,
we would use the binary field that we described before.
This will probably not be discussed in today's session because we're a bit over-time.
|
|
https://github.com/bigskysoftware/hypermedia-systems-book | https://raw.githubusercontent.com/bigskysoftware/hypermedia-systems-book/main/ch07-a-dynamic-archive-ui.typ | typst | Other | #import "lib/definitions.typ": *
== A Dynamic Archive UI
Contact.app has come a long way from a traditional web 1.0-style web
application: we’ve added active search, bulk delete, some nice animations, and a
slew of other features. We have reached a level of interactivity that most web
developers would assume requires some sort of Single-Page Application JavaScript
framework, but we’ve done it using htmx-powered hypermedia instead.
#index[htmx patterns][download archive]
Let’s look at how we can add a final significant feature to Contact.app:
downloading an archive of all the contacts.
From a hypermedia perspective, downloading a file isn’t exactly rocket science:
using the HTTP `Content-Disposition` response header, we can easily tell the
browser to download and save a file to the local computer.
However, let’s make this problem more interesting: let’s add in the fact that
the export can take a bit of time, from five to ten seconds, or sometimes even
longer, to complete.
This means that if we implemented the download as a "normal" HTTP request,
driven by a link or a button, the user might sit with very little visual
feedback, wondering if the download is actually happening, while the export is
being completed. They might even give up in frustration and click the download
hypermedia control again, causing a
_second_ archive request. Not good.
This turns out to be a classic problem in web app development. When faced with
potentially long-running process like this, we ultimately have two options:
- When the user triggers the action, block until it is complete and then respond
with the result.
- Begin the action and return immediately, showing some sort of UI indicating that
things are in progress.
Blocking and waiting for the action to complete is certainly the simpler way to
handle it, but it can be a bad user experience, especially if the action takes a
while to complete. If you’ve ever clicked on something in a web 1.0-style
application and then had to sit there for what seems like an eternity before
anything happens, you’ve seen the practical results of this choice.
The second option, starting the action asynchronously (say, by creating a
thread, or submitting it to a job runner system) is much nicer from a user
experience perspective: the server can respond immediately and the user doesn’t
need to sit there wondering what’s going on.
But the question is, what do you respond _with_? The job probably isn’t complete
yet, so you can’t provide a link to the results.
We have seen a few different "simple" approaches in this scenario in various web
applications:
- Let the user know that the process has started and that they will be emailed a
link to the completed process results when it is finished.
- Let the user know that the process has started and recommend that they should
manually refresh the page to see the status of the process.
- Let the user know that the process has started and automatically refresh the
page every few seconds using some JavaScript.
All of these will work, but none of them is a great user experience.
What we’d _really_ like in this scenario is something more like what you see
when, for example, you download a large file via the browser: a nice progress
bar indicating where in the process you are, and, when the process is complete,
a link to click immediately to view the result of the process.
This may sound like something impossible to implement with hypermedia, and, to
be honest, we’ll need to push htmx pretty hard to make this all work, but, when
it is done, it won’t be _that_ much code, and we will be able to achieve the
user experience we want for this archiving feature.
=== UI Requirements <_ui_requirements>
Before we dive into the implementation, let’s discuss in broad terms what our
new UI should look like: we want a button in the application labeled "Download
Contact Archive." When a user clicks on that button, we want to replace that
button with a UI that shows the progress of the archiving process, ideally with
a progress bar. As the archive job makes progress, we want to move the progress
bar along towards completion. Then, when the archive job is done, we want to
show a link to the user to download the contact archive file.
#index[Archiver]
In order to actually do the archiving, we are going to use a python class, `Archiver`,
that implements all the functionality that we need. As with the `Contact` class,
we aren’t going to go into the implementation details of `Archiver`, because
that’s beyond the scope of this book. For now you just need to know is that it
provides all the server-side behavior necessary to start a contact archive
process and get the results when that process is done.
`Archiver` gives us the following methods to work with:
- `status()` - A string representing the status of the download, either
`Waiting`, `Running` or `Complete`
- `progress()` - A number between 0 and 1, indicating how much progress the
archive job has made
- `run()` - Starts a new archive job (if the current status is
`Waiting`)
- `reset()` - Cancels the current archive job, if any, and resets to the
"Waiting" state
- `archive_file()` - The path to the archive file that has been created on the
server, so we can send it to the client
- `get()` - A class method that lets us get the Archiver for the current user
A fairly uncomplicated API.
The only somewhat tricky aspect to the whole API is that the `run()`
method is _non-blocking_. This means that it does not
_immediately_ create the archive file, but rather it starts a background job (as
a thread) to do the actual archiving. This can be confusing if you aren’t used
to multithreading in code: you might be expecting the `run()` method to "block",
that is, to actually execute the entire export and only return when it is
finished. But, if it did that, we wouldn’t be able to start the archive process
and immediately render our desired archive progress UI.
=== Beginning Our Implementation <_beginning_our_implementation>
We now have everything we need to begin implementing our UI: a reasonable
outline of what it is going to look like, and the domain logic to support it.
So, to start, note that this UI is largely self-contained: we want to replace
the button with the download progress bar, and then the progress bar with a link
to download the results of the completed archive process.
The fact that our archive user interface is all going to be within a specific
part of the UI is a strong hint that we will want to create a new template to
handle it. Let’s call this template `archive_ui.html`.
Also note that we are going to want to replace the entire download UI in
multiple cases:
- When we start the download, we will want to replace the button with a progress
bar.
- As the archive process proceeds, we will want to replace/update the progress
bar.
- When the archive process completes, we will want to replace the progress bar
with a download link.
To update the UI in this way, we need to set a good target for the updates. So,
let’s wrap the entire UI in a `div` tag, and then use that
`div` as the target for all our operations.
Here is the start of the template for our new archive user interface:
#figure(caption: [Our initial archive UI template],
```html
<div id="archive-ui"
hx-target="this" <1>
hx-swap="outerHTML"> <2>
</div>
```)
1. This div will be the target for all elements within it.
2. Replace the entire div every time using `outerHTML`.
Next, lets add the "Download Contact Archive" button to the `div` that will kick
off the archive-then-download process. We’ll use a `POST` to the path `/contacts/archive` to
trigger the start of the archiving process:
#figure(caption: [Adding the archive button],
```html
<div id="archive-ui" hx-target="this" hx-swap="outerHTML">
<button hx-post="/contacts/archive"> <1>
Download Contact Archive
</button>
</div>
```)
1. This button will issue a `POST` to `/contacts/archive`.
Finally, let’s include this new template in our main `index.html`
template, above the contacts table:
#figure(caption: [Our initial archive UI template],
```html
{% block content %}
{% include 'archive_ui.html' %} <1>
<form action="/contacts" method="get" class="tool-bar">
```)
1. This template will now be included in the main template.
With that done, we now have a button showing up in our web application to get
the download going. Since the enclosing `div` has an
`hx-target="this"` on it, the button will inherit that target and replace that
enclosing `div` with whatever HTML comes back from the
`POST` to `/contacts/archive`.
=== Adding the Archiving Endpoint <_adding_the_archiving_endpoint>
Our next step is to handle the `POST` that our button is making. We want to get
the `Archiver` for the current user and invoke the `run()` method on it. This
will start the archive process running. Then we will render some new content
indicating that the process is running.
To do that, we want to reuse the `archive_ui` template to handle rendering the
archive UI for both states, when the archiver is "Waiting" and when it is "Running."
(We will handle the "Complete" state in a bit).
This is a very common pattern: we put all the different potential UIs for a
given chunk of the user interface into a single template, and conditionally
render the appropriate interface. By keeping everything in one file, it makes it
much easier for other developers (or for us, if we come back after a while!) to
understand exactly how the UI works on the client side.
Since we are going to conditionally render different user interfaces based on
the state of the archiver, we will need to pass the archiver out to the template
as a parameter. So, again: we need to invoke `run()`
on the archiver in our controller and then pass the archiver along to the
template, so it can render the UI appropriate for the current status of the
archive process.
Here is what the code looks like:
#figure(caption: [Server-side code to start the archive process],
```python
@app.route("/contacts/archive", methods=["POST"]) <1>
def start_archive():
archiver = Archiver.get() <2>
archiver.run() <3>
return render_template("archive_ui.html", archiver=archiver) <4>
```)
1. Handle `POST` to `/contacts/archive`.
2. Look up the Archiver.
3. Invoke the non-blocking `run()` method on it.
4. Render the `archive_ui.html` template, passing in the archiver.
=== Conditionally Rendering A Progress UI <_conditionally_rendering_a_progress_ui>
#index[conditional rendering]
Now let’s turn our attention to updating our archiving UI by setting
`archive_ui.html` to conditionally render different content depending on the
state of the archive process.
Recall that the archiver has a `status()` method. When we pass the archiver
through as a variable to the template, we can consult this
`status()` method to see the status of the archive process.
If the archiver has the status `Waiting`, we want to render the
"Download Contact Archive" button. If the status is `Running`, we want to render
a message indicating that progress is happening. Let’s update our template code
to do just that:
#figure(caption: [Adding conditional rendering],
```html
<div id="archive-ui" hx-target="this" hx-swap="outerHTML">
{% if archiver.status() == "Waiting" %} <1>
<button hx-post="/contacts/archive">
Download Contact Archive
</button>
{% elif archiver.status() == "Running" %} <2>
Running... <3>
{% endif %}
</div>
```)
1. Only render the archive button if the status is "Waiting."
2. Render different content when status is "Running."
3. For now, just some text saying the process is running.
OK, great, we have some conditional logic in our template view, and the
server-side logic to support kicking off the archive process. We don’t have a
progress bar yet, but we’ll get there! Let’s see how this works as it stands,
and refresh the main page of our application…
#figure(caption: [Something Went Wrong],
```
UndefinedError
jinja2.exceptions.UndefinedError: 'archiver' is undefined
```)
Ouch!
We get an error message right out of the box. Why? Ah, we are including the `archive_ui.html` in
the `index.html` template, but now the
`archive_ui.html` template expects the archiver to be passed through to it, so
it can conditionally render the correct UI.
That’s an easy fix: we just need to pass the archiver through when we render the `index.html` template
as well:
#figure(caption: [Including the archiver when we render index.html],
```python
@app.route("/contacts")
def contacts():
search = request.args.get("q")
if search is not None:
contacts_set = Contact.search(search)
if request.headers.get('HX-Trigger') == 'search':
return render_template("rows.html", contacts=contacts_set)
else:
contacts_set = Contact.all()
return render_template("index.html",
contacts=contacts_set, archiver=Archiver.get()) <1>
```)
1. Pass through archiver to the main template
Now with that done, we can load up the page. And, sure enough, we can see the "Download
Contact Archive" button.
When we click on it, the button is replaced with the content "Running…", and we
can see in our development console on the server-side that the job is indeed
getting kicked off properly.
=== Polling <_polling>
#index[polling]
That’s definitely progress, but we don’t exactly have the best progress
indicator here: just some static text telling the user that the process is
running.
We want to make the content update as the process makes progress and, ideally,
show a progress bar indicating how far along it is. How can we do that in htmx
using plain old hypermedia?
The technique we want to use here is called "polling", where we issue a request
on an interval and update the UI based on the new state of the server.
#sidebar[Polling? Really?][Polling has a bit of a bad rap, and it isn’t the sexiest technique in the world:
today developers might look at a more advanced technique like WebSockets or
Server Sent Events (SSE) to address this situation.
But, say what one will, polling _works_ and it is drop-dead simple. You need to
be careful not to overwhelm your system with polling requests, but, with a bit
of care, you can create a reliable, passively updated component in your UI using
it.]
Htmx offers two types of polling. The first is "fixed rate polling", which uses
a special `hx-trigger` syntax to indicate that something should be polled on a
fixed interval.
Here is an example:
#figure(caption: [Fixed interval polling],
```html
<div hx-get="/messages" hx-trigger="every 3s"> <1>
</div>
```)
1. Trigger a `GET` to `/messages` every three seconds.
This works great in situations when you want to poll indefinitely, for example
if you want to constantly poll for new messages to display to the user. However,
fixed rate polling isn’t ideal when you have a definite process after which you
want to stop polling: it keeps polling forever, until the element it is on is
removed from the DOM.
In our case, we have a definite process with an ending to it. So, it will be
better to use the second polling technique, known as "load polling." In load
polling, we take advantage of the fact that htmx triggers a `load` event when
content is loaded into the DOM. We can create a trigger on this `load` event,
and add a bit of a delay so that the request doesn’t trigger immediately.
With this, we can conditionally render the `hx-trigger` on every request: when a
process has completed we simply do not include the
`load` trigger, and the load polling stops. This offers a nice and simple way to
poll until a definite process finishes.
==== Using Polling To Update The Archive UI <_using_polling_to_update_the_archive_ui>
Let’s use load polling to update our UI as the archiver makes progress. To show
the progress, let’s use a CSS-based progress bar, taking advantage of the `progress()` method
which returns a number between 0 and 1 indicating how close the archive process
is to completion.
Here is the snippet of HTML we will use:
#figure(caption: [A CSS-based progress bar],
```html
<div class="progress">
<div class="progress-bar"
style="width:{{ archiver.progress() * 100 }}%"></div> <1>
</div>
```)
1. The width of the inner element corresponds to the progress.
This CSS-based progress bar has two components: an outer `div` that provides the
wire frame for the progress bar, and an inner `div` that is the actual progress
bar indicator. We set the width of the inner progress bar to some percentage
(note we need to multiply the
`progress()` result by 100 to get a percentage) and that will make the progress
indicator the appropriate width within the parent div.
#sidebar[What About The <progress> Element?][We are perhaps dipping our toes into the "div soup" here, using a
`div` tag when there is a perfectly good HTML5 tag, the
#link(
"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress",
)[`progress`]
element, that is designed specifically for showing, well, progress.
We decided not to use the `progress` element for this example because we want
our progress bar to update smoothly, and we will need to use a CSS technique not
available for the `progress` element to make that happen. That’s unfortunate,
but sometimes we have to play with the cards we are dealt.
We will, however, use the proper
#link(
"https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/roles/progressbar_role",
)[progress bar roles]
to make our `div`-based progress bar play well with assistive technologies.]
Let’s update our #indexed[progress bar] to have the proper ARIA roles and
values:
#figure(caption: [A CSS-based progress bar])[
```html
<div class="progress">
<div class="progress-bar"
role="progressbar" <1>
aria-valuenow="{{ archiver.progress() * 100 }}" <2>
style="width:{{ archiver.progress() * 100 }}%"></div>
</div>
``` ]
1. This element will act as a progress bar
2. The progress will be the percentage completeness of the archiver, with 100
indicating fully complete
Finally, for completeness, here is the CSS we’ll use for this progress bar:
#figure(caption: [The CSS for our progress bar])[
```css
.progress {
height: 20px;
margin-bottom: 20px;
overflow: hidden;
background-color: #f5f5f5;
border-radius: 4px;
box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}
.progress-bar {
float: left;
width: 0%;
height: 100%;
font-size: 12px;
line-height: 20px;
color: #fff;
text-align: center;
background-color: #337ab7;
box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
transition: width .6s ease;
}
```]<lst:progress-bar-css>
#figure(image("images/screenshot_progress_bar.png"), caption: [
Our CSS-Based Progress Bar, as implemented in @lst:progress-bar-css
])
===== Adding The Progress Bar UI <_adding_the_progress_bar_ui>
Let’s add the code for our progress bar into our `archive_ui.html`
template for the case when the archiver is running, and let’s update the copy to
say "Creating Archive…":
#figure(caption: [Adding the progress bar])[
```html
<div id="archive-ui" hx-target="this" hx-swap="outerHTML">
{% if archiver.status() == "Waiting" %}
<button hx-post="/contacts/archive">
Download Contact Archive
</button>
{% elif archiver.status() == "Running" %}
<div>
Creating Archive...
<div class="progress"> <1>
<div class="progress-bar" role="progressbar"
aria-valuenow="{{ archiver.progress() * 100}}"
style="width:{{ archiver.progress() * 100 }}%"></div>
</div>
</div>
{% endif %}
</div>
``` ]
1. Our shiny new progress bar
Now when we click the "Download Contact Archive" button, we get the progress
bar. But it still doesn’t update because we haven’t implemented load polling
yet: it just sits there, at zero.
To get the progress bar updating dynamically, we’ll need to implement load
polling using `hx-trigger`. We can add this to pretty much any element inside
the conditional block for when the archiver is running, so let’s add it to that `div` that
is wrapping around the "Creating Archive…" text and the progress bar.
Let’s make it poll by issuing an HTTP `GET` to the same path as the
`POST`: `/contacts/archive`.
#figure(caption: [Implementing load polling])[
```html
<div id="archive-ui" hx-target="this" hx-swap="outerHTML">
{% if archiver.status() == "Waiting" %}
<button hx-post="/contacts/archive">
Download Contact Archive
</button>
{% elif archiver.status() == "Running" %}
<div hx-get="/contacts/archive" hx-trigger="load delay:500ms"> <1>
Creating Archive...
<div class="progress" >
<div class="progress-bar" role="progressbar"
aria-valuenow="{{ archiver.progress() * 100}}"
style="width:{{ archiver.progress() * 100 }}%"></div>
</div>
</div>
{% endif %}
</div>
``` ]
1. Issue a `GET` to `/contacts/archive` 500 milliseconds after the content loads.
When this `GET` is issued to `/contacts/archive`, it is going to replace the `div` with
the id `archive-ui`, not just itself. The `hx-target`
attribute on the `div` with the id `archive-ui` is _inherited_ by all child
elements within that `div`, so the children will all target that outermost `div` in
the `archive_ui.html` file.
Now we need to handle the `GET` to `/contacts/archive` on the server.
Thankfully, this is quite easy: all we want to do is re-render
`archive_ui.html` with the archiver:
#figure(caption: [Handling progress updates])[
```python
@app.route("/contacts/archive", methods=["GET"]) <1>
def archive_status():
archiver = Archiver.get()
return render_template("archive_ui.html", archiver=archiver) <2>
``` ]
1. handle `GET` to the `/contacts/archive` path
2. just re-render the `archive_ui.html` template
Like so much else with hypermedia, the code is very readable and not
complicated.
Now, when we click the "Download Contact Archive", sure enough, we get a
progress bar that updates every 500 milliseconds. As the result of the call to `archiver.progress()` incrementally
updates from 0 to 1, the progress bar moves across the screen for us. Very cool!
==== Downloading The Result <_downloading_the_result>
We have one final state to handle, the case when `archiver.status()` is set to "Complete",
and there is a JSON archive of the data ready to download. When the archiver is
complete, we can get the local JSON file on the server from the archiver via the `archive_file()` call.
Let’s add another case to our if statement to handle the "Complete" state, and,
when the archive job is complete, lets render a link to a new path, `/contacts/archive/file`,
which will respond with the archived JSON file. Here is the new code:
#figure(caption: [Rendering A Download Link When Archiving Completes])[
```html
<div id="archive-ui" hx-target="this" hx-swap="outerHTML">
{% if archiver.status() == "Waiting" %}
<button hx-post="/contacts/archive">
Download Contact Archive
</button>
{% elif archiver.status() == "Running" %}
<div hx-get="/contacts/archive" hx-trigger="load delay:500ms">
Creating Archive...
<div class="progress" >
<div class="progress-bar" role="progressbar"
aria-valuenow="{{ archiver.progress() * 100}}"
style="width:{{ archiver.progress() * 100 }}%"></div>
</div>
</div>
{% elif archiver.status() == "Complete" %} <1>
<a hx-boost="false" href="/contacts/archive/file">
Archive Ready! Click here to download. ↓
</a> <2>
{% endif %}
</div>
``` ]
1. If the status is "Complete", render a download link.
2. The link will issue a `GET` to `/contacts/archive/file`.
Note that the link has `hx-boost` set to `false`. It has this so that the link
will not inherit the boost behavior that is present for other links and, thus,
will not be issued via AJAX. We want this "normal" link behavior because an AJAX
request cannot download a file directly, whereas a plain anchor tag can.
==== Downloading The Completed Archive <_downloading_the_completed_archive>
The final step is to handle the `GET` request to
`/contacts/archive/file`. We want to send the file that the archiver created
down to the client. We are in luck: Flask has a mechanism for sending a file as
a downloaded response, the `send_file()` method.
As you see in the code that follows, we pass three arguments to
`send_file()`: the path to the archive file that the archiver created, the name
of the file that we want the browser to create, and if we want it sent "as an
attachment." This last argument tells Flask to set the HTTP response header `Content-Disposition` to `attachment` with
the given filename; this is what triggers the browser’s file-downloading
behavior.
#figure(caption: [Sending A File To The Client])[
```python
@app.route("/contacts/archive/file", methods=["GET"])
def archive_content():
manager = Archiver.get()
return send_file(
manager.archive_file(), "archive.json", as_attachment=True) <1>
``` ]
1. Send the file to the client via Flask’s `send_file()` method.
Perfect. Now we have an archive UI that is very slick. You click the
"Download Contacts Archive" button and a progress bar appears. When the progress
bar reaches 100%, it disappears and a link to download the archive file appears.
The user can then click on that link and download their archive.
We’re offering a user experience that is much more user-friendly than the common
click-and-wait experience of many websites.
=== Smoothing Things Out: Animations in Htmx <_smoothing_things_out_animations_in_htmx>
As nice as this UI is, there is one minor annoyance: as the progress bar updates
it "jumps" from one position to the next. This feels a bit like a full page
refresh in web 1.0 style applications. Is there a way we can fix this?
(Obviously there is, this why we went with a `div` rather than a `progress` element!)
Let’s walk through the cause of this visual problem and how we might fix it. (If
you’re in a hurry to get to an answer, feel free to jump ahead to "our
solution.")
#index[CSS transitions]
It turns out that there is a native HTML technology for smoothing out changes on
an element from one state to another: the CSS Transitions API, the same one that
we discussed in Chapter 4. Using CSS Transitions, you can smoothly animate an
element between different styling by using the `transition` property.
If you look back at our CSS definition of the `.progress-bar` class, you will
see the following transition definition:
`transition: width .6s ease;`. This means that when the width of the progress
bar is changed from, say 20% to 30%, the browser will animate over a period of
.6 seconds using the "ease" function (which has a nice accelerate/decelerate
effect).
So why isn’t that transition being applied in our current UI? The reason is
that, in our example, htmx is _replacing_ the progress bar with a new one every
time it polls. It isn’t updating the width of an
_existing_ element. CSS transitions, unfortunately, only apply when the
properties of an existing element change inline, not when the element is
replaced.
This is a reason why pure HTML-based applications can feel jerky and unpolished
when compared with their SPA counterparts: it is hard to use CSS transitions
without some JavaScript.
But there is some good news: htmx has a way to utilize CSS transitions even when
it replaces content in the DOM.
==== The "Settling" Step in Htmx <_the_settling_step_in_htmx>
#index[htmx][swap model]
#index[htmx][settling]
When we discussed the htmx swap model in Chapter 4, we focused on the classes
that htmx adds and removes, but we skipped over the process of
"settling." In htmx, settling involves several steps: when htmx is about to
replace a chunk of content, it looks through the new content and finds all
elements with an `id` on it. It then looks in the
_existing_ content for elements with the same `id`.
If there is one, it does the following somewhat elaborate shuffle:
- The _new_ content gets the attributes of the _old_ content temporarily.
- The new content is inserted.
- After a small delay, the new content has its attributes reverted to their actual
values.
So, what is this strange little dance supposed to achieve?
Well, if an element has a stable id between swaps, you can now write CSS
transitions between various states. Since the _new_ content briefly has the _old_ attributes,
the normal CSS transition mechanism will kick in when the actual values are
restored.
==== Our Smoothing Solution <_our_smoothing_solution>
So, we arrive at our fix.
All we need to do is add a stable ID to our `progress-bar` element.
#figure(caption: [Smoothing things out])[
```html
<div class="progress" >
<div id="archive-progress" class="progress-bar" role="progressbar"
aria-valuenow="{{ archiver.progress() * 100 }}"
style="width:{{ archiver.progress() * 100 }}%"></div> <1>
</div>
``` ]
1. The progress bar div now has a stable id across requests.
Despite the complicated mechanics going on behind the scenes in htmx, the
solution is as simple as adding a stable `id` attribute to the element we want
to animate.
Now, rather than jumping on every update, the progress bar should smoothly move
across the screen as it is updating, using the CSS transition defined in our
style sheet. The htmx swapping model allows us to achieve this even though we
are replacing the content with new HTML.
And voila: we have a nice, smoothly animated progress bar for our contact
archiving feature. The result has the look and feel of a JavaScript-based
solution, but we did it with the simplicity of an HTML-based approach.
Now that, dear reader, does spark joy.
=== Dismissing The Download UI <_dismissing_the_download_ui>
Some users may change their mind, and decide not to download the archive. They
may never witness our glorious progress bar, but that’s OK. We’re going to give
these users a button to dismiss the download link and return to the original
export UI state.
To do this, we’ll add a button that issues a `DELETE` to the path
`/contacts/archive`, indicating that the current archive can be removed or
cleaned up.
We’ll add it after the download link, like so:
#figure(caption: [Clearing the download])[
```html
<a hx-boost="false" href="/contacts/archive/file">
Archive Ready! Click here to download. ↓
</a>
<button hx-delete="/contacts/archive">Clear Download</button> <1>
``` ]
1. A simple button that issues a `DELETE` to `/contacts/archive`.
Now the user has a button that they can click on to dismiss the archive download
link. But we will need to hook it up on the server side. As usual, this is
pretty straightforward: we create a new handler for the
`DELETE` HTTP Action, invoke the `reset()` method on the archiver, and re-render
the `archive_ui.html` template.
Since this button is picking up the same `hx-target` and `hx-swap`
configuration as everything else, it "just works."
Here is the server-side code:
#figure(caption: [The handler to reset the download])[
```python
@app.route("/contacts/archive", methods=["DELETE"])
def reset_archive():
archiver = Archiver.get()
archiver.reset() <1>
return render_template("archive_ui.html", archiver=archiver)
``` ]
1. Call `reset()` on the archiver
This looks pretty similar to our other handlers, doesn’t it?
Sure does! That’s the idea!
=== An Alternative UX: Auto-Download <_an_alternative_ux_auto_download>
#index[auto-download]
While we prefer the current user experience for archiving contacts, there are
other alternatives. Currently, a progress bar shows the progress of the process
and, when it completes, the user is presented with a link to actually download
the file. Another pattern that we see on the web is "auto-downloading", where
the file downloads immediately without the user needing to click a link.
We can add this functionality quite easily to our application with just a bit of
scripting. We will discuss scripting in a Hypermedia-Driven Application in more
depth in chapter 9, but, put briefly: scripting is perfectly acceptable in a
HDA, as long as it doesn’t replace the core hypermedia mechanics of the
application.
For our auto-download feature we will use
#link("https://hyperscript.org")[\_hyperscript], our preferred scripting option.
JavaScript would also work here, and would be nearly as simple; again, we’ll
discuss scripting options in detail in Chapter 9.
All we need to do to implement the auto-download feature is the following: when
the download link renders, automatically click on the link for the user.
The \_hyperscript code reads almost the same as the previous sentence (which is
a major reason why we love hyperscript):
#figure(caption: [Auto-downloading])[
```html
<a hx-boost="false" href="/contacts/archive/file"
_="on load click() me"> <1>
Archive Downloading! Click here if the download does not start.
</a>
``` ]
1. A bit of \_hyperscript to make the file auto-download.
Crucially, the scripting here is simply _enhancing_ the existing hypermedia,
rather than replacing it with a non-hypermedia request. This is
hypermedia-friendly scripting, as we will cover in more depth in a bit.
=== A Dynamic Archive UI: Complete <_a_dynamic_archive_ui_complete>
In this chapter we’ve managed to create a dynamic UI for our contact archive
functionality, with a progress bar and auto-downloading, and we’ve done nearly
all of it --- with the exception of a small bit of scripting for auto-download
--- in pure hypermedia. It took about 16 lines of front end code and 16 lines of
backend code to build the whole thing.
HTML, with a bit of help from a hypermedia-oriented JavaScript library such as
htmx, can in fact be extremely powerful and expressive.
#html-note[Markdown soup][
#index[Markdown]
_Markdown soup_ is the lesser known sibling of `<div>` soup. This is the result
of web developers limiting themselves to the set of elements that the Markdown
language provides shorthand for, even when these elements are incorrect. More
seriously, it’s important to be aware of the full power of our tools, including
HTML. Consider the following example of an IEEE-style citation:
#figure(
```markdown
[1] <NAME>, <NAME>, and <NAME>, <1>
_Hypermedia Systems_, <2>
Bozeman, MT, USA: Big Sky Software.
Available: <https://hypermedia.systems/>
```)
1. The reference number is written in brackets.
2. Underscores around the book title creates an \<em\> element.
Here, \<em\> is used because it’s the only Markdown element that is presented in
italics by default. This indicates that the book title is being stressed, but
the purpose is to mark it as the title of a work. HTML has the `<cite>` element
that’s intended for this exact purpose.
Furthermore, even though this is a numbered list perfect for the `<ol>`
element, which Markdown supports, plain text is used for the reference numbers
instead. Why could this be? The IEEE citation style requires that these numbers
are presented in square brackets. This could be achieved on an `<ol>` with CSS,
but Markdown doesn’t have a way to add a class to elements meaning the square
brackets would apply to all ordered lists.
Don’t shy away from using embedded HTML in Markdown. For larger sites, also
consider Markdown extensions.
#figure(
```markdown
{.ieee-reference-list} <1>
1. <NAME>, <NAME>, and <NAME>, <2>
<cite>Hypermedia Systems</cite>, <3>
Bozeman, MT, USA: Big Sky Software.
Available: <https://hypermedia.systems/>
```)
1. Many Markdown dialects let us add ids, classes and attributes using curly
braces.
2. We can now use the \<ol\> element, and create the brackets in CSS.
3. We use `<cite>` to mark the title of the work being cited (not the whole
citation!)
You can also use custom processors to produce extra-detailed HTML instead of
writing it by hand:
#figure(
```markdown
{% reference_list %} <1>
[hypers2023]: <2>
<NAME>, <NAME>, and <NAME>, _Hypermedia Systems_,
Bozeman, MT, USA: Big Sky Software, 2023.
Available: <https://hypermedia.systems/>
{% end %}
```)
1. `reference_list` is a macro that will transform the plain text to
highly-detailed HTML.
2. A processor can also resolve identifiers, so we don’t have to manually keep the
reference list in order and the in-text citations in sync.
]
|
https://github.com/rose-pine/typst | https://raw.githubusercontent.com/rose-pine/typst/main/src/template.typ | typst | MIT License | #let $id = (
base : rgb("$base"),
surface : rgb("$surface"),
overlay : rgb("$overlay"),
muted : rgb("$muted"),
subtle : rgb("$subtle"),
text : rgb("$text"),
love : rgb("$love"),
gold : rgb("$gold"),
rose : rgb("$rose"),
pine : rgb("$pine"),
foam : rgb("$foam"),
iris : rgb("$iris"),
highlight : (
low : rgb("$highlightLow"),
med : rgb("$highlightMed"),
high : rgb("$highlightHigh"),
),
codeThemePath: "themes/$id.tmTheme",
)
#let variant = $id
|
https://github.com/fyuniv/TypstDevcontainerTesting | https://raw.githubusercontent.com/fyuniv/TypstDevcontainerTesting/main/README.md | markdown | # TypstDevcontainerTesting |
|
https://github.com/next-generation-cartographers/ngc-code-of-conduct | https://raw.githubusercontent.com/next-generation-cartographers/ngc-code-of-conduct/main/README.md | markdown | # NGC Code of Conduct
This repository contains the Next Generation Cartographer's Code of Conduct document. The document is written in Typst, a modern typesetting system.
> [!WARNING]
> The code of conduct is still work in progress.
## Table of Contents
- [Introduction](#introduction)
- [Prerequisites](#prerequisites)
- [Compiling the Document](#compiling-the-document)
- [Contributing](#contributing)
## Introduction
The NGC Code of Conduct outlines the expected behavior and guidelines for participants in our community. It aims to foster a welcoming and inclusive environment.
## Prerequisites
### Typst
To compile the document, you need to have Typst installed on your system. You can find more information on how install to Typst on your operating system at [Typst's github repository](https://github.com/typst/typst?tab=readme-ov-file#installation).
### Fonts
You'll also need to have the following fonts installed on your system:
- Space Grotesk
- Source Sans
Both fonts are available for free on Google Fonts. You can download and install them also from our [branding page](https://next-generation-cartographers.github.io/branding/).
## Compiling the Document
To compile the document, follow these steps:
1. Clone the repository:
```sh
git clone https://github.com/yourusername/ngc-code-of-conduct.git
cd ngc-code-of-conduct
```
2. Compile the Typst document:
```sh
typst compile code-of-conduct.typ
```
3. The compiled PDF will be generated in the same directory.
## Contributing
We welcome contributions to improve the NGC Code of Conduct. Please fork the repository and submit a pull request with your changes.
|
|
https://github.com/linhduongtuan/VNUHCM-typst-poster | https://raw.githubusercontent.com/linhduongtuan/VNUHCM-typst-poster/main/README.md | markdown | MIT License | # VNUHCM-Typst-Poster
This is an academic poster template designed for [Typst](https://github.com/typst/typst). Supports both horizontal and vertical posters.
# What does it look like?

# Getting Started
To get started, use the following code:
```typ
#import "poster.typ": *
#show: poster.with(
size: "Tested on '36x24', '48x36', and '48x36'. See examples dir'",
title: "Poster Title",
authors: "Author Names (comma separated)",
departments: "Department Name",
univ_logo:_1 "Logo Path",
univ_logo:_2: "Logo Path",
// You can custom both Header and Footer contents for your own purpose.
header_text: "Name of Conference or Course Name",
header_url: "Conference URL",
header_email_ids: "Email IDs of authors (comma separated)",
header_color: "Hex Color Code"
footer_text: "Name of Conference or Course Name",
footer_url: "Conference URL",
footer_email_ids: "Email IDs of authors (comma separated)",
footer_color: "Hex Color Code",
// Additional Parameters
// =====
// For 3-column posters, these usually DO NOT require any adjustments.
// However, they are important for 2-column posters.
// Refer to ./examples/example_2_column_18_24.typ for an example.
// Defaults are commented on the right side
keywords: Array of keywords, // default is empty
num_columns: "Number of columns in the poster", // 3
univ_logo_scale: "University logo's scale (in %)", // 100%
univ_logo_column_size: "University logo's column size (in in)", // 10in
title_column_size: "Title and authors' column size (in in)", // 20in
title_font_size: "Poster title's font size (in pt)", // 48pt
authors_font_size: "Authors' font size (in pt)", // 36pt
header_url_font_size: "Header's URL and email font size (in pt)", // 30pt
header_text_font_size: "Header's text font size (in pt)", // 40pt
footer_url_font_size: "Footer's URL and email font size (in pt)", // 30pt
footer_text_font_size: "Footer's text font size (in pt)", // 40pt
)
// Proceed with your content as usual
```
For an example, refer to [`example.typ`](https://github.com/linhduongtuan/VNUHCM-typst-poster/blob/master/examples/example.typ). The default dimensions are `36in` in width and `24in` in height.
# License
This template is licensed under the [MIT License](https://github.com/linhduongtuan/VNUHCM-typst-poster/blob/master/LICENSE).
### For further reference:
- *If you want to learn how to create a thesis template, please refer to [my other repository](https://github.com/linhduongtuan/BKHN-Thesis_template_typst).*
- *If you want to learn how to create presentation slides, please refer to [my other repository](https://github.com/linhduongtuan/DTU-typst-presentation).*
### Acknowledgement
- I make changes to and improve something in my repository based on the reference in [this repository](https://github.com/pncnmnp/typst-poster).
|
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/leipzig-glossing/0.1.0/README.md | markdown | Apache License 2.0 | # Leipzig Glossing in Typst
`leipzig-glossing` is a [Typst](https://github.com/typst/typst) library for
creating interlinear morpheme-by-morpheme glosses according to the [Leipzig
glossing rules](https://www.eva.mpg.de/lingua/pdf/Glossing-Rules.pdf).
The canonical repository for this project is on the [Gitea
instance](https://code.everydayimshuflin.com/greg/typst-lepizig-glossing). The
repository is also [mirrored on
Github](https://github.com/neunenak/typst-leipzig-glossing/). Bug reports and
code contributions are welcome from all users.
Run `typst compile leipzig-gloss-examples.typ` in the root of the repository to
generate a pdf file with examples and documentation. This command is also
codified in the accompanying [justfile](https://github.com/casey/just) as `just
build-example`.
The definitions intended for use by end users are the `#gloss` and
`#numbered_gloss` functions.
## Example
An example gloss entry:
```
#import "@preview/leipzig-glossing:0.1.0: gloss"
#gloss(
header_text: [Hittite (Lehmann 1982:211)],
source_text: ([n=an], [apedani], [mehuni],[essandu.]),
morphemes: ([#smallcaps[conn]=him], [that.#dat.#sg], [time.#dat.#sg], [eat.they.shall]),
translation: "They shall celebrate him on that date",
)
```
# License
This library uses the MIT license; see `LICENSE.txt`.
|
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/deco_03.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test highlight.
This is the built-in #highlight[highlight with default color].
We can also specify a customized value
#highlight(fill: green.lighten(80%))[to highlight].
|
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/visualize/line.typ | typst | // Test lines.
--- line-basic ---
#set page(height: 60pt)
#box({
set line(stroke: 0.75pt)
place(line(end: (0.4em, 0pt)))
place(line(start: (0pt, 0.4em), end: (0pt, 0pt)))
line(end: (0.6em, 0.6em))
}) Hello #box(line(length: 1cm))!
#line(end: (70%, 50%))
--- line-positioning ---
// Test the angle argument and positioning.
#set page(fill: rgb("0B1026"))
#set line(stroke: white)
#let star(size, ..args) = box(width: size, height: size)[
#set text(spacing: 0%)
#set line(..args)
#set align(left)
#v(30%)
#place(line(length: +30%, start: (09.0%, 02%)))
#place(line(length: +30%, start: (38.7%, 02%), angle: -72deg))
#place(line(length: +30%, start: (57.5%, 02%), angle: 252deg))
#place(line(length: +30%, start: (57.3%, 02%)))
#place(line(length: -30%, start: (88.0%, 02%), angle: -36deg))
#place(line(length: +30%, start: (73.3%, 48%), angle: 252deg))
#place(line(length: -30%, start: (73.5%, 48%), angle: 36deg))
#place(line(length: +30%, start: (25.4%, 48%), angle: -36deg))
#place(line(length: +30%, start: (25.6%, 48%), angle: -72deg))
#place(line(length: +32%, start: (8.50%, 02%), angle: 34deg))
]
#align(center, grid(
columns: 3,
column-gutter: 10pt,
..((star(20pt, stroke: 0.5pt),) * 9)
))
--- line-stroke ---
// Some simple test lines
#line(length: 60pt, stroke: red)
#v(3pt)
#line(length: 60pt, stroke: 2pt)
#v(3pt)
#line(length: 60pt, stroke: blue + 1.5pt)
#v(3pt)
#line(length: 60pt, stroke: (paint: red, thickness: 1pt, dash: "dashed"))
#v(3pt)
#line(length: 60pt, stroke: (paint: red, thickness: 4pt, cap: "round"))
--- line-stroke-set ---
// Set rules with stroke
#set line(stroke: (paint: red, thickness: 1pt, cap: "butt", dash: "dash-dotted"))
#line(length: 60pt)
#v(3pt)
#line(length: 60pt, stroke: blue)
#v(3pt)
#line(length: 60pt, stroke: (dash: none))
--- line-stroke-dash ---
// Dashing
#line(length: 60pt, stroke: (paint: red, thickness: 1pt, dash: ("dot", 1pt)))
#v(3pt)
#line(length: 60pt, stroke: (paint: red, thickness: 1pt, dash: ("dot", 1pt, 4pt, 2pt)))
#v(3pt)
#line(length: 60pt, stroke: (paint: red, thickness: 1pt, dash: (array: ("dot", 1pt, 4pt, 2pt), phase: 5pt)))
#v(3pt)
#line(length: 60pt, stroke: (paint: red, thickness: 1pt, dash: ()))
#v(3pt)
#line(length: 60pt, stroke: (paint: red, thickness: 1pt, dash: (1pt, 3pt, 9pt)))
--- line-stroke-field-typo ---
// Error: 29-56 unexpected key "thicknes", valid keys are "paint", "thickness", "cap", "join", "dash", and "miter-limit"
#line(length: 60pt, stroke: (paint: red, thicknes: 1pt))
--- line-stroke-bad-dash-kind ---
// Error: 29-55 expected "solid", "dotted", "densely-dotted", "loosely-dotted", "dashed", "densely-dashed", "loosely-dashed", "dash-dotted", "densely-dash-dotted", "loosely-dash-dotted", array, dictionary, none, or auto
#line(length: 60pt, stroke: (paint: red, dash: "dash"))
--- line-bad-point-array ---
// Test errors.
// Error: 12-19 point array must contain exactly two entries
#line(end: (50pt,))
--- line-bad-point-component-type ---
// Error: 14-26 expected relative length, found angle
#line(start: (3deg, 10pt), length: 5cm)
|
|
https://github.com/An-314/Notes-of-DSA | https://raw.githubusercontent.com/An-314/Notes-of-DSA/main/hash.typ | typst | = 词典Dictionary
我们希望可以通过*寻对象访问*键值对,这就是字典的想法。
```cpp
template <typename K, typename V> //key、 value
struct Dictionary {
virtual Rank size() = 0;
virtual bool put( K, V ) = 0;
virtual V* get( K ) = 0;
virtual bool remove( K ) = 0;
};
```
字典定义了接口(如获取、设置、删除键值对),而下面的散列和跳表提供了这些接口的具体实现。
哈希表通常提供更快的查找、插入和删除操作,但它们不支持有序键的高效操作。跳表提供有序存储和范围查询的能力,但在某些操作上可能不如哈希表高效。
== 散列Hashtable
对于在很大范围$R$中的词条,但是往往只会用到其中的一小部分$N$,如果利用数组就会造成空间的浪费,因此可以利用散列。通过Hash函数,将关键字映射到表中一个位置来访问记录,以加快查找速度。
利用桶(规模为$M$)直接存放或间接指向一个词条。利用散列函数$"hash"(k)$将词条关键码$k$转换为桶号,然后将词条存入桶中。如果两个词条的关键码相同,就会发生冲突,可以通过开放定址法、链地址法、再散列法等解决冲突。
这样一来,查找、插入、删除的*期望*复杂度是$O(1)$。
=== 冲突
冲突是指两个不同的关键码被映射到同一个桶中。当装填因子$lambda=N/M$越大,冲突越多,查找效率越低。
如果数据集固定且已知,可以实现完美散列,关键码不存在冲突。一般而言,要选取合适的散列函数,使得冲突尽可能少。
== 散列函数Hash Function
散列函数的设计要求:
- 确定:对于同一个关键码,散列函数应该总是返回同一个值
- 快速:计算散列函数的时间应该尽可能短$O(1)$
- 满射:充分利用散列空间
- 均匀:散列函数应该尽可能地将关键码均匀地散列到各个桶中,避免聚集现象
=== 除余法
$ "hash"(k)=k\%M $
非理想随机的时候,$M$选取素数更好。
缺陷:
- 不论表长$M$怎么取,都有$"hash"(0)=0$
- 相邻关键码散列地址也相邻
=== MAD法:Multiply-Add-Divide
$ "hash"(k)=(a k+b)\%M $
=== 其他散列函数
- 数字分析:选取关键码中的一部分作为散列地址
- 平方取中法:取关键码平方后的中间几位作为散列地址
- 折叠法:将关键码分割成几部分,然后将这几部分叠加起来作为散列地址
- 位异或法:将关键码的各个部分进行异或运算,得到的值作为散列地址
=== 随机数
伪随机数算法:`rand( x + 1 ) = [ a * rand( x ) ] % M //M素数, a % M != 0`
```cpp
unsigned long int next = 1; //sizeof(long int) = 8
void srand(unsigned int seed) { next = seed; } //sizeof(int) = 4 or 8
int rand(void) { //1103515245 = 3^5 * 5 * 7 * 129749
next = next * 1103515245 + 12345;
return (unsigned int)(next/65536) % 32768;
}
```
从而
$"hash"("key") = "rand"("key") = ("rand"(0) a^"key") % M $
这样生成的结果是理想随机的。
=== hashCode与多项式法
比较好的一种由字符串生成散列地址的方法是多项式法,即将字符串看作是一个多项式,然后将多项式的值作为散列地址。
```cpp
static Rank hashCode( char s[] ) {
Rank n = strlen(s); Rank h = 0;
for ( Rank i = 0; i < n; i++ ) {
h = (h << 5) | (h >> 27);
h += s[i];
} //乘以32,加上扰动,累计贡献
return h;
}
```
== 冲突解决:开放散列
开放散列是指当发生冲突时,不是将词条放入桶中,而是将词条放入其他的桶中。
=== 多槽位
将每个桶扩展为一个槽位数组,每个槽位存放一个词条。当发生冲突时,依次检查槽位,直到找到一个空槽位,然后将词条放入其中。如果槽位数组满了,就需要扩容。
缺点是空间浪费,并且仍有情况需要一直扩容,不可控。
=== 公共溢出区Overflow Area
开辟一块连续空间,发生冲突的词条都放入其中。查找时,先在桶中查找,如果没有,再在溢出区查找。同一个关键码给出的词条用指针串起来。
缺点是溢出区查找效率低。
=== 独立链Linked-List Chaining / Separate Chaining
将每个桶扩展为一个链表,每个槽位存放一个链表的头结点。当发生冲突时,将词条插入到链表中。查找时,先在桶中查找,如果没有,再在链表中查找。
缺点是空间未必连续分布、系统缓存很难生效,并且节点的动态分配和释放会带来额外的开销。
== 冲突解决:封闭散列
只要有必要,任何散列桶都可以接纳任何词条;为每个词条,都需事先约定若干备用桶,优先级逐次下降。沿试探链(Probe Sequence/Chain),逐个转向下一桶单元,直到命中成功,或者抵达一个空桶而失败。
=== 线性试探Linear Probing
一旦冲突,则试探后一紧邻的桶,直到命中(成功),或抵达空桶(失败)。
新增非同义词之间的冲突,数据堆积(clustering)现象严重。但试探链连续,数据局部性良好,通过装填因子,冲突与堆积都可有效控制。
*插入:*新词条若尚不存在,则存入试探终止处的空桶。
*懒惰删除:*若词条存在,则将其标记为“已删除”,而非立即删除,以免破坏试探链。(_空宅与故居_)
```cpp
template <typename K, typename V> int Hashtable<K, V>::probe4Hit(const K& k) {
int r = hashCode(k) % M; //按除余法确定试探链起点
while ( ( ht[r] && (k != ht[r]->key) ) || removed->test(r) )
r = ( r + 1 ) % M; //线性试探(跳过带懒惰删除标记的桶)
return r; //调用者根据ht[r]是否为空及其内容,即可判断查找是否成功
}
template <typename K, typename V> int Hashtable<K, V>::probe4Free(const K& k) {
int r = hashCode(k) % M; //按除余法确定试探链起点
while ( ht[r] ) r = (r + 1) % M; //线性试探,直到空桶(无论是否带有懒惰删除标记)
return r; //只要有空桶,线性试探迟早能找到
}
```
查找时,若遇到“已删除”标记,则继续试探下一桶。插入时,若遇到“已删除”标记,则将词条存入此处,而非继续试探下一桶。
*重散列:*装填因子过大时,重散列操作将桶数组容量倍增,同时将已有词条逐一移动到新桶中,以期平摊试探成本。
*填装因子的计算:*$lambda = N/M$,其中$N$为词条总数,$M$为桶数组容量。是一定要把懒惰删除词条减掉,才能统计真正有多少桶被占用了。
```cpp
template <typename K, typename V> //随着装填因子增大,冲突概率、排解难度都将激增
void Hashtable<K, V>::rehash() { //此时,不如“集体搬迁”至一个更大的散列表
int oldM = M; Entry<K, V>** oldHt = ht;
ht = new Entry<K, V>*[ M = primeNLT( 4 * N ) ]; N = 0; //新表“扩”容
memset( ht, 0, sizeof( Entry<K, V>* ) * M ); //初始化各桶
release( removed ); removed = new Bitmap(M); L = 0; //懒惰删除标记
for ( int i = 0; i < oldM; i++ ) //扫描原表
if ( oldHt[i] ) //将每个非空桶中的词条
put( oldHt[i]->key, oldHt[i]->value ); //转入新表
release( oldHt ); //释放——因所有词条均已转移,故只需释放桶数组本身
}
```
插入
```cpp
template <typename K, typename V> bool Hashtable<K, V>::put( K k, V v ) {
if ( ht[ probe4Hit( k ) ] ) return false; //雷同元素不必重复插入
int r = probe4Free( k ); //为新词条找个空桶(只要装填因子控制得当,必然成功)
ht[ r ] = new Entry<K, V>( k, v ); ++N; //插入
if ( removed->test( r ) ) { removed->clear( r ); --L; } //懒惰删除标记
if ( (N + L)*2 > M ) rehash(); //若装填因子高于50%,重散列
return true;
}
```
删除
```cpp
template <typename K, typename V> bool Hashtable<K, V>::remove( K k ) {
int r = probe4Hit( k ); if ( !ht[r] ) return false; //确认目标词条确实存在
release( ht[r] ); ht[r] = NULL; --N; //清除目标词条
removed->set(r); ++L; //更新标记、计数器
if ( 3*N < L ) rehash(); //若懒惰删除标记过多,重散列
return true;
}
```
=== 双向平方试探Quadratic Probing
试探链改成平方试探,即每次试探的步长为$1^2, 2^2, 3^2, \cdots$,而不是$1, 2, 3, \cdots$。这样可以避免线性试探中的堆积现象。但这样试探链不会遍历完全剩余系,$M$是素数的时候,只会有$ceil(M/2)$被取到。
为了可以遍历完全剩余系,取$M$是模4余3的素数,这样它的正负平方可以遍历完全剩余系。而模4余1的素数,它的正负平方只能遍历到一半。
== 桶排序Bucket sort
对于$(0,m]$的整数,可以借助散列表排序。
将他们存入散列表,然后依次遍历散列表,将非空桶中的词条按照关键码顺序输出。
也可以存在同义词,同义词再进行排序即可(每个桶表示一个区间,每次将元素插入对应的桶中)。同义词可以用链表储存。可以保存存入的次序,这对后面的基数排序有作用。这被称为*稳定性*。
=== 例:MaxGap
任意n个互异点均将实轴分为n-1段有界区间,其中的哪一段最长?
线性算法:
+ 找到最左点、最右点 $O(n)$
+ 将有效范围均匀地划分为$n-1$段($n$个桶) $O(n)$
+ 通过散列,将各点归入对应的桶 $O(n)$
+ 在各桶中,动态记录最左点、最右点 $O(n)$
+ 算出相邻(非空)桶之间的“距离” $O(n)$
+ 最大的距离即MaxGap
== 基数排序Radix Sort
词典排序(lexicographic order):自$k_1$到$k_t$(低位优先),依次以各域为序做一趟桶排序。
时间成本是$O(t(n+M))$,其中$M$是基数,$t$是关键码的个数。
```cpp
typedef unsigned int U; //约定:类型T或就是U;或可转换为U,并依此定序
template <typename T> void List<T>::radixSort( ListNodePosi<T> p, int n ) {
ListNodePosi<T> head = p->pred; ListNodePosi<T> tail = p;
for ( int i = 0; i < n; i++ ) tail = tail->succ; //待排序区间为(head, tail)
for ( U radixBit = 0x1; radixBit && (p = head); radixBit <<= 1 ) //以下反复地
for ( int i = 0; i < n; i++ ) //根据当前基数位,将所有节点
radixBit & U (p->succ->data) ? //分拣为前缀(0)与后缀(1)
insert( remove( p->succ ), tail ) : p = p->succ;
} //为避免remove()、 insert()的低效率,可拓展List::move(p,tail)接口, 将节点p直接移至tail之前
```
== 计数排序Counting Sort
基数排序中反复做的桶排序,亦属“小集合 + 大数据”类型,是否可以更快。计数排序可以优化基数排序中的桶排序。
仍以纸牌排序为例($n >> m =4$)。假设已按点数排序,以下(稳定地)按花色排序。
+ 经过分桶, 统计出各种花色的数量。
+ 自前向后扫描各桶,依次累加即可确定各套花色所处的秩区间。
+ 自后向前扫描每一张牌,对应桶的计数减一,即是其在最终有序序列中对应的秩。
该方法的时间复杂度是$O(n+m)$,但是需要额外的空间。
== 跳转表Skiplist
#figure(
image("fig\词典\1.png",width: 80%),
caption: "跳转表"
)
跳转表是一种特殊的链表,它的每个节点都有一个指向下一个节点的指针,也有一个指向下一层的指针。这样一来,可以在每一层中进行二分查找,然后跳转到下一层,再进行二分查找,直到最后一层。
跳转表的查找时间复杂度是$O(log n)$,插入和删除的时间复杂度是$O(log n)$。
先定义四联节点,包括前驱、后继、上邻、下邻。
```cpp
template <typename T> using QNodePosi = QNode<T>*; //节点位置
template <typename T> struct QNode { //四联节点
T entry; //所存词条
QNodePosi<T> pred, succ, above, below; //前驱、后继、上邻、下邻
QNode( T e = T(), QNodePosi<T> p = NULL, QNodePosi<T> s = NULL, QNodePosi<T> a = NULL, QNodePosi<T> b = NULL ) //构造器
: entry(e), pred(p), succ(s), above(a), below(b) {}
QNodePosi<T> insert( T const& e, QNodePosi<T> b = NULL ); //将e作为当前节点的后继、 b的上邻插入
};
```
由四联节点构成四联表,作为跳转表的一层。
```cpp
template <typename T> struct Quadlist { //四联表
Rank _size; //节点总数
QNodePosi<T> header, trailer; //头、尾哨兵
void init(); int clear(); //初始化、 清除
Quadlist() { init(); } //构造
~Quadlist() { clear(); delete header; delete trailer; } //析构
T remove( QNodePosi<T> p ); //删除p
QNodePosi<T> insert( T const & e, QNodePosi<T> p, QNodePosi<T> b = NULL );//将e作为p的后继、 b的上邻插入
};
```
从四联表和字典继承到跳转表。
```cpp
template < typename K, typename V > struct Skiplist : public Dictionary<K, V>, public List< Quadlist< Entry<K, V> >* > {
Skiplist() { insertAsFirst( new Quadlist< Entry<K, V> > ); }; //至少有一层空列表
QNodePosi< Entry<K, V> > search( K ); //由关键码查询词条
Rank size() { return empty() ? 0 : last()->data->size(); } //词条总数
Rank height() { return List::size(); } //层高,即Quadlist总数
bool put( K, V ); //插入(Skiplist允许词条重复,故必然成功)
V * get( K ); //读取
bool remove( K ); //删除
};
```
=== 性能
空间上,各层塔高符合几何分布:$P_i = (1/2)^i$,塔高的期望是$2$。故总空间复杂度为$O(n)$。
=== 插入与删除
先查询到插入的位置,在紧邻右边的位置建塔。
```cpp
template <typename K, typename V> bool Skiplist<K, V>::put( K k, V v ) {
Entry< K, V > e = Entry< K, V >( k, v ); //待插入的词条(将被同一塔中所有节点共用)
QNodePosi< Entry<K, V> > p = search( k ); //查找插入位置: 新塔将紧邻其右,逐层生长
ListNodePosi< Quadlist< Entry<K, V> >* > qlist = last(); //首先在最底层
QNodePosi< Entry<K, V> > b = qlist->data->insert( e, p ); //创建新塔的基座
while ( rand() & 1 ) { //经投掷硬币,若新塔需再长高, 则
/* ... 建塔 ... */
while ( p->pred && !p->above ) p = p->pred; //找出不低于此高度的最近前驱
if ( !p->pred && !p->above ) { //若该前驱是header,且已是最顶层,则
insertAsFirst( new Quadlist< Entry<K, V> > ); //需要创建新的一层
first()->data->header->below = qlist->data->header;
qlist->data->header->above = first()->data->header;
}
p = p->above; qlist = qlist->pred; //上升一层,并在该层
b = qlist->data->insert( e, p, b ); //将新节点插入p之后、 b之上
}
return true; //Dictionary允许重复元素,故插入必成功
} //体会:得益于哨兵的设置,哪些环节被简化了?
```
建塔时,每上升一层,都要重新组织指针,并且决定是否向上一层是随机的。
删除时,先查询到删除的位置,然后逐层删除。
```cpp
template <typename K, typename V> bool Skiplist<K, V>::remove( K k ) {
/* ... 1. 预备 ... */
QNodePosi< Entry<K, V> > p = search( k ); //查找目标词条
if ( !p->pred || (k != p->entry.key) ) return false; //若不存在,直接返回
ListNodePosi< Quadlist< Entry<K, V> >* > qlist = last(); //从底层Quadlist开始
while ( p->above ) { qlist = qlist->pred; p = p->above; } //升至塔顶
/* ... 2. 拆塔 ... */
do { QNodePosi< Entry<K, V> > lower = p->below; //记住下一层节点,并
qlist->data->remove( p ); //删除当前层节点,再
p = lower; qlist = qlist->succ; //转入下一层
} while ( qlist->succ ); //直到塔基
/* ... 3. 删除空表 ... */
while ( (1 < height()) && (first()->data->_size < 1) ) { //逐层清除
List::remove( first() );
first()->data->header->above = NULL;
} //已不含词条的Quadlist(至少保留最底层空表)
return true; //删除成功
} //体会:得益于哨兵的设置,哪些环节被简化了?
```
=== 查找
跳转表的查找从左边的塔顶开始,如果当前节点的后继是空,或者后继的关键码大于目标关键码,就向下一层。如果当前节点的后继的关键码等于目标关键码,就返回当前节点的后继。
```cpp
template <typename K, typename V> //关键码不大于k的最后一个词条(所对应塔的基座)
QNodePosi< Entry<K, V> > Skiplist<K, V>::search( K k ) {
for ( QNodePosi< Entry<K, V> > p = first()->data->header; ; ) //从顶层的首节点出发
if ( (p->succ->succ) && (p->succ->entry.key <= k) ) p = p->succ; //尽可能右移
else if ( p->below ) p = p->below; //水平越界时, 下移
else return p; //验证:此时的p符合输出约定(可能是最底层列表的header)
} //体会:得益于哨兵的设置,哪些环节被简化了?
```
比较复杂的是估算该过程的复杂度。
跳转分为横向跳转和纵向跳转。
先分析纵向跳转。对于跳表高度,随着$k$的增加,第$k$层为空的概率急剧上升$P(|S_k|=0)=(1-p^k)^n$。从而跳表高度的期望是$O(log n)$的,从而纵向跳转的期望是$O(log n)$的。
再分析横向跳转。可以注意到在同一水平列表中,横向跳转所经节点必然依次紧邻,而且每次抵达都是塔顶。塔的高度理想随机,沿同一层跳转的次数呈几何分布。从而每个高度横向跳转的期望是$O(1)$的。
综上,跳转表的查找时间复杂度是$O(log n)$。 |
|
https://github.com/lvignoli/typst-action | https://raw.githubusercontent.com/lvignoli/typst-action/main/tests/valid.typ | typst | MIT License | #set document(title: "Test file", author: "<NAME>")
= Test file
_Some_ *text*.
A function call: #lorem(20).
Math: $ a^2 + b^2 = c^2. $
|
https://github.com/rabotaem-incorporated/probability-theory-notes | https://raw.githubusercontent.com/rabotaem-incorporated/probability-theory-notes/master/utils/core.typ | typst | #import "../config.typ"
#import "@preview/cetz:0.2.0"
#import "@preview/finite:0.3.0": automaton
#let chapter_state = state("chapter", "")
#let clabel(name) = {
[
$zws$#label(name)
]
}
#let notes(
name: none,
short-name: none,
lector: none,
info: none,
document_body,
) = {
set document(author: "Rabotaem Inc.", title: name)
set page(
paper: "a4",
margin: 6%,
numbering: "1",
number-align: right + top,
header: [
#chapter_state.display(it => {
if it != "" {
stack(
spacing: .5em,
[
#it
],
line(length: 100%),
)
}
})
],
header-ascent: 2em,
footer: [
#counter(page).display(it => {
if it != 1 {
stack(
spacing: .5em,
line(length: 100%),
[
@start[#short-name]
#h(1fr)
#it
]
)
}
})
]
)
show outline.entry.where(
level: 1
): it => {
v(12pt, weak: true)
strong(it)
}
set text(
lang: "ru",
region: "ru",
size: 12pt,
)
set heading(
numbering: (..nums) => {
let res = ""
let skip = nums.pos().len() > 1
for i in nums.pos() {
if skip {
skip = false
} else {
res += str(i) + "."
}
}
return res
},
)
set enum(
numbering: "1.a)",
)
set math.equation(numbering: (..nums) => "")
show heading.where(level: 1): it => {
chapter_state.update(it.body.text)
[
#pagebreak(weak: true)
#it
]
}
show heading.where(level: 2): it => {
chapter_state.update(it.body.text)
it
}
show "≥": "⩾"
show "≤": "⩽"
[
#clabel("start")
#align(center + horizon)[
#text(
size: 30pt
)[
*#name*
]
#if lector != none {
v(
5%,
weak: true,
)
text(
size: 20pt,
)[
Лектор: #lector
]
}
]
#align(center + bottom)[
#text(
size: 18pt,
style: "italic",
weight: 500
)[
#info
]
]
//#set par(justify: true)
#outline(indent: true)
#document_body
]
}
#let last_theorem = state("last_theorem", none)
#let make_theorem(th_type, th_type_plural: none, color: white, highlight_color: none, glues_to: ()) = {
if highlight_color == none {
highlight_color = color.lighten(25%)
}
let typ-label = label
(name: none, label: none, plural: false, content, glue: false) => {
context {
let lt = last_theorem.at(here())
// [Value: #lt]
let th_label = query(selector(<end-of-last-th>).before(here()))
let last_th_page = if th_label.len() > 0 {
th_label.last().location().page()
} else {
-1
}
if (glue or lt in glues_to) and last_th_page == here().page() {
if not config.monochrome {
v(-0.4em)
} else {
v(-0.4em + 1pt)
}
}
}
last_theorem.update(th_type)
let th_type = th_type
if plural and th_type_plural != none {
th_type = th_type_plural
}
let th_content = {
if label != none and config.debug {
place(
top + left, dx: -0.2cm, dy: -0.25cm,
text(highlight_color.darken(20%), size: 0.7em, raw(label))
)
}
if name != none [
#let name_string = if type(name) == "string" {
name
} else if "text" in name.fields() {
name.text
} else {
""
}
#if name_string.starts-with(regex("(об |о |О |Об )")) [
#let name_string = name_string.replace("О ", "о ").replace("Об ", "об ")
*#th_type #name_string.*
] else [
*#th_type (#name).*
]
] else [
*#th_type.*
]
[#sym.space.hair #box()<end-of-last-th> #content]
}
let th_block = block.with(
outset: .4em,
inset: .4em,
width: 100%,
fill: if not config.monochrome { color.lighten(90%) } else { none },
stroke: if not config.monochrome {
(left: highlight_color, )
} else {
(
left: highlight_color + 2pt,
right: highlight_color + 1pt,
top: highlight_color + 1pt,
bottom: highlight_color + 1pt,
)
},
)
if label != none {
[
#{
metadata(highlight_color)
th_block(th_content)
}
#typ-label("_THEOREM_" + label)
]
} else {
th_block(th_content)
}
}
}
#let sublabel(lbl) = {
if config.debug {
place(text(red, size: 0.6em, raw(lbl)))
}
[#[]#label("_THEOREM_SUBLABEL_" + lbl)]
}
#let show-references(content) = {
show metadata: it => {
if not config.references { return it }
if type(it.value) != dictionary { return it }
if "id" not in it.value { return it }
if it.value.id != "rf" { return it }
let args = it.value.args
return super(context {
let lbl = args.pos().at(0)
let sublabel = args.pos().at(1, default: none)
let lbl = label("_THEOREM_" + lbl)
let label-instance = query(lbl)
if label-instance.len() != 1 {
if config.strict-refs {
panic("Label " + str(lbl) + " have been seen " + str(label-instance.len()) + " times")
} else {
return none
}
}
label-instance = label-instance.first()
let color = label-instance.children.first().value
if sublabel != none {
let sublabels = query(
selector(label("_THEOREM_SUBLABEL_" + sublabel))
.after(label-instance.location())
)
if sublabels.len() != 0 {
sublabel = sublabels.first()
link(
sublabel.location(),
box(circle(radius: 2pt, stroke: none, fill: color))
)
} else {
panic("couldn't find sublabel " + str(lbl) + ":" + str(sublabel))
}
} else {
link(
lbl,
box(circle(radius: 2pt, stroke: none, fill: color))
)
}
})
}
content
}
#let rf(..args) = metadata((id: "rf", args: args))
#let TODO(content) = rect(
stroke: red + 2pt,
fill: red.lighten(90%),
width: 100%, inset: 0.2cm,
)[
#text(weight: "extrabold")[TODO: ]
#sym.space.hair
#if content != [] { content } else [ Дописать ]<todo-like>
]
#let th_color = if not config.monochrome { red } else { luma(20%) }
#let oth_color = if not config.monochrome { blue } else { luma(30%) }
#let def_color = if not config.monochrome { orange } else { luma(40%) }
#let proof_color = if not config.monochrome { gray } else { luma(80%) }
#let th = make_theorem("Теорема", color: th_color)
#let lemma = make_theorem("Лемма", color: th_color)
#let pr = make_theorem("Предложение", color: oth_color)
#let follow = make_theorem(
"Следствие", color: oth_color,
th_type_plural: "Следствия",
glues_to: ("Теорема", "Лемма", "Доказательство")
)
#let def = make_theorem("Определение", color: def_color)
#let prop = make_theorem("Свойство", th_type_plural: "Свойства", color: oth_color)
#let props = prop.with(plural: true)
#let notice = make_theorem("Замечание", highlight_color: proof_color,
th_type_plural: "Замечания")
#let remind = make_theorem("Напоминание", highlight_color: proof_color)
#let example = make_theorem("Пример", th_type_plural: "Примеры",
highlight_color: def_color.lighten(25%), glues_to: (
"Теорема", "Лемма", "Предложение", "Следствие",
"Свойство", "Свойства", "Замечание", "Определение",
"Доказательство", "Обозначение",
))
#let examples = example.with(plural: true)
#let exercise = make_theorem("Упражнение", highlight_color: proof_color)
#let denote = make_theorem("Обозначение", color: def_color)
#let proof = make_theorem("Доказательство", highlight_color: proof_color,
glues_to: (
"Теорема", "Лемма", "Предложение", "Следствие",
"Свойство", "Свойства", "Замечание"
)
)
#import "shortcuts.typ": *
#let ticket(name, step-fn: none, post-step-fn: none) = if config.enable-ticket-references {
let ticket-counter = counter("ticket")
let width = 0.7cm
let offset = 0.5cm
let color = if not config.monochrome { purple.lighten(60%) } else { gray }
if step-fn != none {
ticket-counter.update(step-fn)
} else {
ticket-counter.step()
}
block(above: 0.2cm, below: 0.2cm,
rect(stroke: none, width: 100%, par[
#align(end, text(size: 0.75em, fill: color.darken(30%))[
Билет #ticket-counter.display();.
#name
])
#v(-0.9em)
#line(length: 100% + width + offset, stroke: (
paint: color,
dash: "dashed"
))
#place(dy: -1cm)[#hide(name)<ticket>]
#let tag = place(
dx: offset,
end,
)[
#place(polygon(
fill: color.lighten(70%),
stroke: color + 1pt,
(0pt, 0pt),
(0pt, width),
(width * 0.5, width * 1.5),
(width, width),
(width, 0pt),
))
#place(dy: width * 0.15, block.with(width: width)(
align(text(fill: color.darken(30%), weight: "bold")[
#text(size: 1.5em, ticket-counter.display())
#move(dy: -1.6em, text(size: 0.5em)[билет])
], center)
))
]
#context {
let target = query(<ticket-reference>)
if target.len() == 0 {
tag
} else {
link(<ticket-reference>, tag)
}
}
]
))
if post-step-fn != none {
ticket-counter.update(post-step-fn)
}
}
#let subgraph(label: [], domain: (), size: (10, 5), samples: 400, func) = align(center, cetz.canvas({
import cetz.plot: *
import cetz.draw: *
plot(name: "plot", axis-style: "school-book", size: size, x-tick-step: 1, y-tick-step: 0.1, {
add-fill-between(domain: domain, samples: samples, func, (x) => 0)
})
content(((0,-1), "-|", "plot.south"), label)
}))
|
|
https://github.com/jneug/typst-finite | https://raw.githubusercontent.com/jneug/typst-finite/main/cmd.typ | typst | MIT License | #import "@preview/t4t:0.3.2": is, assert, def
#import "@preview/cetz:0.1.1"
#import "./draw.typ"
#import "./layout.typ"
#import "./layout.typ": custom
#import "./util.typ": transpose-table, get-inputs, to-spec
/// Draw an automaton from a specification.
///
/// #arg[spec] is a dictionary with a specification for a
/// finite automaton. See above for a description of the
/// specification dictionaries.
///
/// The following example defines three states `q0`, `q1` and `q2`.
/// For the input `0`, `q0` transitions to `q1` and for the inputs `0` and `1` to `q2`.
/// `q1` transitions to `q0` for `0` and `1` and to `q2` for `0`. `q2` has no transitions.
/// #codesnippet[```typ
/// #automaton((
/// q0: (q1:0, q0:(0, 1)),
/// q1: (q0:(0, 1), q2:0),
/// q2: none
/// ))
/// ```]
///
/// #arg[inital] and #arg[final] can be used to customize the initial and final states.
/// #ibox[The #arg[inital] and #arg[final] will be removed in future
/// versions in favor of automaton specs.
/// ]
///
/// - spec (dictionary): Automaton specification.
/// - initial (string, auto, none): The name of the initial state. For #value(auto), the first state in #arg[spec] is used.
/// - final (array, auto, none): A list of final state names. For #value(auto), the last state in #arg[spec] is used.
/// - labels (dictionary): A dictionary with labels for states and transitions.
/// #example[```
/// #finite.automaton(
/// (q0: (q1:none), q1: none),
/// labels: (q0: [START], q1: [END])
/// )
/// ```]
/// - style (dictionary): A dictionary with styles for states and transitions.
/// - state-format (function): A function #lambda("string", ret:"content") to format state labels.
/// The function will get the states name as a string and should return the final label as #dtype("content").
/// #example[```
/// #finite.automaton(
/// (q0: (q1:none), q1: none),
/// state-format: (label) => upper(label)
/// )
/// ```]
/// - input-format (function): A function #lambda("array", ret:"content")
/// to generate transition labels from input values. The functions will be
/// called with the array of inputs and should return the final label for
/// the transition. This is only necessary, if no label is specified.
/// #example[```
/// #finite.automaton(
/// (q0: (q1:(3,0,2,1,5)), q1: none),
/// input-format: (inputs) => inputs.sorted().rev().map(str).join("|")
/// )
/// ```]
/// - layout (dictionary,function): Either a dictionary with (`state`: `coordinate`)
/// pairs, or a layout function. See below for more information on layouts.
/// #example[```
/// #finite.automaton(
/// (q0: (q1:none), q1: none),
/// layout: (q0: (0,0), q1: (rel:(-2,1)))
/// )
/// ```]
/// - ..canvas-styles (any): Arguments for #cmd-(module:"cetz")[canvas]
/// -> content
#let automaton(
spec,
initial: auto,
final: auto,
labels: (:),
style: (:),
state-format: label => {
let m = label.match(regex(`^(\D+)(\d+)$`.text))
if m != none {
[#m.captures.at(0)#sub(m.captures.at(1))]
} else {
label
}
},
input-format: inputs => inputs.map(str).join(","),
layout: layout.linear,
..canvas-styles,
) = {
spec = to-spec(spec, initial: initial, final: final)
// use a dict with coordinates as custom layout
if is.dict(layout) {
layout = custom.with(positions: (..) => layout)
}
cetz.canvas(
..canvas-styles,
{
import cetz.draw: set-style
import draw: state, transition
set-style(..style)
layout(
(0, 0),
{
for name in spec.states {
let label = labels.at(name, default: state-format(name))
state(
(),
name,
label: label,
initial: (name == spec.initial),
final: (name in spec.final),
..style.at(name, default: (:)),
)
}
},
)
// Transitions don't need to be layed out
for (from, transitions) in spec.transitions {
if is.dict(transitions) {
for (to, inputs) in transitions {
let name = from + "-" + to
// preapre inputs (may be a string or int)
if inputs == none {
inputs = ()
} else if not is.arr(inputs) {
inputs = str(inputs).split(",")
}
// prepare label
let label = labels.at(
name,
default: input-format(inputs),
)
if is.dict(label) and "text" not in label {
label.text = input-format(inputs)
}
// create transition
transition(
from,
to,
inputs: inputs,
label: label,
..style.at(name, default: (:)),
)
}
}
}
},
)
}
/// Displays a transition table for an automaton.
///
/// #arg[spec] is a dictionary with a specification for a
/// finite automaton. See above for a description of the
/// specification dictionaries.
///
/// The table will show states in rows and inputs in columns:
/// #example(```
/// #finite.transition-table((
/// q0: (q1: 0, q0: (1,0)),
/// q1: (q0: 1, q2: (1,0)),
/// q2: (q0: 1, q2: 0),
/// ))
/// ```)
///
/// #ibox[The #arg[inital] and #arg[final] will be removed in future
/// versions in favor of automaton specs.
/// ]
///
/// - spec (dictionary): Automaton specification.
/// - initial (string, auto, none): The name of the initial state. For #value(auto), the first state in #arg[states] is used.
/// - final (array, auto, none): A list of final state names. For #value(auto), the last state in #arg[states] is used.
/// - format (function): A function to format the value in a table column. The function takes a column index and
/// a string and generates content: #lambda("integer", "string", ret:"content").
/// #example[```
/// #finite.transition-table((
/// q0: (q1: 0, q0: (1,0)),
/// q1: (q0: 1, q2: (1,0)),
/// q2: (q0: 1, q2: 0),
/// ), format: (col, value) => if col == 1 { strong(value) } else [#value])
/// ```]
/// - format-list (function): Formats a list of states for display in a table cell. The function takes an array of state names and generates a string to be passed to #arg[format]:
/// #lambda("array", ret:"string")
/// #example[```
/// #finite.transition-table((
/// q0: (q1: 0, q0: (1,0)),
/// q1: (q0: 1, q2: (1,0)),
/// q2: (q0: 1, q2: 0),
/// ), format-list: (states) => "[" + states.join(" | ") + "]")
/// ```]
/// - ..table-style (any): Arguments for #doc("layout/table").
/// -> content
#let transition-table(
spec,
initial: auto,
final: auto,
format: (col, v) => raw(str(v)),
format-list: states => states.join(", "),
..table-style,
) = {
spec = to-spec(spec, initial: initial, final: final)
let table-cnt = ()
for (state, transitions) in spec.transitions {
table-cnt.push(format(0, state))
if is.dict(transitions) {
for (i, char) in spec.inputs.enumerate() {
let to = ()
for (name, label) in transitions {
if is.str(label) {
label = label.split(",")
}
label = def.as-arr(label).map(str)
if char in label {
to.push(format(i + 1, name))
}
}
table-cnt.push(format-list(to))
}
}
}
table(
columns: 1 + spec.inputs.len(),
fill: (c, r) => if r == 0 or c == 0 {
luma(240)
},
align: center + horizon,
..table-style,
[], ..spec.inputs.map(raw),
..table-cnt
)
}
/// Creates a deterministic finite automaton from a nondeterministic one by using powerset construction.
///
/// See #link("https://en.wikipedia.org/wiki/Powerset_construction")[the Wikipedia article on powerset construction] for further
/// details on the algorithm.
///
/// #arg[spec] is a dictionary with a specification for a
/// finite automaton. See above for a description of the
/// specification dictionaries.
///
/// - spec (dictionary): Automaton specification.
/// - initial (string, auto, none): The name of the initial state. For #value(auto), the first state in #arg[states] is used.
/// - final (array, auto, none): A list of final state names. For #value(auto), the last state in #arg[states] is used.
/// - state-format (function): A function to generate the new state names from a list of states.
/// The function takes an array of strings and returns a string: #lambda("array", ret:"string").
#let powerset(
spec,
initial: auto,
final: auto,
state-format: states => "{" + states.sorted().join(",") + "}",
) = {
spec = to-spec(spec, initial: initial, final: final)
let table = transpose-table(spec.transitions)
let (new-initial, new-final) = (
state-format((spec.initial,)),
(),
)
let powerset = (:)
let queue = ((spec.initial,),)
while queue.len() > 0 {
let cur = queue.remove(0)
let key = state-format(cur)
if key not in powerset {
powerset.insert(key, (:))
if cur.any(s => s in spec.final) {
new-final.push(key)
}
for inp in spec.inputs {
let trans = ()
for s in cur {
let s-trans = table.at(s)
if inp in s-trans {
trans += s-trans.at(inp)
}
}
trans = trans.dedup().sorted()
powerset.at(key).insert(inp, trans)
queue.push(trans)
}
}
i += 1
}
for (s, t) in powerset {
for (i, states) in t {
powerset.at(s).at(i) = state-format(states)
}
}
return to-spec(
transpose-table(powerset),
initial: new-initial,
final: new-final,
inputs: spec.inputs,
)
}
/// Adds a trap state to a partial DFA and completes it.
///
/// Deterministic automata need to specify a transition for every
/// possible input. If those inputs don't transition to another
/// state, a trap-state is introduced, that is not final
/// and can't be left by any input. To simplify
/// transition diagrams, these trap-states are oftentimes
/// not drawn. This function adds a trap-state to such a
/// partial automaton and thus completes it.
///
/// #example[```
/// #finite.transition-table(finite.add-trap((
/// q0: (q1: 0),
/// q1: (q0: 1)
/// )))
/// ```]
///
/// // >>> finite.add-trap((transitions: (q0: (q1: ())), inputs: (0,1))) == finite.to-spec((transitions: (q0: (TRAP:("0","1")), TRAP: (TRAP: ("0","1"))), inputs: ("0","1")))
///
/// - spec (dictionary): Automaton specification.
/// - trap-name (string): Name for the new trap-state.
#let add-trap(spec, trap-name: "TRAP") = {
spec = to-spec(spec)
let table = transpose-table(spec.transitions)
let trap-added = false
for (s, values) in table {
for inp in spec.inputs {
if inp not in values {
values.insert(inp, (trap-name,))
trap-added = true
}
}
table.at(s) = values
}
if trap-added {
table.insert(
trap-name,
spec.inputs.fold(
(:),
(d, i) => {
d.insert(i, (trap-name,))
return d
},
),
)
}
spec.at("transitions") = transpose-table(table)
return spec
}
/// Tests if a #arg[word] is accepted by a given automaton.
///
/// The result if either #value(false) or an array of tuples
/// with a state name and the input used to transition to the
/// next state. The array is a possible path to an accepting
/// final state. The last tuple always has #value(none) as
/// an input.
/// #example[```
/// #let aut = (
/// q0: (q1: 0),
/// q1: (q0: 1)
/// )
/// #finite.accepts(aut, "01010")
///
/// #finite.accepts(aut, "0101")
/// ```]
///
/// - spec (dictionary): Automaton specification.
/// - word (string): A word to test.
/// - format (function): A function to format the result.
#let accepts(
spec,
word,
format: states => states.map(((s, i)) => if i != none [
#s #box[#sym.arrow.r#place(top + center, dy: -88%)[#text(.88em, raw(i))]]
] else [#s]).join(),
) = {
spec = to-spec(spec)
let (transitions, initial, final) = (
spec.at("transitions", default: (:)),
spec.at("initial", default: none),
spec.at("final", default: ()),
)
transitions = transpose-table(transitions)
assert.not-empty(transitions)
assert.not-empty(initial)
assert.not-empty(final)
let traverse(word, state) = {
if word.len() > 0 {
let symbol = word.at(0)
if state in transitions {
if symbol in transitions.at(state) {
for next-state in transitions.at(state).at(symbol) {
let states = traverse(word.slice(1), next-state)
if states != false {
return ((state, symbol),) + states
}
}
}
}
return false
}
// Word accepted?
if state in final {
return ((state, none),)
} else {
return false
}
}
let result = traverse(word, initial)
if result == false {
return false
} else {
return format(result)
}
}
|
https://github.com/sergiodrd/analisis_real | https://raw.githubusercontent.com/sergiodrd/analisis_real/main/tarea1/main.typ | typst | #import "template.typ": *
#let title = "Tarea 1"
#let author = "<NAME>"
#let course_id = "MATE 5201"
#let instructor = "<NAME>"
#let semester = "C41"
#let due_time = "6 de septiembre"
#set enum(numbering: "a)")
#set math.equation(numbering: "(1)", supplement: "la ecuación")
#show: assignment_class.with(title, author, course_id, instructor, semester,
due_time)
#prob[
_(5 puntos) -- Demuestre que $sqrt(n + 1) + sqrt(n - 1)$ es un número
irracional, para todo $n in NN$._
== Prueba:
Por contradicción, suponga que $sqrt(n + 1) + sqrt(n - 1) in QQ$. Entonces,
$exists a in ZZ$ y $b in NN$ tal que:
$ a / b = sqrt(n + 1) + sqrt(n - 1) $
Sin perder la generalidad, suponga que $a / b$ está en su forma más simple.
Ahora:
$ &a / b = sqrt(n + 1) + sqrt(n - 1) \
==> &a^2 / b^2 = 2 n + 2 sqrt(n + 1) sqrt(n - 1) \
==> &a^2 = 2 n dot b^2 + 2 sqrt(n + 1) sqrt(n - 1) dot b^2 \
==> &a^2 - 2 n b^2 = 2 sqrt(n + 1) sqrt(n - 1) dot b^2 \
==> &a^4 - 4 n a^2 b^2 + 4 n^2 b^4 = 4 (n^2 - 1) b^4 = 4 n^2 b^4 - 4 b^4 \
==> &a^4 - 4 n a^2 b^2 = - 4 b^4 \
==> &a^4 = 4 n a^2 b^2 - 4 b^4 = 2 (2 n a^2 b^2 - 2 b^4) $ <enteros>
Como $(2 n a^2 b^2 - 2 b^4) in ZZ$, entonces $2 divides a^4$, lo cual implica
que $2 divides a$ (porque 2 es primo). Además:
$2 divides a ==> 4 divides a^4$.
Por otro lado, usando @enteros:
$ a^4 = 4 n a^2 b^2 - 4 b^4
==> a^4 +4 b^4 = 4 n a^2 b^2
==> 4 b^4 = 4 n a^2 b^2 - a^4 $
Como $4 divides a^2$, entonces $exists c in ZZ$ tal que $a^2 = 4 c$.
Sustituyendo:
$ 4 b^4 = 16 n b^2 c - 16 c^2
==> b^4 = 4 n b^2 c - 4 c^2 = 2 (2 n b^2 c - 2 c^2) $
Como $(2 n b^2 c - 2 c^2) in ZZ$, entonces $2 divides b^4$, lo cual implica
que $2 divides b$ (porque 2 es primo).
Entonces $2 divides a$ y $2 divides b$, por lo tanto, $a / b$ no está en su
forma más simple. $bot$
$therefore sqrt(n + 1) + sqrt(n - 1) in.not QQ$
*MEP*
]
#prob[
_(5 puntos) -- Sean $A, B subset RR_+ := { x in RR | x gt.eq 0 }$ dos
conjuntos acotados superiormente, y sean \ $alpha := sup(A)$,
$beta := sup(B)$. Sea $C := { x y | x in A, y in B }$. Pruebe que C está
acotado superiormente, y que $sup(C) = alpha beta$._
== Prueba:
Tome $c in C$. Entonces $exists a in A$ y $b in B$ tal que $c = a b$. Como
$alpha = sup(A)$ y $beta = sup(B)$, entonces $alpha gt.eq a$ y $beta gt.eq b$.
Como $a, b, alpha, beta gt.eq 0$, entonces $alpha beta gt.eq a b = c$. Por
lo tanto, $alpha beta$ es una cota superior de $C$, y $C$ está acotado
superiormente. Ahora, por contradicción, suponga que $alpha beta eq.not
sup(C)$. Entonces $exists s in RR$ tal que $c lt.eq s lt alpha beta$
$forall c in C$. Note que: $ s gt.eq c forall c in C ==> a b forall a in
A, forall b in B $
Esto implica que
]
#prob[
_(5 puntos) -- Sea $P := { p "primo" }$. Demuestre que $P$ no está acotado
superiormente._
== Prueba:
Por contradicción, suponga que $P$ está acotado superiormente, entonces,
como $P eq.not nothing in RR$, por lo tanto, $exists s in RR$ tal que
$s = sup(P)$. Ahora tome $ p' = (product_(p in P)) + 1 $ y note que $p'$
no es divisible por algún $p in P$. Esto quiere decir que $p'$ es primo y
por lo tanto, \ $p' in P$. Pero $p' gt s$ (pues $p gt 1$ $forall p in P$),
entonces $s eq.not sup(P)$. $bot$
$therefore$ $P$ no está acotado superiormente.
*MEP*
]
#prob[
_(4 puntos) -- Sea $S subset RR$ un conjunto acotado superiormente, y sea
$k$ una cota superior para $S$. Si $k in S$, pruebe que $k = sup(S)$._
== Prueba:
Por contradicción, suponga que $k eq.not sup(S)$. Entonces $exists x in RR$
tal que $s lt.eq x lt k$ $forall s in S$. Pero \ $k in S$, por lo tanto,
$k lt.eq x lt k$. $bot$
$therefore k = sup(S)$.
*MEP*
]
#prob[
_(3 puntos c.u.) -- Sea $b gt 1$ un número real fijo._
1. _Sean $m, p in ZZ, n, q in NN$. Si $r = m / n = p / q$, pruebe que
$(b^m)^(1 / n) = (b^p)^(1 / q)$. \
Entonces definimos $b^r = (b^m)^(1 / n)$._
== Prueba:
Por contradicción, suponga que $(b^m)^(1 / n) eq.not (b^p)^(1 / 1)$. Sin
pérdida de generalidad, suponga que \ $(b^m)^(1 / n) gt (b^p)^(1 / q)$.
Entonces:
$ &(b^m)^(1 / n) gt (b^p)^(1 / q) \
==> &b^m gt ((b^p)^(1 / q))^n \
==> &b^(m q) gt (((b^p)^(1 / q))^n)^q \
==> &b^(m q) gt (((b^p)^(1 / q))^q)^n \
==> &b^(m q) gt (b^p)^n \
==> &b^(m q) gt b^(p n) \
==> &m q gt p n \
==> &m / n gt p / q $ $bot$
$therefore b^r$ está bien definido.
*MEP*
2. _Demuestre que $b^(r+s) = b^r b^s$ $forall r, s in QQ$._
== Prueba:
Si $r = m / n$ y $s = p / q$ para $m, p in ZZ$ y $n, q in NN$, entonces:
$ b^(r + s) &= b^(m / n + p / q) \
&= b^(m / n) b^(p / q) \
&= b^((m q + n p) / (n q)) \
&= (b^(1 / (n q)))^(m q + n p) \
&= (b^(1 / (n q)))^(m q) (b^(1 / (n q)))^(n p) \
&= b^(m / n) b^(p / q) \
&= b^r b^s $
*MEP*
3. _Dado $x in RR$, definimos $K_x := { b^t | t in QQ, t lt x }$. Demuestre
que si $r in QQ$, entonces \ $b^r = sup(K_r)$. Luego, definimos
$b^x = sup(K_x)$._
== Prueba:
4. _Pruebe que $b^(x + y) = b^x b^y$ $forall x, y in RR$._
== Prueba:
Considere el conjunto $K_x K_y = { alpha beta | alpha in K_x, beta in
K_y }$ y note que:
$ sup(K_x K_y) = sup(K_x) sup(K_y) $ por el resultado demostrado en clase.
Además:
$ K_x K_y &= { b^t b^s | t, s in QQ, t lt x, s lt y } \
&= { b^(t + s) | t, s in QQ, t lt x, s lt y } \
&= { b^(t + s) | t, s in QQ, t + s lt x + y } \
&= { b^r | r in QQ, r lt x + y } \
&= K_(x + y) $ (todo racional se puede expresar como la suma de dos
racionales).
Por lo tanto:
$ b^(x + y) &= sup(K_(x + y)) \
&= sup(K_x K_y) \
&= sup(K_x) sup(K_y) \
&= b^x b^y $
*MEP*
]
#prob[
_(4 puntos) -- Si $x, y in CC$, pruebe que $abs(abs(x) - abs(y)) lt.eq
abs(x - y)$._
== Prueba:
$ abs(x - y)^2 &= (x - y) overline((x - y)) \
&= (x - y) (overline(x) - overline(y)) \
&= x overline(x) - y overline(x) - overline(y) x + y overline(y) \
&= abs(x)^2 - y overline(x) - overline(y overline(x)) + abs(y)^2 \
&= abs(x)^2 - 2 Re(y overline(x)) + abs(y)^2 \
>.eq abs(x)^2 - 2 abs(y overline(x)) + abs(y)^2 \
&= abs(x)^2 - 2 abs(x) abs(y) + abs(y)^2 \
&= (abs(x) - abs(y))^2 $
$ ==> &(abs(x) - abs(y))^2 lt.eq abs(x - y)^2 \
==> &abs(abs(x) - abs(y)) lt.eq abs(x - y) $
*MEP*
]
#prob[
_(5 puntos) -- Sea $z in CC$, tal que $abs(z) = 1$. Calcule el valor de
$abs(1 + z)^2 + abs(1 - z)^2$. Justifique completamente su respuesta._
== Cálculo:
$ abs(1 + z)^2 + abs(1 - z)^2 &= (1 + z) overline((1 + z)) + (1 - z)
overline((1 - z)) \
&= (1 + z) (1 + overline(z)) + (1 - z) (1 - overline(z)) \
&= 1 + overline(z) + z + z overline(z) + 1 - overline(z) - z - z
overline(z) \
&= 2 + 2 z overline(z) = 2 + 2 abs(z)^2 = 2 + 2 (1)^ 2 = 4 $
$therefore abs(1 + z)^2 + abs(1 - z)^2 = 4$
*MEP*
]
|
|
https://github.com/gvallinder/KTHThesis_Typst | https://raw.githubusercontent.com/gvallinder/KTHThesis_Typst/main/README.md | markdown | MIT License | Unofficial Typst template for a KTH PhD Thesis, based on the [Latex template](https://www.overleaf.com/latex/templates/kth-phd-thesis-template-2024/kzrmpmhymhxq) by <NAME>.
|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/055%20-%20Murders%20at%20Karlov%20Manor/005_Episode%205%3A%20Chains%20of%20Expectation.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Episode 5: Chains of Expectation",
set_name: "Murders at Karlov Manor",
story_date: datetime(day: 11, month: 01, year: 2024),
author: "<NAME>",
doc
)
The afternoon air was bright and crisp as the detective and the escaped fugitive made their way along a shadow-swamped street, flanked on either side by looming buildings that somehow managed to look more sinister than architecture could explain. Etrata moved with quick economy, her feet making no sound on the cracked cobblestones. Proft's tread was heavier.
For all that they walked side by side, there was a distance between them, like the Dimir vampire was unsure about the company she kept. She kept slanting glances at Proft, a frown tugging at the corners of her mouth as she chewed on the questions she wasn't ready to ask quite yet.
"You say this is the last place you remember being before you woke up at the party," said Proft, his tone mild, almost disinterested. Etrata hadn't known him long, but she could tell that tone for the trick it was. People would be eager to explain, to help him understand why he was wrong to dismiss them so easily. It was simply one of the more visible tools in a deep, deep toolbox.
And even knowing it for what it was, she found the urge to explain rising in her chest. "Not quite," she said. "We're almost there."
"I must admit, I'm not as familiar with the Dimir-controlled parts of the city as I ought to be," said Proft. "The Azorius are rarely welcome here, and now that I'm with the Agency, we get surprisingly few calls to investigate in Dimir territory. We don't enforce the law. We just help people answer the questions they can't answer on their own. Do those who fall under Dimir's protection not ask questions?"
"Not if they know what's good for them," said Etrata, stopping next to an apparently blank stretch of wall. She looked meaningfully at Proft. "This is where a gentleman averts his eyes."
"I am nothing if not a gentleman," said Proft, turning his back ostentatiously.
It was a gesture of good faith so vast it nearly took Etrata's breath away. Freeing her had been a surprise; insisting on accompanying her to retrace what she remembered of her steps before the party had been more in line with her expectations. Of course he wasn't just going to let her go. Not with a dead guild leader and a mystery to be solved.
She raised her hands and let them dance across the seemingly ordinary brick wall, tapping the mortar here, pressing against the stone there. It was a complex pattern, years of practice allowing her to complete it in seconds. With a weary grinding sound, a section of the wall slightly smaller than an ordinary door shifted and slid inward, creating a crack large enough for her to wedge her hand inside.
She didn't stop tapping as she slid her fingers into the gap, completing the part of the pattern that would keep the door from slamming shut on her hand. With a second groan, the door swung fully open, revealing a narrow wooden hall with splintery floorboards, light shining through a single cobweb-encrusted skylight.
"You can look now," she said.
Proft turned, clearly unsurprised by the appearance of a secret entrance. "I appreciate your cooperation with my investigation," he said.
"Of course I'm cooperating." She took a few steps into the hall and stopped, beckoning for him to follow, even though she had barely gone far enough to leave sufficient room.
Proft raised his eyebrows and stepped through. Etrata took a step back, and the door slammed shut with a resonant crunching sound. Proft jumped, turning to look behind himself.
"Izzet work?" he asked.
"Originally, although the builders are long dead; no one knows about this entrance but me. If someone manages to follow me here and slip through the door before it closes, as soon as I step #emph[off] the pressure plate in the floor, they'll learn why that was a bad decision," she said, tone mild.
"Fair enough." Proft moved to follow as she started walking again, heading for a less aggressive-looking door at the far end of the hall. "What do you mean, of course you're cooperating? Many wouldn't, innocent or not."
"I don't remember #emph[going] to that party, much less getting ready for it," said Etrata. "Where did I get the clothes I was wearing when they arrested me? There may be a dead member of the Selesnya Conclave stuffed in a box somewhere, waiting to be found, and if that's so, I don't remember killing them either."
"Do you remember everyone you've killed?"
"Yes," she snapped. "I'm a #emph[professional] . I don't kill for free, and I don't forget the dead. I won't pretend to have some high-minded reason for doing the work I do—I'm good at it, I enjoy it well enough, I like getting paid—but I'm an assassin, not a murderer. The guild doesn't look kindly on unsanctioned hits, which means I'm not just in trouble with the Azorius, I'm in the bad books of the House as well. What I still don't understand is why you're helping me."
"Ah," said Proft. "That's a simple matter. Right now, you represent the most interesting puzzle set before me since the invasion. Most of the questions put to the Agency have easy answers. They come quickly. We turn over a few rocks, and there the solution is, ready to be unveiled. You, however. A trained Dimir assassin kills a guild leader—"
"Allegedly," said Etrata.
"—allegedly kills a guild leader in a manner out of keeping with her profession and known kills, then flees the scene in a frankly clumsy way, without sufficiently covering her trail? That's enough to make no sense all on its own. Couple that with you lacking any memory of the event or the party itself? It becomes genuinely fascinating." Proft watched as she unlocked the door. "I have a bit of a reputation for continuing to dig long past the point where it would have been polite, or politic, to stop. It's gotten me into trouble before."
"It's going to get you in trouble this time, too, if the Azorius find out what you've done," said Etrata, pushing the door open to reveal a surprisingly spacious room. She began to step inside and stopped as Proft held up a hand, palm out.
"Yes?" she asked.
"Are there any more little surprises for people who come here without your consent?"
"No. No one's ever made it this far, and I prefer not to need to be on my guard when I'm heading for bed."
"Then, if you would allow me, I would prefer to see the scene in its current, undisturbed condition."
Etrata raised an eyebrow. "Be my guest."
"Thank you." Proft smiled as he moved past her. "Cheer up, Etrata. We have a mystery to solve!"
Etrata didn't look nearly as pleased by the idea as he did.
The room itself seemed to be a combination workshop and bedroom, with half the space dedicated to the tools of her trade—weapons, vials of toxins, racks of disguises—and half containing her bed, everyday wardrobe, and a small table where she presumably took her meals. Everything was impeccably clean. Everything except for the surface of the bedside table.
Proft stopped there, frowning. "Do you customarily apply cosmetics in bed?"
"What? No. Do people do that?"
"Hmm. Do you take any medicines in the form of a yellow-gray dust? Perhaps something to help you sleep?"
"No. In my profession, a drugged sleep is the last one you'll ever have."
"Then please come over here, carefully, and disturb nothing—unless you have a small jar prepared for poison that can be repurposed for collecting evidence. I'm afraid I was unable to request a proper investigator's kit while orchestrating your escape."
Etrata crossed from the door to the workbench, grabbing a jar before moving to join Proft by the bed. Once there, she paused, following his gaze to the bedside table. There, dusted across the wood and onto the nearby pillowcase, was a fine yellowish-gray powder.
"I've never seen that before," she said.
"I suspected as much. Do you have a knife?"
Etrata managed not to roll her eyes as she handed him both the jar and a knife he was #emph[sure] she hadn't been carrying when he released her from custody. Ah, well. If an assassin couldn't acquire a knife without being seen, they presumably wouldn't be an assassin for very long. Carefully avoiding any direct contact with the powder, he scraped as much of it as he could into the open jar before sealing it firmly.
He held the knife out to Etrata, gripping one side of the hilt. "I would clean this thoroughly before using it for any purpose—even murder—and do the same for this table and all the bedding. I don't know what this substance is, but I know it isn't anything I've seen before. Given the situation as it currently exists, I would theorize it has something to do with your missing time, and the actions taken therein."
"But how did it get here?" asked Etrata. She took the knife by the other side of the hilt, whipping it across the room to embed in the wall.
"That is an excellent question," he said, holding the jar up to study its contents through the glass. "Shall we move on to answering it?"
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
After the invasion, the citizens of Ravnica had learned to take the threat of contamination seriously. Etrata left without any of her belongings, saying she could get a change of clothes in another bolt hole—one that didn't come with the risk of mysterious powder worked into the seams.
She took the lead as they walked back down the hall, and Proft followed, careful to put his feet where hers had been. They were almost to the door when Etrata heard a thump and a strangled squeak from behind her. That was all the indication she needed of an attack in progress.
For a moment, she considered continuing on her way. Few people knew about this particular hidey-hole: any one of them could have had their own grudge against Proft, and if the detective were to mysteriously perish, there would be no one left who knew how she had escaped Azorius custody. She could walk out that door and disappear without a trace.
Disappear into a city that thought she was a murderer, that would stop at nothing to see her apprehended, all because she'd allowed the only person who believed her innocence to die. With a frustrated sigh, Etrata turned, pulling two more knives from inside her shirt, and leapt for the fight behind her.
It wasn't a "fight" so much as an assault: Proft was on the ground, a figure dressed in red and black crouching over him, a knife in either hand. He had his arms up to protect his face and throat, and he was already bleeding from several shallow cuts by the time Etrata barreled into the figure and knocked them away, sending them several feet down the dimly lit hall.
#figure(image("005_Episode 5: Chains of Expectation/01.png.jpg", width: 100%), caption: [Art by: <NAME>], supplement: none, numbering: none)
The attacker recovered quickly, refocusing on Etrata. Etrata matched them move for move, careful to keep herself between the figure and the fallen Proft.
Finally, in a puzzled tone, the figure said, "Etrata?"
Etrata stopped, straightening. She knew that voice. "Massacre Girl?"
"No one told me #emph[you] were going to be here."
"This is my place. Where else would I be?"
"I don't know. Azorius custody?"
"I'm out," said Etrata flatly, not mentioning Proft's role in making that happen. If her fellow assassins believed she could escape from an Azorius prison, well, she wasn't going to disabuse them.
The two began to circle in the close confines of the hall, Proft now between them, saying nothing, but staring into the shadows with wide eyes.
"I'm sure you understand why that was unexpected."
"About as unexpected as you here, in my hideaway, attacking my guests. How did you get in here, anyway?"
Massacre Girl was good but off her guard: she couldn't stop herself from glancing upward.
Etrata swallowed a groan. "The skylight? I just had the traps on that reinforced last season!"
"Heavy storms. You should have checked your tripwires for signs of decay."
"Oh, for …"
"That's a rookie mistake." Massacre Girl stopped circling, the painted red grin slashed across her pallid face still luridly visible in the gloom. "Like I said, I didn't think you'd be here. I wouldn't have taken the job if I'd known you were out."
"What's the job?"
"They didn't pay for secrecy, so. I was supposed to kill the man who caught you. Leave his body as a warning to the Agency to stay out of guild business. But if he's yours …"
"Yeah. He's mine," said Etrata firmly. "I'm helping him find out who really killed Zegana."
Massacre Girl looked surprised. "You mean it wasn't you?"
"Have you ever known me to be that sloppy?"
"Only when it comes to securing skylights," Massacre Girl said and cackled at her own joke. The knives in her hands vanished back into her clothing. "Sorry about the confusion. They didn't pay me the friends and family rate."
"They never do," said Etrata, putting her own knives away. "We good?"
"We're good. Door unlocked?"
"Yeah, let yourself out."
"See you when you clear your name," said Massacre Girl before turning her attention on Proft. "Sorry."
"About attempting to kill me?" he asked, all wounded pride and confusion.
"No, about failing. It looks bad for both of us." She grinned abruptly, a flash of white teeth through her painted red smile. "There's always next time." She turned then, walking down the hall and vanishing out the door to the street.
Etrata offered Proft her hand, levering him up off the floor. "You okay?"
"She didn't cut deeply," he said. "I've had worse."
"You're lucky whoever sent her hired a Rakdos," she said. "Golgari and Dimir assassins use a lot more poisons." When Proft looked alarmed, she laughed. "Don't worry about it. If she'd poisoned her knives, it would have been with a blood thinner to make the arterial spray prettier, and you'd already be bleeding out."
"Was that a friend of yours?" he asked, beginning to gather his dignity around himself once again.
"A colleague. She does good work. So buck up. Our association is already increasing your value."
"I'm sure that will be very gratifying when I'm dead," he said and sighed. "Now come along. We shouldn't lurk where there might be assassins waiting."
"Where are we going, anyway?"
"To see an old friend of mine—not associated with the Agency, and hence witheringly unlikely to turn us in—who might be able to shed some light on what we've found." Proft untensed his shoulders, returning to his normal position of easy self-confidence. "Shall we away?"
"Just don't get attacked again. I can't call in too many favors for you," said Etrata.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
When last Kaya had seen Vitu-Ghazi, the great living guildhall had been dormant, so deeply damaged by the God-Eternals that even the mighty city-tree had been unable to sustain itself. She had known at the time that Vitu-Ghazi was not dead; if the guildhall had actually been destroyed in the battle, Selesnya's mourning would have been enough to tear the plane apart. Still, she hadn't been there to see the city-tree assume its new form, and as she and Kellan set off to follow Judith's parting instruction, she had to wonder what they would find.
What they found was a road leading into one of the city's rare park systems and a carriage driver who stopped when the road did, at the edge of a vast, rocky moor that seemed to stretch all the way to the horizon. "Sorry, sir and ma'am," said the driver, twisting around to address them through the small window behind him, "but this is as far as we can go."
"You could have said as much when we told you where we were going," said Kaya, moving to get out of the carriage.
"I could have, yeah," he agreed, smiling tightly as Kellan got out and dropped their fare into his hand. Looking at Kaya, the driver tapped the Orzhov seal on his taxi license. "And you could have been here when the Phyrexians came. Seems we all could have done a little better, don't you think?"
He flicked the reins to turn his dromads and drove off, leaving Kaya and Kellan standing by the side of the road. Kaya glared after him. A dozen sharp replies gathered on her tongue, and she swallowed them all unspoken. He had been rude, but he hadn't been #emph[wrong] , and her penance wasn't finished yet. Fixing a smile on her face, she turned to Kellan.
"Looks like we're walking from here," she said. "I don't know this park. Never been here before. Do you know the way to Vitu-Ghazi?"
"I do," he said. "Listen, Kaya—I'm sorry about <NAME>. I know you two were friends."
"We weren't friends," Kaya said. Her relationship with Teysa seemed entirely too complicated to sum up like that.
"Well. You were close. I just wanted to say I'm sorry."
"Did you come here alone?" she asked. "To Ravnica, I mean."
His eyes popped open in surprise. "How did you know?"
"Come on, kid. Give me some credit," she said. "So. Did you come here alone?"
"No," Kellan said after a moment. "A friend of my own came with me."
"Where is she now?"
Kaya braced herself for another sad story—the Multiverse seemed so full of them these days. Instead, to her surprise, Kellan grinned. "Oh, she's in the Rubblebelt, I think. Something about an ancient ruin? She doesn't really sit around waiting for #emph[my ] adventures to happen."
Kaya blinked. She knew that this walking ball of sunshine should be annoying her by now, but somehow, she didn't mind it. "Huh. Well, Ezrim's going to expect us to check in sooner than later, so we need to keep moving. Come on."
She gestured grandly for him to lead the way, and after another moment of frowning at her, he started walking, striking out across the moor in a straight line. Kaya followed close behind, stepping around rocks rather than phasing through them. For the moment, she wanted to exist on Ravnica, walking on Ravnican ground, solid and alive as Teysa would never be again.
Ugh. She couldn't think that way. She wrenched her thoughts back to the present, watching Kellan walk, staying close behind. The young agent hadn't complained about any of the strange things he'd been asked to do today. Visiting the Rakdos, now heading for Vitu-Ghazi: none of this could be ordinary for him.
"What's Vitu-Ghazi doing all the way out here?" she asked.
Kellan glanced back at her. "This park is part of the Conclave's holdings. After the invasion, the guildhall was weak and needed to be semi-dormant for a little while to recover its strength," he said. "Mat'Selesnya told Trostani that Vitu-Ghazi needed space to put down new root structures if it wanted to return to its former strength, and she moved the guildhall here. It's going to take a long time, but this was deemed the best place for Vitu-Ghazi to reconnect with the plane and properly recover."
"Hmm," said Kaya. She had never put that much thought into the lengths a tree the size and power of Vitu-Ghazi would have to go to survive on a plane as urbanized as Ravnica, where every inch of dirt was deeded and exploited for the needs of the city. It made sense that the Selesnya would have tucked away a few oases of whatever had been here before the city came, using them as living batteries for situations like this one.
As if there had ever been a situation like this one before. If not for the damage done by the God-Eternals, even the Phyrexians might not have been able to harm Vitu-Ghazi enough to compel the tree to enter a period of dormancy. This was all uncharted territory.
The moor was beautiful, in its wild, improbably pastoral way. Rocks jutted out of the earth here and there, forming jagged obstacles in their path, and mixed brush in greens and yellows covered the ground, some topped with tiny flowers, others bristling with thorns. Kaya tried to concentrate on where she was putting her feet rather than dwelling on the things she couldn't change.
A howl split the air. Kellan stopped walking. Kaya did the same, moving so that the two of them were standing back to back. "What was that?" she asked.
"I don't know," said Kellan.
"Very encouraging," she said. "Like the energy."
Kellan's reply was cut off by a second howl, this one from substantially closer. Kaya turned toward the sound, finally able to get a direction on it, and felt her entire body try to tense and relax at the same time. A massive white wolf was loping toward them, legs eating up the ground at an impossible pace as it closed, mouth open to reveal a full set of jagged, vicious-looking teeth.
"Wolf," said Kellan in a strangled tone.
"Yup," said Kaya.
"You sound way too calm about this."
"I know that wolf," said Kaya.
"Will that keep it from #emph[eating] us?"
Kaya paused. "Hard to say," she allowed, after a moment's consideration. She drew her daggers from where they rested against her hips. "Don't attack first, but feel free to defend yourself."
Kellan still looked dubious, even as he pulled what looked like two small baskets from his own belt. His hands fit neatly inside, and the woven latticework of the "baskets" lit up with elemental light before producing two short, curving swords.
Kaya raised her eyebrows, looking impressed. "Nice," she said. "Now remember. Defense only."
The wolf continued running until it was five or six feet away, then skidded to a stop and began to circle them, snarling. It seemed more interested in keeping them where they were than in attacking.
"How are you so calm?" hissed Kellan.
"I told you, I know this wolf," said Kaya. "His name is Voja. He won't hurt us unless he decides we're a threat."
"So why is he here?"
"I'm guessing we'll know in a minute."
A piercing whistle rang out across the moor. Voja stopped circling and raised his head, ears perked up as he turned toward the sound. He didn't move away from them, however, and quickly returned his attention to the cornered investigators.
Kaya and Kellan remained where they were, still standing back to back when an elf in green and silver armor came loping across the moors to meet them. How he'd been able to get that close without being seen was anyone's guess: magic, most likely, although not a kind Kaya herself knew.
He stopped next to the wolf, setting a hand on Voja's shoulder.
Kaya bowed her head respectfully. "Tolsimir," she said.
#figure(image("005_Episode 5: Chains of Expectation/02.png.jpg", width: 100%), caption: [Art by: <NAME>], supplement: none, numbering: none)
"We weren't expecting visitors today," he said.
"Inspector Kellan and I are investigating the matter of Zegana's death," said Kaya. "It was suggested that we visit Vitu-Ghazi and refer to a passage in the original Guildpact. We intended no disrespect; I was unaware that notice was required to visit the guildhall."
"Precautions have been put in place after what happened to Zegana," said Tolsimir. "I have heard rumor that she may not be the only guild leader to have been harmed—you might look within your own guild, Planeswalker Kaya."
News of Teysa's death was spreading that fast? Kaya managed to suppress her surprise, barely, and only nodded. "Not my guild anymore," she said. "May we continue our journey?"
"I'll see you to the doors," said Tolsimir. Hand still resting on Voja's shoulder, he began to walk. Kaya and Kellan sheathed their weapons and followed him.
Quickly, Vitu-Ghazi appeared before them, having previously been concealed by the curvature of the land. Kaya stared.
The towering guildhall had reconfigured itself as it came to rest in the open moor. Formerly a tall tree cupping a grand city, it was now a tangle of roots draped around and across what looked like a remote country manor—modest in comparison to what it had been before, although still grand enough to rival Karlov Manor. Kaya knew the edifice couldn't be more than a year old, but it managed to carry the impression of having been there before, wood weathered by the passage of time, windows drooping slightly at the corners as if they could no longer hold themselves entirely open.
A single trunk still stood, taking the form of a gnarled oak that stood higher than the house itself, shading the roof with its branches, and roots broke the soil all around the foundation, making it as uneven and rippled as the living sea.
Tolsimir smirked as he looked at her, judging her reaction. "Like Ravnica itself, Vitu-Ghazi may be transformed, but still, the city-tree stands. This way. Trostani will receive you."
The doors swung open as the group approached, apparently responding to their presence, and they continued inside, through the vaulted entrance hall and past a guild checkpoint into a smaller, cozier receiving room. The walls were lined with bookshelves clustered with volumes of Ravnican history, and at the center of the room, another oak tree grew. No—not another. The same oak. There was only one tree, after all, and it was the tree outside and the tree inside and the manor itself.
Kaya, who had beheld the true World Tree of Kaldheim and the twisted Invasion Tree of New Phyrexia, caught her breath, awed despite herself as the three largest branches of the oak began to twist and move. Seamlessly, they became three women, seemingly human from the waist up, sinuously bending branches from the waist down. Three dryads, each one an individual, and collectively the singular entity through which the Worldsoul of Ravnica was said to speak.
Kaya inclined her head. "Trostani," she said. "We have come to consult the original Guildpact, if you would allow it."
"Of course," said one of the dryads that made up the being known as Trostani. This was the one called Ses, the dryad of order and the rightmost body. "Our roots tell us you seek to serve the investigation, that you will find the person responsible for targeting our fellows."
"We are honored to assist." It took Kaya a moment to realize that this was Cim, the dryad of harmony; she was on the left side of the thick branch from which they all grew. That was new. "We are told your former guild's leader has left us as well."
"Teysa's death will be avenged," said Kaya stiffly.
"Like all the deaths while you were gone?" asked Oba, the dryad of life. Her sisters turned on her, the three normally united dryads twining around one another as they returned to their usual accord. Oba was, Kaya noted, the central body now. Did that correspond to her influence on the tripart being? #emph[Life, triumphant in the aftermath? ] She couldn't have said either way.
Oba was still frowning when they returned their mutual attention to their guests.
"Tolsimir will show you to the Guildpact," said Cim. "It has always been Selesnya's purpose to preserve the history of Ravnica. Here, in this new configuration, we are able to do so in a somewhat more accessible way. Anything you need to know, you should be able to find it here."
That seemed to be their dismissal: without another word, Tolsimir turned to leave the room, and Kaya and Kellan had little choice but to follow.
"Has Trostani seemed different to you lately?" Kaya asked once they were outside the room and halfway down the hall.
"She's still adjusting to the new shape of Vitu-Ghazi," said Tolsimir. "The wind is different so low to the ground. There's much to get used to. Do you only need the original Guildpact?"
#figure(image("005_Episode 5: Chains of Expectation/03.png.jpg", width: 100%), caption: [Art by: <NAME>], supplement: none, numbering: none)
"That was all we were told to look for," said Kaya. "We may ask to see more, if it sends us in a new direction."
"Very well. This way." He led them into a smaller room, an oak podium at the center. A bubble of magical force surrounded an open book. It faded when he waved his hand, leaving the book unprotected for them to read. "I'll be with Trostani if you need me."
Kaya and Kellan exchanged a look before she approached the podium, stepping up behind it and skimming her fingers down the page. It was open to the table of contents.
"Judith could have been more helpful about what, specifically, we're consulting," she said sourly.
"The Rakdos rarely seem inclined to assist with anything resembling an official investigation, even if it would help them," said Kellan. "Whatever we're supposed to be looking for won't be about Judith, but it might be about her guild?"
"That would make sense." Kaya checked the page again, then flipped deeper into the book, heading for the section on the establishment of the Cult of Rakdos.
Aloud, she read, "'The Cult's purpose is to be twofold: to serve the people of Ravnica, and to placate the demon Rakdos through blood and through fire.' Grim, but not news. 'They shall satisfy their hungers as they see fit, and in so doing, shall keep Rakdos satisfied. We hope, by binding the guild to him, that he will find a greater purpose than destruction.' Then there's a bunch about specific duties ascribed to the guild, positions members are expected to willingly assume, how much chaos they're allowed to cause before the Senate gets involved—none of this is new. Why would Judith want us to see it?"
"The book seems too large to be just the Guildpact," said Kellan. "Is there anything else in there?"
"There's some history at the back of each section, explaining decisions that were made during the founding so that future keepers of the Guildpact can understand them better," Kaya flipped forward again, pausing a few pages later. "'It is the hope of the founders that, by binding the demon Rakdos to a people of his own, we can prevent his continuing to instill murderous rage in the citizens of Ravnica. This disruptive pastime has resulted in random slaughter and rampages, with even the meekest of people turning on their kin without warning or due cause—'"
Slowly, Kaya looked up. "Didn't Etrata say she didn't remember killing Zegana?" she asked.
Kellen nodded. "Would Judith really implicate her own parun?" he asked, voice unsteady.
"To save her own skin? She might." Kaya stepped away from the book, mouth set in a grim line. "We need to report this to Ezrim as soon as possible."
|
|
https://github.com/fuchs-fabian/typst-template-aio-studi-and-thesis | https://raw.githubusercontent.com/fuchs-fabian/typst-template-aio-studi-and-thesis/main/template/assets/assets.typ | typst | MIT License | // Hier können deine eigenen Assets stehen |
https://github.com/mariuslb/thesis | https://raw.githubusercontent.com/mariuslb/thesis/main/content/03-methodik.typ | typst | = Methodik
== Datenerhebung
In diesem Kapitel wird erläutert wie Fahrdaten erhoben werden, die in einem
darauffolgenden Schritt aggregiert und analysiert werden, um die Aussagen der Hypothesen H1 und H2 anhanddessen zu bewerten.
=== Zeitliche und räumliche Abgrenzung
Im Zeitraum von 4. - 6. März 2024 wurden in Hamburg
Fahrten mit einem Elektrofahrzeug und einem Verbrennerfahrzeug
aufgezeichnet. Dafür wurde eine vordefinierte Route mit gleichem Start- und Endpunkt gewählt, welche bei parallelem Start von beiden Autos mehrfach pro Tag abgefahren und damit aufgezeichnet wurde.
#figure(
image("../img/map.png", width: 80%),
caption: [Route der Vergleichsfahrten in Hamburg],
)
=== Testfahrzeuge
Für die Vergleichsfahrten sind zwei Kompaktklassenfahrzeuge ausgewählt worden, jeweils ein Elektrofahrzeug und ein Verbrennerfahrzeug. Da dies bei einem Mietwagenanbieter erfolgte, war bis vor Mietbeginn nicht genau festgelegt, welches Fahrzeugmodell zur Verfügung stehen würde. Bei den schlussendlich zur Verfügung stehenden Fahrzeugen handelt es sich um einen Opel Mokka E und einen VW Golf 8.
Die für die Aggregation mithilfe der ISO 23795-1:2022 bzw. des LCMM-Systems nötigen technischen Datenfelder der jeweiligen Fahrzeuge sind in der folgenden Tabelle aufgeführt:
#figure(
caption: figure.caption(
position: top,
[Übersicht über Fahrzeuge]
),
table(
columns: (40%, 30%, 30%),
inset: 10pt,
table.header(
[], [*Opel Mokka E*], [*VW Golf 8*]
),
[*Treibstoff*], [Elektrisch], [Diesel],
[*Masse*], [1543 kg], [1384 kg],
[*Luftwiderstandskoeffizient*], [0,32], [0,27],
[*Querschnittsfläche*], [2,27 m^2], [2,2 m^2],
[*Effizienz*], [74 %], [28 %],
[*Treibstoff-Emissions-Faktor*],[-], [2,37 kg/l],
[*Rollwiderstandskoeffizient*], [0,007], [0,007],
[*Stillstandsverbrauch*], [-], [0,6 l/h],
)
)
*Hinweis:* Der Effizienzparameter gibt den Wirkungsgrad des Antriebsstrangs an, und ist für eine genaue Abschätzung des Energieverbrauchs erforderlich. Die beiden genannten Werte entsprechen den Standardwerten für Elektro- und Verbrennerfahrzeuge im LCMM-System.
=== Datenaufzeichnung
Die Datenerhebung der Fahrten für diese Untersuchung wurde mithilfe einer speziell für @lcmm entwickelten mobilen App durchgeführt, die in der Lage ist, detaillierte Fahrdaten im Sekundentakt aufzuzeichnen. Diese App wurde auf Smartphones installiert, welche sowohl im Golf 8 als auch im Mokka E während den Vergleichsfahrten ausgeführt wurde.
Die dadurch erfassten Daten umfassen eine Vielzahl von Parametern, die für die Analyse der Energieeffizienz und des Fahrverhaltens von entscheidender Bedeutung sind. Im Folgenden werden die wichtigsten aufgezeichneten Parameter detailliert beschrieben:
#table(
columns: (20%, 20%, auto),
inset: 10pt,
table.header(
[*Bezeichnung*], [*Datenfeld*], [*Beschreibung*]
),
[*Zeitstempel*], [*Time $[m s]$*],
[Jeder Datensatz enthält einen genauen Zeitstempel, der den Zeitpunkt der Aufzeichnung in Millisekunden seit dem 1. Januar 1970 (Unix-Zeit) angibt. Dies ermöglicht eine präzise Synchronisation und zeitliche Analyse der Fahrdaten.],
[*Geografische Koordinaten*], [Latitude, Longitude],
[Die genauen geografischen Positionen des Fahrzeugs werden mittels GPS erfasst. Diese Daten sind essenziell, um die zurückgelegte Strecke, die Route und spezifische Standortdaten zu bestimmen.],
[*Geschwindigkeit*], [*Speed $[m/s]$*],
[Die Geschwindigkeit des Fahrzeugs wird in Metern pro Sekunde gemessen. Diese Information ist notwendig, um Beschleunigungsmuster und die durchschnittliche Reisegeschwindigkeit zu analysieren.],
[*Zurückgelegte Distanz*], [*Distance $[m]$*],
[Die Distanz wird in Metern gemessen und gibt die Strecke an, die das Fahrzeug seit der letzten Aufzeichnung zurückgelegt hat.],
[*Höhe*], [*Altitude $[m]$*],
[Die Höhe über dem Meeresspiegel wird in Metern angegeben. Diese Daten sind besonders relevant für die Analyse von Fahrten in hügeligem oder bergigem Gelände, da Höhenunterschiede den Energieverbrauch beeinflussen können.],
[*Beschleunigung*], [*Acceleration $[m/s^2]$*],
[Die Veränderung der Geschwindigkeit pro Sekunde wird gemessen, um das Beschleunigungs- und Verzögerungsverhalten des Fahrzeugs zu analysieren.]
)
=== Testbedingungen
Um die Vergleichbarkeit der Fahrdaten sicherzustellen und Verzerrungen durch unterschiedliche Testbedingungen zu vermeiden, wurden folgende Testbedingungen festgelegt:
#table(
columns: (23%, auto),
inset: 10pt,
table.header(
[*Kriterium*], [*Beschreibung*]
),
[*Gleiche Routen*],
[Beide Fahrzeuge starteten und endeten an denselben Orten in Hamburg und folgten einer vordefinierten Route. Dies gewährleistet, dass die Fahrzeuge unter identischen geografischen und verkehrstechnischen Bedingungen getestet wurden.],
[*Zeitfenster*],
[Die Fahrten wurden an drei aufeinanderfolgenden Werktagen, dem 4. und 6. März 2024, durchgeführt. Die Testfahrten fanden von morgens bis abends statt, um die Auswirkungen unterschiedlicher Tageszeiten und Verkehrsdichten zu berücksichtigen und zu minimieren.],
[*Wetterbedingungen*],
[Durch die Auswahl von drei aufeinanderfolgenden Tagen wurde sichergestellt, dass die Witterungsverhältnisse vergleichbar waren, um externe Einflüsse auf den Fahrwiderstand und den Energieverbrauch zu minimieren.],
[*Fahrerverhalten*],
[Die Fahrer hielten sich an eine vorab festgelegte Fahrweise, die gleichmäßige Beschleunigungs- und Bremsmanöver sowie konstante Geschwindigkeiten auf bestimmten Streckenabschnitten vorsah.]
)
Insgesamt wurden während des Testzeitraums 30 Fahrten pro Fahrzeugtyp durchgeführt. Solche wiederholten Messungen können es ermöglichen, zufällige Schwankungen und Anomalien zu identifizieren und auszuschließen, wodurch die Datenbasis für die nachfolgende Analyse robuster und aussagekräftiger wird. (Quelle)
== Datenanalyse
Die Datenanalyse umfasst mehrere Schritte, um die Hypothesen H1 und H2 zu überprüfen und die Unterschiede zwischen Elektro- und Verbrennerfahrzeugen zu quantifizieren sowie die Abweichungen zwischen den WLTP-Normwerten und den realen Energieverbräuchen zu analysieren. Dies umfasst:
=== Analyse von Key Performance Indicators
Die Analyse der Key Performance Indicators (KPIs) ist ein wesentlicher Bestandteil der Untersuchung, um den Energieverbrauch und die Leistungsfähigkeit der Fahrzeuge zu bewerten. Dazu wurden die KPIs Energy Performance Index (EPI) und Acceleration Performance Index (API) berechnet und analysiert, um die Hypothese H1 zu überprüfen. Diese wurden ausgewählt, da sie den Gesamtenergie- und Beschleunigungsverbrauch vergleichbar machen, indem der Verbrauch in kWh pro 100 km pro Tonne gemessen wird @ISO.
=== Statistische Modellierung
Um die erhöhte Effizienz der Elektrofahrzeuge zu den Verbrennerfahrzeugen in diesem Testfall zu überprüfen, werden verschiedene Methoden und Modelle der Statistik bzw. im Bereich des Machinie Learning angewendet, um die Fahrdaten zu analysieren und die Hypothesen zu testen.
- *Regressionsanalyse:*
Lineare und multiple Regression zur Untersuchung der Zusammenhänge zwischen Fahrzeugtyp und Energieverbrauch sowie Beschleunigungsperformance.
- *ANOVA (Analysis of Variance):*
Zur Untersuchung der Unterschiede zwischen den beiden Fahrzeugtypen hinsichtlich des Energieverbrauchs. Dieses statistische Verfahren ermöglicht es, signifikante Unterschiede zu identifizieren und die Hypothesen zu überprüfen.
- *Random Forests:*
Ein weiterer Ensemble-Ansatz, der zur Verbesserung der Vorhersagegenauigkeit und zur Reduzierung von Overfitting eingesetzt wird. Dieses Modell ermöglicht es, die wichtigsten Einflussfaktoren auf den Energieverbrauch zu identifizieren und die Unterschiede zwischen den Fahrzeugtypen zu quantifizieren.
- *Gradient Boosting Machines (GBM):*
Ein Ensemble-Lernverfahren zur Vorhersage des Energieverbrauchs basierend auf den erhobenen Daten. Dadurch können komplexe Zusammenhänge und nichtlineare Effekte berücksichtigt werden und Rückschlüsse auf die Unterschiede zwischen Elektro- und Verbrennerfahrzeugen gezogen werden.
- *XGBoost:*
Ein hochperformantes Gradient Boosting Framework, das für die Modellierung komplexer Zusammenhänge in den Daten verwendet wird.
Durch die detaillierte Anwendung dieser vielen Methoden und Modelle wird eine fundierte und umfassende Analyse der Fahrdaten ermöglicht, die präzise Aussagen über die Energieeffizienz von Elektro- und Verbrennungsfahrzeugen unter realen Bedingungen liefert.
=== Vergleich mit WLTP-Normwerten
Um die Genauigkeit und Praxisnähe der WLTP-Normwerte zu bewerten, werden die realen Energieverbräuche der Fahrzeuge mit den standardisierten WLTP-Werten verglichen.
Dies umfasst einerseits die Einteilung der Fahrdaten in die verschiedenen WLTP-Kategorien wie Stadt, Überland und Autobahn, um die Verbräuche pro Kategorie zu berechnen und zu vergleichen. Andererseits erfolgt die Analyse der prozentualen Abweichungen zwischen den realen und normierten Verbrauchswerten sowie die Darstellung der Muster und Verteilungen der Verbrauchswerte in den verschiedenen Kategorien. Durch diesen Vergleich wird es möglich, die Unterschiede zwischen den realen und normierten Verbrauchswerten zu identifizieren und die Hypothese H2 zu überprüfen.
#pagebreak() |
|
https://github.com/Meisenheimer/Notes | https://raw.githubusercontent.com/Meisenheimer/Notes/main/README.md | markdown | MIT License | # 笔记/Notes
## 介绍/Introduction
大部分笔记来源于我本科以及研究生期间的课程,并由Typst排版。其中,我仅保留了(在我看来)常用的定义和定理,以便于我在需要时不需要关注证明等内容。
Most of the notes are from my undergraduate and postgraduate courses and written in Typst (https://typst.app/). There are only **useful** (in my opinion) definitions and theorems so that I can focus on coding or analysis instead of the proof.
你可以将这一讲义用于其他用途,*但我不保证其中的正确性*。
Please feel free if you want to use them, **but there's no guarantee of correctness.**
如果你发现了任何错误或有任何建议,可以通过<EMAIL>联系我。
Please let me know if there are bugs or suggestions, and my email is <EMAIL>.
|
https://github.com/cadojo/correspondence | https://raw.githubusercontent.com/cadojo/correspondence/main/src/vita/src/cv.typ | typst | MIT License | //
// Preamble
//
#import "experience.typ": *
#import "research.typ": *
#import "references.typ": *
#import "presentations.typ": *
#import "publications.typ": *
#import "teaching.typ": *
#import "education.typ": *
#import "projects.typ": *
#import "skills.typ": *
#import "socials.typ": *
#import "awards.typ": *
#import "../../rolo/rolo.typ": *
#let cv(
author: author(),
title: none,
date: datetime.today().display("[month repr:long] [year]"),
divider: true,
theme: black,
header: none,
footer: none,
body: stack(spacing: 1.25em, degrees(), researching(), teachings(), experiences(), publications(), presentations(), awards(), references()),
metadata
) = {
show heading.where(level: 1): set text(22pt, theme)
show heading.where(level: 2): set text(16pt, theme)
show heading.where(level: 3): set text(12pt)
set stack(spacing: 1em)
set text(font: "New Computer Modern", size: 10pt)
set par(justify: true)
let titleblock = if some(title) {
align(center, heading(level: 1, text(size: 22pt, title)))
if divider {
pad(top: 1em, line(length: 100%, stroke: 1pt + black))
}
if some(author) {
set text(rgb(75,75,75))
stack(dir: ltr, spacing: 1fr, authorblock(author))
}
} else {
align(center, heading(level: 1, text(size: 22pt, fullname(author.name))))
if divider {
pad(top: 1em, line(length: 100%, stroke: 1pt + black))
}
if some(author) {
set text(rgb(75,75,75))
stack(
dir: ltr,
spacing: 1fr,
align(left, address(author).join("\n")),
align(right, contact(author).join("\n")),
)
}
}
set page(
margin: 0.75in,
header: header,
header-ascent: 1em,
footer: if some(footer) { footer } else {
set text(rgb(75,75,75))
place(left, align(left, "Curriculum Vitae"))
place(right, align(right, counter(page).display("1 / 1", both: true)))
},
)
move(dy: -1em, titleblock)
show link: set text(theme)
metadata
stack(
dir: ttb,
body,
)
} |
https://github.com/Duolei-Wang/modern-sustech-thesis | https://raw.githubusercontent.com/Duolei-Wang/modern-sustech-thesis/main/template/configs/font.typ | typst | MIT License | // Font Size
#let Special-Large = 63pt
#let Special = 54pt
#let Initial = 42pt
#let Initial-Small = 36pt
#let No1 = 26pt
#let No1-Small = 24pt
#let No2 = 22pt
#let No2-Small = 18pt
#let No3 = 16pt
#let No3-Small = 15pt
#let No4 = 14pt
#let No4-Small = 12pt
#let No5 = 10.5pt
#let No6 = 7.5pt
#let No6-Small = 6.5pt
#let No7 = 5.5pt
#let No8 = 5pt
// Headings and paragraphs
// Framework of heading, text
// 黑体 HeiTi
#let FZHei = "FZHei-B01S"
#let SourceHei = "Source Han Sans SC"
#let MSHei = "simhei"
// 宋体 SongTi
#let FZSong = "FZShuSong-Z01S"
#let SourceSong = "Source Han Serif"
#let MSSong = "simsun"
// 仿宋 FangSong
#let GBFangSong = "FangSong_GB2312"
#let FZFangSong = "FZFangSong-Z02S"
#let MSFangSong = "simfang"
// 楷体 Kai
#let GBKai = "KaiTi_GB2312"
#let FZKai = "FZKai-Z03S"
#let MSKai = "simkai"
#set text(
font: "KaiTi"
)
// 全局字体选项
#let HeiTi = (
"Times New Roman",
SourceHei,
)
#let SongTi = (
"Times New Roman",
SourceSong,
)
#let FangSong = (
"Times New Roman",
FZFangSong,
)
#let KaiTi = (
"Times New Roman",
MSKai,
) |
https://github.com/ad-si/invoice-maker | https://raw.githubusercontent.com/ad-si/invoice-maker/master/examples/custom-language.typ | typst | ISC License | #import "../invoice-maker.typ": *
#show: invoice.with(
hourly-rate: 1,
issuing-date: "2024-03-24", // Must be set to not break tests
language: (
id: "es",
country: "ES",
recipient: "Destinatario",
biller: "Emisor",
invoice: "Factura",
cancellation-invoice: "Factura de Cancelación",
cancellation-notice: (id, issuing-date) => [
Como acordado, recibirá una nota de crédito
por la factura *#id* con fecha *#issuing-date*.
],
invoice-id: "ID de Factura",
issuing-date: "Fecha de Emisión",
delivery-date: "Fecha de Entrega",
items: "Ítems",
closing: "¡Gracias por la buena cooperación!",
number: "№",
date: "Fecha",
description: "Descripción",
duration: "Duración",
quantity: "Cantidad",
price: "Precio",
total-time: "Tiempo total de trabajo",
subtotal: "Total parcial",
discount-of: "Descuento de",
vat: "IVA de",
reverse-charge: "Inversión del Sujeto Pasivo",
total: "Total",
due-text: val =>
[Por favor, transfiera el dinero a la siguiente
cuenta bancaria antes de *#val*:],
owner: "Propietario",
iban: "IBAN",
),
biller: (
name: "<NAME>",
vat-id: "GB123456789",
iban: "GB29 NWBK 6016 1331 9268 19",
address: (
country: "United Kingdom",
city: "London",
street: "Abbey Road",
postal-code: "NW8 0AE",
),
),
recipient: (
name: "<NAME>",
vat-id: "GB987654321",
address: (
country: "United Kingdom",
city: "London",
street: "Baker Street",
postal-code: "W1U 6TJ",
)
),
items: (
(
date: "2024-03-20",
description: "Minimal amount of work",
price: 1,
),
),
styling: ( font: none ), // Explicitly use Typst's default font
)
|
https://github.com/Nenuial/fnchJury | https://raw.githubusercontent.com/Nenuial/fnchJury/main/_extensions/nenuial/se-doc/typst-template.typ | typst |
// This is an example typst template (based on the default template that ships
// with Quarto). It defines a typst function named 'article' which provides
// various customization options. This function is called from the
// 'typst-show.typ' file (which maps Pandoc metadata function arguments)
//
// If you are creating or packaging a custom typst template you will likely
// want to replace this file and 'typst-show.typ' entirely. You can find
// documentation on creating typst templates and some examples here:
// - https://typst.app/docs/tutorial/making-a-template/
// - https://github.com/typst/templates
#let article(
logo: none,
title: none,
subtitle: none,
authors: none,
date: none,
abstract: none,
abstract-title: none,
cols: 1,
margin: (x: 1.25in, y: 1.25in),
paper: "a4",
lang: "en",
region: "US",
flipped: false,
font: (),
fontsize: 11pt,
sectionnumbering: none,
toc: false,
toc_title: none,
toc_depth: none,
toc_indent: 1.5em,
doc,
) = {
set par(justify: true)
set text(lang: lang,
region: region,
font: font,
size: fontsize)
set page(
paper: paper,
margin: margin,
flipped: flipped,
numbering: "1/1",
number-align: bottom + right,
header: context {
if counter(page).get().first() == 1 {
box(width: 50%,
[#set text(fill: rgb("#00283c"), size: 8pt)
*SWISS EQUESTRIAN*\
#set text(fill: black)
Postfach 726, Papiermühlestrasse 40H, CH-3000 Bern 22\
#link("tel:0041313354343", "+41 (0)31 335 43 43"), #link("mailto:<EMAIL>", "<EMAIL>"), #link("https://www.swiss-equestrian.ch", "swiss-equestrian.ch")]
)
} else {
box(width: 33%, baseline: -1cm,
[#set text(fill: rgb("#00283c"), size: 8pt)
*SWISS EQUESTRIAN*\
#link("https://www.swiss-equestrian.ch", "swiss-equestrian.ch")
])
box(width: 33%, baseline: -1cm,
[#set text(weight: "bold")
#align(center,
[#title
#if subtitle != none [: #subtitle]
]
)])
box(width: 33%, baseline: -.5cm,
[#align(right, image(width: 1.5cm, logo))])
}}
)
place(
top + right,
dx: 0cm,
dy: -2.5cm,
image(width: 2.5cm, logo)
)
set heading(numbering: sectionnumbering)
if title != none {
align(center)[#block(width: 80%, inset: 1.5em)[
#text(weight: "bold", size: 2.3em,)[#upper(title)]
]]
}
if subtitle != none {
align(center)[#block(width: 80%)[
#text(weight: "bold", size: 1.8em,)[#subtitle]
]]
}
if authors != none {
let count = authors.len()
let ncols = calc.min(count, 3)
grid(
columns: (1fr,) * ncols,
row-gutter: 1.5em,
..authors.map(author =>
align(center)[
#author.name \
#author.affiliation \
#author.email
]
)
)
}
if date != none {
align(center)[#block(inset: 1em)[
#date
]]
}
if abstract != none {
block(inset: 2em)[
#text(weight: "semibold")[#abstract-title] #h(1em) #abstract
]
}
if toc {
let title = if toc_title == none {
auto
} else {
toc_title
}
block(above: 0em, below: 2em)[
#outline(
title: toc_title,
depth: toc_depth,
indent: toc_indent
);
]
}
v(1cm)
if cols == 1 {
doc
} else {
columns(cols, doc)
}
}
#set table(
inset: 6pt,
stroke: none
)
|
|
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/def_use/import_alias.typ | typst | Apache License 2.0 | #import "base.typ"
#base
#import "base.typ" as foo
#base, #foo |
https://github.com/DieracDelta/presentations | https://raw.githubusercontent.com/DieracDelta/presentations/master/polylux/book/src/themes/gallery/clean.typ | typst | #import "../../../../polylux.typ": *
#import themes.clean: *
#set text(font: "Inria Sans")
#show: clean-theme.with(
footer: [Author, institution],
short-title: [Short title],
logo: image("dummy-logo.png"),
)
#title-slide(
title: [Presentation title],
subtitle: [Presentation subtitle],
authors: ([Author A], [Author B], [Author C]),
date: [January 1, 1970],
watermark: image("dummy-watermark.png"),
)
#slide(title: [First slide title])[
#lorem(20)
]
#new-section-slide("The new section")
#slide(title: "Another slide")[
Note that you can see the section title at the top.
The rest of this slide will fill more than one page!
#lorem(100)
]
#focus-slide[
_Focus!_
This is very important.
]
|
|
https://github.com/jamesrswift/typst-chem-par | https://raw.githubusercontent.com/jamesrswift/typst-chem-par/main/CHANGELOG.md | markdown | MIT License | # Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### 0.0.1 (2023-10-29)
### Features
* added pseudo-elements ([6a9e3a5](https://github.com/JamesxX/typst-chem-par/commit/6a9e3a532bb31ce3d7489c122a38c95933472f5e))
* deuterated number e.g., Acetone-d6 ([52af69e](https://github.com/JamesxX/typst-chem-par/commit/52af69e65e3ad74280d3136085c435d1b0792845))
* greek constants and fischer dropcaps ([a9f3aaa](https://github.com/JamesxX/typst-chem-par/commit/a9f3aaafce6e94cf4daa32dae3e931f25a11a996))
* initial upload ([8277b93](https://github.com/JamesxX/typst-chem-par/commit/8277b9378e07396b5b7fbdfd3ee565a73799f9af))
### Bug Fixes
* fix display of N,N- stuff ([90108cb](https://github.com/JamesxX/typst-chem-par/commit/90108cbf0237473a81ab3374b01f321748fbc750))
|
https://github.com/bpkleer/typst-modern-acad-cv | https://raw.githubusercontent.com/bpkleer/typst-modern-acad-cv/main/lib.typ | typst | MIT License | // import fontawesome & academicons
#import "@preview/fontawesome:0.4.0": *
#import "@preview/use-academicons:0.1.0": *
// Functions from moderner-cv with changes
// link: https://github.com/DeveloperPaul123/modern-cv
// author DeveloperPaul123 (github)
// Function _cv-cols: setting style and table
// Arguments:
// - left: the content to be placed in the first column (Type: Any)
// - right: the content to be placed in the second column (Type: Any)
// - ..args: additional named arguments for customization
#let _cv-cols(left, right, ..args) = {
// Set the block style with no spacing below
set block(below: 0pt)
// Create a table with specified column widths and no border strokes
table(
columns: (1.12fr, 5fr), // Set column widths
stroke: none, // No border strokes
// Spread any named arguments
..args.named(),
// Insert the left and right content into the table
left,
right,
)
}
// Function cv-cols: Putting input into the table
// Arguments:
// - left-side: the content to be aligned to the right (Type: Any)
// - right-side: the content to be formatted as a paragraph with justified alignment (Type: Any)
#let cv-cols(left-side, right-side) = {
// Call the _cv-cols with aligned left-side and justified right-side parameters
_cv-cols(
// Align the left-side content to the right
align(right, left-side),
// Format the right-side content as a paragraph with justified alignment
par(right-side, justify: true),
)
}
// Function cv-entry: a single entry in the CV
// Arguments:
// - date: content,
// - title: content,
// - location: content, and
// - description (spread operator)
#let cv-entry(
date: [],
title: [],
location: [],
..description,
) = {
// Define elements to format the title and location, and include the spread description
let elements = (
// Make the title bold
strong(title),
// Make the location italicized
emph(location),
// Spread the description's positional arguments
..description.pos(),
)
// Call the cv-cols with the date and the joined elements as arguments
cv-cols(
date,
// Join the elements with a comma and a space
elements.join(", "),
)
}
// Function cv-two-items: two items in a row with title (left-1/right-1) and description (left-2/right-2)
// Arguments:
// - left-1: content for the second column, aligned left (Type: Any)
// - right-1: content for the third column, aligned left (Type: Any)
// - left-2: content for the fourth column, aligned left (Type: Any)
// - right-2: content for the fifth column, aligned left (Type: Any)
#let cv-two-items(left-1, right-1, left-2, right-2) = {
// Set the block style with no spacing below and 10em spacing between items
set block(below: 0pt, spacing: 10em)
// Create a table with specified column widths and no border strokes
table(
columns: (8.6em, 9em, 9em, 9em, 8em), // Set column widths
stroke: none, // No border strokes
// Align the table columns:
// First column aligned left but left empty
// Second column aligned left with left-1 content
// Third column aligned left with right-1 content
// Fourth column aligned left with left-2 content
// Fifth column aligned left with right-2 content
align(left, ""),
align(left, left-1),
align(left, right-1),
align(left, left-2),
align(left, right-2),
)
}
// Function _header macro: Creating the header
// Arguments:
// - metadata: the metadata object containing paths and personal information (Type: Object)
// - multilingual: object with multilingual entries
// - language: a string indicating the language to use for the subtitle (Type: String, default: "de")
#let _header(
metadata,
multilingual,
language: "de",
) = {
// Load multilingual data from a YAML file
// let multilingual = yaml(metadata.paths.i18n)
let main_color = rgb(metadata.colors.main_color)
let lightgray_color = rgb(metadata.colors.lightgray_color)
let gray_color = rgb(metadata.colors.gray_color)
// Initialize index to 0 for iteration
let index = 0
// Extract fields depending on language
// Arguments
// - dict: language dictionary of metadata.lang
// - field: specific entry from dict
let getFieldDict = (dict, field) => {
// Check if the language exists in fields and return the corresponding value
if field in dict.keys() {
return dict.at(field)
} else {
return ""
}
}
let subset = multilingual.lang.at(language)
let subtitle = getFieldDict(subset, "subtitle")
let title = []
// Get the title from metadata
if type(metadata.personal.name) == "array" {
if metadata.personal.split {
title = [
#text(size: 32pt, metadata.personal.name.at(0).split(", ").at(1))
#linebreak()
#text(size: 32pt, metadata.personal.name.at(0).split(", ").at(0), baseline: -10pt)
]
} else {
title = [
#text(size: 32pt, metadata.personal.name.at(0).split(", ").at(1))
#text(size: 32pt, metadata.personal.name.at(0).split(", ").at(0))
]
}
} else if type(metadata.personal.name) == "dictionary" {
if metadata.personal.split {
title = [
#text(size: 32pt, metadata.personal.name.firstname)
#linebreak()
#text(size: 32pt, metadata.personal.name.lastname, baseline: -10pt)
]
} else {
title = [
#text(size: 32pt, metadata.personal.name.firstname)
#text(size: 32pt, metadata.personal.name.lastname)
]
}
} else {
if metadata.personal.split {
title = [
#text(size: 32pt, metadata.personal.name.split(" ").at(0))
#linebreak()
#text(size: 32pt, metadata.personal.name.split(" ").at(1), baseline: -10pt)
]
} else {
title = [#text(size: 32pt, metadata.personal.name)]
}
}
// let title = metadata.personal.name
// if title.len() > 14 {
// text(size: 32pt, title.split(" ").at(0))
// linebreak()
// text(size: 32pt, title.split(" ").at(1))
// } else {
// text(size: 32pt, title)
// },
// Create a title stack with title and subtitle
let titleStack = stack(
dir: ttb,
spacing: 1em,
text(size: 32pt, title),
text(size: 24pt, subtitle, fill: gray_color),
)
// Initialize socialist as an empty array
let socialist = ()
// Iterate over each entry and field in metadata.personal.socials
for (entry, field) in metadata.personal.socials {
// Determine the icon type based on the 'set' attribute
let iconType = if field.at("set") == "fa" { fa-icon } else if field.at("set") == "ai" { ai-icon } else { continue }
// Get the icon and username
let icon = field.at("icon")
let username = field.at("username")
// Create a link based on the presence of 'prefix'
let textlink = if "prefix" in field.keys() {
field.at("prefix") + username
} else {
username
}
// Push the formatted icon and link to the socialist array
socialist.push(
[
// The icon as a clickable link
#iconType(icon, fill: main_color) #link(textlink)[#text(username, fill: gray_color)]
]
)
}
// Create a social block with the socialist array
let socialBlock = stack(
dir: ttb,
spacing: 0.5em,
..socialist
)
// Title and social stack
stack(
dir: ltr,
titleStack,
align(
right + top,
socialBlock,
)
)
}
// New functions
// Function _adresser: function to build name and date at the end
// Arguments:
// - metadata: The metadata object containing paths and personal information (Type: Object)
// - multilingual: object with multilingual entries
// - language: A string indicating the language to use for the date format (Type: String, default: "de")
#let _adresser(
metadata,
multilingual,
language: "de"
) = {
// Load the multilingual YAML file specified in the metadata paths
// let multilingual = yaml(metadata.paths.i18n)
// Create a vertical stack with the personal name and date
v(1fr, weak: false)
// Display the personal name from metadata
if type(metadata.personal.name) == "array" [
#metadata.personal.name.at(0).split(", ").at(1) #metadata.personal.name.at(0).split(", ").at(0)
] else if type(metadata.personal.name) == "dictionary" [
#text(metadata.personal.name.firstname) #text(metadata.personal.name.lastname)
] else [
[#text(metadata.personal.name)]
]
// Insert a line break
linebreak()
// Initialize the index to 0
let index = 0
// Iterate over each entry in the multilingual.lang collection
for entry in multilingual.lang {
// Check if the current language matches the language key at the current index
if language == multilingual.lang.keys().at(index) {
// Display the current date in the format specified for the current language
datetime.today().display(multilingual.lang.at(language).date-format)
// Since we found the matching language, break out of the loop
break
}
// Increment the index by 1 for the next iteration
index += 1
}
}
// Function modern-acad-cv: initiate CV
// Arguments:
// - metadata: the metadata object containing paths and personal information (Type: Object)
// - multilingual: object with multilingual entries
// - lang: a string indicating the language to use for the document (Type: String, default: "en")
// - font: the font to be used for the document (Type: String, default: "Fira Sans")
// - show-date: a boolean indicating whether to display the current date (Type: Boolean, default: true)
// - body: the main content of the CV (Type: Block)
#let modern-acad-cv(
metadata,
multilingual,
lang: "en",
font: ("Fira Sans", "Andale Mono", "Roboto"),
show-date: true,
body
) = {
// Set the page settings with specified paper size and margins
set page(
paper: "a4",
margin: (
top: 2.5cm,
bottom: 2.5cm,
left: 1.5cm,
right: 1.5cm,
),
footer: [
// Align the footer text to the right
#set align(right)
// Set the footer text properties
#set text(
fill: gray,
size: 10pt
)
[
// Display the current page number in the format "1/1"
#counter(page).display("1/1", both: true)
]
],
footer-descent: 0pt,
)
// Define color variables from metadata
let main_color = rgb(metadata.colors.main_color)
let lightgray_color = rgb(metadata.colors.lightgray_color)
let gray_color = rgb(metadata.colors.gray_color)
// Set the text properties for the document
set text(
font: font,
lang: lang,
)
// Define how to show headings (default level)
show heading: it => {
set text(weight: "regular")
set text(main_color)
set block(above: 0.65em)
_cv-cols(
[],
[#it.body],
)
}
// Define how to show level 1 headings
show heading.where(level: 1): it => {
set text(weight: "regular")
set text(main_color)
_cv-cols(
align: horizon,
[#box(fill: main_color, width: 30mm, height: 0.25em)],
[#it.body],
)
}
// Call the _header with metadata, and lang
_header(metadata, multilingual, language: lang)
// Insert the body content
body
// Show the current date if show-date is true
if show-date {
_adresser(metadata, multilingual, language: lang)
}
}
// Function create-headers: Creating headers depending on language across the CV
// Arguments:
// - multilingual: object with multilingual entries
// - language: string, language code
#let create-headers(
multilingual,
lang: "de",
) = {
// Load the multilingual YAML data
// let multilingual = yaml(file)
// Initialize an empty dictionary to store header labels
let headLabs = (:)
// Extract language-specific data from the multilingual data
let languageData = multilingual.lang.at(str(lang))
// Populate the headLabs dictionary with header labels
for key in languageData.keys() {
headLabs.insert(
key, // Header key
languageData.at(key) // Localized header text
)
}
// Return the populated dictionary
return headLabs
}
// Function cv-auto-cats: This function processes and formats a dictionary of training or course information based on the specified language. The function retrieves and formats various fields such as title, subtitle, date, location, and description, and outputs them in a structured format.
// Arguments:
// - what: object with data
// - multilingual: object with multilingual entries
// - language: A string representing the language code (e.g., "de" for German). This determines which language-specific fields to display. Defaults to "de".
#let cv-auto-cats(
what,
multilingual,
headers,
lang: "de"
) = {
// Initialize variables to store course details.
let date = "" // Variable to hold the date for each course
let title = "" // Variable to hold the title of each course
let subtitle = "" // Variable to hold the subtitle of each course
let location = "" // Variable to hold the location of each course
let description = "" // Variable to hold the description of each course
let index = 0 // Index to track the current key in the dictionary
let dictionary = what // initilias dictionary
// Create a headers dictionary based on the specified language, used for translating category names.
// let headers = create-headers(metadata.paths.i18n, lang: lang)
// Function to retrieve a language-specific field from a dictionary.
// Arguments:
// - fields: A dictionary containing values for different languages.
// - lang: A string representing the desired language code.
let getLangField = (fields, lang) => {
// Return the value corresponding to the specified language, or an empty string if not found.
if lang in fields.keys() {
return fields.at(lang)
} else {
return ""
}
}
// Iterate over each key (category) in the main dictionary.
for key in dictionary.keys() {
let subset = dictionary.at(key) // Sub-dictionary for the current category.
let header = dictionary.keys().at(index) // Current category key.
// Prefix the header with "training-" to match localization keys.
let header = "training-" + header
// Retrieve the localized category name using the headers dictionary.
let headerValue = if header in headers.keys() { headers.at(header) } else { "Unknown Header" }
// Output the localized category name as a header.
[== #headerValue]
// Iterate over each course in the current category (subset).
for course in subset.keys() {
let subset2 = subset.at(course) // Sub-dictionary for the current course.
// Extract the date from the course details.
if "left" in subset2.keys() {
if type(subset2.left) == "dictionary" {
date = getLangField(subset2.left, lang)
} else {
date = subset2.left
}
}
// Extract the title, checking if it is a multilingual field.
if type(subset2.title) == "dictionary" {
title = getLangField(subset2.title, lang)
} else {
title = subset2.title
}
// Extract the subtitle if present, using language-specific fields.
if "subtitle" in subset2.keys() {
if type(subset2.subtitle) == "dictionary" {
subtitle = getLangField(subset2.subtitle, lang)
} else {
substitle = subset2.subtitle
}
}
// Extract the location if present in the course details.
if "location" in subset2.keys() {
if type(subset2.location) == "dictionary" {
location = getLangField(subset2.location, lang)
} else {
location = subset2.location
}
}
// Extract the description if present, using language-specific fields.
if "description" in subset2.keys() {
if type(subset2.description) == "dictionary" {
description = getLangField(subset2.description, lang)
} else {
description = subset2.description
}
}
// Initialize an empty tuple to store elements to be displayed.
let elements = ()
// Conditionally build elements based on the availability of keys in the course details.
if ("location", "subtitle", "description") in subset2.keys() {
elements = (
strong(title),
(subtitle), // Bold title with subtitle.
location, // Location of the course.
emph(description) // Emphasized description.
)
// Output the formatted content with date and elements.
cv-cols(
date,
elements.join(", ")
)
}
else if ("location", "subtitle") in subset2.keys() {
elements = (
strong(title),
(subtitle), // Bold title with subtitle.
location // Location of the course.
)
// Output the formatted content with date and elements.
cv-cols(
date,
elements.join(", ")
)
}
else if ("location") in subset2.keys() {
elements = (
strong(title), // Bold title only.
location // Location of the course.
)
// Output the formatted content with date and elements.
cv-cols(
date,
elements.join(", ")
)
}
else if ("subtitle") in subset2.keys() {
elements = [#strong(title) (#subtitle)] // Bold title with subtitle only.
// Output the formatted content with date and elements.
cv-cols(
date,
elements
)
}
}
// Increment the index to move to the next key in the dictionary.
index += 1
}
}
// Function make-entry-apa: Creates a formatted reference string for an entry in APA style. This function uses internationalization (i18n) data and fields from the cv-refs function to generate the reference. The function supports customization based on the author's name and language.
// Arguments:
// - fields: A dictionary containing details of a single reference entry (e.g., authors, title, publication date).
// - multilingual: object with multilingual entries
// - me: An optional string representing the author's name that should be highlighted in the final reference string.
// - lang: A string indicating the language of the CV or document (e.g., "en" for English). Defaults to "en".
#let make-entry-apa(
fields,
multilingual,
me: none,
lang: "en"
) = {
// Extract the list of authors from the fields.
let authors = fields.author
// Function to format a list of authors into a string.
// Arguments:
// - auths: A list of authors to be formatted.
// - max_count: Maximum number of authors to display before using "et al."
// - me: The author's name to be highlighted, if applicable.
let format_authors(auths, max_count, me) = {
// Initialize an empty list to hold the formatted authors.
let formatted_authors = ()
// Determine the number of authors to display, limited by `max_count`.
let count = calc.min(auths.len(), max_count) - 1
// Create a list of indices for authors using a while loop.
let indices = ()
let i = 0
while i <= count {
indices.push(i)
i += 1
}
// Format each author into "Last, F." format and add to the list.
for author in indices {
let index = indices.at(author)
let parts = auths.at(index).split(", ")
let author = text(parts.at(0) + ", " + parts.at(1).first() + ".")
// Highlight the author's name if it matches `me`.
if not me == none and author == me {
if "corresponding" in fields and fields.corresponding == true {
author = strong(me + super("C")) // Add a superscript "C" for corresponding author.
} else {
author = strong(me)
}
}
formatted_authors.push(author)
}
// Return the formatted list of authors, appending "et al." if necessary.
if auths.len() > max_count {
return [#formatted_authors.join(", ") _et. al._]
} else {
return [#formatted_authors.join(", ", last: " & ")]
}
}
// Check if the reference has a parent entry with additional authors (e.g., editors).
if "parent" in fields and "author" in fields.parent {
let editors = fields.parent.author
}
// Function to format a list of editors into a string.
// Arguments:
// - auths: A list of authors to be formatted.
// - max_count: Maximum number of authors to display before using "et al."
// - me: The author's name to be highlighted, if applicable.
let format_editors(eds, max_count, me) = {
// Initialize an empty list to hold the formatted authors.
let formatted_editors = ()
// Determine the number of authors to display, limited by `max_count`.
let count = calc.min(eds.len(), max_count) - 1
// Create a list of indices for authors using a while loop.
let indices = ()
let i = 0
while i <= count {
indices.push(i)
i += 1
}
// Format each author into "Last, F." format and add to the list.
for editor in indices {
let index = indices.at(editor)
let parts = eds.at(index).split(", ")
let editor = text(parts.at(1).first() + ". " + parts.at(0))
// Highlight the author's name if it matches `me`.
if not me == none and editor == me {
if "corresponding" in fields and fields.corresponding == true {
editor = strong(me + super("C")) // Add a superscript "C" for corresponding author.
} else {
editor = strong(me)
}
}
formatted_editors.push(editor)
}
// Return the formatted list of authors, appending "et al." if necessary.
if eds.len() > max_count {
return [#formatted_editors.join(", ") _et. al._]
} else {
return [#formatted_editors.join(", ", last: " & ")]
}
}
// Function to format the publication date or publication state.
// Arguments:
// - fields: The reference fields dictionary.
// - lang: The language code for localization.
let format_date(fields, lang) = {
// Handle cases where no date is available.
if not "date" in fields {
if not "pubstate" in fields {
return [ (n.d.). ] // Return "n.d." (no date) if neither date nor pubstate is available.
} else {
// Handle cases with a publication state.
let header = fields.at("pubstate")
let search = "pubstate-" + header
// Lookup the publication state string in the i18n data.
let subset = multilingual.lang.at(lang)
if search in subset {
return [ (#subset.at(search)).]
} else {
return [. ]
}
}
} else {
return [ (#fields.date). ] // Return the formatted date.
}
}
// Function to format the title of the work.
// Arguments:
// - title: The title of the work, which could be a string or a dictionary (for multilingual titles).
// - lang: The language code for localization.
let format_title(title, lang) = {
// Handle multilingual titles stored in a dictionary.
if type(title) == "dictionary" {
if not lang in title {
return [ #fields.title.main] // Return the main title if the specified language is not available.
} else {
// If the title is available in the document's language, format it accordingly.
for entry in fields.title.keys() {
if lang in fields.title.keys() {
return [ #fields.title.main \[#fields.title.at(lang)\]]
} else {
return [ #emph("Missing title for document language")]
}
}
}
} else {
return [ #fields.title] // Return the title as is if it's a simple string.
}
}
// Initialize an empty string for building the reference.
let reference = text("")
// Handle references of type "article".
if fields.type == "article" {
reference += format_authors(authors, 6, me)
reference += format_date(fields, lang)
reference += format_title(fields.title, lang)
// Handle special case where the publication state is provided.
if "pubstate" in fields {
reference += [.]
} else {
// Add parent information such as the title of the journal or volume number.
if "parent" in fields and "title" in fields.parent {
reference += [. #emph(fields.parent.title),]
}
if "parent" in fields and "volume" in fields.parent {
reference += [ #emph(str(fields.parent.volume))]
}
if "parent" in fields and "issue" in fields.parent {
reference += [(#emph(str(fields.parent.issue))),]
} else {
reference += [,]
}
if "page-range" in fields {
reference += [ #fields.page-range.]
}
if "serial-number" in fields and "doi" in fields.serial-number {
let url = "https://doi.org/" + fields.serial-number.doi
reference += [ #link(url)[#url]]
}
}
} else if fields.type == "chapter" { // Handle references of type "chapter".
reference += format_authors(authors, 6, me)
reference += format_date(fields, lang)
reference += format_title(fields.title, lang)
// Include information about the parent work (e.g., book or edited volume).
if "parent" in fields and "author" in fields.parent {
reference += [. In #format_editors(fields.parent.author, 6, me) (Eds.),]
} else {
reference += " In "
}
if "parent" in fields and "title" in fields.parent {
reference += [ #emph(fields.parent.title)]
}
if "page-range" in fields {
reference += [ (pp. #fields.page-range).]
}
if "publisher" in fields.parent {
reference += [ #fields.parent.publisher.]
}
if "serial-number" in fields and "doi" in fields.serial-number {
let url = "https://doi.org/" + fields.serial-number.doi
reference += [ #link(url)[#url]]
}
} else if fields.type == "book" { // Handle references of type "book".
reference += format_authors(authors, 6, me)
reference += format_date(fields, lang)
reference += format_title(fields.title, lang)
// Include edition and publisher information if available.
if "edition" in fields {
reference += [ (#fields.edition).]
}
if "publisher" in fields {
reference += [ #fields.publisher.]
}
if "serial-number" in fields and "doi" in fields.serial-number {
let url = "https://doi.org/" + fields.serial-number.doi
reference += [ #link(url)[#url]]
}
} else { // Handle other types of references.
reference += format_authors(authors, 6, me)
reference += format_date(fields, lang)
reference += format_title(fields.title, lang)
// Include additional fields like edition or archive information if available.
if "edition" in fields {
reference += [ (#fields.edition).]
} else {
reference += [.]
}
if "archive" in fields {
reference += [ #fields.archive.]
}
if "serial-number" in fields and "doi" in fields.serial-number {
let url = "https://doi.org/" + fields.serial-number.doi
reference += [ #link(url)[#url]]
}
}
// Return the formatted reference.
reference
parbreak() // Add a paragraph break after the reference.
}
// Function cv-refs: Creating a reference list
// can be filtered by specific entries or tags
// can highlight own name
// can use given translations of title in i18n.yaml, if submitting CV in different language
// Arguments
// - what: object with data
// - multilingual: object with multilingual entries
// - entries: An array of strings, representing the specific entries to include in the output. Defaults to an empty list (), which will include all entries in the file.
// - tag: An optional string. If provided, only entries with this tag will be included. Defaults to none.
// - me: An optional string, likely representing the name of the author. Used for personalized output (name will be bold). Defaults to none.
// - lang: A string specifying the language to be used in the references (e.g., "de" for German). If CV is in different language than title-main, translations will be add to the reference (translations need to be given in i18n.yaml) Defaults to "de".
#let cv-refs(
what,
multilingual,
entries: (),
tag: none,
me: none,
lang: "de"
) = {
// Set paragraph formatting options:
// - `hanging-indent`: Indentation for the second and subsequent lines of each paragraph.
// - `justify`: Whether the text should be justified.
// - `linebreaks`: Automatic line breaks to fit the content within the width of the page.
set par(
hanging-indent: 2em,
justify: true,
linebreaks: auto
)
// Set spacing above each block of text.
set block(above: 0.65em)
// create object
let dictionary = what
// If `entries` is empty, populate it with all keys from the YAML file.
if entries.len() == 0 {
entries = dictionary.keys()
}
// Initialize counters for different types of publications.
let articles = 0
let incollections = 0
let books = 0
let others = 0
let planned = 0
// Loop through each entry in the YAML file to count the types of publications.
for (entry, field) in dictionary {
if field.tags == "planned" {
planned += 1
} else if field.type == "article" {
articles += 1
} else if field.type == "chapter" {
incollections += 1
} else if field.type == "book" {
books += 1
} else if field.tags == "other" {
others += 1
}
}
// Loop through each entry in the YAML file to generate the reference list.
for (entry, fields) in dictionary {
// Skip entries not specified in entries if entries are specified.
if entry not in entries {
continue
}
// If a tag is provided, skip entries that don't have the specified tag.
if not tag == none {
if "tags" not in fields or tag not in fields.tags {
continue
}
}
// If entry is in one of the categories, the total number will be subtracted by one to show decreasing numbers aside the publications per section
if fields.tags == "planned" {
[\[#planned\] ]
planned -= 1
} else if fields.type == "article" {
[\[#articles\] ]
articles -= 1
} else if fields.type == "chapter" {
[\[#incollections\] ]
incollections -= 1
} else if fields.type == "book" {
[\[#books\] ]
books -= 1
} else if fields.tags == "other" {
[\[#others\] ]
others -= 1
}
// Generate the reference entry using a custom function `make-entry-apa`.
// This function formats the reference according to APA style.
// Parameters passed are the `fields` (details of the entry), `multilingual` (multilingual object), `me` (author name), and `lang` (language).
make-entry-apa(fields, multilingual, me: me, lang: lang)
}
}
// Function cv-auto: Creating list of cv-entries based on the given yaml-file (path)
// see example dbs/committee.toml
// no extra formatting
// Arguments:
// - what: object with data
// - multilingual: object with multilingual entries
// - lang: language of cv
#let cv-auto(
what,
multilingual,
lang: "de"
) = {
// let date = ""
// let title = ""
// let subtitle = ""
// let location = ""
// let description = ""
let subset = (:) // // Initialize the subset dict
let dictionary = what // setting input
// Iterate over each key in the database
for key in dictionary.keys() {
let date = ""
let title = ""
let subtitle = ""
let location = ""
let description = ""
subset = dictionary.at(key)
// Iterate over available languages in the multilingual data
for language in multilingual.lang.keys() {
if lang == language {
// Handle the 'left' field
if type(subset.at("left")) == "dictionary" {
date = subset.left.at(lang)
} else {
date = subset.left
}
// Handle the 'title' field
if type(subset.at("title")) == "dictionary" {
title = subset.title.at(lang)
} else {
title = subset.title
}
// Handle the 'subtitle' field
if "subtitle" in subset.keys() {
if type(subset.at("subtitle")) == "dictionary" {
subtitle = subset.subtitle.at(lang)
} else {
subtitle = subset.subtitle
}
}
// Handle the 'location' field
if "location" in subset.keys() {
if type(subset.at("location")) == "dictionary" {
location = subset.location.at(lang)
} else {
location = subset.location
}
}
// Handle the 'description' field, if it exists
if "description" in subset.keys() {
if type(subset.at("description")) == "dictionary" {
description = subset.description.at(lang)
} else {
description = subset.description
}
}
// Since we found the matching language, break out of the loop
break
}
}
// Construct the elements for cv-cols output based on available keys
let entry = title
if "subtitle" in subset.keys() {
entry += [, #subtitle]
}
if "location" in subset.keys() {
entry += [, #location]
}
if "description" in subset.keys() {
entry += [, #description]
}
cv-cols(
date,
entry
)
}
}
// Function cv-auto-stc: formats and generates a list of events based on data from a YAML file and multilingual labels. Format TItle, Subtitle, Location, Description
// Arguments:
// - what: object containing the information
// - multilingual: object with multilingual entries
// - lang: Language code to fetch language-specific text from the YAML data.
#let cv-auto-stc(
what,
multilingual,
lang: "de"
) = {
let date = "" // Date of the event.
let title = "" // Title of the event.
let subtitle = "" // Subtitle of the event (if available).
let check = "" // Unused variable, potentially for future checks or operations.
let location = "" // Location of the event (if available).
let description = "" // Description of the event (if available).
// let multilingual = yaml(metadata.paths.i18n) // Load multilingual data.
let dictionary = what
// let dictionary = yaml(metadata.paths.at(what)) // Load event data from the YAML file.
// Initialize an index for language iteration
let index = 0
// Iterate over each key (event) in the dictionary
for key in dictionary.keys() {
let subset = dictionary.at(key)
// Iterate over available languages in the multilingual data
for language in multilingual.lang {
if lang == language.at(index) {
// Handle the 'left' field for date
if type(subset.at("left")) == "dictionary" {
date = subset.left.at(lang)
} else {
date = subset.left
}
// Handle the 'title' field
if type(subset.at("title")) == "dictionary" {
title = subset.title.at(lang)
} else {
title = subset.title
}
// Handle the 'subtitle' field
if type(subset.at("subtitle")) == "dictionary" {
subtitle = subset.subtitle.at(lang)
} else {
subtitle = subset.subtitle
}
// Handle the 'location' field
if type(subset.at("location")) == "dictionary" {
location = subset.location.at(lang)
} else {
location = subset.location
}
// Handle the 'description' field, if it exists
if "description" in subset.keys() {
if type(subset.at("description")) == "dictionary" {
description = subset.description.at(lang)
}
}
// Since the matching language is found, break out of the loop
break
}
}
// Construct the elements for cv-cols output based on available keys
let entry = strong(title)
if "subtitle" in subset.keys() {
entry += [, #emph(subtitle)]
}
if "location" in subset.keys() {
entry += [, #location]
}
if "description" in subset.keys() {
entry += [, #description]
}
// If no subtitle is available, create a column with just the title
cv-cols(
date,
entry
)
}
}
// Function cv-auto-stp: generates a formatted table of events based on data from a YAML file, supporting multiple languages: Title (Subtitle), location, description
// Arguments:
// - what: object containing the information
// - multilingual: object with multilingual entries
// - lang: The language code to use for fetching language-specific text from the YAML data (default is "de").
#let cv-auto-stp(
what,
multilingual,
lang: ""
) = {
// Initialize variables
let date = "" // Date of the event.
let title = "" // Title of the event.
let subtitle = "" // Subtitle of the event (if available).
let location = "" // Location of the event.
let description = "" // Description of the event (if available).
let dictionary = what // Load event data from the YAML file.
let index = 0 // Index for iterating through languages.
// Iterate over the keys (events) in the dictionary
for key in dictionary.keys() {
let subset = dictionary.at(key)
// Iterate over available languages in the multilingual data
for language in multilingual.lang {
if lang == language.at(index) {
// Handle the 'left' field for date
if type(subset.at("left")) == "dictionary" {
date = subset.left.at(lang)
} else {
date = subset.left
}
// Handle the 'title' field
if type(subset.at("title")) == "dictionary" {
title = subset.title.at(lang)
} else {
title = subset.title
}
// Handle the 'subtitle' field
if type(subset.at("subtitle")) == "dictionary" {
subtitle = subset.subtitle.at(lang)
} else {
subtitle = subset.subtitle
}
// Handle the 'location' field
if type(subset.at("location")) == "dictionary" {
location = subset.location.at(lang)
} else {
location = subset.location
}
// Handle the 'description' field, if it exists
if "description" in subset.keys() {
if type(subset.at("description")) == "dictionary" {
description = subset.description.at(lang)
}
}
// Since we found the matching language, break out of the loop
break
}
}
// Create elements for the event
let entry = strong(title)
if "subtitle" in subset.keys() {
entry += [ (#subtitle)]
}
if "location" in subset.keys() {
entry += [, #location]
}
if "description" in subset.keys() {
entry += [, #emph(description)]
}
// Generate a column with the event date and elements without description
cv-cols(
date,
entry
)
}
}
// Function cv-table-teaching: generates a table of events based on data from a YAML file and multilingual labels. It processes the events to include details such as the term (summer/winter), name, and study information. The function constructs a table with headers and details for each event, displaying them in the specified language.
// see example dbs/teaching.toml
// Arguments:
// - what: object with data
// - multilingual: object with multilingual entries
// - lang: language code for fetching language-specific text from the YAML data.
#let cv-table-teaching(
what,
multilingual,
lang: ""
) = {
// Initialize variables
let overview = () // Container to store event details for the table.
let term = () // Temporary variable for storing term information (summer/winter).
let tabhelp = () // Container for storing table headers and labels.
let year = "" // Year extracted from the YAML data.
let name = "" // Event name.
let study = "" // Study details for the event.
let index1 = 0 // Index for iterating through dictionary keys.
let tab-year = "" // Header for the year column in the table.
let tab-course = "" // Header for the course column in the table.
let tab-study = "" // Header for the study column in the table.
let tab-note = "" // Header for the note column in the table.
let index = 0 // Index for iterating through dictionary entries.
let dictionary = what // Load event data from the YAML file.
// Iterate over the keys (years) in the dictionary
for key in dictionary.keys() {
// Extract the year from the dictionary
year = dictionary.keys().at(index)
// Get the subset of events for the current year
let subset = dictionary.at(key)
// Iterate over each course in the subset
for course in subset.keys() {
let subset2 = subset.at(course)
// Iterate over available languages in the multilingual data
for language in multilingual.lang.keys() {
if lang == language {
// Determine the term (summer/winter) and corresponding header
if "summer" in subset2.keys() {
if subset2.summer == "T" {
term = [#multilingual.lang.at(lang).table-summer #year]
} else {
term = [#multilingual.lang.at(lang).table-winter #year]
}
} else {
[#year]
}
// Get the name and study details based on the selected language
name = subset2.name.at(lang)
study = subset2.study.at(lang)
// Get headers for table columns
tab-year = multilingual.lang.at(lang).tab-year
tab-course = multilingual.lang.at(lang).tab-course
tab-study = multilingual.lang.at(lang).tab-study
tab-note = multilingual.lang.at(lang).tab-note
// Exit the language loop as we found the matching language
break
}
}
// Create a tuple with term, name, and study details for the event
let help = (term, name, study)
// Create a tuple with table headers and note
tabhelp = (tab-year, tab-course, tab-study, tab-note)
// Add the event details to the overview
overview.push(help)
}
// Increment the index to process the next year
index += 1
}
// Create a table using the collected event details
cv-cols(
"",
table(
columns: 3, // Define the number of columns
stroke: none, // No border strokes
table.header(
[#tabhelp.at(0)], // Year column header
[#tabhelp.at(1)], // Course column header
[#tabhelp.at(2)], // Study column header
),
table.hline(), // Horizontal line under the header
..for (k, x, v) in overview { // Populate table rows with event details
(k, x, v)
},
table.hline(), // Horizontal line at the end of the table
table.cell(
colspan: 3, // Cell spanning all columns for the note
tabhelp.at(3) // Note text
)
)
)
}
// Function cv-auto-list: generates a list of events for each year based on data from a YAML file. It formats the events into a concatenated string that includes the name and action of each event, and displays this information alongside the respective year.
// Arguments:
// - what: object with data
// - multilingual: object with multilingual entries
// - lang: Language code for fetching language-specific text from the YAML data.
#let cv-auto-list(
what,
multilingual,
lang: "de"
) = {
// Initialize variables
let name = "" // Name of the event.
let action = "" // Action associated with the event.
let year = "" // Year extracted from the YAML data.
let subset = "" // Subset of events for the current year.
let index = 0 // Index for iterating through dictionary keys.
let dictionary = what // Load event data from the YAML file.
// Iterate over the keys (years) in the dictionary
for key in dictionary.keys() {
// Extract the year from the dictionary
year = dictionary.keys().at(index)
// Initialize an empty list to hold events for the current year
let conf-in-year = []
// Get the subset of events for the current year
let subset = dictionary.at(key)
// Iterate over each event in the subset
for event in subset.keys() {
let subset2 = subset.at(event)
// Extract the name and action of the event
if type(subset2.name) == "dictionary" {
for language in multilingual.lang.keys() {
if lang == language {
name = subset2.name.at(lang)
}
}
} else {
name = subset2.name
}
action = subset2.action
// Format the event details as text and concatenate to the list
if conf-in-year.children.len() == 0 {
conf-in-year = text([#name#super[#action]])
} else {
conf-in-year = conf-in-year + ", " + text([#name#super[#action]])
}
}
// Increment the index to process the next year
index = index + 1
// Generate a column with the year and concatenated event details
cv-cols(
year, // Year column
conf-in-year // Concatenated event details for the year
)
}
}
// Function cv-auto-skill: generates a table of skills based on data from a YAML file and multilingual labels. It processes skills data to categorize them into "computer," "programs," and "languages" sections, and generates a table with this information. The skill levels are represented with icons.
// see example dbs/skills.toml
// Arguments:
// - what: object with data
// - multilingual: object with multilingual entries
// - lang: language of cv; the language code to use for fetching language-specific fields from the YAML data.
#let cv-auto-skills(
what,
multilingual,
metadata,
lang: "de"
) = {
// Initialize variables
let skill = "" // Temporary variable to store skill names.
let index1 = 0 // Index variable for iterating through dictionary keys.
let index2 = 0 // Index variable for iterating through multilingual language keys.
let overview = () // Container for storing categorized skills.
let tab-header = () // Container for storing table headers.
let help = () // Temporary variable to store individual skill details.
let name = "" // Skill name.
let level = 0 // Skill level.
let level-text = "" // Text representation of the skill level icons.
let description = "" // Skill description.
let dictionary = what // Load skill data from the YAML file.
let main_color = rgb(metadata.colors.main_color)
let gray_color = rgb(metadata.colors.gray_color)
let lightgray_color = rgb(metadata.colors.lightgray_color)
// Initialize helper arrays
let computer = () // List to store computer-related skills.
let programs = () // List to store program-related skills.
let languages = () // List to store language-related skills.
let header = "" // Temporary variable to store the current category header.
// Function to generate level icons based on the skill level
let level-icons(level) = {
let i = 1
let filled_icons = (
// Generate icons representing filled levels
while i <= level {
[#fa-icon("square", solid: true, fill: main_color) ]
i += 1
}
)
let rest = 4 - level
let i = 1
let unfilled_icons = (
// Generate icons representing unfilled levels
while i <= rest {
[#fa-icon("square", solid: true, fill: lightgray_color) ]
i += 1
}
)
// Combine filled and unfilled icons
filled_icons + unfilled_icons
}
// Function to get language-specific field
let getLangField = (field, lang) => if type(field) == "dictionary" { field.at(lang) } else { field }
// Iterate over the keys of the dictionary to process skills
for key in dictionary.keys() {
let subset = dictionary.at(key) // Get the subset of skills for the current key
for course in subset.keys() {
let header = dictionary.keys().at(index1) // Get the current category header
let details = subset.at(course) // Get the details for the current skill
// Get the name and description based on the language
if type(details.name) == "dictionary" {
name = getLangField(details.name, lang)
} else {
name = details.name
}
if type(details.description) == "dictionary" {
description = getLangField(details.description, lang)
} else {
description = details.description
}
level = details.level
level-text = level-icons(level) // Generate the icons for the skill level
help = (name, level-text, description) // Create a tuple of skill details
// Categorize the skill based on the header
if header == "computer" {
computer.push(help)
} else if header == "programs" {
programs.push(help)
} else if header == "languages" {
languages.push(help)
}
}
index1 = index1 + 1 // Increment the index for the next category
// Update the overview with categorized skills
overview = (computer: computer, programs: programs, languages: languages)
}
// Load multilingual labels for the current language
let sublang = multilingual.lang.at(lang)
let tab-header = (sublang.skills-computer, sublang.skills-programs, sublang.skills-languages)
let skills-tab-skills = sublang.skills-tab-skills
let skills-tab-level = sublang.skills-tab-level
let skills-tab-comment = sublang.skills-tab-comment
let skills-leg1 = sublang.skills-leg1
let skills-leg2 = sublang.skills-leg2
let skills-leg3 = sublang.skills-leg3
let skills-leg4 = sublang.skills-leg4
// Create the skills table
table(
columns: (1.12fr, 0.95fr, 0.8fr, 1.5fr, 1.7fr), // Define column widths
rows: 1, // Set initial number of rows
stroke: none, // No border strokes
table.header(
text("test", fill: white), // Table header title
[#skills-tab-skills],
[#skills-tab-level],
[#skills-tab-comment],
[],
),
table.hline(start: 1, stroke: (paint: gray_color, thickness: 1.25pt, dash: "dotted")), // Horizontal line after the header
// Populate table with computer-related skills
table.cell(
rowspan: overview.at("computer").len(),
align: top + right,
)[
#strong(tab-header.at(0))
],
..for (k, x, v) in overview.at("computer") {
(
k, x,
table.cell(colspan: 2)[#v]
)
},
table.hline(start: 1, stroke: (paint: gray_color, thickness: 1.25pt, dash: "dotted")),
// Populate table with program-related skills
table.cell(
rowspan: overview.at("programs").len(),
align: top + right,
)[
#strong(tab-header.at(1))
],
..for (k, x, v) in overview.at("programs") {
(
k, x,
table.cell(colspan: 2)[#v]
)
},
table.hline(start: 1, stroke: (paint: gray_color, thickness: 1.25pt, dash: "dotted")),
// Populate table with language-related skills
table.cell(
rowspan: overview.at("languages").len(),
align: top + right,
)[
#strong(tab-header.at(2))
],
..for (k, x, v) in overview.at("languages") {
(
k, x,
table.cell(colspan: 2)[#v]
)
},
table.hline(start: 1, stroke: (paint: gray_color, thickness: 1.25pt, dash: "dotted")),
// Add legends for skill levels
table.cell(""),
table.cell(colspan: 2)[
#level-icons(1)
#text(skills-leg1, size: 0.7em)
],
table.cell(colspan: 2)[
#level-icons(3)
#text(skills-leg3, size: 0.7em)
],
table.cell(""),
table.cell(colspan: 2)[
#level-icons(2)
#text(skills-leg2, size: 0.7em)
],
table.cell(colspan: 2)[
#level-icons(4)
#text(skills-leg4, size: 0.7em)
]
)
} |
https://github.com/3w36zj6/textlint-plugin-typst | https://raw.githubusercontent.com/3w36zj6/textlint-plugin-typst/main/test/fixtures/Code/input.typ | typst | MIT License | `inline code`
aaa `inline code` bbb
What is ```rust fn main()``` in Rust
would be ```c int main()``` in C.
This has ``` `backticks` ``` in it
(but the spaces are trimmed). And
``` here``` the leading space is
also trimmed.
|
https://github.com/pncnmnp/typst-poster | https://raw.githubusercontent.com/pncnmnp/typst-poster/master/README.md | markdown | MIT License | # Typst-Poster
This is an academic poster template designed for [Typst](https://github.com/typst/typst). Supports both horizontal and vertical posters.
# What does it look like?

# Getting Started
To get started, use the following code:
```typ
#import "poster.typ": *
#show: poster.with(
size: "Tested on '36x24', '48x36', and '48x36'. See examples dir'",
title: "Poster Title",
authors: "Author Names (comma separated)",
departments: "Department Name",
univ_logo: "Logo Path (optimal dimension is 1080 × 170)",
footer_text: "Name of Conference or Course Name",
footer_url: "Conference URL",
footer_email_ids: "Email IDs of authors (comma separated)",
footer_color: "Hex Color Code",
// Additional Parameters
// =====
// For 3-column posters, these usually DO NOT require any adjustments.
// However, they are important for 2-column posters.
// Refer to ./examples/example_2_column_18_24.typ for an example.
// Defaults are commented on the right side
keywords: Array of keywords, // default is empty
num_columns: "Number of columns in the poster", // 3
univ_logo_scale: "University logo's scale (in %)", // 100%
univ_logo_column_size: "University logo's column size (in in)", // 10in
title_column_size: "Title and authors' column size (in in)", // 20in
title_font_size: "Poster title's font size (in pt)", // 48pt
authors_font_size: "Authors' font size (in pt)", // 36pt
footer_url_font_size: "Footer's URL and email font size (in pt)", // 30pt
footer_text_font_size: "Footer's text font size (in pt)", // 40pt
)
// Proceed with your content as usual
```
For an example, refer to [`example.typ`](https://github.com/pncnmnp/typst-poster/blob/master/examples/example.typ). The default dimensions are `36in` in width and `24in` in height.
# Does it support 2-column posters?
Yes, but certain default parameters need to be adjusted to achieve this. Please refer to `./examples/example_2_column_18_24.typ` for an example on how to make the necessary adjustments.
Here is an example of how a two-column poster looks.

# License
This template is licensed under the [MIT License](https://github.com/pncnmnp/typst-poster/blob/master/LICENSE).
All images in `main.typ`, except for NC State's Logo, are in the Public Domain.
NC State's Logo is the property of North Carolina State University.
This project is not sponsored or affiliated with NC State.
|
https://github.com/kdog3682/mathematical | https://raw.githubusercontent.com/kdog3682/mathematical/main/0.1.0/src/components/time-travel-sidebar.typ | typst |
#let pat = pattern(size: (3pt, 6pt))[
#place(line(start: (0%, 0%), end: (100%, 100%)))
#place(line(start: (0%, 100%), end: (100%, 0%)))
]
#{
let b = {
place(rect(width: 100%, height: 100%))
let p = pattern(size: (3pt, 3pt), {
circle(radius: 1pt, fill: gray)
})
let p2 = pattern(size: (3pt, 3pt), {
})
let p2 = pat
let s = text(size: 48pt, "TIME TRAVEL EDITION", fill: p, spacing: 20pt, tracking: 3pt, weight: "bold", stroke: black + 0.25pt)
let t = text(size: 48pt, "(1991)", fill: p2, spacing: 20pt, tracking: 0pt, weight: "bold", stroke: black + 1pt)
let time-travel = {
rotate(s + h(20pt) + t, 270deg, reflow: true)
}
place(rect(width: 20%, height: 100%, fill: black.lighten(95%), align(time-travel, center + horizon)))
let dots = blue
let main = [
hiii
]
place(dx: 20%, rect(width: 80%, height: 100%, fill: dots, main))
}
set page(margin: (rest: 0pt))
b
}
|
|
https://github.com/songoffireandice03/simple-template | https://raw.githubusercontent.com/songoffireandice03/simple-template/main/templates/viettat.typ | typst | #import "@preview/physica:0.9.2": *
#let sc(it) = math.class("normal",
text(font: "", stylistic-set: 1, $cal(it)$) + h(0em)
)
#let dvs = "đối với"
#let qh = "quan hệ"
#let ltd = "lớp tương đương"
#let LTD = "Lớp tương đương"
#let ltt1 = "Giáo Trình Toán I"
#let ltt2 = "Giáo Trình Toán II"
#let dgl = "được gọi là"
#let kmttq = "không mất tính tổng quát"
#let KMTTQ = "Không mất tính tổng quát"
#let gs = "giả sử"
#let GS = "Giả sử"
#let qhtd = "quan hệ tương đương"
#let qhpx = "quan hệ phản xạ"
#let kgvt = "không gian vector"
#let qh2n = "quan hệ hai ngôi"
#let mqh2n = "mối quan hệ hai ngôi"
#let qhtt = "quan hệ thứ tự"
#let QHTT = "Quan hệ thứ tự"
#let pt = "phần tử"
#let kvck = "khi và chỉ khi"
#let dpcm = "điều phải chứng minh"
#let ax = "ánh xạ"
#let sa = "song ánh"
#let da = "đơn ánh"
#let ta = "toàn ánh"
#let khl = "kí hiệu là"
#let th = "tập hợp"
#let cmr = "chứng minh rằng"
#let CMR = "Chứng minh rằng"
#let ctr = "chứng tỏ rằng"
#let CTR = "Chứng tỏ rằng"
#let tm = "thoả mãn"
#let ptth = "phần tử trung hoà"
#let ptnd = "phần tử nghịch đảo"
#let tc = "tính chất"
#let pp = "phương pháp"
#let kn = "khả nghịch"
#let pph = "phân phối"
#let dcpn1 = "đồng cấu phỏng nhóm"
#let dcpn2 = "đẳng cấu phỏng nhóm"
#let mkdisplay(func) = (..args) => math.display(func(..args))
#let mkinline(func) = (..args) => math.display(func(..args))
#let dsum = math.display(math.sum)
#let isum = math.inline(math.sum)
#let dpro = math.display(math.product)
#let ipro = math.inline(math.product)
#let ang = $angle$
#let mang = $angle.arc$
#let line(content) = $arrow.l.r(content)$
#let seg(content) = $overline(content)$
#let arc(content) = $accent(content,paren.t)$
#let leq = $<=$
#let geq = $>=$
#let simeq = $tilde.equiv$
#let sim = $tilde$
#let sand = $sect$
#let sor = $union$
#let spn = $upright("span")$
#let Spn = $upright("Span")$
#let dlim(var, limit, fun) = $display(lim_(var -> limit) fun)$
#let ilim(var, limit, fun) = $inline(lim_(var -> limit) fun)$
#let nlim(var, limit, fun) = $lim_(var -> limit) fun$
#let fall = $forall space$
#let est = $exists space$
#let fall2 = $space forall space$
#let est2 = $space exists space$
#let nest = $exists.not space$
#let est1 = $exists! space$
#let dot = $dprod$
#let crs = $times$
#let ap = $approx$
#let circ = $space circle.stroked.small space$
// Math styles
#let bba= $bb(a)$
#let bbb= $bb(b)$
#let bbc= $bb(c)$
#let bbd= $bb(d)$
#let bbe= $bb(e)$
#let bbf= $bb(f)$
#let bbg= $bb(g)$
#let bbh= $bb(h)$
#let bbi= $bb(i)$
#let bbj= $bb(j)$
#let bbk= $bb(k)$
#let bbl= $bb(l)$
#let bbm= $bb(m)$
#let bbn= $bb(n)$
#let bbo= $bb(o)$
#let bbp= $bb(p)$
#let bbq= $bb(q)$
#let bbr= $bb(r)$
#let bbs= $bb(s)$
#let bbt= $bb(t)$
#let bbu= $bb(u)$
#let bbv= $bb(v)$
#let bbw= $bb(w)$
#let bbx= $bb(x)$
#let bby= $bb(y)$
#let bbz= $bb(z)$
#let bbA= $bb(A)$
#let bbB= $bb(B)$
#let bbC= $bb(C)$
#let bbD= $bb(D)$
#let bbE= $bb(E)$
#let bbF= $bb(F)$
#let bbG= $bb(G)$
#let bbH= $bb(H)$
#let bbI= $bb(I)$
#let bbJ= $bb(J)$
#let bbK= $bb(K)$
#let bbL= $bb(L)$
#let bbM= $bb(M)$
#let bbN= $bb(N)$
#let bbO= $bb(O)$
#let bbP= $bb(P)$
#let bbQ= $bb(Q)$
#let bbR= $bb(R)$
#let bbS= $bb(S)$
#let bbT= $bb(T)$
#let bbU= $bb(U)$
#let bbV= $bb(V)$
#let bbW= $bb(W)$
#let bbX= $bb(X)$
#let bbY= $bb(Y)$
#let bbZ= $bb(Z)$
#let boa= $bold(a)$
#let bob= $bold(b)$
#let boc= $bold(c)$
#let bod= $bold(d)$
#let boe= $bold(e)$
#let bof= $bold(f)$
#let bog= $bold(g)$
#let boh= $bold(h)$
#let boi= $bold(i)$
#let boj= $bold(j)$
#let bok= $bold(k)$
#let bol= $bold(l)$
#let bom= $bold(m)$
#let bon= $bold(n)$
#let boo= $bold(o)$
#let bop= $bold(p)$
#let boq= $bold(q)$
#let bor= $bold(r)$
#let bos= $bold(s)$
#let bot= $bold(t)$
#let bou= $bold(u)$
#let bov= $bold(v)$
#let bow= $bold(w)$
#let box= $bold(x)$
#let boy= $bold(y)$
#let boz= $bold(z)$
#let boA= $bold(A)$
#let boB= $bold(B)$
#let boC= $bold(C)$
#let boD= $bold(D)$
#let boE= $bold(E)$
#let boF= $bold(F)$
#let boG= $bold(G)$
#let boH= $bold(H)$
#let boI= $bold(I)$
#let boJ= $bold(J)$
#let boK= $bold(K)$
#let boL= $bold(L)$
#let boM= $bold(M)$
#let boN= $bold(N)$
#let boO= $bold(O)$
#let boP= $bold(P)$
#let boQ= $bold(Q)$
#let boR= $bold(R)$
#let boS= $bold(S)$
#let boT= $bold(T)$
#let boU= $bold(U)$
#let boV= $bold(V)$
#let boW= $bold(W)$
#let boX= $bold(X)$
#let boY= $bold(Y)$
#let boZ= $bold(Z)$
#let cla= $cal(a)$
#let clb= $cal(b)$
#let clc= $cal(c)$
#let cld= $cal(d)$
#let cle= $cal(e)$
#let clf= $cal(f)$
#let clg= $cal(g)$
#let clh= $cal(h)$
#let cli= $cal(i)$
#let clj= $cal(j)$
#let clk= $cal(k)$
#let cll= $cal(l)$
#let clm= $cal(m)$
#let cln= $cal(n)$
#let clo= $cal(o)$
#let clp= $cal(p)$
#let clq= $cal(q)$
#let clr= $cal(r)$
#let cls= $cal(s)$
#let clt= $cal(t)$
#let clu= $cal(u)$
#let clv= $cal(v)$
#let clw= $cal(w)$
#let clx= $cal(x)$
#let cly= $cal(y)$
#let clz= $cal(z)$
#let clA= $cal(A)$
#let clB= $cal(B)$
#let clC= $cal(C)$
#let clD= $cal(D)$
#let clE= $cal(E)$
#let clF= $cal(F)$
#let clG= $cal(G)$
#let clH= $cal(H)$
#let clI= $cal(I)$
#let clJ= $cal(J)$
#let clK= $cal(K)$
#let clL= $cal(L)$
#let clM= $cal(M)$
#let clN= $cal(N)$
#let clO= $cal(O)$
#let clP= $cal(P)$
#let clQ= $cal(Q)$
#let clR= $cal(R)$
#let clS= $cal(S)$
#let clT= $cal(T)$
#let clU= $cal(U)$
#let clV= $cal(V)$
#let clW= $cal(W)$
#let clX= $cal(X)$
#let clY= $cal(Y)$
#let clZ= $cal(Z)$
#let sca= $sc(a)$
#let scb= $sc(b)$
#let scc= $sc(c)$
#let scd= $sc(d)$
#let sce= $sc(e)$
#let scf= $sc(f)$
#let scg= $sc(g)$
#let sch= $sc(h)$
#let sci= $sc(i)$
#let scj= $sc(j)$
#let sck= $sc(k)$
#let scl= $sc(l)$
#let scm= $sc(m)$
#let scn= $sc(n)$
#let sco= $sc(o)$
#let scp= $sc(p)$
#let scq= $sc(q)$
#let scr= $sc(r)$
#let scs= $sc(s)$
#let sct= $sc(t)$
#let scu= $sc(u)$
#let scv= $sc(v)$
#let scw= $sc(w)$
#let scx= $sc(x)$
#let scy= $sc(y)$
#let scz= $sc(z)$
#let scA= $sc(A)$
#let scB= $sc(B)$
#let scC= $sc(C)$
#let scD= $sc(D)$
#let scE= $sc(E)$
#let scF= $sc(F)$
#let scG= $sc(G)$
#let scH= $sc(H)$
#let scI= $sc(I)$
#let scJ= $sc(J)$
#let scK= $sc(K)$
#let scL= $sc(L)$
#let scM= $sc(M)$
#let scN= $sc(N)$
#let scO= $sc(O)$
#let scP= $sc(P)$
#let scQ= $sc(Q)$
#let scR= $sc(R)$
#let scS= $sc(S)$
#let scT= $sc(T)$
#let scU= $sc(U)$
#let scV= $sc(V)$
#let scW= $sc(W)$
#let scX= $sc(X)$
#let scY= $sc(Y)$
#let scZ= $sc(Z)$
#let sbs = $subset$
#let nsbs = $subset.not$
#let psbs = $subset.eq$
#let isbs = $subset.neq$
#let npsbs = $subset.eq.not$
#let sps = $supset$
#let nsps = $supset.not$
#let psps = $supset.eq$
#let isps = $supset.neq$
#let npsps = $supset.eq.not$
#let imap(set1,set2) = $iota_(set1 --> set2)$
#let opp = $plus.circle$
#let oxx = $times.circle$
#let dfr(enum,denom) = $display(frac(enum,denom))$
#let ifr(enum,denom) = $inline(frac(enum,denom))$
#let fr(enum,denom) = $frac(enum,denom)$
#let nabla = $grad$
#let del = $grad$
#let vdots = $dots.v$
#let ddots = $dots.down$
#let udots = $dots.up$
#let cdots = $dots.h.c$
#let romt = math.mat.with(delim: "(")
#let sqmt = math.mat.with(delim: "[")
#let crmt = math.mat.with(delim: "{")
#let brmt = math.mat.with(delim: "|")
#let bbmt = math.mat.with(delim: "||")
#let romtd = mkdisplay(math.mat.with(delim: "("))
#let sqmtd = mkdisplay(math.mat.with(delim: "["))
#let crmtd = mkdisplay(math.mat.with(delim: "{"))
#let brmtd = mkdisplay(math.mat.with(delim: "|"))
#let bbmtd = mkdisplay(math.mat.with(delim: "||"))
#let rocs = math.cases.with(delim: "(")
#let sqcs = math.cases.with(delim: "[")
#let crcs = math.cases.with(delim: "{")
#let brcs = math.cases.with(delim: "|")
#let bbcs = math.cases.with(delim: "||")
#let rocsd = mkdisplay(math.cases.with(delim: "("))
#let sqcsd = mkdisplay(math.cases.with(delim: "["))
#let crcsd = mkdisplay(math.cases.with(delim: "{"))
#let brcsd = mkdisplay(math.cases.with(delim: "|"))
#let bbcsd = mkdisplay(math.cases.with(delim: "||"))
#let dromt = mkdisplay(dmat.with(delim: "("))
#let dsqmt = mkdisplay(dmat.with(delim: "["))
#let dcrmt = mkdisplay(dmat.with(delim: "{"))
#let dbrmt = mkdisplay(dmat.with(delim: "|"))
#let dbbmt = mkdisplay(dmat.with(delim: "||"))
#let dadromt = mkdisplay(admat.with(delim: "("))
#let dadsqmt = mkdisplay(admat.with(delim: "["))
#let dadcrmt = mkdisplay(admat.with(delim: "{"))
#let dadbrmt = mkdisplay(admat.with(delim: "|"))
#let dadbbmt = mkdisplay(admat.with(delim: "||"))
#let drromt = mkdisplay(rot2mat.with(delim: "("))
#let drsqmt = mkdisplay(rot2mat.with(delim: "["))
#let drcrmt = mkdisplay(rot2mat.with(delim: "{"))
#let drbrmt = mkdisplay(rot2mat.with(delim: "|"))
#let drbbmt = mkdisplay(rot2mat.with(delim: "||"))
#let rromt = rot2mat.with(delim: "(")
#let rsqmt = rot2mat.with(delim: "[")
#let rcrmt = rot2mat.with(delim: "{")
#let rbrmt = rot2mat.with(delim: "|")
#let rbbmt = rot2mat.with(delim: "||")
#let adromt = admat.with(delim: "(")
#let adsqmt = admat.with(delim: "[")
#let adcrmt = admat.with(delim: "{")
#let adbrmt = admat.with(delim: "|")
#let adbbmt = admat.with(delim: "||")
#let rovt = math.vec.with(delim: "(")
#let sqvt = math.vec.with(delim: "[")
#let crvt = math.vec.with(delim: "{")
#let brvt = math.vec.with(delim: "|")
#let bbvt = math.vec.with(delim: "||")
#let drovt = mkdisplay(math.vec.with(delim: "("))
#let dsqvt = mkdisplay(math.vec.with(delim: "["))
#let dcrvt = mkdisplay(math.vec.with(delim: "{"))
#let dbrvt = mkdisplay(math.vec.with(delim: "|"))
#let dbbvt = mkdisplay(math.vec.with(delim: "||"))
#let ni = math.in.rev
#let nni = math.in.rev.not
#let nin = math.in.not
#let ex = $va(e)_(x)$
#let ey = $va(e)_(y)$
#let ez = $va(e)_(z)$
#let et = $va(e)_( theta )$
#let ef = $va(e)_( phi )$
#let er = $va(e)_( r )$
#let vi = $vb(hat(i))$
#let vj = $vb(hat(j))$
#let vk = $vb(hat(k))$
#let vr = $vb(hat(r))$
#let vdot = math.circle.filled.small
#let sl = math.slash
#let R3 = $bbR^(3)$
#let R2 = $bbR^(2)$
#let R4 = $bbR^(2)$
#let Rn = $bbR^(n)$
#let Roo = $bbR^(oo)$
#let Coo = $bbC^(oo)$
#let Cin = $clC^(oo)$
#let C3 = $bbC^(3)$
#let C2 = $bbC^(2)$
#let C4 = $bbC^(4)$
#let Cn = $bbC^(n)$
#let cn = $clC^(n)$
#let c1 = $clC^(1)$
#let c2 = $clC^(2)$
#let xx = math.times
#let mkdisplay(func) = (..args) => math.display(func(..args))
#let nnm(content) = {
math.equation(numbering: none, block: true, content)
}
#let prnm(number, content) = {h(1fr)
set math.equation(numbering: n => {
numbering("(1.1)", number)})
content
}
#let scnm(m,e,content) = {h(1fr)
set math.equation(numbering: n => {
numbering("(1.1)", m, e) // Manually builds a numbering with custom section and equation numbers
} )
content
}
#let prnm2(number, content) = {
set math.equation(numbering: n => {
numbering("(1.1)", number)})
content
}
#let scnm2(m,e,content) = {
set math.equation(numbering: n => {
numbering("(1.1)", m, e) // Manually builds a numbering with custom section and equation numbers
} )
content
}
#let eset = math.emptyset
#let lor = math.union.big
#let land = math.sect.big
#let EEE = clE
#let vB = $va(vb(B))$
#let vl = $va(vb(l))$
#let vv = $va(vb(v))$
#let vA = $va(vb(A))$
#let vE = $va(vb(E))$
#let vS = $va(vb(S))$
#let vF = $va(vb(F))$
#let vab(content) = $va(vb(content))$
#let nequiv = math.equiv.not
#let ddv = mkdisplay(dv)
#let dpdv = mkdisplay(pdv)
#let idv = mkinline(dv)
#let ipdv = mkinline(pdv)
#let pr = $lt.curly$
// Units
#let liter = $space upright(l)$
#let kelvin = $space upright(K)$
#let mK = $upright("mK")$
#let nK = $upright("nK")$
#let uK = $upright(mu K)$
#let minute = $upright("min")$
#let farad = $space upright("F")$
#let watt = $space upright("W")$
#let hertz = $upright("Hz")$
#let THz = $upright("THz")$
#let GHz = $upright("GHz")$
#let kHz = $upright("kHz")$
#let MHz = $upright("MHz")$
#let pascal = $upright("Pa")$
#let MPa = $upright("MPa")$
#let GPa = $upright("GPa")$
#let eV = $upright("eV")$
#let MeV = $upright("MeV")$
#let GeV = $upright("GeV")$
#let hr = $space upright("h")$
#let second = $space upright("s")$
#let coulomb = $space upright(C)$
#let newton = $space upright(N)$
#let volt = $upright(V)$
#let hr2 = $upright("h")$
#let second2 = $upright("s")$
#let coulomb2 = $upright(C)$
#let newton2 = $upright(N)$
#let volt2 = $upright(V)$
#let mV = $upright("mV")$
#let nV = $upright("nV")$
#let MV = $upright("MV")$
#let uV = $mu upright(V)$
#let meter = $space upright(m)$
#let meter2 = $upright(m)$
#let tesla = $space upright(T)$
#let tesla2 = $upright(T)$
#let henry = $space upright(H)$
#let henry2 = $upright(H)$
#let ohm = $space ohm$
#let ohm2 = $ohm$
#let Wb = $upright("Wb")$
#let cT = $upright("mT")$
#let kT = $upright("kT")$
#let dT = $upright("dT")$
#let pT = $upright("pT")$
#let pF = $upright("pF")$
#let nF = $upright("nF")$
#let uF = $upright(mu F)$
#let uT = $upright(mu T)$
#let cm = $upright("cm")$
#let km = $upright("km")$
#let dm = $upright("dm")$
#let pm = $upright("pm")$
#let mW = $upright("mW")$
#let mH = $upright("mH")$
#let um = $upright(mu m)$
#let nm = $upright("nm")$
#let mm = $upright("mm")$
#let us = $upright(mu s)$
#let ns = $upright("ns")$
#let ms = $upright("ms")$
#let amp = $space upright(A)$
#let mA = $upright("mA")$
#let uA = $mu upright("A")$
#let gram = $upright(g)$
#let joule = $upright(J)$
#let mJ = $upright("mJ")$
#let kJ = $upright("kJ")$
#let ug = $upright(mu g)$
#let ng = $upright("ng")$
#let mg = $upright("mg")$
#let pg = $upright("pg")$
#let mW = $upright("mW")$
#let GW = $upright("GW")$
#let uW = $upright(mu W)$
#let nW = $upright("nW")$
#let kW = $upright("kW")$
#let MW = $upright("MW")$
#let mps = $meter sl second2$
#let mps2 = $meter sl upright(s)^(2)$
#let kmph = $space km sl hr$
#let Nm = $upright("Nm")$
#let rad = $upright("rad")$
#let kg = $upright("kg")$
#let dinte = $display(integral)$
#let ds = math.display
#let inl = math.inline
#let degC = $degree upright(C)$
#let degF = $degree upright(F)$
#let bernoulli = $p_(1) + rho g y_(1) + dfr(rho v_(1)^(2),2) = p_(2) + rho g y_(2) + dfr(rho v_(2)^(2),2)$
#let atm = $upright("atm")$
#let bar = $upright("bar")$
#let const = $upright("const")$
#let cte = $upright("cte")$
#let dintev = math.display(math.integral.vol)
#let iintev = math.inline(math.integral.vol)
#let nintev = math.integral.vol
#let dintes = math.display(math.integral.surf)
#let iintes = math.inline(math.integral.surf)
#let nintes = math.integral.surf
#let dintec = math.display(math.integral.cont)
#let iintec = math.inline(math.integral.cont)
#let nintec = math.integral.cont
#let dinte4 = math.display(math.integral.quad)
#let iinte4 = math.inline(math.integral.quad)
#let ninte4 = math.integral.quad
#let dinte3 = math.display(math.integral.triple)
#let iinte3 = math.inline(math.integral.triple)
#let ninte3 = math.integral.triple
#let dinte2 = math.display(math.integral.double)
#let iinte2 = math.inline(math.integral.double)
#let ninte2 = math.integral.double
#let dpdv(fun,var) = $ds(pdv(fun,var))$
#let Hom = math.upright("Hom")
#let Cl(x) = $C l(x)$ |
|
https://github.com/gabrielluizep/typst-ifsc | https://raw.githubusercontent.com/gabrielluizep/typst-ifsc/main/template/exam.typ | typst | Creative Commons Zero v1.0 Universal | #let exam(
title: "Título",
professor: "Professor",
email: "<EMAIL>",
program: "Engenharia de Programação",
course: "Progrmação I",
semester: "2023.2",
doc,
) = {
set page(
margin: (top: 4.25cm, bottom: 3.25cm, left: 2.25cm, right: 2.25cm),
header: image("../assets/ifsc-header.png"),
footer: [
#set text(font: "Fira Sans", stretch: 50%, size: 0.65em)
#set align(center)
#text(
rgb(50, 160, 65),
)[*Instituto Federal de Santa Catarina -- Câmpus São José*]\
<NAME>, 608 --- Praia Comprida --- São José, SC --- CEP:
88130-310\
Fone: (48) 3381-2800 --- #link("www.ifsc.edu.br") \
página #counter(page).display("1 de 1", both: true)
],
)
set text(font: "Latin Modern Roman", size: 1em, lang: "br")
set par(justify: true)
show link: underline
show heading.where(level: 1): it => [
#set align(center)
#set text(size: 0.9em)
#v(3em, weak: true)
#it.body
#v(3em, weak: true)
]
show heading.where(level: 2): it => [
#v(3em, weak: true)
#it.body
#v(2em, weak: true)
]
show heading: set text(font: "Latin Modern Sans")
set enum(spacing: 2em)
box(
width: 100%,
stroke: 0.25pt + luma(150),
fill: luma(240),
inset: 1.25em,
)[
#align(center)[
#set text(font: "Latin Modern Sans")
#text(course, size: 1.1em) \
#text(program, size: 0.9em)
]
]
text(professor, size: 0.9em, font: "Latin Modern Sans")
h(1fr)
text(semester, size: 0.9em, font: "Latin Modern Sans")
heading(title, level: 1)
doc
}
|
https://github.com/kdog3682/typkit | https://raw.githubusercontent.com/kdog3682/typkit/main/0.1.0/src/typst.typ | typst | #import "fills.typ": *
#import "alignments.typ": *
#let scale = scale
#let rect = rect
#let circle = circle
#let box = box
#let length = length
#let measure = measure
#let table = table
#let text = text
#let range = range
#let place = place
#let underline = underline
#let stack = stack
|
|
https://github.com/dantevi-other/kththesis-typst | https://raw.githubusercontent.com/dantevi-other/kththesis-typst/main/parts/5-body.typ | typst | MIT License | //-- Imports
//-- Configurations
#set page(
numbering: "1",
margin: (x: 100pt, y: 120pt)
)
#set text(12pt)
#counter(page).update(1)
#set heading(
numbering: "1.1 "
)
#set bibliography(style: "ieee")
#set math.equation(numbering: "(1)", supplement: "Eq." )
//-- Content
= Introduction
#lorem(200)
= Background
#lorem(200)
= Methodology
#lorem(200)
= Results
#lorem(200)
= Discussion
#lorem(200)
= Conclusion
#lorem(100) |
https://github.com/ymgyt/blog | https://raw.githubusercontent.com/ymgyt/blog/main/lt/grafana-lt/presen.typ | typst | #import "@preview/polylux:0.3.1": *
#import themes.bipartite: *
#show: bipartite-theme.with(aspect-ratio: "16-9")
#show link: underline
#set text(
size: 25pt,
font: (
"Noto Sans CJK JP",
))
#title-slide(
title: [OpenTelemetryのSignalsを\
Grafana Cloudに送る],
author: [ymgyt],
date: [2024-10-10],
)
#west-slide(title: "自己紹介")[
```toml
[speaker]
name = "<NAME>"
github = "ymgyt"
[company]
name = "FRAIM Inc."
```
]
#west-slide(title: "概要")[
OpenTelemetryのLogs, Traces, MetricsをOpenTelemetry Collectorを利用してGrafana Cloudに送る方法について
\
\
#figure(
image("./images/overview.svg"),
numbering: none,
)
]
#west-slide(title: "OpenTelemetry とは")[
- CNCF Project
- Components
- Data model
- Instrumentation (API, SDK)
- Procotol (OTLP)
- Collector
- Schema
#pause \
永続化、Query, Visualizeについてはスコープ外
]
#west-slide(title: "Vendor中立性とbig tent philosophyとの親和性")[
> One of the biggest advantages of the OpenTelemetry project is its vendor neutrality.
\
> Vendor neutrality also happens to be a core element of our big tent philosophy here at Grafana Labs.
#link("https://grafana.com/blog/2024/09/12/opentelemetry-and-vendor-neutrality-how-to-build-an-observability-strategy-with-maximum-flexibility/")[OpenTelemetry and vendor neutrality: how to build an observability strategy with maximum flexibility]
]
#west-slide(title: "OpenTelemetry Collector とは")[
> The OpenTelemetry Collector offers a vendor-agnostic implementation of how to receive, process and export telemetry data.
#link("https://opentelemetry.io/docs/collector/")[opentelemetry.io/docs/collector/]
]
#west-slide(title: "Grafana Cloudの認証")[
OpenTelemetry CollectorからGrafana Cloudにexportするには以下の情報が必要
- OTLP Endpoint
- Grafana Cloud instance ID
- API Token
]
#west-slide(title: "Grafana Cloudの認証")[
- OTLP Endpoint
#figure(
image("./images/otlp_endpoint_ss.png"),
numbering: none,
caption: "https://grafana.com/orgs/{org}/stacks/{stack}/otlp-info"
)
]
#west-slide(title: "Grafana Cloudの認証")[
- Grafana Cloud instance ID
#figure(
image("./images/instance_id_ss.png", height: 60%),
numbering: none,
caption: "https://grafana.com/orgs/{org}/stacks/{stack}/otlp-info"
)
]
#west-slide(title: "Grafana Cloudの認証")[
- API Token
#figure(
image("./images/api_token_ss.png"),
numbering: none,
caption: "https://grafana.com/orgs/{org}/stacks/{stack}/otlp-info"
)
]
#west-slide(title: "Grafana Cloudの認証 Collectorの設定")[
#set text(size: 18pt)
```yaml
extensions:
basicauth/grafanacloud:
client_auth:
username: ${env:GC_INSTANCE_ID}
password: ${env:GC_API_KEY}
receivers:
otlp:
protocols: { grpc: { endpoint: "127.0.0.1:4317"}}
exporters:
otlphttp/grafanacloud:
auth:
authenticator: basicauth/grafanacloud
endpoint: ${env:GC_OTLP_ENDPOINT}
service:
extensions: [basicauth/grafanacloud]
pipelines:
traces: &pipeline
receivers: [otlp]
exporters: [otlphttp/grafanacloud]
metrics: *pipeline
logs: *pipeline```
]
#west-slide(title: "Logsの変換")[
- labelの`"."`は`"_"`に変換される
- 特定のResourceはindex labelとして扱われる
- `deployment.environment`, `cloud.region`, `service.{namespace,name,id}`, `k8s.{cluster.name, container.name, ...}`
- 変更するには、supportに連絡が必要
- index labelとして扱われなかったものは#link("https://grafana.com/docs/loki/latest/get-started/labels/structured-metadata/")[strucuted metadata]として扱われる
#link("https://grafana.com/docs/grafana-cloud/send-data/otlp/otlp-format-considerations/#logs")[OTLP: OpenTelemetry Protocol format considerations]
]
#west-slide(title: "Logsの変換")[
2024年3月25日から90日前の間にotlpでlogをexportしていた場合、grafana cloud側の内部でloki exporterによる変換がなされているので、該当ユーザは注意が必要(該当するかはsupportに問い合わせる)
\
`service.namespace/service.name`が`job` labelに変換される等
#link("https://grafana.com/docs/grafana-cloud/send-data/otlp/adopt-new-logs-format/")[Why and How to Adopt the Native OTLP Log Format?]
]
#west-slide(title: "Metricsの変換")[
MetricsはMimir(Prometheus compatible database)に保存される
\
\
OpenTelemetryとPromehteusのmetricsがどのように変換されるかは#link("https://opentelemetry.io/docs/specs/otel/compatibility/prometheus_and_openmetrics/#otlp-metric-points-to-prometheus")[Prometheus and OpenMetrics Compatibility]という仕様に定められている
\
(StatusはDevelopmentなのでBreaking changeはありえる)
]
#west-slide(title: "Metricsの変換")[
- Metricsの名前やattributes(label)の`"."`や`"-"`は`"_"`に変換される\
`http.response.status.code` => `http_response_status_code`
- unitとtypeがsuffixに追加される
`graphql.duration` =>
`graphql_duration_seconds_bucket`
]
#west-slide(title: "Metricsの変換")[
promehteusの以下のlabelはotelのservice resourceからmappingされる
- `job`は`service.namespace/service.name`
- `instance`は`service.instance.id`
#link("https://opentelemetry.io/docs/specs/semconv/resource/#service")[仕様]で`service.name`, `service.namespace`, `service.instance.id`のtripletがユニークであることが求められている
]
#west-slide(title: "Metricsの変換")[
Resourceはtarget_info metricsに変換される
\
```
target_info{
deployment_environment_name="production",
instance="myhost",
job="myservice/api",
service_version="0.2.5"}
```
]
#west-slide(title: "Metricsの変換")[
collectorでresourceを明示的にattributeにsetしておくとmetricsにresourceの情報をのせることができる
#set text(size: 20pt)
```
processor:
transform:
metric_statements:
- context: metric
statements:
- set(attributes["namespace"], resource.attributes["k8s_namespace_name"])
- set(attributes["container"], resource.attributes["k8s.container.name"])
- set(attributes["pod"], resource.attributes["k8s.pod.name"])
- set(attributes["cluster"], resource.attributes["k8s.cluster.name"])
```
]
#west-slide(title: "PrometheusのOpenTelemetryへの取り組み")[
- UTF-8 metric and label name
- `.`をpromehteusでも使えるようになる
- Native support for resource attributes
- attributeとresourceがpromethuesではflatに表現されている
- Delta temporality
#link("https://grafana.com/blog/2024/04/03/how-the-prometheus-community-is-investing-in-opentelemetry/")[How the Prometheus community is investing in OpenTelemetry]
]
#west-slide(title: "Tracesの変換")[
TempoはOpenTelemetryのAttributeとResourceをサポートしている\
OpenTelemetry上のTraceがそのままTempoのtraceとして表現されている
(`"."`が`"_"`に変換されたりしない)
#link("https://grafana.com/docs/tempo/latest/operations/best-practices/#best-practices-for-traces")[Best practices for traces]
]
#west-slide(title: "まとめ")[
- OTLPを利用してGrafana Cloudにlogs, metrics, tracesを簡単にexportできる
- OpenTelemetryのデータ構造がどのようにそれぞれのサービスでマッピングされるかを意識する必要がある
- OpenTelemetryを利用した際のexperienceの改善が日々進んでいる
]
#west-slide(title: "参考1")[
- #link("https://opentelemetry.io/community/mission/")[OpenTelemetry mission, vision, and values]
- #link("https://grafana.com/docs/grafana-cloud/send-data/otlp/")[OTLP: The OpenTelemetry Protocol]
- #link("https://grafana.com/docs/grafana-cloud/send-data/otlp/otlp-format-considerations/")[OTLP: OpenTelemetry Procotol format considerations]
- #link("https://grafana.com/blog/2024/09/12/opentelemetry-and-vendor-neutrality-how-to-build-an-observability-strategy-with-maximum-flexibility/")[OpenTelemetry and vendor neutrality]
- #link("https://grafana.com/blog/2024/04/03/how-the-prometheus-community-is-investing-in-opentelemetry/")[How the Prometheus community is investing in OpenTelemetry]
- #link("https://docs.google.com/document/d/1FgHxOzCQ1Rom-PjHXsgujK8x5Xx3GTiwyG__U3Gd9Tw/edit?pli=1#heading=h.unv3m5m27vuc")[Proper support for OTEL resource attributes]
]
#west-slide(title: "参考2")[
- #link("https://docs.google.com/document/d/1epvoO_R7JhmHYsII-GJ6Yw99Ky91dKOqOtZGqX7Bk0g/edit#heading=h.5sybau7waq2q")[OTel to Prometheus Usage Issues]
- #link("https://www.youtube.com/watch?v=mcabOH70FqU")[PromCon 2023 - Towrds making Prometheus OpenTelemetry native]
- #link("https://docs.google.com/document/d/1gG-eTQ4SxmfbGwkrblnUk97fWQA93umvXHEzQn2Nv7E/edit#heading=h.b79ugwqjcgse")[Ux of using target_info]
- #link("https://docs.google.com/document/d/1NGdKqcmDExynRXgC_u1CDtotz9IUdMrq2yyIq95hl70/edit")[Prometheus as an OTel native metrics backend]
- #link("https://grafana.com/blog/2024/08/06/prometheus-data-source-update-redefining-our-big-tent-philosophy/")[Prometheus data source update: Redefining our big tent philosophy]
- #link("https://grafana.com/blog/2023/12/18/opentelemetry-best-practices-a-users-guide-to-getting-started-with-opentelemetry/")[OpenTelemetry best practices: A user's guide to getting started with OpenTelemetry]
]
#west-slide(title: "参考3")[
- #link("https://opentelemetry.io/docs/specs/otel/compatibility/prometheus_and_openmetrics/")[Prometheus and OpenMetrics Compatibility]
- #link("https://grafana.com/docs/loki/latest/send-data/otel/")[Ingesting logs to Loki using OpenTelemetry Collector]
- #link("https://www.youtube.com/watch?v=snXhe1fDDa8")[Introduction to Ingesting OpenTelemetry Logs with Loki | Zero to Hero: Loki | Grafana]
- #link("https://grafana.com/docs/grafana-cloud/send-data/otlp/adopt-new-logs-format/")[Why and How to Adopt the Native OTLP Log Format?]
- #link("https://grafana.com/docs/tempo/latest/operations/best-practices/#best-practices-for-traces")[Best practices for traces]
]
|
|
https://github.com/frectonz/the-pg-book | https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/195.%20earnest.html.typ | typst | earnest.html
Earnestness
December 2020Jessica and I have certain words that have special significance
when we're talking about startups. The highest compliment we can
pay to founders is to describe them as "earnest." This is not by
itself a guarantee of success. You could be earnest but incapable.
But when founders are both formidable (another of our words) and
earnest, they're as close to unstoppable as you get.Earnestness sounds like a boring, even Victorian virtue. It seems
a bit of an anachronism that people in Silicon Valley would care
about it. Why does this matter so much?When you call someone earnest, you're making a statement about their
motives. It means both that they're doing something for the right
reasons, and that they're trying as hard as they can. If we imagine
motives as vectors, it means both the direction and the magnitude
are right. Though these are of course related: when people are doing
something for the right reasons, they try harder.
[1]The reason motives matter so much in Silicon Valley is that so many
people there have the wrong ones. Starting a successful startup
makes you rich and famous. So a lot of the people trying to start
them are doing it for those reasons. Instead of what? Instead of
interest in the problem for its own sake. That is the root of
earnestness.
[2]It's also the hallmark of a nerd. Indeed, when people describe
themselves as "x nerds," what they mean is that they're interested
in x for its own sake, and not because it's cool to be interested
in x, or because of what they can get from it. They're saying they
care so much about x that they're willing to sacrifice seeming cool
for its sake.A genuine interest
in something is a very powerful motivator � for
some people, the most powerful motivator of all.
[3]
Which is why
it's what Jessica and I look for in founders. But as well as being
a source of strength, it's also a source of vulnerability. Caring
constrains you. The earnest can't easily reply in kind to mocking
banter, or put on a cool facade of nihil admirari. They care too
much. They are doomed to be the straight man. That's a real
disadvantage in your
teenage years,
when mocking banter and nihil
admirari often have the upper hand. But it becomes an advantage
later.It's a commonplace now that the kids who were
nerds in high school
become the cool kids' bosses later on. But people misunderstand why
this happens. It's not just because the nerds are smarter, but also
because they're more earnest. When the problems get harder than the
fake ones you're given in high school, caring about them starts to
matter.Does it always matter? Do the earnest always win? Not always. It
probably doesn't matter much in politics, or in crime, or in certain
types of business that are similar to crime, like gambling, personal
injury law, patent trolling, and so on. Nor does it matter in
academic fields at the more
bogus end of the spectrum. And though
I don't know enough to say for sure, it may not matter in some kinds
of humor: it may be possible to be completely cynical and still be
very funny.
[4]Looking at the list of fields I mentioned, there's an obvious
pattern. Except possibly for humor, these are all types of work I'd
avoid like the plague. So that could be a useful heuristic for
deciding which fields to work in: how much does earnestness matter?
Which can in turn presumably be inferred from the prevalence of
nerds at the top.Along with "nerd," another word that tends to be associated with
earnestness is "naive." The earnest often seem naive. It's not
just that they don't have the motives other people have. They often
don't fully grasp that such motives exist. Or they may know
intellectually that they do, but because they don't feel them, they
forget about them.
[5]It works to be slightly naive not just about motives but also,
believe it or not, about the problems you're working on. Naive
optimism can compensate for the bit rot that
rapid change causes
in established beliefs. You plunge into some problem saying "How
hard can it be?", and then after solving it you learn that it was
till recently insoluble.Naivete is an obstacle for anyone who wants to seem sophisticated,
and this is one reason would-be intellectuals find it so difficult
to understand Silicon Valley. It hasn't been safe for such people
to use the word "earnest" outside scare quotes since <NAME>
wrote "The Importance of Being Earnest" in 1895. And yet when you
zoom in on Silicon Valley, right into
Jessica Livingston's brain,
that's what her x-ray vision
is seeking out in founders. Earnestness!
Who'd have guessed? Reporters literally can't believe it when
founders making piles of money say that they started their companies
to make the world better. The situation seems made for mockery.
How can these founders be so naive as not to realize how implausible
they sound?Though those asking this question don't realize it, that's not a
rhetorical question.A lot of founders are faking it, of course, particularly the smaller
fry, and the soon to be smaller fry. But not all of them. There are
a significant number of founders who really are interested in the
problem they're solving mainly for its own sake.Why shouldn't there be? We have no difficulty believing that people
would be interested in history or math or even old bus tickets for
their own sake. Why can't there be people interested in self-driving
cars or social networks for their own sake? When you look at the
question from this side, it seems obvious there would be. And isn't
it likely that having a deep interest in something would be a source
of great energy and resilience? It is in every other field.The question really is why we have a blind spot about business.
And the answer to that is obvious if you know enough history. For
most of history, making large amounts of money has not been very
intellectually interesting. In preindustrial times it was never far
from robbery, and some areas of business still retain that character,
except using lawyers instead of soldiers.But there are other areas of business where the work is genuinely
interesting. <NAME> got to spend much of his time working on
interesting technical problems, and for the last several decades
the trend in that direction has been accelerating. It's much easier
now to make a lot of money by working on something you're interested
in than it was 50 years ago.
And that, rather than how fast they
grow, may be the most important change that startups represent.
Though indeed, the fact that the work is genuinely interesting is
a big part of why it gets done so fast.
[6]Can you imagine a more important change than one in the relationship
between intellectual curiosity and money? These are two of the most
powerful forces in the world, and in my lifetime they've become
significantly more aligned. How could you not be fascinated to watch
something like this happening in real time?I meant this essay to be about earnestness generally, and now I've
gone and talked about startups again. But I suppose at least it
serves as an example of an x nerd in the wild.Notes[1]
It's interesting how many different ways there are not to
be earnest: to be cleverly cynical, to be superficially brilliant,
to be conspicuously virtuous, to be cool, to be sophisticated, to
be orthodox, to be a snob, to bully, to pander, to be on the make.
This pattern suggests that earnestness is not one end of a continuum,
but a target one can fall short of in multiple dimensions.Another thing I notice about this list is that it sounds like a
list of the ways people behave on Twitter. Whatever else social
media is, it's a vivid catalogue of ways not to be earnest.[2]
People's motives are as mixed in Silicon Valley as anywhere
else. Even the founders motivated mostly by money tend to be at
least somewhat interested in the problem they're solving, and even
the founders most interested in the problem they're solving also
like the idea of getting rich. But there's great variation in the
relative proportions of different founders' motivations.And when I talk about "wrong" motives, I don't mean morally wrong.
There's nothing morally wrong with starting a startup to make money.
I just mean that those startups don't do as well.[3]
The most powerful motivator for most people is probably family.
But there are some for whom intellectual curiosity comes first. In
his (wonderful) autobiography, <NAME> says explicitly that for
a mathematician, math must come before anything else, including
family. Which at least implies that it did for him.[4]
Interestingly, just as the word "nerd" implies earnestness even
when used as a metaphor, the word "politics" implies the opposite.
It's not only in actual politics that earnestness seems to be a
handicap, but also in office politics and academic politics.[5]
It's a bigger social error to seem naive in most European
countries than it is in America, and this may be one of subtler
reasons startups are less common there. Founder culture is completely
at odds with sophisticated cynicism.The most earnest part of Europe is Scandinavia, and not surprisingly
this is also the region with the highest number of successful
startups per capita.[6]
Much of business is schleps, and probably always will be. But
even being a professor is largely schleps. It would be interesting
to collect statistics about the schlep ratios of different jobs,
but I suspect they'd rarely be less than 30%.Thanks to <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, and <NAME> for reading
drafts of this.
|
|
https://github.com/zyf722/typst-tabler-icons | https://raw.githubusercontent.com/zyf722/typst-tabler-icons/main/assets/splash.typ | typst | MIT License | #import "../src/lib.typ": *
#set page(width: 1280pt, margin: 0pt, height: auto)
#set text(size: 48pt, fill: white)
#let z-stack(..items) = {
grid(
columns: items.pos().len() * (1fr,),
column-gutter: -100%,
rows: 1,
..items
)
}
#rect(
width: 100%,
fill: gradient.linear(rgb(57, 140, 184), rgb(30, 179, 180)),
radius: 24pt,
inset: 32pt,
{
text(baseline: -6pt, weight: "bold")[use-tabler-icons]
h(1fr)
text(fill: gradient.linear(rgb(255, 255, 255, 0), white))[
#tabler-icon("a-b")
#tabler-icon("access-point")
#tabler-icon("accessible")
#tabler-icon("activity")
#tabler-icon("address-book")
#tabler-icon("affiliate")
#tabler-icon("alarm")
#tabler-icon("album")
#tabler-icon("alert-circle")
#tabler-icon("aperture")
]
}
)
#let z-stack(..items) = {
grid(
columns: items.pos().len() * (1fr,),
column-gutter: -100%,
rows: 1,
..items
)
} |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-1C80.typ | typst | Apache License 2.0 | #let data = (
("CYRILLIC SMALL LETTER ROUNDED VE", "Ll", 0),
("CYRILLIC SMALL LETTER LONG-LEGGED DE", "Ll", 0),
("CYRILLIC SMALL LETTER NARROW O", "Ll", 0),
("CYRILLIC SMALL LETTER WIDE ES", "Ll", 0),
("CYRILLIC SMALL LETTER TALL TE", "Ll", 0),
("CYRILLIC SMALL LETTER THREE-LEGGED TE", "Ll", 0),
("CYRILLIC SMALL LETTER TALL HARD SIGN", "Ll", 0),
("CYRILLIC SMALL LETTER TALL YAT", "Ll", 0),
("CYRILLIC SMALL LETTER UNBLENDED UK", "Ll", 0),
("CYRILLIC CAPITAL LETTER TJE", "Lu", 0),
("CYRILLIC SMALL LETTER TJE", "Ll", 0),
)
|
https://github.com/denizenging/site | https://raw.githubusercontent.com/denizenging/site/master/page/home/_index.en.typ | typst | #import "@local/pub-page:0.0.0": *
#show: template(title: "Home", menu: (1, "home")) |
|
https://github.com/ToxicPie/NaOCl | https://raw.githubusercontent.com/ToxicPie/NaOCl/master/lib.typ | typst | #let preprocess_code(code) = {
code.split("\n").map(line =>
if regex("//(/| clang-format)") in line {
none
} else if regex("^#include") in line {
if "// keep-line" in line {
line.replace("// keep-line", "").trim(at: end)
}
} else {
line.trim(at: end)
}
).join("\n")
}
#let render_content(filename) = {
let ext = filename.split(".").at(-1)
if ext == "typ" {
include(filename)
} else {
let code = preprocess_code(read(filename))
raw(
block: true,
lang: ext,
tab-size: 2,
code.trim(),
)
}
}
#let recursively_render_content(contents, depth: 1) = {
for item in contents {
if type(item) == dictionary {
let (title, subcontents) = item.pairs().at(0)
heading(
depth: depth,
numbering: "1.1",
title,
)
recursively_render_content(subcontents, depth: depth + 1)
} else {
render_content(item)
}
}
}
|
|
https://github.com/N4tus/uf_algo | https://raw.githubusercontent.com/N4tus/uf_algo/main/README.md | markdown | MIT License | # uf_algo
An untra-flexible typst pseudo-algorithm library
|
https://github.com/caro3dc/typststuff | https://raw.githubusercontent.com/caro3dc/typststuff/main/jx-style.typ | typst | #let coll = json("irgot.json");
#import "jx-date.typ": *
#let docu(
// DETERMINES WHAT KIND OF DOCUMENT IT WILL BE. CHECK THE VARIABLE validDocTypes A BIT BELOW.
docutype: "blankhead",
// AUTHOR. CAN EITHER BE A STRING OR AN ARRAY. NOT USED FOR PAPERS.
author: "<NAME>",
// SECTION.
section: "",
// // ALL FIELDS BEGINNING WITH rp- and bp- ARE ONLY USED IN PAPERS (i.e. research papers, business plans)
// PAPER TITLE.
rp-title: "",
// PAPER AUTHORS. IS AN ARRAY IN THE FORMAT OF ( (lastname: string), (firstname: string) )
rp-authors: (),
// PAPER SCHOOL.
rp-school: "",
// PAPER SUBMITTED TO THIS PERSON.
rp-submittedTo: "",
// PAPER KEYWORDS. FOR FUTURE USE. STILL GONNA USE THIS STYLEFILE IN COLLEGE.
rp-keywords: (),
// EXTRA PAPER SUBTITLES SHOULD THE FORMAT DEMAND IT.
rp-subtitle: [],
rp-supplement: [],
bp-supplement2: [],
// PAPER SUBJECT.
rp-subject: [],
// // END OF RESEARCH PAPER SECTION.
// SUBJECT.
subject: "",
// TITLE OF DOCUMENT.
title: "",
// SUBTITLE OF DOCUMENT. NOT USED IN ASSIGNMENT DOCS.
subtitle: "",
// DOCUMENT DESCRIPTION.
description: "",
rating: "",
tags: (),
cod: "",
colsc: "default",
headingstyle: "block",
headingnum: "1.1.1 ·",
size: "print",
font: "Iosevka SS14",
fw: "regular",
date: datetime.today().display("[day padding:none] [month repr:short] [year repr:full]"),
columns: 1,
fz: 12pt,
flags: (),
debug: false,
body,
) = {
// TYPE CHECKING --- TYPE CHECKING --- TYPE CHECKING --- TYPE CHECKING --- TYPE CHECKING --- TYPE CHECKING --- TYPE CHECKING ---
let doctype = docutype
let code = raw(cod)
let validDoctypes = (
"blankhead", // 0
"schooldoc", // 1
"notes", // 2
"paper", // 3
"article", // 4
"articleVerbose", // 5
"writing", // 6
"writingVerbose", // 7
"diaryEntry", // 8
"businessPlan", // 9
)
if (type(docutype) == int) { doctype = validDoctypes.at(docutype) }
if (type(docutype) not in (str, int)) { panic("Field `docutype` must be a string or an integer!") }
if (type(docutype) not in (str, int) and docutype not in validDoctypes) { panic("Invalid doctype!") }
if (type(author) != str and type(author) != array) { panic("Field `author` must be a string or an array!") }
// COLOUR DEFS --- COLOUR DEFS --- COLOUR DEFS --- COLOUR DEFS --- COLOUR DEFS --- COLOUR DEFS --- COLOUR DEFS --- COLOUR DEFS ---
let bg = rgb("#f9f2ed"); // BG; 50
let la = rgb("#b4c0f2"); // lightAccent; 200
let ac = rgb("#5c6ed3"); // Accent; 600
let da = rgb("#38378F"); // darkAccent; 800
let tx = rgb("#0E0E25"); // Text; 950
if (coll.at(colsc, default: "nane") != "nane") {
bg = rgb(eval("coll." + colsc, scope: (coll: coll)).bg)
tx = rgb(eval("coll." + colsc, scope: (coll: coll)).tx)
ac = rgb(eval("coll." + colsc, scope: (coll: coll)).ac)
la = rgb(eval("coll." + colsc, scope: (coll: coll)).la)
da = rgb(eval("coll." + colsc, scope: (coll: coll)).da)
}
let solidStroke(th: 1pt, c) = (paint: c, thickness: th, dash: "solid")
let dottedStroke(th: 1pt, c) = (paint: c, thickness: th, dash: "dotted")
let dashedStroke(th: 1pt, c) = (paint: c, thickness: th, dash: "dashed")
let bgla = color.mix(bg, la);
let laac = color.mix(la, ac);
let acda = color.mix(ac, da);
let datx = color.mix(da, tx);
let fill-bg = arguments(fill: bg)
let fill-bgla = arguments(fill: bgla)
let fill-la = arguments(fill: la)
let fill-laac = arguments(fill: laac)
let fill-ac = arguments(fill: ac)
let fill-acda = arguments(fill: acda)
let fill-da = arguments(fill: da)
let fill-datx = arguments(fill: datx)
let fill-tx = arguments(fill: tx)
// TEXT --- TEXT --- TEXT --- TEXT --- TEXT --- TEXT --- TEXT --- TEXT --- TEXT --- TEXT --- TEXT --- TEXT ---
set text(
font: font,
size: fz,
weight: fw,
fill: tx,
hyphenate: false,
lang: "en",
region: "ph",
number-width: "tabular",
number-type: if (flags.contains("oldnum")) { "old-style" } else { auto },
slashed-zero: if (flags.contains("zero")) { true } else { false },
)
show raw: set text(font: "Iosevka SS14", size: fz)
set par(justify: true, leading: 0.875em)
show math.equation: m => if (font.contains("Fira")) {
text(font: "Fira Math")[#m]
} else if (font.contains("Noto Sans") or font.contains("Noto Mono")) {
text(font: "Noto Sans Math")[#m]
} else {
text(font: "Libertinus Math")[#m]
}
show math.equation.where(block: false): set text(size: 1.2em)
show math.equation.where(block: true): set text(size: 1.5em)
show link: set text(..fill-ac)
// OUTLINES --- OUTLINES --- OUTLINES --- OUTLINES --- OUTLINES --- OUTLINES --- OUTLINES --- OUTLINES ---
set outline(depth: 3, indent: 2em)
show outline.entry.where(level: 1): strong
// BLOCKQUOTES --- BLOCKQUOTES --- BLOCKQUOTES --- BLOCKQUOTES --- BLOCKQUOTES --- BLOCKQUOTES --- BLOCKQUOTES --- BLOCKQUOTES ---
set quote(block: true)
show quote: q => [
#pad(1em)[
#block(fill: color.mix(bg, bgla), inset: (x: 2em, y: 2.5em))[
#place(
top + left,
dx: -1.5em,
dy: -2em,
)[#text(fill: laac, size: 2em, weight: 1000, style: "italic")[«]]
#place(
bottom + right,
dx: 1.5em,
dy: 2em,
)[#text(fill: laac, size: 2em, weight: 1000, style: "italic")[»]]
#[#emph[#q.body]] #linebreak()
#h(1fr) — #q.attribution
]
]
]
// LISTS AND ENUMS --- LISTS AND ENUMS --- LISTS AND ENUMS --- LISTS AND ENUMS --- LISTS AND ENUMS --- LISTS AND ENUMS --- LISTS AND ENUMS ---
set enum(
numbering: (..nums) => [#strong[#numbering("1.1.1.", ..nums)]],
full: if (flags.contains("fullenums")) { true } else { false },
tight: false
)
set list(tight: false)
set terms(tight: false)
show enum.item: set block(spacing: 1.25em)
show list.item: set block(spacing: 1.25em)
show terms.item: k => block(spacing: 1em)[- #[#k.term]<hl-la> #emph(k.description) #linebreak()]
// PAGE --- PAGE --- PAGE --- PAGE --- PAGE --- PAGE --- PAGE --- PAGE --- PAGE --- PAGE --- PAGE ---
set document(
title: if (title == "") {} else { title },
author: if (type(author) == str) {
author
} else if type(author) == array {
(..author).join(", ")
},
date: datetime.today(),
keywords: rp-keywords,
)
set page(
fill: bg,
//DEFAULT PAGE SIZE: 8.5in x 11in, 0.5in margin on all sides
width: if (size == "longbond") { 8.5in } else if (size == "longbond-l") { 13in } else if (size == "print-l") { 11in } else if (size == "phone") { 6in } else if (size == "notebook") { 5.5in } else if (size == "tablet") { 10in } else if (size == "pc") { 12in } else if (size == "a4") {210mm} else { 8.5in },
height: if (size == "longbond") { 13in } else if (size == "longbond-l") { 8.5in } else if (size == "print-l") { 8.5in } else if (size == "phone") { 12in } else if (size == "notebook") { 7.5in } else if (size == "tablet") { 6in } else if (size == "pc") { 7.5in } else if (size == "a4" ) {297mm} else { 11in },
margin: (
y: 0.75in,
rest: 0.5in,
bottom: if (flags.contains("nofoot")) { 0.75in } else { 1in },
),
header: line(length: 100%, stroke: solidStroke(tx)),
footer: [
#line(length: 100%, stroke: solidStroke(tx));
#if (flags.contains("nofoot")) {} else [
#if(flags.contains("blankfoot")) {} else [
#if (cod != "") { [ [#code] ] } else {}
#if (rp-title != "") { emph[#rp-title] } else if (title != "") { emph[#title] }
]
#h(1fr) #strong[#counter(page).display()]
]
],
columns: columns,
)
// #region HEADINGS
// HEADINGS --- HEADINGS --- HEADINGS --- HEADINGS --- HEADINGS --- HEADINGS --- HEADINGS --- HEADINGS ---
set heading(
numbering: (..nums) => if (doctype == "businessPlan") {
let format = ("I.", "A.", "1.", "I.", "A.", "1.").at(nums.pos().len() - 1)
numbering(format, nums.pos().last())
} else {
numbering(headingnum, ..nums)
},
)
// -- HEADING 1 -- HEADING 1 -- HEADING 1 -- HEADING 1 --
show heading.where(level: 1): hy => if (headingstyle == "block") {
[
// -- H1 BLOCK STYLE
#set text(size: 1.25em, fill: bg, weight: "bold")
#block(
width: 100%,
fill: none,
stroke: (y: solidStroke(th: 2pt, tx)),
inset: (y: 3pt),
)[
#grid(
columns: (auto, 1fr),
inset: (x: 0.5em, y: 0.33em),
grid.cell(fill: tx, align: left)[#counter(heading).display()],
grid.cell(fill: datx)[#hy.body],
)
]
]
} else if (headingstyle == "simple") {
[
// -- H1 SIMPLE STYLE
#set text(size: 1.25em, fill: tx, weight: "bold")
#block(
width: 100%,
fill: none,
stroke: (y: solidStroke(th: 2pt, tx)),
inset: (y: 3pt),
)[
#grid(
columns: (auto, 1fr),
inset: (x: 0.5em, y: 0.33em),
grid.cell(fill: color.mix(bg,bgla), align: left)[#counter(heading).display()],
grid.cell(fill: color.mix(bg,bgla))[#hy.body],
)
]
]
} else if (headingstyle == "old") {
[
// -- H1 OLD STYLE
#set text(size: 1.25em, fill: bg, weight: "bold")
#block(width: 100%, fill: tx, inset: 0.33em)[ #align(center)[#hy] ]
]
} else if (headingstyle == "lines") {
[
#set text(size: 1.25em, fill: bg, weight: "bold")
#block(
width: 100%,
fill: none,
stroke: (y: solidStroke(th: 2pt, tx)),
inset: (y: 3pt),
)[
#block(..fill-tx, inset: (y: 0.33em), width: 100%)[
#align(center)[#hy]
]
]
]
}
// -- HEADING 2 -- HEADING 2 -- HEADING 2 -- HEADING 2 --
show heading.where(level: 2): hy => if (headingstyle == "block") {
[
// -- H2 BLOCK STYLE
#set text(size: 1.167em, fill: bg, weight: "bold")
#block(
width: 100%,
fill: none,
stroke: (y: solidStroke(th: 2pt, acda)),
inset: (y: 3pt),
)[
#grid(
columns: (auto, 1fr),
inset: (x: 0.5em, y: 0.33em),
grid.cell(fill: acda, align: left)[#counter(heading).display()],
grid.cell(fill: ac)[#hy.body],
)
]
]
} else if (headingstyle == "simple") {
[
// -- H2 SIMPLE STYLE
#set text(size: 1.167em, fill: da, weight: "bold")
#block(
width: 100%,
fill: none,
stroke: (y: solidStroke(th: 2pt, ac)),
inset: (y: 3pt),
)[
#grid(
columns: (auto, 1fr),
inset: (x: 0.5em, y: 0.33em),
grid.cell(fill: color.mix(bg,bgla), align: left)[#counter(heading).display()],
grid.cell(fill: color.mix(bg,bgla))[#hy.body],
)
]
]
} else if (headingstyle == "old") {
[
// -- H2 OLD STYLE
#set text(size: 1.167em, fill: bg, weight: "bold")
#block(width: 100%, fill: ac, inset: 0.33em)[ #align(left)[#hy] ]
]
} else if (headingstyle == "lines") {
[
// -- H2 DEFAULT STYLE
#set text(size: 1.167em, fill: bg, weight: "bold")
#block(
width: 100%,
fill: none,
stroke: (y: solidStroke(th: 2pt, acda)),
inset: (y: 3pt),
)[
#block(..fill-ac, inset: 0.33em, width: 100%)[
#align(left)[#hy]
]
]
]
}
// -- HEADING 3 -- HEADING 3 -- HEADING 3 -- HEADING 3 --
show heading.where(level: 3): hy => if (headingstyle == "block") {
[
// -- H3 BLOCK STYLE
#set text(size: 1.083em, fill: tx, weight: "bold")
#block(
width: 100%,
fill: none,
stroke: (y: solidStroke(th: 2pt, laac)),
inset: (y: 3pt),
)[
#grid(
columns: (auto, 1fr),
inset: (x: 0.5em, y: 0.33em),
grid.cell(fill: color.mix(laac, la), align: left)[#counter(heading).display()],
grid.cell(fill: la)[#hy.body],
)
]
]
} else if (headingstyle == "simple") {
[
// -- H3 SIMPLE STYLE
#set text(size: 1.083em, fill: da, weight: "bold")
#block(
width: 100%,
fill: none,
stroke: (y: solidStroke(th: 2pt, la)),
inset: (y: 3pt),
)[
#grid(
columns: (auto, 1fr),
inset: (x: 0.5em, y: 0.33em),
grid.cell(fill: color.mix(bg,bgla), align: left)[#counter(heading).display()],
grid.cell(fill: color.mix(bg,bgla))[#hy.body],
)
]
]
} else if (headingstyle == "old") {
[
// -- H3 OLD STYLE
#set text(size: 1.083em, fill: tx, weight: "bold")
#block(width: 100%, fill: la, inset: 0.33em)[ #align(left)[#hy] ]
]
} else if (headingstyle == "lines") {
[
// -- H3 DEFAULT STYLE
#set text(size: 1.083em, fill: tx, weight: "bold")
#block(
width: 100%,
fill: none,
stroke: (y: solidStroke(th: 2pt, laac)),
inset: (y: 3pt),
)[
#block(..fill-la, inset: 0.33em, width: 100%)[
#align(left)[#hy]
]
]
]
}
// -- HEADING 4 -- HEADING 4 -- HEADING 4 -- HEADING 4 --
show heading.where(level: 4): hy => if (headingstyle == "block") {
[
// -- H4 BLOCK STYLE
#parbreak()
#set text(size: 1em, fill: bg, weight: "bold")
#box(
inset: (x: 0pt),
outset: (y: 0.4em),
stroke: (y: solidStroke(da)),
fill: none,
)[
#stack(
dir: ltr,
spacing: 0in,
box(
inset: (x: 0.5em),
outset: (y: 0.25em),
fill: datx,
)[#[#strong[#counter(heading).display()]]],
box(inset: (x: 0.5em), outset: (y: 0.25em), fill: da)[#[#strong[#hy.body]]],
)
]
]
} else if (headingstyle == "simple") {
[
// -- H4 SIMPLE STYLE
#set text(size: 1em, fill: tx, weight: "bold")
#box(
inset: (x: 0.5em, y: 0.33em),
stroke: (y: solidStroke(tx)),
)[#counter(heading).display() #h(0.5em) #hy.body]
]
} else if (headingstyle == "old") {
[
// -- H4 OLD STYLE
#set text(size: 1em, fill: bg, weight: "bold")
#box(..fill-da, inset: (x: 0.33em), outset: (y: 0.33em))[
#[#hy]
]
]
} else if (headingstyle == "lines") {
[
// -- H4 LINES STYLE
#set text(size: 1em, fill: bg, weight: "bold")
#box(
inset: (x: 0pt),
outset: (y: 0.4em),
stroke: (y: solidStroke(da)),
fill: none,
)[
#box(inset: (x: 0.5em), outset: (y: 0.25em), fill: da)[#[#strong[#hy]]]
]
]
}
// -- HEADING 5 -- HEADING 5 -- HEADING 5 -- HEADING 5 --
show heading.where(level: 5): hy => if (headingstyle == "block") {
[
// -- H5 BLOCK STYLE
#parbreak()
#set text(size: 1em, fill: bg, weight: "bold")
#box(
inset: (x: 0pt),
outset: (y: 0.4em),
stroke: (y: solidStroke(acda)),
fill: none,
)[
#stack(
dir: ltr,
spacing: 0in,
box(
inset: (x: 0.5em),
outset: (y: 0.25em),
fill: acda,
)[#[#strong[#counter(heading).display()]]],
box(inset: (x: 0.5em), outset: (y: 0.25em), fill: ac)[#[#strong[#hy.body]]],
)
]
]
} else if (headingstyle == "simple") {
[
// -- H5 SIMPLE STYLE
#set text(size: 1em, fill: da, weight: "bold")
#box(
inset: (x: 0.5em, y: 0.33em),
stroke: (y: solidStroke(da)),
)[#counter(heading).display() #h(0.5em) #hy.body]
]
} else if (headingstyle == "old") {
[
// -- H5 OLD STYLE
#set text(size: 1em, fill: bg, weight: "bold")
#box(..fill-ac, inset: (x: 0.33em), outset: (y: 0.33em))[
#[#hy]
]
]
} else if (headingstyle == "lines") {
[
// -- H5 LINES STYLE
#set text(size: 1em, fill: bg, weight: "bold")
#box(
inset: (x: 0pt),
outset: (y: 0.4em),
stroke: (y: solidStroke(ac)),
fill: none,
)[
#box(inset: (x: 0.5em), outset: (y: 0.25em), fill: ac)[#[#strong[#hy]]]
]
]
}
// -- HEADING 6 -- HEADING 6 -- HEADING 6 -- HEADING 6 --
show heading.where(level: 6): hy => if (headingstyle == "block") {
[
// -- H6 BLOCK STYLE
#parbreak()
#set text(size: 1em, fill: tx, weight: "bold")
#box(
inset: (x: 0pt),
outset: (y: 0.4em),
stroke: (y: solidStroke(laac)),
fill: none,
)[
#stack(
dir: ltr,
spacing: 0in,
box(
inset: (x: 0.5em),
outset: (y: 0.25em),
fill: color.mix(laac, la),
)[#[#strong[#counter(heading).display()]]],
box(inset: (x: 0.5em), outset: (y: 0.25em), fill: la)[#[#strong[#hy.body]]],
)
]
]
} else if (headingstyle == "simple") {
[
// -- H6 SIMPLE STYLE
#set text(size: 1em, fill: ac, weight: "bold")
#box(
inset: (x: 0.5em, y: 0.33em),
stroke: (y: solidStroke(acda)),
)[#counter(heading).display() #h(0.5em) #hy.body]
]
} else if (headingstyle == "old") {
[
// -- H6 OLD STYLE
#set text(size: 1em, fill: da, weight: "bold")
#box(..fill-la, inset: (x: 0.33em), outset: (y: 0.33em))[
#[#hy]
]
]
} else if (headingstyle == "lines") {
[
// -- H6 LINES STYLE
#set text(size: 1em, fill: da, weight: "bold")
#box(
inset: (x: 0pt),
outset: (y: 0.4em),
stroke: (y: solidStroke(laac)),
fill: none,
)[
#box(inset: (x: 0.5em), outset: (y: 0.25em), fill: la)[#[#strong[#hy]]]
]
]
}
show heading: set block(spacing: 1em)
// #endregion
// BIBLIOGRAPHY AND CITATIONS --- BIBLIOGRAPHY AND CITATIONS --- BIBLIOGRAPHY AND CITATIONS --- BIBLIOGRAPHY AND CITATIONS ---
set cite(style: "ieee")
show cite: set text(..fill-ac)
set bibliography(style: "ieee", title: "References")
show bibliography: a => {
counter(heading).update(3)
set heading(numbering: numbering("*",1) )
a
}
// IMAGES --- IMAGES --- IMAGES --- IMAGES --- IMAGES --- IMAGES --- IMAGES ---
set image(fit: "contain", width: 40%)
show image: h => align(center)[#rect(stroke: solidStroke(th: 3pt, tx), inset: 0in, outset: 0in, fill: none)[#h]]
// TABLES AND FIGURES --- TABLES AND FIGURES --- TABLES AND FIGURES --- TABLES AND FIGURES --- TABLES AND FIGURES --- TABLES AND FIGURES ---
show figure: set block(spacing: 1em)
show figure.caption: emph
set figure(numbering: "1.1.1", gap: 1em)
set table(
fill: (_, y) =>
if (y == 0) { tx } else if (calc.rem(y, 2) == 0) { la } else { bg },
stroke: none,
align: if (flags.contains("table-cen")) { horizon + center } else { horizon + left },
inset: 0.5em,
)
set grid(inset: 0.33em)
show table.cell.where(y: 0): k => strong(text(..fill-bg)[#[#k]])
set grid.hline(stroke: solidStroke(tx))
set table.hline(stroke: solidStroke(tx))
set grid.vline(stroke: solidStroke(tx))
set table.vline(stroke: solidStroke(tx))
set rect(stroke: solidStroke(tx))
set circle(stroke: solidStroke(tx))
set ellipse(stroke: solidStroke(tx))
set square(stroke: solidStroke(tx))
set polygon(stroke: solidStroke(tx))
set path(stroke: solidStroke(tx))
set line(stroke: solidStroke(tx))
// CUSTOM HIGHLIGHTS --- CUSTOM HIGHLIGHTS --- CUSTOM HIGHLIGHTS --- CUSTOM HIGHLIGHTS --- CUSTOM HIGHLIGHTS --- CUSTOM HIGHLIGHTS --- CUSTOM HIGHLIGHTS --- CUSTOM HIGHLIGHTS ---
let customhl(back, fore, body) = [
#box(
inset: (x: 0pt),
outset: (y: 0.4em),
stroke: (y: solidStroke(back)),
fill: none,
)[
#box(
inset: (x: 0.33em),
outset: (y: 0.25em),
fill: back,
)[#text(fill: fore)[#strong[#body]]]
]
]
show <hl-tx>: body => customhl(tx, bg, body)
show <hl-datx>: body => customhl(datx, bg, body)
show <hl-da>: body => customhl(da, bg, body)
show <hl-da2>: body => customhl(da, la, body)
show <hl-acda>: body => customhl(acda, bg, body)
show <hl-ac>: body => customhl(ac, bg, body)
show <hl-laac>: body => customhl(laac, tx, body)
show <hl-la>: body => customhl(la, tx, body)
show <hl-la2>: body => customhl(la, da, body)
show <hl-bgla>: body => customhl(bgla, tx, body)
show <hl-bg>: body => customhl(bg, tx, body)
// CALLOUTS --- CALLOUTS --- CALLOUTS --- CALLOUTS --- CALLOUTS --- CALLOUTS --- CALLOUTS --- CALLOUTS ---
let call(back, fore, body) = [
#align(center)[
#block(inset: 0.5em, fill: back)[
#text(fill: fore)[#body]
]
]
]
show <call-tx>: body => call(tx, bg, body)
show <call-datx>: body => call(datx, bg, body)
show <call-da>: body => call(da, bg, body)
show <call-da2>: body => call(da, la, body)
show <call-acda>: body => call(acda, bg, body)
show <call-ac>: body => call(ac, bg, body)
show <call-laac>: body => call(laac, tx, body)
show <call-la>: body => call(la, tx, body)
show <call-la2>: body => call(la, da, body)
show <call-bgla>: body => call(bgla, tx, body)
show <call-bg>: body => call(bg, tx, body)
// TEXT FILLS --- TEXT FILLS --- TEXT FILLS --- TEXT FILLS --- TEXT FILLS --- TEXT FILLS --- TEXT FILLS --- TEXT FILLS ---
show <t-tx>: t => text(fill: tx)
show <t-datx>: t => text(fill: datx)
show <t-da>: t => text(fill: da)
show <t-acda>: t => text(fill: acda)
show <t-ac>: t => text(fill: ac)
show <t-laac>: t => text(fill: laac)
show <t-la>: t => text(fill: la)
show <t-bgla>: t => text(fill: bgla)
show <t-bg>: t => text(fill: bg)
// OTHER HIGHLIGHTS --- OTHER HIGHLIGHTS --- OTHER HIGHLIGHTS --- OTHER HIGHLIGHTS ---
show <b1>: t => text(size: 1em * calc.pow(1.3, 2))[#t]
show <b2>: t => text(size: 1em * calc.pow(1.2, 2))[#t]
show <b3>: t => text(size: 1em * calc.pow(1.1, 2))[#t]
show <s1>: t => text(size: 1em / 1.083)[#t]
show <s2>: t => text(size: 1em / 1.167)[#t]
show <s3>: t => text(size: 1em / 1.25)[#t]
// BUSINESS PLAN FORMAT --- BUSINESS PLAN FORMAT --- BUSINESS PLAN FORMAT --- BUSINESS PLAN FORMAT --- BUSINESS PLAN FORMAT --- BUSINESS PLAN FORMAT ---
let bpcoverpage() = page(
margin: 0.5in,
header: none,
footer: none,
)[
#align(
center + top,
)[
#block(spacing: 3em)[#text(size: 2em, weight: 900)[#strong[#rp-title]]]
#block(spacing: 3em)[#text(size: 1.5em)[#strong[#rp-subtitle]]]
#block(spacing: 3em, width: 200% / 3)[#text(size: 1.5em)[#rp-supplement]]
]
#align(center + horizon)[ #bp-supplement2 ]
#align(center + bottom)[
_Submitted by:_ #linebreak()
#if (rp-authors != "") {
[
#for aut in rp-authors [
#strong[#aut.lastname], #[#aut.firstname] \
]
]
}
#linebreak()
_Submitted to:_ #linebreak()
#strong[#rp-submittedTo] #linebreak()
#date
]
]
if (doctype == "businessPlan") {
bpcoverpage();
}
// RESEARCH PAPER `rp` FORMAT --- RESEARCH PAPER `rp` FORMAT --- RESEARCH PAPER `rp` FORMAT --- RESEARCH PAPER `rp` FORMAT ---
let rpcoverpage() = page(
margin: 0.5in,
header: none,
footer: none,
)[
#align(center + top)[
#rp-school \
#emph[#rp-subject] \
#section
]
#align(
center + horizon,
)[
#block(spacing: 3em)[#text(size: 3em, weight: 900)[#strong[#rp-title]]]
#block(spacing: 3em)[#text(size: 2em)[#rp-subtitle]]
#block(spacing: 3em, width: 200% / 3)[#text(size: 1.5em)[#rp-supplement]]
]
#align(center + bottom)[
_Submitted by:_ #linebreak()
#if (rp-authors != "") {
[
#for aut in rp-authors [
#strong[#aut.lastname], #[#aut.firstname] \
]
]
}
#linebreak()
_Submitted to:_ #linebreak()
#strong[#rp-submittedTo] #linebreak()
#date
]
]
if (doctype == "paper") {
// FORMATTING FOR RESEARCH PAPER
set cite(style: "apa")
set bibliography(style: "apa", full: true)
rpcoverpage()
}
let daterepr = [
#customhl(daycolours.at(wdn), tx, sadaveVerbose)
]
// SCHOOLDOC OR NOTES FORMAT --- SCHOOLDOC OR NOTES FORMAT --- SCHOOLDOC OR NOTES FORMAT --- SCHOOLDOC OR NOTES FORMAT ---
let sdheader() = [
#strong[#author] #h(1fr) #if (code != "") { [#[#code]<hl-la>] }
#linebreak()
#box[#stack(
dir: ltr,
spacing: 0em,
if (subject != "") { [#[#subject]<hl-da>] },
[#[#emph[#title]]<hl-ac>],
)] #h(1fr) #daterepr
#line(length: 100%, stroke: solidStroke(tx))
]
let notesheader() = [
#align(center)[#strong[#author]
·
#box[#stack(
dir: ltr,
spacing: 0em,
if (subject != "") { [#[#subject]<hl-da>] },
[#[#emph[Notes]]<hl-ac>],
)]
·
#if (code != "") { [#[#code]<hl-la>] }
·
#daterepr
#line(length: 100%, stroke: solidStroke(tx))]
]
if (doctype == "schooldoc") { sdheader() }
if (doctype == "notes") { notesheader() }
// ARTICLE FORMAT --- ARTICLE FORMAT --- ARTICLE FORMAT --- ARTICLE FORMAT --- ARTICLE FORMAT --- ARTICLE FORMAT ---
let articleheader(verbose: false) = [
#[#text(weight: 900)[#title]]<b1> #linebreak()
#if (subtitle != "") { [#strong[#[#subtitle]<b3> ] #linebreak()] }
#if (description != "") { [#emph[#description] #linebreak()] }
#if (verbose == true) {
[
*Tags:* #(..tags).join(", ")
]
}
#line(length: 100%, stroke: solidStroke(tx))
]
if (doctype == "article") { articleheader() }
if (doctype == "articleVerbose") { articleheader(verbose: true) }
// WRITING FORMAT --- WRITING FORMAT --- WRITING FORMAT --- WRITING FORMAT --- WRITING FORMAT --- WRITING FORMAT ---
let writingheader(verbose: false) = [
#[#text(weight: 900)[#title]]<b1> #linebreak()
#strong[Description: ] #emph[#description] #linebreak()
#if (verbose == true) {
[
*Rating:* #rating #linebreak()
*Tags:* #(..tags).join(", ")
]
}
#line(length: 100%, stroke: solidStroke(tx))
]
if (doctype == "writing") { writingheader() }
if (doctype == "writingVerbose") { writingheader(verbose: true) }
// DIARY ENTRY FORMAT --- DIARY ENTRY FORMAT --- DIARY ENTRY FORMAT --- DIARY ENTRY FORMAT --- DIARY ENTRY FORMAT ---
let diaryheader() = [
#[ #daterepr ]<b1>
]
if (doctype == "diaryEntry") { flags.push("nofoot"); diaryheader(); }
// DEBUG --- DEBUG --- DEBUG --- DEBUG --- DEBUG --- DEBUG --- DEBUG --- DEBUG ---
if (debug) {
raw(repr(doctype));
[\ ]; raw(repr(author));
[\ ]; raw(repr(subject));
[\ ]; raw(repr(title));
[\ ]; raw(repr(subtitle));
[\ ]; raw(repr(description));
[\ ]; raw(repr(rating));
[\ ]; raw(repr(tags));
[\ ]; raw(repr(rp-keywords));
[\ ]; raw(repr(code));
[\ ]; raw(repr(colsc));
[\ ]; raw(repr(size));
[\ ]; raw(repr(font));
[\ ]; raw(repr(headingstyle));
[\ ]; raw(repr(headingnum));
[\ ]; raw(repr(fw));
[\ ]; raw(repr(date));
[\ ]; raw(repr(columns));
[\ ]; raw(repr(fz));
[\ ]; raw(repr(flags))
[\ ]; heading(outlined: false, numbering: none)[DEBUG MODE]
let sqdebug(a) = [#square(width: 2in, ..a, stroke: 2pt + tx)]
align(center, block(grid(grid(
columns: 3,
row-gutter: 1em,
sqdebug(fill-bg),
sqdebug(fill-bgla),
sqdebug(fill-la),
repr(bg),
repr(bgla),
repr(la),
sqdebug(fill-laac),
sqdebug(fill-ac),
sqdebug(fill-acda),
repr(laac),
repr(ac),
repr(acda),
sqdebug(fill-da),
sqdebug(fill-datx),
sqdebug(fill-tx),
repr(da),
repr(datx),
repr(tx),
))))
grid(
columns: (1fr,) * 3,
gutter: 0.5in,
align: left,
text(fill: bg)[#lorem(20)],
text(fill: bgla)[#lorem(20)],
text(fill: la)[#lorem(20)],
text(fill: laac)[#lorem(20)],
text(fill: ac)[#lorem(20)],
text(fill: acda)[#lorem(20)],
text(fill: da)[#lorem(20)],
text(fill: datx)[#lorem(20)],
text(fill: tx)[#lorem(20)],
)
[
= Heading 1
#lorem(50)
== Heading 2
#lorem(50)
=== Heading 3
#lorem(50)
==== Heading 4
#lorem(50)
===== Heading 5
#lorem(50)
====== Heading 6
#lorem(50)
- Unordered List
- Indent :3333
- MOAR Indent
- PINGAS
+ Ordered List
+ Indent :3333
+ #[MOAR Indent]<hl-tx>
+ PINGAS
The quadratic equation is $x = (-b +- sqrt(b^2 -4\a\c))/(2a)$. Euler's identity
is $e^(pi\i) + 1 = 0$, and the idea that $e = m\c^2+p\c$ does your mom and your
senator.
$ f(a,b,c,d,x) = a\x^3 + b\x^2 + c\x + d $
#figure(table(
columns: (1fr, 1fr, 1fr),
[#[Apple]<hl-tx>],
[#[Apple]<hl-datx>],
[#[Apple]<hl-da>],
[#[Apple]<hl-da2>],
[#[Apple]<hl-acda>],
[#[Apple]<hl-ac>],
[#[Apple]<hl-laac>],
[#[Apple]<hl-la>],
[#[Apple]<hl-la2>],
[#[Apple]<hl-bgla>],
[#[Apple]<hl-bg>],
table.cell()[FAGGOT],
), caption: [PINGAS])
#[Apple]<hl-tx> PINGAS
#[Apple]<hl-datx> PINGAS
#[Apple]<hl-da> PINGAS
#[Apple]<hl-da2> PINGAS
#[Apple]<hl-acda> PINGAS
#[Apple]<hl-ac> PINGAS
#[Apple]<hl-laac> PINGAS
#[Apple]<hl-la> PINGAS
#[Apple]<hl-la2> PINGAS
#[Apple]<hl-bgla> PINGAS
#[Apple]<hl-bg> PINGAS
#quote(attribution: "Your Mom")[
#lorem(100)
]
/ Penis: Penis
/ Penis: Penis
/ Penis: Penis
/ Penis: Penis
#image("example.jpeg")
]
[\ 0123456789]
counter(heading).update(0)
heading(outlined: false, numbering: "1")[END OF DEBUG CONTENT]
rpcoverpage()
} else { [#sym.zws];body }
}
// TEXT COLOUR FUNCTIONS --- TEXT COLOUR FUNCTIONS --- TEXT COLOUR FUNCTIONS --- TEXT COLOUR FUNCTIONS ---
#let bg(cs, body) = [ #let dum = black; #if (coll.at(cs, default: "nane") != "nane") { dum = rgb(eval("coll." + cs, scope: (coll: coll)).bg) } #set text(fill: dum); #body ]
#let bgla(cs, body) = [ #let dum = black; #if (coll.at(cs, default: "nane") != "nane") {
dum = color.mix(
rgb(eval("coll." + cs, scope: (coll: coll)).bg),
rgb(eval("coll." + cs, scope: (coll: coll)).la),
)
} #set text(fill: dum); #body ]
#let la(cs, body) = [ #let dum = black; #if (coll.at(cs, default: "nane") != "nane") { dum = rgb(eval("coll." + cs, scope: (coll: coll)).la) } #set text(fill: dum); #body ]
#let laac(cs, body) = [ #let dum = black; #if (coll.at(cs, default: "nane") != "nane") {
dum = color.mix(
rgb(eval("coll." + cs, scope: (coll: coll)).la),
rgb(eval("coll." + cs, scope: (coll: coll)).ac),
)
} #set text(fill: dum); #body ]
#let ac(cs, body) = [ #let dum = black; #if (coll.at(cs, default: "nane") != "nane") { dum = rgb(eval("coll." + cs, scope: (coll: coll)).ac) } #set text(fill: dum); #body ]
#let acda(cs, body) = [ #let dum = black; #if (coll.at(cs, default: "nane") != "nane") {
dum = color.mix(
rgb(eval("coll." + cs, scope: (coll: coll)).ac),
rgb(eval("coll." + cs, scope: (coll: coll)).da),
)
} #set text(fill: dum); #body ]
#let da(cs, body) = [ #let dum = black; #if (coll.at(cs, default: "nane") != "nane") { dum = rgb(eval("coll." + cs, scope: (coll: coll)).da) } #set text(fill: dum); #body ]
#let datx(cs, body) = [ #let dum = black; #if (coll.at(cs, default: "nane") != "nane") {
dum = color.mix(
rgb(eval("coll." + cs, scope: (coll: coll)).da),
rgb(eval("coll." + cs, scope: (coll: coll)).tx),
)
} #set text(fill: dum); #body ]
#let tx(cs, body) = [ #let dum = black; #if (coll.at(cs, default: "nane") != "nane") { dum = rgb(eval("coll." + cs, scope: (coll: coll)).tx) } #set text(fill: dum); #body ]
#let freaky = "𝓯𝓻𝓮𝓪𝓴𝔂"; |
|
https://github.com/pal03377/master-thesis | https://raw.githubusercontent.com/pal03377/master-thesis/main/thesis_typ/acknowledgement.typ | typst | MIT License | #let acknowledgement() = {
set page(
margin: (left: 30mm, right: 30mm, top: 40mm, bottom: 40mm),
numbering: none,
number-align: center,
)
let body-font = "New Computer Modern"
let sans-font = "New Computer Modern Sans"
set text(
font: body-font,
size: 12pt,
lang: "en"
)
set par(leading: 1em)
// --- Acknowledgements ---
align(left, text(font: sans-font, 2em, weight: 700,"Acknowledgements"))
v(15mm)
[
My heartfelt appreciation goes to my family and friends for their steady support during my time at the Technical University of Munich.
#v(5mm)
I also commend the fantastic Artemis team for their tireless efforts in creating an open-source learning platform.
#v(5mm)
Special recognition goes to M.Sc. <NAME>, whose valuable insights have greatly enriched this thesis as my advisor.
#v(5mm)
Finally, my gratitude extends to Prof. Dr. <NAME> for his dedication to enhancing university education and for offering me the chance to be a part of this mission.
]
} |
https://github.com/typst-community/guidelines | https://raw.githubusercontent.com/typst-community/guidelines/main/src/chapters/style/joining.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #import "/src/util.typ": *
#import mantys: *
= Joining
Prefer statement joining over manual joining, this keeps code and markup similar in structure to the end document.
#do-dont[
```typst
// in a document this clearly communicates intent
#for x in ("a", "b", "c") [
- #x
]
```
][
```typst
// this is harder to read and edit
#let res
#for x in ("a", "b", "c") {
res += [- #x]
}
#res
```
]
Even in #mode.code this can be applied to complex control flows which evaluate to content.
#do-dont[
```typc
// we can read the control flow and it's effect on the document top to bottom
let func(a, b, c) = {
[prefix: ]
a
if b {
c
}
}
```
][
```typc
// even with a low amount of nesting reading this is harder
let func(a, b, c) = [prefix: ] + a + if b {
c
}
```
]
|
https://github.com/LucaCiucci/tesi-triennale | https://raw.githubusercontent.com/LucaCiucci/tesi-triennale/main/img/slide_2/image.typ | typst | Creative Commons Zero v1.0 Universal | #set page(paper: "a4", margin: 10pt)
#import "@preview/cetz:0.2.2"
#let fig(step) = cetz.canvas(length: 1mm, {
import cetz: draw
import cetz.draw: *
let i_min = -2
let i_max = 3
let j_min = -3
let j_max = 4
let k = 4
let dyon_charge(i, j) = (20 * j + k * i + 50, 20 * i + 50)
for i in range(i_min, i_max) {
line((-20, 50 + 20 * i), (120, 50 + 20 * i), stroke: (paint: gray, thickness: 1))
}
for j in range(j_min, j_max) {
line((50 + 20 * j - 10, 0), (50 + 20 * j + 10, 100), stroke: (paint: gray, thickness: 1))
}
//
//for i in range(i_min, i_max) {
// for j in range(j_min, j_max) {
// line(dyon_charge(i, j), dyon_charge(i, j + 1), stroke: (thickness: 2pt, paint: gray))
// line(dyon_charge(i + 1, j), dyon_charge(i, j), stroke: (thickness: 2pt, paint: gray))
// }
//}
line(
(-20, 50),
(130, 50),
stroke: (thickness: 3pt, cap: "round", paint: red),
mark: (end: "stealth"),
)
line(
(50, 0),
(50, 110),
stroke: (thickness: 3pt, cap: "round", paint: blue),
mark: (end: "stealth"),
)
for i in range(i_min, i_max) {
for j in range(j_min, j_max) {
let p = dyon_charge(i, j);
circle(p, fill: black, radius: 1.5)
content((p.at(0), p.at(1) - 7), text(13pt, [*_(#i,#j)_*]))
}
}
content((127, 46), text(13pt, fill: red.darken(25%), [$"Re"(e + i g)$]))
content((127, 56), text(25pt, fill: red.darken(0%), [*e*]))
content((65, 105), text(13pt, fill: blue.darken(25%), [$"Im"(e + i g)$]))
content((45, 105), text(25pt, fill: blue.darken(0%), [*g*]))
})
//#rect(fig(0))
#fig(0) |
https://github.com/antran22/typst-cv-builder | https://raw.githubusercontent.com/antran22/typst-cv-builder/main/lib/resume/layout.typ | typst | MIT License | #import "../common.typ": *
#import "./components.typ": *
#import "@preview/fontawesome:0.1.0": *
#import "@preview/linguify:0.4.0": *
#import "@preview/cmarker:0.1.0"
#let ResumeLayout(
basic_info: (:),
date: datetime.today().display("[month repr:long] [day], [year]"),
language: "en",
body,
) = {
let lang_data = toml("../lang.toml")
set document(
author: basic_info.first_name + " " + basic_info.last_name,
title: "resume",
)
set text(
font: (text-font),
lang: language,
size: 11pt,
fill: color-darkgray,
fallback: true,
kerning: true,
slashed-zero: true,
hyphenate: true,
)
set page(
paper: "a4",
margin: (left: 10mm, right: 10mm, top: 8mm, bottom: 16mm),
footer: [
#set text(
fill: gray,
size: 8pt,
)
#__justify_align_3[
#smallcaps[#date]
][
#smallcaps[
#basic_info.first_name
#basic_info.last_name
#sym.dot.c
#linguify("resume", from: lang_data)
]
][
#counter(page).display()
]
],
footer-descent: 50%,
)
// set paragraph spacing
show par: set block(
above: 0.75em,
below: 0.75em,
)
set par(justify: true)
set heading(
numbering: none,
outlined: false,
)
show heading.where(level: 1): it => [
#set block(
above: 1em,
below: 1em,
)
#set text(
size: 16pt,
weight: "regular",
)
#pad(
bottom: 4pt,
align(left)[
#text[#strong[#text(accent-color)[#it.body.text]]]
#h(4pt)
#box(width: 1fr, line(length: 100%))
]
)
]
show heading.where(level: 2): it => {
set text(
color-darkgray,
size: 12pt,
style: "normal",
weight: "bold",
)
it.body
}
show heading.where(level: 3): it => {
set text(
size: 10pt,
weight: "regular",
)
smallcaps[#it.body]
}
body
} |
https://github.com/Jacobgarm/typst_linalg | https://raw.githubusercontent.com/Jacobgarm/typst_linalg/master/README.md | markdown | The Unlicense | # Numerical linear algebra for Typst
Matrix and vector functions are written in pure Rust. Supports matrices with real, complex and rational entries.
Uses [wasm-minimal-protocol](https://github.com/astrale-sharp/wasm-minimal-protocol) for interfacing with Typst's plugin feature.
|
https://github.com/herbhuang/utdallas-thesis-template-typst | https://raw.githubusercontent.com/herbhuang/utdallas-thesis-template-typst/main/content/system_design.typ | typst | MIT License | #import "/utils/todo.typ": TODO
= System Design
#TODO[
This chapter follows the System Design Document Template in @bruegge2004object. You describe in this chapter how you map the concepts of the application domain to the solution domain. Some sections are optional, if they do not apply to your problem. Cite @bruegge2004object several times in this chapter.
]
== Overview
#TODO[
Provide a brief overview of the software architecture and references to other chapters (e.g. requirements analysis), references to existing systems, constraints impacting the software architecture..
]
== Design Goals
#TODO[
Derive design goals from your nonfunctional requirements, prioritize them (as they might conflict with each other) and describe the rationale of your prioritization. Any trade-offs between design goals (e.g., build vs. buy, memory space vs. response time), and the rationale behind the specific solution should be described in this section
]
== Subsytem Decomposition
#TODO[
Describe the architecture of your system by decomposing it into subsys- tems and the services provided by each subsystem. Use UML class diagrams including packages / components for each subsystem.
]
== Hardware Software Mapping
#TODO[
This section describes how the subsystems are mapped onto existing hardware and software components. The description is accompanied by a UML deployment diagram. The existing components are often off-the-shelf components. If the components are distributed on different nodes, the network infrastructure and the protocols are also described.
]
== Persistent Data Management
#TODO[
Optional section that describes how data is saved over the lifetime of the system and which data. Usually this is either done by saving data in structured files or in databases. If this is applicable for the thesis, describe the approach for persisting data here and show a UML class diagram how the entity objects are mapped to persistent storage. It contains a rationale of the selected storage scheme, file system or database, a description of the selected database and database administration issues.
]
== Access Control
#TODO[
Optional section describing the access control and security issues based on the nonfunctional requirements in the requirements analysis. It also de- scribes the implementation of the access matrix based on capabilities or access control lists, the selection of authentication mechanisms and the use of en- cryption algorithms.
]
== Global Software Control
#TODO[
Optional section describing the control flow of the system, in particular, whether a monolithic, event-driven control flow or concurrent processes have been selected, how requests are initiated and specific synchronization issues
]
== Boundry Conditions
#TODO[
Optional section describing the use cases how to start up the separate components of the system, how to shut them down, and what to do if a component or the system fails.
] |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/scholarly-tauthesis/0.7.0/template/content/tekoalyn-kaytto.typ | typst | Apache License 2.0 | Ilmoitukseni mukaan olen käyttänyt opinnäytteessäni tutkielmaprosessin aikana
seuraavia tekoälysovelluksia:
#table(
align: left,
columns : (70%,30%),
table.header(
[*Sovellus*],
[*Versio*]
),
[...],
[...],
[...],
[...],
)
== Tekoälyn käyttötarkoitus
Kuvaa tähän _yksityiskohtaisesti_, mihin tarkoitukseen ja miten tekoälyä
on sovellettu opinnäytteeseen tutkielmaprosessin aikana.
== Osiot, joissa tekoälyä on käytetty
Luettele tähän _kaikki_ opinnäytteen vaiheet ja osiot, joissa tekoälyä on
tutkielmaprosessin aikana käytetty niin tarkasti kuin mahdollista.
|
https://github.com/j10ccc/zjut-social-practice-report-typst | https://raw.githubusercontent.com/j10ccc/zjut-social-practice-report-typst/main/main.typ | typst | #import "/layout/project.typ": project
#let meta = (
department: "$学院",
major: "$专业",
title: "$报告名称",
author: "$姓名",
id: "$学号",
teacher: "$指导老师",
date: "$完成日期"
)
#show: project.with(..meta)
|
|
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/raw-align_02.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
//
// // Error: 17-20 expected `start`, `left`, `center`, `right`, or `end`, found top
// #set raw(align: top) |
https://github.com/ohmycloud/computer-science-notes | https://raw.githubusercontent.com/ohmycloud/computer-science-notes/main/Misc/serde_json.typ | typst | #import "@preview/splash:0.3.0": *
#let make-title(title: none, author: none, date: none, description: none) = [
#set align(center)
= #title
#v(1em)
#text(style: "italic", description)
#v(1em)
/ 设计者: #author
/ 日期: #date
#v(3em)
]
#make-title(
title: "Serde 序列化和反序列化",
author: "ohmycloud",
date: "2023-09-19",
description: "结构体的序列化和反序列化"
)
#outline(
title: "目录",
target: heading.where(level: 1)
)
#pagebreak()
#show heading.where(level: 1): it => {
align(center)[#text(xcolor.cyan)[ *#it*]]
v(0.75em)
}
#show heading.where(level: 2): it => {
text(red)[ *#it*]
v(0.6em)
}
#show heading.where(level: 3): it => {
text(red)[ *#it*]
v(0.6em)
}
#show raw.where(block: true): block.with(
fill: luma(240),
inset: 10pt,
radius: 4pt,
width: 100%,
)
= 项目目标
+ 对结构体进行序列化, 生成 JSON 字符串。
+ 把 JSON 字符串反序列化为结构体。
= 新建项目
新建一个 bin 项目:
```bash
cargo new serde_demo
cd serde_demo
```
== 添加依赖
```bash
cargo add serde --features=derive
cargo add serde_json
```
添加依赖后, Cargo.toml 中的内容如下:
```toml
[package]
name = "serde_demo"
version = "0.1.0"
edition = "2021"
[dependencies]
serde = { version = "1.0.188", features = ["derive"] }
serde_json = "1.0.107"
```
#pagebreak()
= 演示代码
```rust
use serde::{Deserialize, Serialize};
use serde_json::Result;
#[derive(Debug, PartialEq, Serialize, Deserialize)]
pub struct Bar {
a: Option<u8>,
b: Option<String>,
}
#[derive(Debug, PartialEq, Deserialize, Serialize)]
pub struct Foo<'a> {
x: Option<&'a str>,
y: Bar
}
fn main() -> Result<()> {
let foo: Foo = serde_json::from_str(r#"{"x": "1", "y":{"a": 5, "b": "rakulang"}}"#)?;
println!("{:?}", foo);
let foo = Foo {
x: Some("1"),
y: Bar {
a: Some(5),
b: Some("rakulang".to_string()),
}
};
let serialized_foo = serde_json::to_string(&foo).unwrap();
println!("{:?}", serialized_foo);
Ok(())
}
```
运行 `cargo run` 输出:
```bash
Foo { x: Some("1"), y: Bar { a: Some(5), b: Some("rakulang") } }
"{\"x\":\"1\",\"y\":{\"a\":5,\"b\":\"rakulang\"}}"
```
|
|
https://github.com/TypstApp-team/typst | https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/math/vec.typ | typst | Apache License 2.0 | // Test vectors.
---
// Test wide cell.
$ v = vec(1, 2+3, 4) $
---
// Test alternative delimiter.
#set math.vec(delim: "[")
$ vec(1, 2) $
---
// Error: 22-25 expected "(", "[", "{", "|", "||", or none
#set math.vec(delim: "%")
|
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/page-style_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Empty with styles
// Should result in one conifer-colored A11 page.
#set page("a11", flipped: true, fill: conifer)
|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/028%20-%20Kaladesh/002_A%20Time%20for%20Innovation.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"A Time for Innovation",
set_name: "Kaladesh",
story_date: datetime(day: 31, month: 08, year: 2016),
author: "<NAME>",
doc
)
#emph[On Kaladesh, the Inventors' Fair—the intersection of creativity and genius—has begun. Inventors have flocked to the city of Ghirapur to take part in the event of a lifetime. This is their chance to see and be seen, to win over the hearts of the populace and the judges. The dedicated aether researcher Rashmi hopes to do just that; she needs the judges to believe in her creation if she hopes to leave her mark and change the world.]
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
By now the city of Ghirapur and its residents had become acclimated to the presence of the enormous beetle-like inquirium. The sprawling, sophisticated research facility sat with its six long, metal legs tucked under its body in the corner of Ghirapur's central square. Whereas before traffic would slow to a standstill while drivers gawked open-mouthed at its gleaming, bulbous metal protrusions and aether-measuring antenna, now commuters sped by barely even noticing its presence. The inquirium had been stationary for so long that a family of peafowl had taken up residence, nesting in a groove in the segment that most resembled the beetle's head. Even when, once every hour or so, a sizzling sputter rose from the bowels of the laboratory, issuing an array of crackling sparks through the exhaust tower, the birds didn't so much as stir. Life had adapted; Ghirapur had claimed the inquirium as part of its identity like so many of its other eclectic landmarks. Hardly anyone stopped to wonder anymore about the brilliant researcher who lived inside.
Rashmi had all but forgotten them as well. She had all but forgotten everything except the device she was designing. Just a few months ago, the subject of matter transportation had become a hot topic within the usually subdued aetherologist societies. Within the small inventor circle, it had gone from a theory that people only whispered about to an obsession. But only Rashmi had a device capable of powering such a venture. Her groundbreaking aether condenser, which had gone nearly unnoticed when she first introduced it, would now be thrust into the spotlight as the centerpiece of the transporter. It was as though the condenser was made for this very application, as though she, Rashmi, was made for this very experiment. The aether patterns were aligned, they were pulling things into place, rushing with unstoppable momentum toward the crescendo.
She would do it. She would complete the device, just in time for the Fair, just in time to prove to the world what was possible.
"Tweezer." Rashmi held out her hand.
"Tweezer." Her vedalken assistant, Mitul, placed the tool on her palm.
She twisted a fine piece of wire into place, listening to the pattern of aether as she worked. Knowing the aether allowed her to tighten the wire just enough to secure it without causing strain on the metal. "Calipers."
Mitul traded the tweezer for calipers. "Mark at 3.084."
Rashmi made the mark. "We're definitely pushing the upper limit with this."
"It can handle it. I performed the calculation. Thrice." Mitul took the calipers and gave her an optical center punch.
She punched a hole in the golden metal piping and, with the care of a surgeon, inserted the new filament, connecting it to the rest of the aether-circuitry. "That should do it." Rashmi stood up, stretching her cramped neck, a surge of nervous thrill running through her. Although they had performed hundreds of trials, she still felt a rush each time they were ready for another; any one might be the trial that proved their theory. Especially now, with the Fair so close.
"I will set up." Moving with a poise that Rashmi envied, Mitul strode to a pot that sat in the sunlight that streamed down from the dome window above. He plucked a living flower from the pot and deposited it in a waiting vase on the table in the center of the room. "Test subject number 848 ready." Mitul stepped back.
Rashmi tried not to think of the other flowers that had come before 848.
She hefted the transporter off the workbench and carried it to the test area. It was in the shape of a large gold hoop, about as big around as the wheel of a Consulate cruiser. Holding it above the top of the flower, Rashmi slid a golden filigree switch to activate the aether valve. Vibrations echoed from within as glowing blue aether rushed through the ring. She opened herself to the Conduit, willing her other senses to dull so she could see the aether. The pattern it made as it flowed through the transporter was exquisite. The tweaks to the design had altered the flow just enough to add a repeating flourish at intervals around the ring, one that reminded her of a bandar's tail. She took this as a good sign; some elves considered bandars to be good luck.
"I think this might be it, Mitul," she whispered. "I can feel it in the aether." Her hands were trembling.
"According to my calculations, this iteration does seem promising." Mitul's expression didn't change, his manner remaining, as always, professional. Unlike her, he never seemed nervous or excited before a trial; he was a constant, steady force in the laboratory, always focused.
"Ready?" She asked.
Mitul nodded. He was standing at a tall desk arrayed with aether measuring equipment, his pencil poised over his laboratory journal. "I am prepared."
#emph[You can do it,] Rashmi silently encouraged test subject 848. "All right, I'll be releasing the transporter in three...two...one..." She let go of the ring, and in response, the aether within swelled, buoying it up so it hovered in place just above the flower.
"Trial start time captured." Mitul was scribbling away. "Initial aether measurements recorded."
With a soft exhale, the ring began its descent, floating toward the petals of the flower. Rashmi's nerves were swallowed by the hum of aether. She was unable to look away from its pulsing flow that evolved as the transporter moved closer and closer to 848. The cadence picked up with every passing heartbeat until it surpassed the confines of its own structure and began to shift. Rashmi could see the usually gentle bends skipping and taking sharp turns; the flourishing bandar tails were coiling around each other. She recognized this behavior. The aether was forming the patterns that promised to defy the laws of the world.
When the ring became level with the flower petals, she heard Mitul's voice as though from a great distance. "Time of contact marked."
Rashmi held her breath.
The tips of the petals flickered as the ring passed over them. The golden transporter continued to descend.
Another flicker.
And then suddenly the structural integrity of the whole flower gave way, and with a soft pop the entire flower imploded into a lingering outline of dust. A breath later the outline erupted, bursting apart, each little piece of matter zipping outward with extreme speed. The miniature projectiles shot into the ring, pitting the metal, and in some cases slicing right through. The transporter sparked and crackled, the delicate aether filament squealing and then burning out before Rashmi could lift it up and away.
"Trial failed. Test subject 848 disintegrated," Mitul said.
Rashmi sighed, running her fingers along the metal of the transporter, assessing the damage. She had really thought this time it was going to work.
"Of note," Mitul went on, "measurements detected traces of transmuted matter, indicating that 848 responded well to the initial phase of contact."
"Transmutations in preparation for transport?" Rashmi's shoulders straightened and her spirits lifted.
"It would appear so, yes."
"Well then, if that's the case we merely have to provide a more stable environment."
"My thoughts precisely," Mitul said. "I find myself inclined to suggest that we run our next trial with a less turbulent stream of aether. If we increase the diameter of the piping—"
"We'll reduce the turbulence of the initial flow, and decrease the volatility!" Rashmi finished for him. "Mitul, that's brilliant!"
"I believe the hypothesis is quite promising, yes."
This was exactly why they worked so well together. Neither of them was ever discouraged for long. Rashmi had the Great Conduit to remind her that she was on the right path, and Mitul had his belief in the iterative method of research. Though he never questioned her relationship to the Great Conduit, Rashmi had a feeling Mitul didn't put much stock in it. She assumed that, like most vedalken she knew, he subscribed to the unending process of working successively closer to a solution by repeating the previous method with a slight variation. Though she didn't quite understand how someone could find inspiration through that kind of iteration, she never questioned him. It didn't bother her that their philosophy was different; the reason for their motivation didn't matter. It was their optimistic spirit and commitment to their research that bound them. And not a day went by that Rashmi didn't feel fortunate to have found such a gifted research partner and friend in Mitul.
The vedalken looked up from consulting his log book. "As it happens, we have just the piping in the storage room. I'll retrieve it and return shortly." He was halfway across the room before he finished talking. And for her part, Rashmi was already elbow-deep in the ring of the transporter working on repairs.
They were past time for trifling. Though Rashmi tried to ignore its distracting presence, she knew that the circled date on the calendar was rapidly approaching. The Inventors' Fair qualifiers were less than a week away. The Fair was her chance to show the transporter to the world, but more importantly to the judges and benefactors. She would win, of that she was certain, and then she would have patrons and sponsors for her research. She would have the support of the Consulate instead of a dwindling aether supply. Maybe she would even have her own automaton workforce to fill the inquirium. But that was getting ahead of things. It was time for test subject number 849.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
"Test subject number 887 ready." Mitul's voice was hoarse; neither he nor Rashmi had slept in two days. It was the afternoon of Inventors' Fair qualifiers, and they had not yet run a successful trial. This was their last chance. If this trial proved a success, they would have just enough time to package the ring, load it onto a cart, and make their way to the arena in time for their qualifier. If this trial was a failure, it was over.
Rashmi held the ring over the slightly wilted flower. Her arms trembled, not from excitement, but from fatigue. Why had the Conduit brought her to this point if it didn't mean for her to win the Fair? Why had it pushed her toward this just for her to fail? She wanted to scream. But she didn't. At that moment she saw Mitul stifle a yawn, and it stirred something inside her. She couldn't give up, not yet.
#emph[There's still one more chance] , she reminded herself. She made an attempt to clear her mind of cynical thoughts. She told herself that maybe she and Mitul were meant to struggle right up until the last moment. Maybe this was all part of the pattern the Great Conduit was weaving. Maybe this would be their moment. "All right, here we go," she said, with as much oomph as she could muster. "In three...two...one..." She let go of the ring.
"Trial start time captured." Mitul made a mark in the journal. "And measurements recorded." He rubbed his reddened eyes.
Rashmi tried to assume the role of an objective observer, but as the ring dipped toward the drooping petals of the flower, she found herself once again holding her breath and hoping. It had to work this time, it just had to.
The ring passed over the topmost petal. "Time of contact marked," Mitul said.
The petal flickered. #emph[Don't implode. Don't implode] , Rashmi pleaded.
Another flicker.
And another.
The ring was halfway down the head of the flower. A stirring started deep within Rashmi's insides. This had to be it. She watched in awe as the patterns opened a pathway through space. Gazing down into the aether she could almost see the hole forming in the fabric of her world. She was sorry she had ever doubted. She could scarcely believe what was happening before her eyes. The entire flower blinked in and out, every muscle in Rashmi's body tensed, and then—
POP! The flower imploded.
Rashmi's insides froze. No. The ring crackled and sparked. No. She heard the filament give way and snap. No! This wasn't what was supposed to happen. This couldn't be.
"Trail failed. Test subject 887 disintegrated," Mitul said.
Rashmi didn't even bother to try to lift the ring up and off the exploding remains of the flower. There was no point salvaging it—it was over. She turned away, unable to watch any more. Vaguely, she heard the ring clatter on the tabletop, the sound ringing in her head like the final bell at academy. The test was over and she had failed.
"Addendum: in the time succeeding the recorded completion of the trial involving test subject 887, continued observation reveals that there appears to be a difference in the way organic and inorganic matter are affected by the aetheric waves of space." Mitul's voice washed over Rashmi like water over an exposed wound.
"Mitul, there's no point in recording anymore." She glanced at the red overdue notices on the far desk. "I should have told you long ago. I'm so sorry, but the inquirium is—"
"Rashmi," Mitul interrupted. It was odd to hear him use her name; he rarely addressed her. "Rashmi." Something in his voice made her turn. "L-look." He was pointing to the corner of the laboratory, his eyes blinking rapidly.
Rashmi followed his finger. There, leaning against the wall inside a small inscribed circle, was the vase. Rashmi gasped. She looked back to the table in the center of the room; only the ring rested there. Her first thought was that it was a trick of the eye. It could be a different vase. But there was no mistaking it; it was the only vase in the whole laboratory. It had passed two iron barriers, a stack of equipment, and Mitul himself, and now it rested gently against the wall, neatly inside the circle intended for the flower.
Rashmi laughed. It was an odd-sounding laugh that snuck up on her. She might have kept laughing, except her heart leapt up into her throat, nearly choking her. She couldn't manage even one full sentence. "Mitul—Mitul—w-we—"
"Yes." Mitul was still blinking rapidly. "We successfully transported inorganic matter across space."
"Ha! We did it!" Heat and moisture pressed against the back of Rashmi's eyes and she ran to her friend, throwing her arms around the tall vedalken's neck. She squeezed. "We really did it."
"As a matter of fact, we did," Mitul said, extricating himself from her hug. "Now, I must focus on recording these results. I cannot allow myself to get swept up in potentially distracting emotions when there is science at hand."
Rashmi laughed again; it seemed the only reaction she was capable of at the moment.
"But do not mistake this for lack of excitement." Mitul offered the smallest of smiles, the slight upturn of the corners of his mouth. "I am quite excited. Oh yes, quite." But he gathered himself, put pencil to paper, and cleared his throat. "Now, here we go: with regard to the most recent trial, it appears the feedback we were observing was generated by the interaction between organic matter and transdimensional space. We iterated upon our design, but we never changed the nature of our test subject." Mitul's focus on the facts seemed to have given him back control of his eyelids.
And the reassuring and familiar sound of his voice returned Rashmi to herself as well. "The Fair!" she cried.
Mitul's focus was uninterrupted. "I will now proceed to document all observable features of the vase to ensure transport was comp—"
"No, Mitul, there's no time!" Rashmi grabbed the transporter off the table. "We have to get to the Fair, to our qualifier!"
"Oh!" Mitul turned, his eyes lighting up. "Oh, yes, you're quite right." He nearly dropped his journal. "I'm experiencing such a rush of adrenaline that I'm barely thinking. I shall conclude documentation when we return. If we pack up now, we should have just enough time to crate the device in the appropriate safety packaging, load it onto the cart, and wheel it through the grounds, which are sure to be crowded and require a reduced speed of transport, for an arrival time at the arena the requested one hour before our scheduled qualifying demonstration."
"Perfect." Rashmi was inspecting the ring. "But we'll need a new filament first. This one's shot."
"It must be due to initial contact with organic matter," Mitul said. "I predict that we won't see that behavior when we transport only inorganic matter."
"Let's hope not." Rashmi was at the workbench peeling back the filigree to access the filament. "I'd rather not entertain the judges with a fireworks display."
"No, I don't suspect that would be well received." Rashmi swore she heard Mitul chuckle as he darted off toward the storage room.
Rashmi ran her fingers over the filigree. There were a few dents and scratches, but nothing that should interfere with the functionality. The functionality that moved matter across the room! "We actually did it," Rashmi whispered. She glanced over her shoulder at the vase. Part of her didn't believe it was really there, but it was. "I should never have doubted." She closed her eyes. There was the Great Conduit, shining brilliantly in front of her. Its warmth enveloped her. She reached for it.
#figure(image("002_A Time for Innovation/01.jpg", width: 100%), caption: [Art by <NAME>], supplement: none, numbering: none)
"We do not have another filament." At the sound of Mitul's voice, Rashmi's eyes shot open. He was stutter-stepping into the room. "We're out. I knew our supply was dwindling. I should have—but there was no time to order. The iterations kept coming. But that is no excuse—this responsibility falls to me. I don't expect that you would be able to forgive my mistake." His twelve fingers were fluttering around his long blue face.
"Mitul, it's all right." Rashmi put her hand on his shoulder. She felt oddly calm. She could feel the guidance of the Conduit, and she knew exactly what they should do. "Crate the device," she said. "We'll take it to the market, get a filament there, and then head back to the Fair. We should still get to the arena in time for our qualifier."
"Oh." Mitul blinked. "Oh, yes." He let out a long breath. "That might very well work."
"It will," Rashmi said. "This is our moment."
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
Rashmi shielded her eyes against the brightness. Everything shone in the light of the waning sun: the polished metal automatons, the gleaming architecture, and the streaming banners, ribbons, and festoons that covered the square.
#figure(image("002_A Time for Innovation/02.jpg", width: 100%), caption: [Art by Jonas De Ro], supplement: none, numbering: none)
The Inventors' Fair had been built up around the inquirium while they had worked inside these past months, oblivious to all of it. It was as though Rashmi had retreated into her laboratory on one world and exited in another, one that was a giant labyrinth of glistening metal and celebration. But there wasn't time for any of that now. The Conduit was tugging on her with urgency. "This way," she said to Mitul, pointing to the enormous peacock feathers in the distance that marked the entrance to the market. But before she could take a step, an automaton rolled up into her path.
"Welcome to the Inventors' Fair!" it said jubilantly. "The intersection of creativity and genius."
She turned away to sidestep it, wheeling the cart with the transporter around, but just then a second rolled up. "Don't miss the dragster propulsion races at Ovalchase! Get your tickets now."
Rashmi backed away, looking for an out.
"Visit the one-hundred-acre zoo! Animal constructs abound!"
She was being surrounded.
"Perhaps we can find an alternative path through over here." Mitul led the way and Rashmi followed, but so did a handful of automatons.
"Marvel at the living cogwork architecture designed by some of Ghirapur's most storied metalworkers. Isn't it amazing?"
"Yes, yes." Mitul waved the automaton off. "We're in a bit of a hurry, you see."
It wasn't discouraged. "Are automaton showdowns more your style?"
"No. If you'll pardon me..."
The automaton refused to let Mitul pass. "Please remember that gremlins are not permitted on the fairgrounds."
"Of course not, that would be absurd. Now, I must insist—"
"Refrain from carrying in outside aether canisters. And if you witness any suspicious activity please report it to the nearest Honorable Guard or Autom—"
"If you please, get out of our way!" Mitul stiff-armed the automaton. "There." He beckoned Rashmi. "I believe we can now reach the market."
Rashmi hastened to push the cart past the reeling automaton that was telling them to enjoy their time at the Inventors' Fair. She had never seen Mitul so forceful before. She glanced back at him, scrutinizing for a moment; was it possible that he was feeling the tug of the Conduit too? Perhaps someday she could yet convince him that there were forces that his analytical view couldn't explain. Together they picked up the pace, jogging toward the golden filigreed marketplace.
#figure(image("002_A Time for Innovation/03.jpg", width: 100%), caption: [Art by <NAME>], supplement: none, numbering: none)
The sun was dipping low, just under the massive feathers of the market gate, as they raced down Ninth Bridge and hurtled into Remi's shop. The interlocking gears on the door squealed and jangled as Rashmi pushed the cart through. The scents of polished metal, sweet rust, and biting grease greeted them—usually a bouquet that would calm Rashmi's nerves, but now it only served to heighten her sense of urgency. She fished the broken filament out of her pocket. "We're looking for the WP series," she said to Mitul. They both knew exactly where to look. The back wall with the perfectly organized and color-coded cubbies. They had purchased most of their supplies at Remi's; he had the best prices and let them stay to watch the underground automaton battles.
"Should be right..." Mitul pulled out a green cubby. "Here."
It was empty.
Rashmi panicked, but only for a moment. "I'm sure he has some in the back. Remi!" she called, catching sight of the tall blue shopkeeper between the shelves.
"Is that? Do I hear...? Rashmi! Mitul! It's been ages!" A grease-stained Remi made his way across the shop, wiping his hands on a rag. He tossed the rag over his shoulder before embracing Rashmi. "Are you here to—"
"We need a filament," Rashmi cut him off. "WP series." Mitul was holding the empty cubby.
"Huh?" Remi looked at the cubby. "Out of that one too? These inventors are worse than gremlins, they're going to run me out of house and home."
"You must have some in the back," Rashmi said, struggling to keep her sense of rising dread in check.
"Afraid not, friend." Remi shook his head. "The back's as cleared-out as the storefront. It's been an endless stampede since the first train arrived from Peema. You'd think we were under attack. Everyone needs a spare this, or a replacement that. I won't be able to restock until the shipment from Lathnu."
"A shipment. When?"
"Oh, round about three days from now."
The last of Rashmi's decorum shattered. "No, no, no. Remi, we need the filament now. Please, you have to have something."
"Wish I did. You know you two are my favorite inventors."
They wouldn't be inventors for much longer if they didn't get a filament. Images of overdue notices swam in Rashmi's mind. Her palms began to sweat. Suddenly the shop seemed too small.
"Ah, well then we must do the next logical thing." Mitul's voice was steady but his twelve long fingers fumbled to push the empty cubby back in place. "We must check the other shops."
"The other shops." Rashmi swallowed her mounting hysteria, but barely. "That's logical. Yes."
"From what I hear, everyone's dry as an empty aether canister," Remi tutted.
But Rashmi was already halfway down the aisle, pushing the cart. She hurried out the door and wheeled straight into the next shop on the bridge. She would check them all if she had to.
"So sorry..."
"Wish I could be more helpful, but..."
"You, know, you're the second person to ask for a WP series today..."
"It's just been such a mad rush..."
"Come back tomorrow..."
"We're all out..."
It seemed that there wasn't a WP series filament in all of Ghirapur.
Exhaustion settled in, and Rashmi collapsed against the railing of the bridge. Mitul walked over from the shops on the other side, his eyes downcast. He exhaled. "It is my fault."
It wasn't, but Rashmi couldn't bring herself to say otherwise. Not right now. She brushed her long hair off her neck as she watched the sun sink below the water in the distance. Their demonstration would be starting any moment, and they would miss it. It seemed impossible that they should be here with the transporter now, so close, yet without the means to complete it.
She was no longer panicked, no longer angry, she was only heartbroken. It was more than just the matter transporter; it was the inquirium too. Without the patrons and sponsors she had counted on from the Inventors' Fair, they would lose everything. It was time to tell Mitul.
Rashmi's stomach grew tight. She found herself staring directly at a passing mail courier automaton so she wouldn't have to look at her friend.
#figure(image("002_A Time for Innovation/04.jpg", width: 100%), caption: [Art by <NAME>], supplement: none, numbering: none)
"Mitul, we're going to have to close down the inquirium. We're out of time. It's my fault. I put everything we had into this project and now—" Her voice hitched, she couldn't finish. "I'm so sorry. Working with you these past years has been a true honor." Before he had a chance to respond, she took hold of the handle of the cart and walked away, striding down the bridge toward the sunset.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
The inquirium wasn't where Rashmi wanted to be right now, but she didn't want to be anywhere else in the city either. The thrum of excitement and rush of celebration outside was too much. She dragged the crate up the steps and unlocked the door. She should get to packing; there was no point in delaying.
"So you are alive!" The sound of her friend's voice nearly knocked Rashmi back down the stairs.
"Saheeli?" The bright young inventor was standing in the middle of the workshop, practically glowing in the elegant web of shimmering colorful metal that was wound elegantly around her arms and waist. She looked like the sun on a cloudy day.
#figure(image("002_A Time for Innovation/05.jpg", width: 100%), caption: [Art by Willian Murai], supplement: none, numbering: none)
"I've been looking all over for you." Saheeli regarded Rashmi and furrowed her brow. "You look terrible. What are you doing back here? You were just called at the arena."
Tears welled in Rashmi's eyes; she was helpless to stop them.
"What is it?" Saheeli was at her side, one arm wrapped around Rashmi's shoulder. "What happened?"
Rashmi shook her head. "It's over. A broken filament, that's all it took. And there are no replacements. Not in the whole city." She let the tears fall.
"Oh. Shhh, shhh." Saheeli rubbed Rashmi's back. "Come now. You had a damaged piece of metal and you didn't think to call on me?"
Rashmi sniffed. "You?" And then it hit her. "You! You could fix it." Of course Saheeli could. She was a master with metal, working with even the most delicate pieces in her designs; she could fix nearly anything. In Rashmi's panic, the thought of Saheeli hadn't even crossed her mind. Her months-long seclusion had made her all but forget everything and everyone outside of the inquirium.
"Well then, give it here." Saheeli held out her hand, impatient.
Rashmi fished in her pocket for the broken filament, but she stopped herself before handing it over. "There's no point. I'll have missed my demonstration."
"Oh, I wouldn't worry about that," Saheeli smiled conspiratorially. "I know Padeem well enough. I'm sure that if I tell her about this aether condenser of yours, she'll be too curious not to want to take a look at it."
"You would do that?"
"It's like you said, the condenser might not be flashy, but it's the kind of invention that others can build on. Who knows what it might be used for someday."
"Actually, I know at least one thing," Rashmi said, unable to contain her excitement. "Saheeli, I did it, we did it. Mitul and I designed a matter transporter, and it works! We moved a vase from one side of the workshop to the other." She paced, pointing to the place the vase had been. "Can you believe it? I don't even know exactly how we did it. The equations seem to indicate that we're working with forces outside the realms of this world. When I look into the aether, I can see it parting to make a pathway, a pathway through infinity. It's brilliant. And it is flashy! It's going to amaze Padeem and the rest of the judges. And it's all thanks to you." She offered the filament to Saheeli. "I'm in your debt, truly."
But Saheeli didn't take the filament, didn't so much as move.
"What is it?" Rashmi asked.
Saheeli dropped her eyes and took a step back. "I'm sorry. I don't want to do this. I don't want to hurt you, my friend. But I can't."
"Can't what?" Rashmi was confused.
Saheeli shook her head, holding up her hands. "I can't help you."
"But you said—"
"You said it was an aether condenser." Saheeli seemed to be getting upset.
"It was. But then we did this. This is so much better, so much more."
"You don't know that. You don't even know how it works. You don't know the possible consequences of what you've designed. It's too dangerous."
Rashmi could barely make sense of what Saheeli was saying. "Of course there are dangers, but we'll run more trials, we'll iterate on it. That's exactly why we need to win the Inventors' Fair. I need the support of the Consulate so we can perfect the design. We're on the very cusp of something here, something amazing that's going to change the world."
"Did you ever consider that perhaps there are changes the world doesn't need?" Saheeli snapped. She brushed past Rashmi and headed for the door.
"Where are you going?" Rashmi called, her mind reeling, struggling to comprehend what was happening.
"I don't want to hurt you," Saheeli said again as she went. "But I can't help you."
"Wait." For the second time that day, panic gripped Rashmi. "Saheeli, please. I don't understand. I need your help." She hurried after her friend and grabbed her arm. "Please."
Saheeli turned, her cheeks reddened and her eyes hard. "I said, I can't help you. Maybe you're too close to see it, but what you've made here isn't something that should be made."
Rashmi stared at her friend in shock. Her confusion turned to anger. "I thought you believed in innovation without bounds. I thought you wanted to see remarkable things happen. I thought you wanted to help #emph[make] remarkable things happen."
"Not this." Saheeli pulled her arm free. "I have to go." She walked down the stairs.
Rashmi's anger boiled over. "Then, what? You only believe in innovation when it's things you make? Only when you get all the attention?"
Saheeli's neck stiffened.
"You live your life in the spotlight, Saheeli. Well, it's my turn now. Are you jealous? Are you worried that your invention isn't going to be the shiniest thing at the Fair?"
Saheeli's hands balled into fists, but she didn't turn, didn't slow. Rashmi watched the woman she thought was her friend walk away when she needed her most.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
Saheeli had been automaton dueling with the renegades all through the night. It hadn't helped.
She had come directly to the Fair's main arena—the location for judging during the day, quicksmithing duels by night—after leaving Rashmi's inquirium. Luckily there were plenty of inventors eager to test their creations, because she couldn't wait another moment to sink her automaton's claws into something that she could shatter.
Since her first match, she had pounded through no less than two dozen metallic creations. Many of the remains were still being cleared out of the arena. Now as the sun was rising, she was controlling one of her favorite designs, a streamlined bird, which was set to face off against a brutish green automaton. In her opinion, the towering invention on the other side of the arena looked a bit like one of the giants that occasionally migrated through the city. All the more reason to crush it.
"Let the battle begin!" the announcer called down from above.
The crowd in the stands cheered as Saheeli launched her bird in an attack, aiming for the giant automaton's neck.
#figure(image("002_A Time for Innovation/06.jpg", width: 100%), caption: [Art by <NAME>], supplement: none, numbering: none)
It hit! A perfect strike. Whistles and hoots resounded as the brute staggered. One more direct hit like that and she would topple it. She grunted in annoyance. This wasn't working. If only one of these inventors would make something that would actually challenge her, something that would take her mind off everything else. She had come here for a distraction, but for the whole of the night all she had managed to think about was the matter transporter, Rashmi's face, and her biting words.
Saheeli looped the bird around for a second go. How dare Rashmi accuse her of being jealous? Envy had been the furthest thing from her mind when her friend had told her about the matter transporter. How dare she? Saheeli sent the bird in for another attack to the neck—but this time the brute blocked. A protrusion of sorts had grown up out of the weak point. #emph[Not bad] , she thought, silently commended her fellow inventor for the foresight he had put into the design. But she already knew how to circumvent it. She pulled her bird out of its dive and sent it careening upward to gain momentum for a third strike.
She had done the right thing, the only thing she could do. She had a responsibility being a Planeswalker, knowing what she knew about the Blind Eternities. There was no question in her mind that Rashmi's device had potential far beyond what the elf realized. And that wasn't safe, not for Rashmi, and not for anyone else on Kaladesh. She had done the right thing.
With an echoing caw, Saheeli's bird dove in from behind and drove its beak into the back of the giant automaton's neck. The crowd gasped, rising to its feet. The brute swayed like a tall aether spire in a squall, but it didn't fall. Fine. Another blow then. Saheeli pulled the bird out and wound it up for a final strike.
Rashmi had admitted it herself; she didn't understand her equation. She was tearing holes in space without considering the consequences. It was to Saheeli to protect her, to safeguard this world, even if that meant walking away from her friend.
She sent the bird hurtling forward, dodging the swatting, flailing green arms, and slammed it, head first, into the automaton's chest. With a long, low groan, the giant plummeted to the ground, landing on its back with a resounding crash. The crowd cheered.
"That's another point for <NAME>!" The announcer boomed. "Which puts her at a perfect twenty-five for the night!" More cheers.
Saheeli took a bow, but she was already searching the wings for her next opponent.
"And it looks like that's it for today, fellow battle fans. The Fair will be opening its gates soon and we don't want to be caught squatting in their main arena. I, for one, don't want to see the look on Inspector Baan's face if he finds out we were in here."
The applause died down, and there was a collective shuffling of feet and stretching as stiff but invigorated fans made their way to the exits.
"Thanks for joining us," the announcer said. "Remember to look down to find out where tonight's battle will be."
That was an allusion to the secret renegade code that was used to pass information about automaton battles and the like. Saheeli could easily find out where to go after dark, but she didn't want to wait a whole day. What was she supposed to do until tonight? "Oh, come on!" she called from the center of the arena. "We can squeeze in one more. Who's next?" She glanced around, but no one paid her any mind. The other competitors were clearing out as quickly as they could. The arena was already almost empty. "Cowards," she mumbled under her breath.
If it was possible, she felt more frustrated than she had before she had arrived. This was the first time that a good round of automaton battles hadn't cleared her head. Annoyed, she stormed out of the nearest exit.
The crowd was filling the fairgrounds fast. The gates must have already opened. Saheeli wasn't in the mood for crowds. She wasn't in the mood for anything but another battle. Maybe she could find something at Gonti's. She skirted the busiest thoroughfare and wound her way toward the main gate. She had done the right thing. Hadn't she? The matter transporter was too dangerous. Wasn't it? "It was," she said to herself. "It is."
"That's her!" a small voice sounded from Saheeli's left.
Saheeli cringed and ducked simultaneously. She recognized the tenor of bubbling delight, and she knew exactly what would happen next if she didn't take evasive action. A quick pivot and she was headed the other way, but two steps later she was blocked by a cordon.
"Over there!" The same voice rose above the din of the gathering throng.
Saheeli spun around only to find another cordon. She turned the corner and cursed; more cordons, they were everywhere.
"Excuse me. Excuse me." Someone tapped her shoulder. Saheeli inhaled a long breath, attempting to arrange her features into something that could least pass for non-murderous. She turned. "Yes."
It was a dwarf dressed in a bright blue skirt and vest, holding the hand of an even younger dwarf who was wearing a set of goggles. "My daughter says that you're Saheeli," the older dwarf said.
"<NAME>, famous inventor, brilliant metalsmith, and most renowned luminary of our time," the younger dwarf rattled off the accolades.
Her mother flushed. "Yes, well let's find out if it's her first."
"It is!" The young dwarf beamed, pointing to a picture of Saheeli in her Inventors' Fair autograph booklet. She read from the page, "'Best known for her unparalleled ability to create lifelike replicas of any creature or construct she sees.' Which is really cool." Her eyes widened to near popping as she gazed at Saheeli. "I'm going to be an inventor just like you someday."
The woman who had been trying to hush her daughter finally succeeded. "I'm sorry," she said. "Zara is just so excited to be here. She's been talking about the Fair nonstop for months. Would you mind terribly signing an autograph for her?"
The young dwarf held up her booklet open to the page with Saheeli's picture. Saheeli sighed; she couldn't say no. She took the pen.
"You can sign next to your quote," the young dwarf said. "It's my favorite of all the quotes."
Saheeli scanned the page, finding the quote, and scribbled her name. But her scrawl fell away halfway through as she read her own words. #emph[There are times for regulations and rules, but this era of innovation is not one of them. We have to push forward without fear. We have to create without bounds. It's our duty as inventors to make the most remarkable things we can make, to help each other achieve the extraordinary, to change the world. ] "Well, isn't that something to have shoved in your face?"
"Excuse me?" the dwarf said.
"Oh," Saheeli blinked; she had forgotten where she was for a moment. "I'm sorry. I was just—here you go." She handed back the young dwarf's autograph booklet.
"Thank you." The young dwarf beamed. "Thank you so much!"
Saheeli barely heard her. Her feet were carrying her away with purpose; she knew exactly where they were taking her. Hopefully she wasn't too late.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
Saheeli had never seen a building look forlorn before, but the inquirium did. The antenna seemed to droop and the section that resembled a beetle's head had sagged to rest on the two front legs. Saheeli climbed the steps, steeling herself to knock on the door. She went over in her mind what she would say, how she would say it. She wasn't good with apologies, and in truth, she wasn't yet convinced that she should have to apologize, but something needed to be said—something had to be done—before it was too late. She knocked.
Footsteps on the other side told her someone was coming. The door opened and she saw the blue of Mitul's face. "Mitul. I need to talk to Ra—" Mitul slammed the door in her face.
"All right." Saheeli glowered. "That was fair." She smoothed her skirts. Gritting her teeth against the urge to storm down the stairs, she knocked again. "Fair, but childish." She raised her voice on the last word, knocking harder. "Come on. Let me in! I'm not going to stand here forever."
More footsteps. It was Rashmi who opened the door this time. The elf looked worse than before. Red puffy rings lined her eyes, and dirt and sweat had collected on her face and arms. The last of Saheeli's umbrage melted away. She couldn't bear to see her friend this way. She longed to embrace her, to care for her, but she held back. There was something she had to say first. "I need to explain why I didn't help you." Rashmi refused to meet her eyes. "I was scared. Unsure. What you're doing is dangerous, and—"
"I've heard all this, Saheeli." Rashmi stood straighter. "If you came to lecture me again, please leave." Rashmi made to close the door, but Saheeli swooped in to hold it open.
"You didn't let me finish." She inserted herself between the door and frame. "It is dangerous, yes. #emph[But] ," she continued over Rashmi's nearly audible eye-roll, "it's also exciting. Thrilling, even. It has the chance to change the world...for the better." Rashmi let up slightly on the door. "If anyone can make the next breakthrough in aetherology, it's you. And I want to be there to see it. I want to help." Saheeli held up a perfectly formed filament, which she had woven out of the sturdiest metal she could conjure. "For you," she said. "Padeem promised me she would give you an audience if it works."
Rashmi stared at her, then her eyes slowly shifted to the filament.
"Well? What are you waiting for?" Saheeli said. "Don't you have to run a trial or something?"
Rashmi called Mitul, and together the two inventors operated on the golden ring as though it was the most important patient they ever had. Saheeli watched silently from the corner of the workshop as Rashmi reverently carried a vase to the table in the middle of the room and set it in the center of the ring.
Mitul nodded. "Test subject number one ready," he said.
Rashmi flicked a filigree switch, and the transporter ring whirred to life. Saheeli tensed, holding her breath. She couldn't look, but she couldn't bear to look away. She settled for watching out of the corner of her eye.
"Trial start time captured," Mitul said. "Initial aether measurements recorded."
The ring floated up from the table, and as it did, the vase flickered away.
#figure(image("002_A Time for Innovation/07.jpg", width: 100%), caption: [Art by <NAME>], supplement: none, numbering: none)
A moment later it appeared on the other side of the room.
Saheeli stared, her mouth gaping in wonder. Her friend had done the impossible. A device now existed that could transport matter through space. Saheeli could only hope that she had done the right thing.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
As they were carried up to the top floor of the judges' apartments, Rashmi gazed out the glass wall of the lift platform. The sun was setting on Ghirapur and the bustle of the day had faded into the quiet strains of evening. A loose stream of aether gently wound itself through the spiraling domes atop the tallest buildings. A low flying crane skimmed the shimmering waters of the canal below. As she watched the city tuck itself in for the night, a calm settled over Rashmi, one she hadn't felt in a long time. She held the golden transporter ring at her side. It seemed impossible that it all should end here, with a private audience with the Enlightened Keeper Padeem. Sometimes the Great Conduit worked patterns that even Rashmi could not interpret. For all the time she had devoted to studying the flow of aether, all the work she had invested in an attempt to demystify its influence over life, she still found that these kinds of moments were the moments she most treasured: when life surprised her, when people amazed her.
"How did you do it?" she asked Saheeli. "How did you get Padeem to agree?"
A devious smile spread across Saheeli's face as the lift's doors breathed open. "A front-row seat at the underground artificer duel next month."
Rashmi nearly tripped stepping off the platform. "The consul Padeem? Watches duels?"
"Of course she does." Saheeli laughed. "Do you care to fill our friend in, Mitul?"
"It's something that not many people know," Mitul said. "No one really expects it of a vedalken, but we can be quite quick on our feet when it comes to it, which makes us excellent duelists."
"You're saying Padeem was an underground quicksmith?" Rashmi gaped.
"The best of her time," Saheeli said. "She could probably still win the night."
"Do—do you duel?" Rashmi asked Mitul.
"Oh, well, you know...I dabble." Mitul suddenly seemed very distracted by the doors that parted to let them into a small lobby. He hurried inside.
Rashmi studied her colleague in a new light. He did look rather nimble, and she could only imagine that his mastery of geometric calculation would serve to give him the advantage in a tactical battle situation. The day was not finished with its surprises yet, it seemed.
"Inventors Rashmi and Mitul to see the esteemed judge Padeem," Saheeli said to an official-looking Consulate functionary standing behind a tall desk.
"One moment." The functionary slipped through a sliding door, leaving the three of them in the lobby to wait.
Saheeli turned to Rashmi, an earnest look in her wide eyes. "I would say good luck, but you don't need it."
"That's thanks to you." Rashmi bowed her head to Saheeli. "Thank you. For all you have done. Endless thanks."
Saheeli shrugged. "It probably could have been handled better. I—I'm sorry." She glanced furtively up at Rashmi from under her eyelashes. "Friends?"
"Always." Rashmi drew Saheeli into an embrace.
Saheeli squeezed her arm. "Now, go show that dueling vedalken the invention that's about to change the world."
"Right." Rashmi clutched her transporter tightly as the sliding door opened and the functionary came back through.
"The consul will see you now."
Rashmi looked to Mitul. "Are you ready?"
He nodded, holding up the vase. "I am prepared." They followed the functionary through the doors. The hallway led to a small chamber where Padeem reclined in an overstuffed chair. Rashmi couldn't look at her without seeing the daring artificer duelist of apparent legend. The thought made her smile.
"Inventors Rashmi and Mitul, the consul," the functionary said.
Padeem nodded. "Welcome."
"You may begin." The functionary extended his arm out to a table that had been set before Padeem, for the purposes of the demonstration, no doubt.
Mitul approached and set the vase on the table, careful to center it perfectly. After he had stepped back, Rashmi moved forward, lifted the transporter ring, and slid it over the top of the vase to rest on the tabletop. Finding herself not quite ready to begin, she exhaled a long steady breath and looked into the Conduit. At first she thought it was gone, but then she understood that she was standing within it, its light all around her. This was the moment she had been chasing for so long. Now that she was here, she realized that she didn't know what would come next. All she knew was that after this moment there would be no turning back. Once they showed Padeem what they had done, the world would never be the same. Perhaps that was enough. Rashmi took a step back and shifted her gaze to the vedalken judge.
#figure(image("002_A Time for Innovation/08.jpg", width: 100%), caption: [Art by <NAME>], supplement: none, numbering: none)
Padeem rested her chin on the tips of her fingers. "All right, Inventor Rashmi, impress me."
|
|
https://github.com/AHaliq/CategoryTheoryReport | https://raw.githubusercontent.com/AHaliq/CategoryTheoryReport/main/chapters/chapter2/notes.typ | typst | #import "../../preamble/lemmas.typ": *
#import "../../preamble/catt.typ": *
#import "@preview/fletcher:0.5.1" as fletcher: diagram, node, edge
#definition(name: "Monomorphisms and Epimorphisms")[
@sa[definition 2.1]
_monomorphisms_ have unique pre-composites from the same object.
$
"isMono"(mono(f,A,B)) = f comp g = f comp h => g = h
$
_epimorphisms_ have unique post-composites to the same object
$
"isEpi"(epi(f,A,B)) = g comp f = h comp f => g = h
$
]<defn-epimono>
#definition(name: "split mono and epi")[
@sa[definition 2.7]
#grid(
columns: (1fr, 1fr),
align: (left, left),
[Let $epi(e,X,A)$, then if
$
e comp s = 1_A
$
- $s$ is a *section* / *splitting* of $e$, and is monic
- $e$ is a *retraction* of $s$, and is epic
- $A$ is a *retract* of $X$
],
[
Let $mono(m,A,X)$, then if
$
s comp m = 1_A
$
- $s$ is a *section* / *splitting* of $m$, and is epic
- $m$ is a *retraction* of $s$, and is monic
- $A$ is a *retract* of $X$
],
)
- if $f$ is a right inverse of $g$ / $g$ is a left inverse of $f$, then $g comp f = 1$, then $f$ is a split mono of epic $g$
- if isomorphic then $f,g$ are both split epi and mono of each other
]<defn-splitepimono>
#theorem(name: "Interpretation of split epis (optional)")[
@sa[example 2.8]
- an object $P$ is _projective_ if for any $e,f$ there is an $overline(f)$ as follows. $"Proj"(e,f)= overline(f)$
$
"isProjective"(
P
) = forall epi(e,E,X), arr(f,P,X). exists arr(overline(f),P,E). e comp overline(f) = f
$
#figure(
diagram(
cell-size: 10mm,
$
& E
edge("d", e, "->>") \
P
edge("ur", overline(f), "->")
edge("r", f, "->") &
X
$,
),
)
- intuitively $e$ has _lifts_ of $f$; permitting _"more"_ arrows; a _"free"_ structure
- split epis $epi(e,E,X)$ are categorical choice functions by using fibers $e^(-1)(x)$
- axiom of choice implies all sets are projective
]
#definition(name: "Initial and Terminal Objects and Duality")[
@sa[definition 2.9, 2.10]
a category is initial / terminal if it has initial / terminal objects $0$ / $1$
$
"UMP"_"terminal" (0) = forall X. exists! 0. 0_X in Hom("",s:0,t:X) \
"UMP"_"initial" (1) = forall X. exists! 1. 1_X in Hom("",s:X,t:1)
$
- $op(0) = 1$, initial and terminal objects are duals
- $op(mono(f,A,B)) = epi(f',B,A)$, monomorphisms and epimorphisms are duals
]
#theorem(name: "Generalized elements from initial and terminal objects")[
@sa[section 2.3]
In $Set$
- $1 = { star }$, thus morphisms $arr(overline(x),1,X)$ represent $x in X$; meaning $X iso Hom(Set,s:1,t:X)$
- $overline(x)$ are _generalized elements_ / _global elements_ / _points_ / _constants_ of $X$
- if $overline(x)$ is an epimorphism, then $X$ has a unique inhabitant since $f comp overline(x) = g comp overline(x) => f = g$
- instead of $1$ we can also use $T$ to _"probe"_ the internal structure of $X$
]
#definition(name: "Products")[
@sa[definition 2.15] $P$ is a product of $A$ and $B$ under $p_1,p_2$ if there exists a unique $u$; $P,A,B,p_1,p_2$ is called a diagram of the limit. $"UMP"(x_1,x_2) = u$
$
"UMP"_"product" (x_1,x_2,u,p_1,p_2) = forall x_1, x_2. exists! u. x_1 = p_1 comp u and x_2 = p_2 comp u
$
#figure(
diagram(
cell-size: 10mm,
$
& #node($X$, name: <X>)
edge("dl", x_1, ->)
edge("d", u, "-->")
edge("dr", x_2, ->) \
#node($A$, name: <A>) &
#node($P$, name: <P>)
edge("l", p_1, ->)
edge("r", p_2, ->) &
#node($B$, name: <B>)
$,
),
)
note that there can be more than one product of $A,B$ i.e. $p_1',p_2'$ can be distinct from $p_1,p_2$
]
#definition(name: "Categories with Products for every pair of objects")[
@sa[section 2.6]
Let $times$ be a functor
$
times &: C times C -> C \
times(A,A') &= A times A' \
times(arr(f,A,B),arr(f',A',B')) &= arr(f times f',A times A',B times B')
$
- this implies $A times(B times C) iso (A times B) times C$, by UMP uniqueness they are isomorphic; associative
- terminal objects behave as nullary products; an identity for products
- single objects behave as unary products
#figure(
grid(
columns: (1fr, 1fr),
align: (center + horizon, center + horizon),
diagram(
cell-size: 10mm,
$
X edge("d", !, "-->") \ 1
$,
),
diagram(
cell-size: 10mm,
$
& X
edge("d", overline(p), "-->")
edge("dr",overline(p), "-->")
edge("dl",overline(p), "-->") \
P
edge("r", id, <-) &
P
edge("r", id, ->) &
P
$,
),
),
)
- thus a category $C$ has all finite products if it has $times$ and $1$
- a category $C$ has all small products if every set of objects has a product object
]
#definition(name: "Products as Hom-sets")[
@sa[section 2.7]
$Hom(C,s:X,t:-) : C -> Set$ is called the covariant representable functor of $X$, where notationally:
$
Hom(C,s:X,t:g) = g_* = [f |-> g comp f]
$
iff for every object $X$, the canonical function is an isomorphism
$
theta.alt_X : Hom(,s:X,t:P) iso Hom(,s:X,t:A) times Hom(,s:X,t:B)
$
such that
$
theta.alt_X (u)&= (p_(1*)(u), p_(2*)(u)) \
theta.alt_X (u) &= (x_1, x_2)
$
then the $C$ has all finite products
moreover a functor $F$ preserves products iff $F(A times B) iso F(A) times F(B)$
thus, the covariant representable functor of $X$ preserves products
] |
|
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-1C50.typ | typst | Apache License 2.0 | #let data = (
("OL CHIKI DIGIT ZERO", "Nd", 0),
("OL CHIKI DIGIT ONE", "Nd", 0),
("OL CHIKI DIGIT TWO", "Nd", 0),
("OL CHIKI DIGIT THREE", "Nd", 0),
("OL CHIKI DIGIT FOUR", "Nd", 0),
("OL CHIKI DIGIT FIVE", "Nd", 0),
("OL CHIKI DIGIT SIX", "Nd", 0),
("OL CHIKI DIGIT SEVEN", "Nd", 0),
("OL CHIKI DIGIT EIGHT", "Nd", 0),
("OL CHIKI DIGIT NINE", "Nd", 0),
("OL CHIKI LETTER LA", "Lo", 0),
("OL CHIKI LETTER AT", "Lo", 0),
("OL CHIKI LETTER AG", "Lo", 0),
("OL CHIKI LETTER ANG", "Lo", 0),
("OL CHIKI LETTER AL", "Lo", 0),
("OL CHIKI LETTER LAA", "Lo", 0),
("OL CHIKI LETTER AAK", "Lo", 0),
("OL CHIKI LETTER AAJ", "Lo", 0),
("OL CHIKI LETTER AAM", "Lo", 0),
("OL CHIKI LETTER AAW", "Lo", 0),
("OL CHIKI LETTER LI", "Lo", 0),
("OL CHIKI LETTER IS", "Lo", 0),
("OL CHIKI LETTER IH", "Lo", 0),
("OL CHIKI LETTER INY", "Lo", 0),
("OL CHIKI LETTER IR", "Lo", 0),
("OL CHIKI LETTER LU", "Lo", 0),
("OL CHIKI LETTER UC", "Lo", 0),
("OL CHIKI LETTER UD", "Lo", 0),
("OL CHIKI LETTER UNN", "Lo", 0),
("OL CHIKI LETTER UY", "Lo", 0),
("OL CHIKI LETTER LE", "Lo", 0),
("OL CHIKI LETTER EP", "Lo", 0),
("OL CHIKI LETTER EDD", "Lo", 0),
("OL CHIKI LETTER EN", "Lo", 0),
("OL CHIKI LETTER ERR", "Lo", 0),
("OL CHIKI LETTER LO", "Lo", 0),
("OL CHIKI LETTER OTT", "Lo", 0),
("OL CHIKI LETTER OB", "Lo", 0),
("OL CHIKI LETTER OV", "Lo", 0),
("OL CHIKI LETTER OH", "Lo", 0),
("OL CHIKI MU TTUDDAG", "Lm", 0),
("OL CHIKI GAAHLAA TTUDDAAG", "Lm", 0),
("OL CHIKI MU-GAAHLAA TTUDDAAG", "Lm", 0),
("OL CHIKI RELAA", "Lm", 0),
("OL CHIKI PHAARKAA", "Lm", 0),
("OL CHIKI AHAD", "Lm", 0),
("OL CHIKI PUNCTUATION MUCAAD", "Po", 0),
("OL CHIKI PUNCTUATION DOUBLE MUCAAD", "Po", 0),
)
|
https://github.com/augustebaum/petri | https://raw.githubusercontent.com/augustebaum/petri/main/tests/fletcher/label-placement/test.typ | typst | MIT License | #import "/src/lib.typ": *
#set page(width: auto, height: auto, margin: 1cm)
#import "@preview/fletcher:0.4.2" as fletcher
/// % Place 1
/// \node[place,
/// label=left:$P_1$] (place1) at (0,0) {};
///
/// % Place 2
/// \node[place,
/// label=above:$P_2$,
/// label=right:$P_2$,
/// label=left:$P_2$,
/// label=below:$P_2$] (place2) at (2,0) {};
///
/// % Place 3
/// \node[place,
/// label=0:$P_3$] (place3) at (4,0) {};
#fletcher.diagram(
node-stroke: 0.5pt,
p((0,0), $P_1$),
p((2,0), $P_2$),
p((4,0), $P_3$),
t((0,2), $T_1$),
t((2,2), $T_2$),
t((4,2), $T_3$),
)
|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/013%20-%20Magic%202015/005_The%20Hunter%20Cannot%20Pity.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"The Hunter Cannot Pity",
set_name: "Magic 2015",
story_date: datetime(day: 16, month: 07, year: 2014),
author: "<NAME>",
doc
)
Vronos, Elite Inquisitor, steadied his silver-chased crossbow and took aim. The blessed bolt snapped away and dove with a spray of gore into the heart of the accursed one. The woman dropped without a sound. Beside her wailed a child barely old enough to walk. It crawled over to the still breast of its mother, whose life blood still mingled with the village mud.
#figure(image("005_The Hunter Cannot Pity/01.jpg", width: 100%), caption: [Elite Inquisitor | Art by <NAME> & Johannes Voss], supplement: none, numbering: none)
The sinners would find the Blessed Sleep there, their evil as dead as their cursed flesh. Vronos issued his orders: some to heap the corpses in the village square, others to bring wood and oil for the final purification.
The children, though, might still be saved. As the others went about their grim tasks, he led a group to gather the crying babes and the dark-eyed waifs from their parents' cold sides, and the hollow-cheeked, resentful youths from the darkened huts where they huddled.
He chose the gentlest faces, the most soothing voices from among his toughened monster-killers. There were not many. But, gradually, they brought forth all the trembling children. The tired hunters guided them to the nearby campsite, while the sky grew lurid with the consecrated fire.
Unfortunate that innocents must suffer in the cleansing. Vronos felt a pang, remembering a night long before. The flare of the greasy fire, the stink of charred wood, pitch, and boiling blood. His sister's gurgling screams.
The hooded men and women had tried to tell him the fire would purify her soul. That she would find the Blessed Sleep. He had not understood. He didn't know why sleeping seemed to hurt so much.
They had taken him to the crèche within the cathedral where the children of the cleansed were raised by the Order of the Silver Heron. The gentle, cloaked attendants had nursed him, kept him fed and clothed, taught him to work in the gardens, to tend the animals, and to pray. They did all of this with hardly a word, although <NAME> hummed songs from her Stensian home as she went about her chores.
As he grew older, he learned the discipline of the cathars. He trained in all the weapons of the pure. He studied all the lore of the monsters that haunted his world. He taught himself to be hard.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
Although the village was cleansed, the countryside was still dangerous. Vronos established watches for the night, but for the sake of his exhausted followers he kept each shift's length and number of watchers as small as possible. He, of course, insisted on the first watch.
When it was his turn to rest, he was asleep almost before he hit his bedroll.
Vronos rarely dreamed. But that night his slumber was troubled by terrible visions, mixed with bestial cries and human screams. A terrible weight crushed his chest. He thrashed and moaned, then woke to a blaze of pain. In the guttering firelight, Vronos looked up into the eyes of a blood-crazed beast that snarled and clawed at his leather jerkin. It snapped at his face and tore a strip of flesh from Vronos's brow and cheek. Blood frothed around its muzzle.
Vronos roared and threw himself upright, knocking the monster off him. His own blood drowned his vision. He could hear it scrabbling, readying another attack, but Vronos found the hilt of his sword and brought it up in a scything arc. The blade shivered as it cut into flesh, and the weight of the brute fell away.
#figure(image("005_The Hunter Cannot Pity/02.jpg", width: 100%), caption: [Merciless Predator | Art by <NAME>], supplement: none, numbering: none)
He leapt to his feet, wiping his bloodied face, and tried to make sense of the situation. Around him sprawled the bodies of his loyal troops, as rent and mangled as their ripped bedrolls. A few groaned weakly from torn throats. In the vile moonlight Vronos saw the hunched, bristling shapes of the wolf-things clawing at the few of his soldiers who yet fought.
He looked down and saw a girl lying still at his feet. A deep gouge had gashed through her shoulder, deep into her chest. Her mouth was smeared with blood, and a shred of meat still hung from her reddened teeth.
Vronos looked up again. The savage shapes were smaller than men, their movements ungainly. Sickness crawled into his throat.
There were no innocents.
Vronos yelled wordlessly and charged the nearest beast. He thrust his blade into its neck, not stopping to be sure it was dead before moving to the next. Another slash and another body fell away as he stumbled through the corpse-field. Howls erupted from the monsters, mingling horribly with the cries of the dying soldiers. The pack turned to him. He stood alone amid the growling child-weres.
One leapt for his throat.
Then another.
And another.
The world went dark.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
#figure(image("005_The Hunter Cannot Pity/03.jpg", width: 100%), caption: [], supplement: none, numbering: none)
Arcane Sanctum | Art by <NAME>
Vronos was standing in a vast space. Beneath him was cold metal; around him glass. Above him swirled leaden clouds, but cool light shone down through a circular opening within. It formed a pool in whose midst he stood, immersed in murmured intonations—or prayer.
Vronos stared around him. He saw glimmering shapes drifting in a great bowl. Beings floated amid them, some unrecognizable, as well as forms more human. Metal glinted from all their faces.
A bald, blue figure moved into his view, staring back at him expressionlessly. The creature's face was ageless, lined with delicate silvery filigree. It had no neck. Twisted metal somehow held its head in place.
It scrutinized him wordlessly for a few seconds and then turned toward the other observers. It spoke in a flat voice. "This specimen is imperfect. Perhaps it was damaged in the transition. It should be expunged from the study."
"Cleansed, do you mean?" Vronos drew himself up as proudly as he could. He looked around at the cold faces. "By what standard do you judge my purity?"
The blue one returned its gaze to him and blinked, once, twice. "This one is new to its abilities. This one might be of value. We have not seen one such since the Knight."
#figure(image("005_The Hunter Cannot Pity/04.jpg", width: 100%), caption: [Art by Chippy], supplement: none, numbering: none)
He had never before heard of Planeswalkers: people like himself who had somehow learned to travel between the disparate worlds that made up existence. But these strange scholars, who named themselves the Ethersworn, had long studied such travel. They postulated that the mysterious metal they called etherium could tie living beings more strongly to the sea of energy in which all the planes floated. The blue beings, vedalken, even replaced large amounts of their flesh with the substance. But the secret of traveling through the Æther, as he could, was beyond them.
They pored over their #emph[Twenty-Three Texts] , as holy as any Avacynian hymnal, for the key that would unlock the mystery. But nothing was more valuable to them than the chance to observe a real Planeswalker in a controlled setting. Vronos obliged, but demanded a high price in return: knowledge. He uncovered some of the lore within the sacred Texts, learned the basic nature of the strange metal and its long-lost creator, and practiced the arcane arts of these metal-working wizards. He repaired his ravaged face with an etherium infix and crafted a filigreed mask of the same material.
Between these lessons, he planeswalked. He threw himself into the maddening spaces between the worlds and learned to find the subtle paths that led him to new places. He strolled shores lapped by liquid fire and stood on peaks so high they almost touched the stars. He paced through the streets of an endless city. He saw bizarre creatures that could shift their bodies into a variety of forms. He wondered at the blazing breath of dragons, chased alien beasts through world-forests, touched gems that seemed alive.
And he reported to the eager scholars—but not all that he learned. Vronos collected nuggets of knowledge and hoarded them behind his mask, along with his disfigurement. With metal and lore, he honed his planeswalking skill and discovered how to track others like himself by the faint trails they left in the Æther.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
He returned as a penitent, after many months of study and travel. He knelt in the hall of the cathars in Avacyn's great cathedral and offered up his prayers to the angel. He had expected no less than excommunication, even death, for his transgressions.
But Avacyn bent her glorious face toward his bowed form, infinite love brimming in her eyes. She kissed her maimed servant's brow and spoke words of forgiveness and understanding. For the first time since that terrible night, and for the last time, Vronos's heart twisted with raw emotion.
He pledged himself anew to her service. He begged her to task him with the most dangerous quests. He swore never to let weakness prevent him from doing what was needed, no matter how harsh. And she shed one perfect tear on his scarred cheek, and nodded.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
#figure(image("005_The Hunter Cannot Pity/05.jpg", width: 100%), caption: [], supplement: none, numbering: none)
Mask of Avacyn | Art by <NAME>
His cathars all wore masks. The filigreed visage of Vronos was always first among the dread hunters. The monsters and the ignorant called him the Gray Fencer, although he had as little in common with the elegant sport as they did. But he obliged his reputation, thrusting his fine blade through the heart of each fallen enemy of the good.
He understood finally why his sister had to die. He did not forgive, but he saw the need. Combatting evil meant hardening the heart. The hunter cannot pity.
One morning, a warrior angel appeared. She spread her shining wings over Vronos and raised high her sword.
"I carry a message for the masked one from my Lady, a task only her most devoted servant can perform. It will be the most perilous quest of all. Complete this charge, she says, and he will be counted well quit of his debts."
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
#figure(image("005_The Hunter Cannot Pity/06.jpg", width: 100%), caption: [], supplement: none, numbering: none)
Avacyn, Angel of Hope | Art by <NAME>
Avacyn floated in the high ceilings of her cathedral like a new sun in the heavens. Vronos could not look directly at her glory.
He bowed low. "What service would you have of me, Lady? I am yours to command."
"My loyal hunter. I wish it were not necessary to call on you for such a task, but only you, among all my followers, have the skills to perform it."
"I swore an oath to you, even unto death. I hold to it still. Name your charge."
Sadness shadowed the angel's words. "The force that freed me also unleashed greater evil on the world. Many demons were imprisoned in the Helvault. Had I the choice, I would rather have remained within than escape and release them. The dark one who caused the prison to open has laid a blight on this world, but I and my Flights, and our faithful, will cleanse it.
"Worse is the curse she has inflicted on one who, like you, can travel between the worlds. Left untreated, this affliction will transform him into a demon beyond any other—and beyond my reach.
"But you, my chosen, can pursue him as my other servants cannot. You must find this man, Garruk, and bring him to my cathedral. I doubt that his condition allows him to understand his plight. If he will not come willingly, you must bind him. You will need all your cleverness and learning to overcome his cursed might.
"Do this for me, and for the many worlds at stake, and I will count you free of your oath to me."
Vronos stood and forced his eyes to behold her. "My Lady, even if I were not sworn, I would do all in my power to serve you. I will undertake this task, not to be free, but to carry out your purifying work wherever it needs to be done."
Around Avacyn a host of angels appeared, singing in bell-like tones. The cathedral's dim vaults burst into bright day, hurling a long, sharp-edged shadow before Vronos as he strode through the carved doors.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
#figure(image("005_The Hunter Cannot Pity/07.jpg", width: 100%), caption: [], supplement: none, numbering: none)
Art by <NAME>
The man, Garruk, scarcely resembled anything human. He was a huge mass of muscle, rank with sweat and old blood. His face was concealed by a scarred, rusty helm and a coarse mat of hair. The stink of corruption soiled the air as he raised his immense axe.
"Hold, accursed one!" Vronos cried. "You have been tainted by an evil you do not comprehend. Lower your weapon and let me bring you to the healers of Avacyn."
The brute roared like a beast and swung his axe. Vronos stepped back, not daring to parry the heavy blade with his slim rapier. He raised his crossbow and murmured a charm of subdual over the bolt as it flew.
Garruk simply smashed it from the air. With a throwing motion, he brought into existence a snarling bear. It leaped at Vronos, who quickly crafted a shining morningstar and bashed the beast. Panting with exertion, he summoned up a metal monster of his own.
As more wild creatures joined the fray, Vronos responded with etherium servants. But Garruk grew even larger and more ferocious in the full fury of his defiled nature magic. Vronos could craft new defenders from the scraps of those that fell, but he knew he was falling behind in this match.
Vronos raised his hands in a desperate incantation. But before he could finish the words, the axe head buried itself in his shoulder. Garruk had simply hurled his weapon. Vronos dropped to his knees, clutching the bleeding wound. It would prove mortal without quick attention.
He fled into the void, his enemy howling curses behind him. He arrived at the mouth of a cave where he had once sheltered. Its bedding of branches, leaves, and grass was still undisturbed. Vronos crawled into the welcome space and felt for the cache of herbs. His hands closed on the dried leaves, and he muttered a brief prayer of thanks. He quickly chewed them into a poultice and smeared it into the wound. He fell back and let the darkness take him.
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
Vronos had been too dependent on the Inquisition clerics, he then saw. Once he regained some strength, he would need to return to the shrine; the wound was beyond his ability to repair completely. And he would spend some time learning the basics of battlefield healing before he faced the monstrous Garruk again.
But for the time, he needed to rest and allow his body to recover. And that required nourishment. Water would not be difficult to get, but he could scarcely spare the energy even to scrounge up a few berries.
He drifted in and out of consciousness, the pain in his chest throbbing in time with his heartbeat.
The sun set. The air turned blue. A thrush's notes cascaded through the quiet dusk. And then, a doe stepped into the glade not a hundred feet away.
She was dappled with starlight. Her eyes were dark and liquid, reflecting the moon as she raised her head to snuff the breeze. She was beautiful and innocent. But the hunter cannot pity. Vronos slowly raised his crossbow.
The doe started, ears swiveling. The bolt flew true. It sank into her neck, even as she turned to flee. A few thudding steps, and she was down. The light faded from her eyes, becoming black glass.
Vronos dragged himself, moaning, toward the fallen forest creature. Hours seemed to pass before he drew even with the doe's corpse. He offered another prayer of thanks and pulled the bolt from her still-warm flesh.
A sudden snap of twigs, a heavy tread. Vronos looked up, and saw the moon blotted out by a hulking figure. Two sullen purple lights glowered from the monster's helm. It hefted its axe. "I said you could not hide from me."
The axe whistled down. Vronos bowed his head.
The hunter cannot pity.
|
|
https://github.com/antonWetzel/Masterarbeit | https://raw.githubusercontent.com/antonWetzel/Masterarbeit/main/packages/subfigure.typ | typst | #let subfigure = (
content,
width: 100%,
numbering: "(a)",
caption: none,
) => {
let last_figure = state("last_figure")
let sub_figure = counter("sub_figure")
let fig_counter = counter(figure)
locate(loc => {
let current = fig_counter.at(loc).at(0)
if last_figure.at(loc) != current {
sub_figure.update(0)
last_figure.update(current)
}
})
sub_figure.step()
set par(justify: false)
set align(bottom)
box(width: width, align(center, {
content
if caption != none {
v(10pt, weak: true)
sub_figure.display(numbering) + [ ] + caption
}
}))
}
|
|
https://github.com/tymbalodeon/job-application | https://raw.githubusercontent.com/tymbalodeon/job-application/main/src/_content.typ | typst | #let settings = yaml("settings.yaml")
#let cover-letter = yaml(settings.cover-letter-content)
#let resume = yaml(settings.resume-content)
#let convert-to-array(item) = {
if type(item) == "array" {
item
} else {
(item,)
}
}
#let resume-tags = convert-to-array(settings.tags)
#let cover-letter-content = {
for paragraph in cover-letter [
#paragraph
]
}
#let person = resume.person
#let name = person.name
#let email = person.email
#let phone = person.phone
#let github = person.github
#let city = person.city
#let is-empty(tags) = {
let result = true
for tag in tags {
if tag not in (none, "") {
result = false
break
}
}
result
}
#let include-experience(experience) = {
let experience-tags = convert-to-array(experience.tags)
let result = true
if not is-empty(experience-tags) {
for tag in experience-tags {
if tag not in resume-tags {
result = false
break
}
}
}
result
}
#let experiences = {
let experiences = resume.experience
if is-empty(resume-tags) {
experiences
} else {
experiences.filter(include-experience)
}
}
#let awards = resume.awards
#let education = resume.education
#let skills = resume.skills
|
|
https://github.com/morel-olivier/template-typst | https://raw.githubusercontent.com/morel-olivier/template-typst/master/readme.md | markdown | # template-typst
Small collection of basic typst template.
Those templates are meant for french document but you can easily change that by modyifing the `lang` and `region` parameter of the `set text` function in the **conf.typ** file.
|
|
https://github.com/AliothCancer/AppuntiUniversity | https://raw.githubusercontent.com/AliothCancer/AppuntiUniversity/main/capitoli_dispositivi/02ExeValvole.typ | typst | #import "../custom_functions.typ": *
= Esercitazione: Valvole
#def[Effective Orifice Area][
È la sezione efficace/effettiva della valvola, si usa per valutare il grado di ostruzione che la valvola provoca.
Si possono confrontare valvole dello stesso diametro per capire quale è migliore. Un EOA più grande implica più basse cadute di pressione e quindi a perdite energetiche minori.
]
== Effective Orifice Area (EOA)
#let formula_caption(formula, content) = {
//set page(margin: auto)
set text(size: 12pt)
grid(
align: center,
formula,
v(.3cm),
grid.cell(content),
v(.5cm)
)
}
$
"EOA" = Q_"peak" / v_2
$
- $Q_"peak"$: Portata massima, si ha durante il picco di pressione massimo
- $v_2$: Velocità a valle della valvola
#formula_caption[
$
v_2 = sqrt(2 / rho dot (p_1 - p_2)) = sqrt(2/rho dot Delta p)
$
][Nota: Si ricava dalla eq. di Bernoulli trascurando v1, ovvero la velocità a monte della valvola.]
- $p_1 $: pressione a valle della valvola
- $p_2 $: pressione a monte della valvola
#pagebreak()
=== Analisi dimensionale EOA
$
= m^3/s / (sqrt(2/(1000"Kg"/m^3) dot cancel("mmHg") dot 133"Pa"/cancel("mmHg"))) \ = m^3/s dot 1/sqrt(0.266N/cancel(m^2) dot m^cancel(3) / "Kg") \ = m^3/s dot 1/(0.516 sqrt(cancel(N) dot m / ((cancel(N) dot s^2) / m)))\ = m^3/s dot 1/(0.516 sqrt( m^2 / (s^2)))\ = 1/0.516 dot (m^2 dot cancel(m))/cancel(s) dot cancel(s)/cancel(m) \ = m^2
\ \ \ \ \
"EOA" = (Q (L/s) dot 10^4 "cm"^2/m^2) / (516L/s/(m^2sqrt("mmHg")) dot sqrt(Delta p ("mmHg")))
$
=== Formula Definitiva EOA
$
\
"EOA" = 10^4/516 (Q) / (sqrt(Delta p)) arrow "cm"^2
$
#align(center, [
- Q : $L/s$
- $Delta p$ : mmHg
]) |
|
https://github.com/TeunSpithoven/Signals-And-Embedded-Systems | https://raw.githubusercontent.com/TeunSpithoven/Signals-And-Embedded-Systems/main/components/terms.typ | typst | // CHANGE THIS TO THE CORRECT PATH
#import "../template/fhict-template.typ": *
#let term_list = (
(
key: "banaan",
short: [bn],
long: [banaan],
desc: [zo'n geel ding],
),
)
|
|
https://github.com/maxgraw/bachelor | https://raw.githubusercontent.com/maxgraw/bachelor/main/apps/document/src/2-theory/webgl.typ | typst | WebGL 2.0 ist eine Programmierschnittstelle für 2D- und 3D-Grafiken, die das Rendering von Grafiken in Webbrowsern ermöglicht. Diese API basiert auf OpenGL ES 3.0 und wird von den meisten modernen Browsern unterstützt @webgl-spec @can-i-use-webgl. Die Integration von WebGL 2.0 erfolgt über das HTML-Canvas-Element, wodurch die API Zugriff auf die Hardware-Grafikbeschleunigung des jeweiligen Geräts erhält @html-spec.
Die API bietet eine Vielzahl von Funktionen, um 2D- und 3D-Grafiken zu rendern. Dazu gehört das Erstellen von Shader-Programmen, das Laden von Texturen, das Zeichnen von geometrischen Formen und das Anwenden von Transformationen auf Objekte. WebGL 2.0 unterstützt auch fortgeschrittene Funktionen wie Instancing, Multiple Render Targets und Compute Shaders @webgl-spec.
In Kombination mit der WebXR Device API ermöglicht WebGL das Rendern von XR-Inhalten innerhalb eines Webbrowsers und bildet somit die Grundlage für die Entwicklung von Augmented Reality im Webbrowser. WebGL besitzt eine Vielzahl an Bibliotheken und Frameworks, welche die Entwicklung von Inhalten erleichtern. Im späteren Kapitel werden verschiedene Frameworks im Kontext der Entwicklung mit WebXR vorgestellt. |
|
https://github.com/TypstApp-team/typst | https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/bugs/math-realize.typ | typst | Apache License 2.0 | // Test that content in math can be realized without breaking
// nested equations.
---
#let my = $pi$
#let f1 = box(baseline: 10pt, [f])
#let f2 = style(sty => f1)
#show math.vec: [nope]
$ pi a $
$ my a $
$ 1 + sqrt(x/2) + sqrt(#hide($x/2$)) $
$ a x #link("url", $+ b$) $
$ f f1 f2 $
$ vec(1,2) * 2 $
---
$ x^2 #hide[$(>= phi.alt) union y^2 0$] z^2 $
Hello #hide[there $x$]
and #hide[$ f(x) := x^2 $]
---
// Test equations can embed equation pieces built by functions
#let foo(v1, v2) = {
// Return an equation piece that would've been rendered in
// inline style if the piece is not embedded
$v1 v2^2$
}
#let bar(v1, v2) = {
// Return an equation piece that would've been rendered in
// block style if the piece is not embedded
$ v1 v2^2 $
}
#let baz(..sink) = {
// Return an equation piece built by joining arrays
sink.pos().map(x => $hat(#x)$).join(sym.and)
}
Inline $2 foo(alpha, (M+foo(a, b)))$.
Inline $2 bar(alpha, (M+foo(a, b)))$.
Inline $2 baz(x,y,baz(u, v))$.
$ 2 foo(alpha, (M+foo(a, b))) $
$ 2 bar(alpha, (M+foo(a, b))) $
$ 2 baz(x,y,baz(u, v)) $
|
https://github.com/barrel111/readings | https://raw.githubusercontent.com/barrel111/readings/main/problems/external/1910SU/week1.typ | typst | #import "@local/preamble:0.1.0": *
#import "@preview/cetz:0.2.2": canvas, plot
#show: project.with(
course: "1910SU",
sem: "Summer",
title: "Group Discussion: Differentiation I",
subtitle: "Solutions",
contents: false,
)
#let tri = $triangle.t$
= Trigonometric Derivatives
== Prove the identity: $lim_(x arrow 0) sin(x)/x = 1.$
#align(center)[
#image("graphics/triangle.png", width: 35%)
]
From the picture above, we can conclude $ tri A B C <= accent(A B C, paren.t) <= tri A B D. $
#remark[Notationally, I am using $accent(A B C, paren.t)$ to denote the area of the
sector colored blue in the figure above.]
Furthermore, the area of each of the shapes can be calculated as follows,
$ tri A B C &= 1/2 dot.c b dot.c h = 1/2 dot 1 dot sin x \
accent(A B C, paren.t) &= 1/2 dot.c r^2 dot.c x = 1/2 dot.c x \
tri A B D &= 1/2 dot.c b dot.c h = 1/2 dot.c 1 dot.c tan x $
Substituting these values back into our initial inequality, we get the desired
result.
$ (sin x)/2 <= x/2 <= (tan x)/2. $
From the first inequality, we obtain the desired upper bound,
$ (sin x)/2 <= x /2 implies (sin x)/x <= 2/2 implies (sin x)/x <= 1. $
From the second inequality, we obtain the desired lower bound,
$ x/2 <= (tan x)/2 implies x <= (sin x)/(cos x) implies cos x <= (sin x)/x. $
Thus, $ cos x <= (sin x)/x <= 1. $
By the Squeeze Theorem,
$ &lim_(x -> 0) cos x <= lim_(x -> 0) (sin x)/x <= lim_(x -> 0) 1 \ implies &1 <= lim_(x -> 0) (sin x)/x <= 1 \ implies &lim_(x -> 0) (sin x)/x = 1. $
#align(right)[$square$]
== Prove the identity $lim_(x arrow 0) (cos x - 1)/x = 0.$
We start by multiplying the numerator and denominator by $(cos x + 1)$ as
suggested by the hint.
$ (cos x - 1)/x dot.c (cos x + 1)/(cos x + 1) = (cos^2 x - 1)/x(cos x + 1) $
From $sin^2 x + cos^2 x = 1$, it follows that $cos^2 x - 1 = -sin^2 x$. So,
$ = -(sin^2 x)/(x (cos x + 1)) $
The trick now is to write the expression above as a product of terms each of
whose limit as $x arrow 0$ is known.
$ = (sin x)/x dot.c (- sin(x)) dot 1/(cos x + 1) $
From the previous part, we know that $lim_(x arrow 0) (sin x)/x = 1$.
Furthermore, by continuity of $sin$, we note that $lim_(x arrow 0) -sin x = -sin 0 = 0.$ Similarly,
by continuity of $1/(cos x + 1)$ at $x = 0$, we have $lim_(x arrow 0) 1/(cos x + 1) = 1/2.$ Thus,
we may conclude the following.
$ lim_(x arrow 0) (cos x - 1)/x &= (lim_(x arrow 0) (sin x)/x) (lim_(x arrow 0) - sin(x)) (lim_(x arrow 0) 1/(cos x + 1)) \
&= 1 dot 0 dot 1/2 = 0 $
#align(right)[$square$]
== Prove that $d/(d x) sin x = cos x$ from first principles.
~
First, a quick note on the angle sum formula,
$ sin(a + b) = sin a cos b + cos a sin b. $ There are a lot of ways of proving
it and its interesting to see how you go on to see nicer and nicer proofs of it
as you learn more math (there are fairly neat proofs using linear algebra, the
Taylor series, Euler's formula etc.) Below is one such very nice proof, perhaps
even more extraordinary because of how elementary it is.
#align(center)[#image("graphics/sin sum.png", width: 35%)]
Now, lets move to the actual problem. This was also covered in the lecture notes
but, for completion, the derivative of $sin$ can be derived from first
principles as follows.
~
$ lim_(h to 0) (sin(x + h) - sin(x))/h &= lim_(h to 0) (sin x cos h+ sin h cos x - sin x)/(h) \ &= lim_(h arrow 0) (sin x dot.c (cos h - 1)/h + cos x dot (sin h)/h) \ &= sin x dot underbrace(lim_(h arrow 0) (cos h - 1)/h, 0) + cos x dot underbrace(lim_(h arrow 0) (sin h)/h, 1) \ &= cos x. $
#align(right)[$square$]
== Prove $d/(d x) cos x = - sin x$.
~
$ d/(d x) cos x =^((1)) d/(d x) sin (x + pi/2) =^((2)) cos(x + pi/2) =^((3)) -sin x. $
Lets focus on equalities $(1)$ and $(3)$ first. They follow from the identities $ cos x = sin (x + pi /2) #h(20pt) sin x = - cos(x + pi/2) $
They may be verified using the angle sum formulae $ sin (a + b) = sin a cos b + cos a sin b, cos (a + b) = cos a cos b - sin a sin b$.
Alternatively, one may derive them directly by considering the unit circle and
the following constructions.
#align(center)[#image("graphics/trig identity.gif", width: 35%)]
Now, we move to justifying equality $(2)$. Since $sin(x + pi/2)$ is a
composition of the functions $x arrow.bar sin x$ and $x arrow.bar x + pi/2$, we
have to justify this step a bit more than just citing our previous result that $d/(d x) sin x = cos x$.
Of course, since a composition is involved, we can just use the chain rule here!
However, since we hadn't talked about the chain rule explicitly during this
week, I want to highlight an alternative way of approaching $(2)$. First note
that, $sin (x + pi/2)$ is just $sin x$ shifted to the left by $pi/2$ units.
#align(
center,
)[
#canvas(length: 1cm, {
plot.plot(
size: (8, 6),
x-tick-step: none,
x-ticks: ((-2 * calc.pi, $-2 pi$), (0, $0$), (2 * calc.pi, $2 pi$)),
y-tick-step: 1,
{
plot.add(
style: (stroke: blue, fill: rgb(0, 0, 200, 75)),
domain: (-2 * calc.pi, 2 * calc.pi),
calc.sin,
label: $sin x$,
)
plot.add(
style: (stroke: red, fill: rgb(0, 0, 200, 75)),
domain: (-2 * calc.pi, 2 * calc.pi),
x => calc.sin(x + calc.pi / 2),
label: $sin (x + pi slash 2) $,
)
},
)
})
]
Intuitively, shifting doesn't change the shape of the graph itself. So, we may
expect the derivative of $sin(x + pi/2)$ to perhaps just be the derivative of $sin x$ shifted
by the same amount i.e. $cos(x + pi/2)$. This intuition can be formalized from
first principles as follows:
Assume $f$ is a differentiable real-valued function. Let $g(x) = f(x + t)$ for
some fixed $t in RR$. Then,
$ d/(d x) g(x) &= lim_(h arrow 0) (g(x + h) - g(x))/h \ &= lim_(h arrow 0) (f(x + t + h) - f(x + t))/h $
Let $y = x + t$. $ &= lim_(h arrow 0) (f(y + h) - f(y))/h \ &= f'(y) = f'(x + t). $
#align(right)[$square$]
= Derivative of $e^x$
== Show that $lim_(h to 0) (e^h - 1)/h = lim_(u to 0) u/(ln(u + 1))$ using the substitution $u = e^h - 1$.
~
Note that substituting $u = e^h - 1$ to the second expression gives us the first
expression back.
$ u/(ln(u + 1)) = (e^(h) - 1)/(ln(e^h)) = (e^h - 1)/h $
Furthermore, note that as $h -> 0$, $u -> 0$ too. Thus,
$ lim_(h to 0) (e^h - 1)/h = lim_(u -> 0) u/(ln(u + 1)). $
#align(right)[$square$]
== Equate the previous limit with $lim_(u to 0) 1/(ln(u + 1)^(1/u)).$
~
Dividing the numerator and denominator by $u$, we get
$ u/(ln(u + 1)) = (1/u dot u)/(1/u dot ln(u + 1)) = 1/(ln(u + 1)^(1/u)) $
#align(right)[$square$]
== Show that the previous limit is equal to $1$.
~
Since $ln$ is continuous, we have
$ lim_(u -> 0) ln(u + 1)^(1/u) = ln(lim_(u to 0) (u + 1)^(1/u)) = ln e = 1. $
Thus,
$ lim_(u -> 0) 1/(ln(u + 1)) = 1/(lim_(u -> 0) ln(u + 1)) = 1/1 = 1. $
#align(right)[$square$]
== Show that $d/(d x) e^x = e^x$.
~
Note that the previous parts have shown
$ lim_(h -> 0) (e^h - 1)/h = 1. $
We start from the definition of the derivative.
$ d/(d x) e^x = lim_(h -> 0) (e^(x + h) - e^x)/h = e^x lim_(h to 0) (e^h - 1)/h = e^x. $
#align(right)[$square$]
= Pascal's Triangle
There are many ways to prove the required result, which is also known as _the Binomial Theorem_.
I will give two proofs here, one is a _combinatorial proof_ #h(3pt)#footnote[Combinatorial proofs are often quite elegant. For an in-depth exploration, I
recommend reading the book _Proofs that Really Count_ by Benjamin & Quinn.] and
the other is _by induction_. I expect the second technique to be new to most of
you-- so, I wouldn't worry if not all of it makes sense in your first read
through!
== Combinatorial Proof
Recall that $binom(n, k)$ counts the number of ways of selecting $k$ objects
from $n$ objects.
We want to know what the coefficient of $x^k h^(n - k)$ (for $k in {0, 1, dots, n}$)
will be in the expansion of $ (x + h)^n = underbrace((x + h) (x + h) dots (x + h), n "times"). $
We note that each $x^k h^(n - k)$ term arises by selecting an $x$ term from $k$ of
the $(x + y)$ factors and a $y$ term from all the remaining factors. This
essentially amounts to selecting $k$ items from $n$ items. Thus, there are $binom(n, k)$ many $x^k h^(n - k)$ terms.
Summing over all the possible values of $k$, we obtain the formula we desired
$ (x + h)^n = sum_(k = 0)^n binom(n, k) x^k h^(n - k). $
#align(right)[$square$]
== Proof by Induction
Let $P(n)$ denote the statement that the following equality holds
#numbered_eq($ (x + h)^n = sum_(k = 0)^n binom(n, k) x^k h^(n - k). $)
#remark[For example, $P(2)$ corresponds to the statement that $ (x + h)^2 = x^2 + 2 x h + h^2. $]
*Base Case.* Now, we start by showing that $P(1)$ is true. We simplify both the
left and right hand side of $(1)$ with $n = 1$ to obtain
$ &(x + h)^1 = x + h \ &sum_(k = 0)^1 binom(1, k) x^k h^(1 - k) = binom(1, 0) x^0 h^1 + binom(1, 1) x^1 h^0 = x + h. $
Thus, $P(1)$ clearly holds.
*Induction.* Now, we show that if $P(n)$ holds for some $n in NN$ then $P(n + 1)$ is
also true. So, assume $P(n)$ is true for some $n$. That is to say, the following
equality is true,
$ (x + h)^n = sum_(k = 0)^n binom(n, k) x^k h^(n - k). $
Note then that
$ (x + h)^(n + 1) &= (x + h)(x + h)^(n) \ &= (x + h)sum_(k = 0)^n binom(n, k) x^k h^(n - k') \ &= sum_(k = 0)^n binom(n, k) x^(k + 1) h^(n - k) + sum_(k = 0)^n binom(n, k) x^k h^(n - k + 1) $
Let $k' = k + 1$. Then,
$ &= sum_(k' = 1)^n binom(n, k - 1) x^(k') h^(n + 1 - k') + sum_(k =0)^n binom(n, k) x^k h^(n + 1 - k) \ &= h^(n + 1) + sum_(k = 1)^n [binom(n, k - 1) + binom(n, k)] x^k h^(n + 1 - k) $
Then, we use the identity $binom(n, k - 1) + binom(n, k) = binom(n, k + 1)$
(this itself can be proven using a combinatorial proof or induction-- I leave
verifying this to you!) $ \ &= h^(n + 1) + sum_(k = 1)^n binom(n, k + 1) x^k h^(n + 1 - k) \ &= sum_(k = 0)^n binom(n, k + 1) x^k h^(n + 1 - k). $
Thus, $P(n + 1)$ is also true.
Thus, by induction, we have shown that $P(n)$ is true for all $n in NN$. (The
idea is that the base case shows that $P(1)$ is true and the second step lets us
show that $P(1) => P(2) => P(3) => dots.h "and so on"$)
#remark[By $NN$, I am denoting the set of _natural numbers_. These are all the positive
integers.]
#align(right)[$square$]
|
|
https://github.com/EliasRothfuss/vorlage_typst_doku-master | https://raw.githubusercontent.com/EliasRothfuss/vorlage_typst_doku-master/main/pages/abkuerzungen.typ | typst | = Abkürzungsverzeichnis
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(21)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10) |
|
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/universal-hit-thesis/0.2.0/README.md | markdown | Apache License 2.0 | # HIT-Thesis-Typst
适用于哈尔滨工业大学学位论文的 Typst 模板

> [!WARNING]
> 本模板正处于积极开发阶段,存在一些格式问题,适合尝鲜 Typst 特性
>
> 本模板是民间模板,**可能不被学校认可**,正式使用过程中请做好随时将内容迁移至 Word 或 LaTeX 的准备
## 关于本项目
[Typst](https://typst.app/) 是使用 Rust 语言开发的全新文档排版系统,有望以 Markdown 级别的简洁语法和编译速度实现 LaTeX 级别的排版能力,即通过编写遵循 Typst 语法规则的文本文档、执行编译命令,来可生成目标格式的 PDF 文档。
**HIT Thesis Typst** 是一套简单易用的哈尔滨工业大学学位论文 Typst 模板,受 [hithesis](https://github.com/hithesis/hithesis) 启发,计划囊括一校三区本科、硕士、博士的学位论文格式。
**预览效果**
- 本科通用:[universal-bachelor.pdf](https://github.com/chosertech/HIT-Thesis-Typst/blob/build/universal-bachelor.pdf)
## 使用
### 本地编辑 Ⅰ (推荐)
这种方式适合大多数用户。
首先安装 Typst,您可以在 Typst Github 仓库的 [Release 页面](https://github.com/typst/typst/releases/) 下载最新的安装包直接安装,并将 `typst` 可执行程序添加到 `PATH` 环境变量;如果您使用 Scoop 包管理器,则可以直接通过 `scoop install typst` 命令安装。
安装好 Typst 之后,您只需要选择一个您喜欢的目录,并在此目录下执行以下命令:
```sh
typst init @preview/universal-hit-thesis:0.2.0
```
Typst 将会创建一个名为 `universal-hit-thesis` 的文件夹,进入该目录后,您可以直接修改目录下的 `universal-bachelor.typ` ,然后执行以下命令进行编译生成 `.pdf` 文档:
```sh
typst compile universal-bachelor.typ
```
或者使用以下命令进行实时预览:
```sh
typst watch universal-bachelor.typ
```
当您要实时预览时,我们推荐使用 VS Code 进行编辑,配合 [Tinymist Typst](https://marketplace.visualstudio.com/items?itemName=nvarner.typst-lsp), [vscode-pdf](https://marketplace.visualstudio.com/items?itemName=tomoki1207.pdf) 等插件可以大幅提升您的编辑体验。
### 本地编辑 Ⅱ
这种方法适合 Typst 开发者。
首先使用 `git clone` 命令 clone 本项目,或者直接在 Release 页面下载特定版本的源码。在 `templates/` 目录下选择您需要的模板,直接修改或复制一份,在根目录运行以下命令进行编译:
```sh
typst compile ./templates/<template-name>.typ --root ./
```
或者使用如下命令进行实时预览:
```sh
typst watch ./templates/<template-name>.typ --root ./
```
> [!TIP]
> 本模板正处于积极开发阶段,更新较为频繁,虽然已经上传至 Typst Universe,但是您依然可以借助 Typst local packages 来实现在 Typst Universe 同步本模板的最新版本前,在本地体验本模板的最新版本,具体做法为:
> - 在 Release 页面下载对应版本的源码压缩包,并将其解压到 `{data-dir}/typst/packages/local/universal-hit-thesis/{version}`,`{data-dir}` 在不同操作系统下的值为:
> - `$XDG_DATA_HOME` or `~/.local/share` on Linux
> - `~/Library/Application` Support on macOS
> - `%LOCALAPPDATA%` on Windows
>
> `{version}` 的值为 `typst.toml` 中 `version` 项的值.
>
> 解压完成后 `typst.toml` 文件应该出现在 `{data-dir}/typst/packages/local/universal-hit-thesis/{version}` 目录下.
>
> - 接着您需要在您的论文中将 `#import "@preview/universal-hit-thesis:0.2.0"` 修改为 `#import "@local/universal-hit-thesis:{version}"`,即可更新模板.
### 在线编辑
本模板已上传 Typst Universe,您可以使用 Typst 的官方 Web App 进行编辑。
---
> [!NOTE]
> 注意到,官方提供的本科毕业设计 Microsoft Word 论文模板 `本科毕业论文(设计)书写范例(理工类).doc` 在一校三区是通用的,意味着本 Typst 模板的本科论文部分理论上也是在一校三区通用的,因此我们提供适用于各校区的本科毕业论文模板模块导出,即以下四种导入模块的方式效果相同:
> ```typ
> #import "@preview/universal-hit-thesis:0.2.0": harbin-bachelor
> #import harbin-bachelor: * // 哈尔滨校区本科
> ```
> ```typ
> #import "@preview/universal-hit-thesis:0.2.0": weihai-bachelor
> #import weihai-bachelor: * // 威海校区本科
> ```
> ```typ
> #import "@preview/universal-hit-thesis:0.2.0": shenzhen-bachelor
> #import shenzhen-bachelor: * // 深圳校区本科
> ```
> ```typ
> #import "@preview/universal-hit-thesis:0.2.0": universal-bachelor
> #import universal-bachelor: * // 一校三区本科通用
> ```
## 依赖
### 可选依赖
若要书写和引用伪代码,您可以使用 `algorithm-figure`,为此,您需要导入 `@algorithmic` 包。
```typ
#import "@preview/algorithmic:0.1.0"
#import algorithmic: algorithm
```
使用方式详见[模板](https://github.com/chosertech/HIT-Thesis-Typst/blob/main/templates/universal-bachelor.typ)中的`算法`节
|
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/chronos/0.1.0/gallery/readme/lifelines.typ | typst | Apache License 2.0 | #import "/src/lib.typ" as chronos
#set page(
width: auto,
height: auto,
margin: 0.5cm
)
#chronos.diagram({
import chronos: *
_par("A", display-name: "Alice")
_par("B", display-name: "Bob")
_par("C", display-name: "Charlie")
_par("D", display-name: "Derek")
_seq("A", "B", comment: "hello", enable-dst: true)
_seq("B", "B", comment: "self call", enable-dst: true)
_seq("C", "B", comment: "hello from thread 2", enable-dst: true, lifeline-style: (fill: rgb("#005500")))
_seq("B", "D", comment: "create", create-dst: true)
_seq("B", "C", comment: "done in thread 2", disable-src: true, dashed: true)
_seq("B", "B", comment: "rc", disable-src: true, dashed: true)
_seq("B", "D", comment: "delete", destroy-dst: true)
_seq("B", "A", comment: "success", disable-src: true, dashed: true)
}) |
https://github.com/Pablo-Gonzalez-Calderon/apuntes-botanica | https://raw.githubusercontent.com/Pablo-Gonzalez-Calderon/apuntes-botanica/main/src/months/september.typ | typst | Other | #import "../template.typ": new-class, examplebox, obsbox, figure-box, gloss
#import "@preview/showybox:2.0.1": *
#let clase-7-8 = [
#new-class(new-page: true, "Tipos celulares en plantas", "04 de septiembre de 2023")
#obsbox()[
Recordemos que todas las células parten indiferenciadas.
]
Recordemos que las yemas son *áreas meristemáticas,* donde se hayan los meristemas. Y, precisamente, en los meristemas es donde ocurre la mitosis, donde una célula madre da origen a dos células hijas.
Una de las células hijas seguirá siendo meristemática, mientras que la otra, luego de elongarse, *se diferencia.* Esta célula diferenciada se denomina como *célula derivada.*
#obsbox()[Todos los tejidos están formados por células derivadas.]
Otro lugar donde se pueden encontrar meristemas, además de las yemas, son las raíces, específicamente en los *ápices radicales* (las puntas de las raíces).
Los anteriores meristemas localizados sirven para la elongación de la planta, pero para el engrosamiento se tienen los *meristemas laterales,* los cuales se hayan en tallos y raíces y sirven para el engrosamiento de estas estructuras.
Lás células formadas a partir de los meristemas están conectadas entre sí, formando el *simplasto,* permitiendo que las células interactúen entre sí y *formen tejidos.* Y, a su vez, los tejidos pueden interactuar entre sí y formar *sistemas de tejidos.*
#obsbox()[
Los tejidos, en botánica, suelen clasificarse en *simples* o *complejos*, dependiendo de si están formados por un solo tipo de células o varios, respectivamente.
]
#examplebox()[
Ejemplos de células son las traqueidas, las células oclusivas, o las esclereídas.
][
Ejemplos de tejidos son el xilema, la epidermis o el parénquima.
][
Ejemplos de sistemas, son el dérmico (de cubierta), el fundamental (de relleno) y vascular (de transporte).
]
#obsbox()[
Las plantas pueden dividirse en *briófitas* (no vasculares como el musgo) y *traqueófitas* (plantas vasculares).
][
Las briófitas, entre otras cosas, se caracterizan porque no poseen tejidos diferenciados o especializados.
]
= Sistema dérmico
Se encuentra formado por dos tejidos, ambos con función de cubrir estructuras aéreas y subterráneas: *epidermis* y *rizodermis*, respectivamente.
La epidermis cubre hojas, tallos herbáceos, frutos y flores. Por su parte la rizodermis cubre las estructuras subterráneas más viejas, y la epidermis las más nuevas.
== Epidermis
Está formada por 4 células:
1. Células de cubierta
2. Células oclusivas de los estomas.
3. Células anexas de los estomas.
4. Tricomas
// La hilera tiene dos paredes tangenciales, la superior e inferior; y dos paredes radiales
/*
* Dibujar una fila de células (trapecios) y ponerle encima cutina
*/
Estas células *suelen ser isodiamétricas.*
La epidermis puede tener más de una capa de células (monoestratificada), pudiendo ser biestratificada, triestratificada, etc.
Es importante saber que la epidermis estará presente desde períodos tempranos de la vida de la planta y que, posteriormente conforme esta vaya creciendo, la epidermis será "reemplazada" por una capa aún más superior: la *peridermis.*
#obsbox()[
Los pigmentos de la vacuola son hidrosolubles, mientras que los pigmentos de los cloroplastos y cromoplastos son liposolubles.
]
=== Células de cubierta
Pueden (y suelen) ser transparentes e incoloras (pueden o no tener pigmentos en la vacuola o cromoplastos y cloroplastos). Poseen una pared externa en la cual se encuentra una cera denominada *cutina,* entregando protección e impermeabilidad al agua.
La capa de cera sobre la epidermis se denomina *cutícula*, la cual se fija en la *pared tangencial externa* y, en parte, en las *paredes radiales.*
Además, sobre la cutícula suele ubicarse otra capa adicional de cera llamada *cera epicuticular,* la cual agrega todavía más protección a la estructura. Esta cera suele ser de color blanco, las cuales se denominan ceras *pruinosas.*
#obsbox()[
Como la cera es impermeable, se necesitan poros para dejar pasar agua de vez en cuando.
]
#figure(
caption: "Epidermis compuesta de células de cubierta con cutícula sobre ellas",
image("../figures/fig_epidermis.svg", height: 6cm)
)
=== Estomas
Son los poros a través de los cuales la planta intercambia $"CO"_2$ y $"O"_2$ con el exterior. Forman el *complejo estomático* (células oclusivas, ostiolo, células anexas y cavidad subestomática).
Dos *células oclusivas* forman una estructura similar a dos riñones, las cuales _poseen cloroplastos_, y forman un orificio llamado *ostiolo*. La pared al interior del orificio es la *pared ventral*, mientras que la pared externa es la *pared dorsal.*
Adicionalmente, alrededor de las células oclusivas están las *células anexas* (aka subsidiarias, de guarda, acompañantes) que son otras células de la epidermis.
Sobre las células oclusivas, además, también hay (y a veces más) cutícula; mientras que debajo de ellas hay un parénquima con espacios intercelulares muy grandes, denominado *cavidad subestomática*
Cuando las células subsidiarias no están presentes, el complejo estomático recibe el nombre de *complejo estomático anomocítico.*
=== Tricomas
Son evaginaciones de las células epidérmicas (también cubiertas con cutina), con formas de vellosidades (filamentosos).
Los tricomas pueden ser no glandulares (*unicelulares filamentosos*, *pluricelulares filamentosos*), o *glandulares*. Todos sirven para dar protección de la radiación del medio externo y evitar la pérdida de agua. En particular, el globular posee sustancias que pueden ser aromáticas o de defensa.
#obsbox()[
Los estomas y los tricomas pueden estar en ambas caras de la hoja, pero usualmente están en la inferior
]
== Rizodermis
Es "la epidermis de las raíces" con la única diferencia de que no hay estomas, sí tricomas, pero que son llamados como *pelos radicales* cuya función es la absorción de agua y sales. Crecen a no más de 1 cm del ápice de la raíz (raíces nuevas), en la *zona de diferenciación.*
Estos tricomas se originan a partir de células de la rizodermis llamadas *tricoblastos,* y su función es aumentar la superficie de absorción de la raíz. Sin embargo, viven poco tiempo, siendo reemplazados de forma continua.
Cuando los pelos radicales mueren, la rizodermis es reemplazada por una *exodermis,* la cual está constituida por _células sub-rizodérmicas_ del parénquima cortical, las cuales suberifican sus paredes celulares.
= Sistema fundamental
Se encuentra formado por tres tejidos: *parénquima*, *colénquima* y *esclerénquima*. Con ellos estructura todos los órganos de la planta (tallos, raíces, etc.)
== Parénquima
Es un tejido formado con células de paredes primarias celulósicas (i.e. células vivas, teñidas con _fast green_) que cumplen una función particular (e.g. fotosíntesis, almacenamiento, intercambios gaseosos, metabolismo hormonal o enzimático, transporte simplástico). De esta manera, es fundamental para la planta contar con este tipo de células. De hecho, en este tejido hay un mayor porcentaje de células vivas. Tienen distintas formas y distintas ubicaciones.
Cuando el *parénquima es fotosintetizador,* se denomina *clorénquima,* el cual es verde y se halla en las hojas, en tallos herbáceos, en las flores (en sus estructuras verdes) y en los frutos. // Si se acaban los pigmentos clorofílicos,
También puede ser un *parénquima almacenador*, el cual puede aparecer con células de distinto tamaño y color, y se halla en:
- *Tallos:* Se encuentran en el centro del tallo o en su periferia, y se denominan *parénquima medular* o *parénquima cortical,* respectivamente
- *Raíces:* Se encuentran usualmente en la periferia, y se denomina *parénquima cortical*
- *Frutos:* Se encuentra en la parte media del fruto y se denomina *mesocardio.*
- *Semillas:* Se encuentra en el *endosperma*
Si el parénquima se encarga de almacenar agua, entonces se le denomina *parénquima acuífero* o *hidrénquima*
El parénquima también podría ser un parénquima con *muchos espacios intercelulares,* denominándose *aerénquima.* Este parénquima sirve esencialmente para el intercambio gaseoso, pues lo hace más eficiente. También sirve para darle flotabilidad a los tejidos, por lo que se pueden hallar en plantas acuáticas.
#obsbox()[
En las hojas también hay aerénquima y clorénquima, pero reciben otros nombres. En la parte superior de la hoja está el _clorénquima_, el cual se denomina *parénquima empalizado*, mientras que en la parte inferior de la hoja está el _aerénquima_, el cual se llama *parénquima esponjoso*.
]
== Colénquima
Es un tejido formado por células vivas con pared primaria. Su función es mecánica, en el sentido de tener relación con el *refuerzo de la estructura de la planta,* permitiendo que la planta se mueva y se doble, pero que vuelva a su posición.
Para cumplir su función la célula presenta una *pared primaria _desigualmente_ engrosada:* se engrosa en ángulo parietales (asociados a la pared $->$ ángulos de la pared) a base solamente de celulosa. Este engrosamiento en los ángulos se denomina *colénquima angular.*
Se agrupa en ciertos sectores donde puede producir mayor refuerzo: en tallos, hojas, frutos, semillas y tallos herbáceos. Algunos tallos que presentan forma cuadrada poseen *bandas de colénquima* en sus esquinas.
El colénquima es *diamétrico*, pues es alargado en un corte longitudinal, y pequeño en un corte transversal
== Esclerénquima
Es un tejido formado por células muertas, con paredes secundarias lignificadas. Por lo anterior, _se tiñe de rojo con safranina._
Las células del esclerénquima no poseen contenido celular, y su *función es netamente mecánica.* Las plantas perennes lo presentan en mayor medida junto con el colénquima, ya que es energéticamente más costoso, por lo que las plantas de vida corta no lo presentarán tanto.
Si la célula es larga o diamétrica, se llama *fibra esclerenquimática;* si la célula es isodiamétrica, se denomina *esclereidas* o *células pétreas.* Ambas se presentan en todas las estructuras vegetales (quizás no en las frutas) siempre agrupadas.
Las fibras esclerenquimáticas se agrupan en *bandas* y se caracterizan por comenzar y terminar en puntas.
Al interior de las células del esclerénquima está el *lumen*, que es lo que queda dentro de la célula luego de que esta haya muerto. Además, donde estaban las conexiones con las demás células (plasmodesmos) quedan los orificios, denominados *puntuaciones* (hay una o dos en las fibras esclerenquimáticas, mientras que hay más en las esclereidas).
El límite parietal externo de las células esclerenquimáticas es *angular*, mientras que el límite interno es *circular.*
]
#let clase-9 = [
#new-class(new-page: true, "Crecimiento primario", "11 de septiembre de 2023")
#gloss(size: 2.5cm)[
/ Meristema: Tejido de la planta en una zona determinada, compuesto por células embrionarias (se pueden dividir), con alta actividad mitótica, un núcleo activo de gran tamaño, pared primaria celulósica, vacuolas pequeñas y forma isodiamétrica
]
Cuando hablamos de crecimiento primario, hablamos de la forma en la que primero crecen las plantas. *Todas las plantas tienen crecimiento primario.*
Esencialmente, el crecimiento primario permite el crecimiento en *longitud* de tallos y raíces (y la expansión _indirecta_ de hojas y frutos). Mientras que el crecimiento secundario permite el crecimiento en *grosor*.
Aunque suene redundante, es importante mencionar que el crecimiento primario está asociado a *meristemas primarios,* los cuales surgen del meristema apical y corresponden, fundamentalmente, a la protodermis, el meristema fundamental y el procámbium.
#obsbox()[
De esta forma, se infiere que el crecimiento secundario no ocurrirá en todas las plantas y las células adultas serán las que, en algunos casos, serán las que se dividen al recuperar parte de sus propiedades meristemáticas.
]
De esta forma, recordemos que las células no viven aisladas, forman tejidos que conforman sistemas de tejidos que, finalmente, constituyen órganos.
#grid(
columns: (1fr, 1.5fr),
column-gutter: 11pt,
[
#examplebox()[
Por ejemplo, una hoja (órgano) tiene 3 sistemas de tejidos: dérmico, vascular y fundamental.
]
Recordemos, también, que las yemas resguardan el tejido meristemático (células embrionarias, isodiamétricas con forma cúbica que _pueden hacer mitosis_). En él, las células meristemáticas producen, al dividirse, una célula meristemática y una célula derivada, *ambas con núcleo grande* (en comparación con el tamaño de la célula).
Posterior a la división celular, la célula derivada, con núcleo grande, comienza a *elongarse* porque *la vacuola comienza a llenarse de agua.* De esta manera, cuando llegue a su tamaño esperado, comienza el proceso de diferenciación.
],
figure(
caption: "Etapas del crecimiento primario",
image("../figures/fig_crec_primario.svg")
)
)
#obsbox()[
Las células adultas no son capaces de dividirse (en la mayoría de los casos).
]
= Meristemas apicales
Siempre han estado presentes, desde la semilla; más específicamente desde el embrión. El meristema que dará origen al tallo, se llama *meristema apical caulinar*, mientras que el meristema que dará origen a la raíz se denomina *meristema apical radicular*
Independientemente de si está en una yema apical o axilar, el meristema primario se denomina *meristema apical,* el cual posee distintas zonas, las cuales pueden verse en la @meristema-apical.
#figure(
caption: "Zonas del meristema apical",
figure-box()[
#grid(
columns: (1fr, .5fr),
column-gutter: 11pt,
$ mat("Célula se divide", &arrow.double "Zona de división"; arrow.b; "Célula derivada se elonga", &arrow.double "Zona de elongación"; arrow.b; "Célula se diferencia", &arrow.double "Zona de diferenciación"; delim: #none) $,
[
#v(1em)
#text(rgb(106,17,124), $ "Zona meristemática" $)
]
)
#place(
top,
dx: -1em,
dy: -0.65em,
block(
fill: rgb(106, 17, 124, 50),
width: 100% + 2em,
height: 4.5em
)
)
]
)<meristema-apical>
#obsbox()[
Es importante observar que *solo en la zona de división y elongación hay células meristemáticas.*
]
== Otros meristemas primarios
También existen otros meristemas primarios, como el *meristema intercalar* (encargado de alargar los entrenudos, ubicándose en su base) y el *meristema marginal* (encargado del crecimiento de la lámina de la hoja).
Estos meristemas *en algún momento se agotan* (i.e. las dos células hijas del meristema se vuelven en derivadas).
= Etapas del crecimiento primario
== División celular
Se clasifica de acuerdo a una _superficie,_ habiendo dos tipos de divisiones distintas:
+ *División periclinal:* División paralela a la superficie que va a generar una célula derivada (abajo) y embrionaria (arriba).
+ *División anticlinal:* División perpendicular a la superficie. La célula derivada y embrionaria no poseen un "punto de salida" por defecto.
#figure(
caption: "División celular de meristemas primarios",
image("../figures/fig_div_celulas_meristematicas.svg", height: 8cm)
)
== Elongación celular
Las células vegetales derivadas...
#enum(
numbering: "(1)",
[Comienzan a aumentar su volumen],
[Ingresan agua a la célula (a la vacuola)],
[Extienden las paredes celulares primarias celulósicas]
)
La presión que ejerce la vacuola en la pared celular se denomina *presión de _"turgor"_ o turgencia*, lo que fomenta el aumento del tamaño celular.
#obsbox()[
La vacuola debe tener solutos en el interior para permitir el paso de agua por ósmosis.
]
== Diferenciación celular
Las células vegetales derivadas...
#enum(
numbering: "(1)",
[Dejan de elongarse],
[Adquieren su forma y tamaño definitivo],
[Adquieren la función para la cual están determinadas]
)
= Meristema apical caulinar
Meristema primario compuesto de una zona de división, una zona de elongación y una zona de diferenciación.
En la zona más apical (división), se haya la *túnica* y el *corpus*, zonas con células meristemáticas que darán origen a varias estructuras, y que usualmente lucen de un color más oscurecido al teñirse. En la zona de elongación se haya el *procámbium* y la *protodermis*, tejidos meristemáticos que darán origen al sistema vascular y dérmico, respectivamente. Ambos tejidos se encuentran rodeados de *meristema fundamental*, el cual dará origen a células del sistema fundamental (parénquima cortical, médula ---en algunas plantas--- y endodermis ---en las raíces---).
#obsbox()[
El modelo de desarrollo del meristema apical descrito anteriormente se conoce como _teoría túnica-cuerpo,_ existiendo, además de ella otra teoría que sirve para explicar lo mismo, pero de otra manera: la _teoría de zonación._
]
#figure(
caption: "Corte longitudinal (izquierda) y transversal (derecha) de un meristema apical caulinar",
image("../figures/fig_meristema_apical_caulinar.svg")
)
== Túnica
Son células muy pequeñitas, en más o menos dos hileras, que solo se dividen anticlinalmente (hacia los lados). Dará origen a la protodermis en la zona de elongación, y a la epidermis en la zona de diferenciación.
== Corpus
Son células, debajo de la túnica, que se dividen en forma anticlinal y periclinar, pues va a _"generar el cuerpo"_ de la planta.
Dará origen al meristema fundamental en la zona de elongación, y al parénquima cortical y parénquima medular en la zona de diferenciación.
Además, también dará origen al procámbium en la zona de elongación, el cual producirá el *protoxilema* y el *protofloema*. Luego, en la zona de diferenciación,originará el *cambium fascicular* para dar origen al *xilema primario* y al *floema primario.*
= Haces vasculares del meristema apical caulinar
=== Xilema
Sus células tienen una pared secundaria lignificada, con lumen amplio sin contenido vivo, y que realiza _transporte de agua y solutos._
Sus tipos celulares se subdividen en *tráqueas* con placas de perforación en sus extremos para que pase el agua, sin pared primaria y sin lámina media; y *traqueideas* sin disolución de pared primaria ni lámina media. Hay zonas específicas en las traqueideas en las que solamente hay pared primaria, existiendo una abertura hacia el exterior de la célula. Estas zonas se denominan *punteaduras areoladas,* y a través de ellas, las alargadas traqueideas pueden transportarse agua y solutos. Las punteaduras también están presentes en las tráqueas.
En algunos casos, cuando se forma el metaxilema, durante la conformación del xilema primario, se puede generar un espacio sin células, conocido como *isla.*
#obsbox()[
A la tráquea a veces también se le puede denominar *elementos del vaso,* que, en su totalidad (todas las tráqueas unidas) forman el *vaso,* conducto continuo con el mayor diámetro existente en toda la planta.
][
Las traqueideas son más comunes que las tráqueas en las plantas. De hecho, son las únicas conductoras de agua en las coníferas, helechos y plantas vascularizadas sin flores en general. Las tráqueas, por su parte, están en las plantas con flores y en unas pocas gimnospermas.
]
=== Floema
Su función es _transportar y repartir por toda la planta las sustancias carbonadas producidas durante la fotosíntesis_, aquellas ubicadas en los lugares de almacenamiento, u hormonas vegetales.
Sus células tienen una pared primaria y contenido vivo.
Sus tipos celulares se subdividen en *tubos cribosos* (células anucleadas): membranas plasmáticas continuas con proteínas periféricas y placa cribosa (pared celular con poros que bordean la membrana y permiten que los materiales pasen de una célula a otra sin cruzar la membrana plasmática ni la pared celular) con calosa; y *células acompañantes*, con núcleo, citoplasma, conexión plasmodésmica y abundantes mitocondrias.
#grid(
columns: (1fr, .85fr),
column-gutter: 11pt,
[
#obsbox()[
En las plantas sin flores, como los helechos o las coníferas, el floema consta de un tipo de célula conductora más primitiva, denominada *célula cribosa,* cuyo equivalente a célula acompañante se llama *célula albuminosa.*
][
Al conjunto de sustancias que son transportadas por el xilema y el floema se les denomina *savia.*
]
== Formación de los haces vasculares en tallos
Recordemos que a partir del procámbium se origina el protoxilema y el protofloema. El *protoxilema* crece "hacia adentro" (*centrípetamente*) y el *protofloema* crece "hacia afuera" (*centrífugamente*). Ambos se empiezan a formar a partir de _divisiones periclinales_ del procámbium.
#obsbox()[
En las dicotiledóneas, los haces vasculares tienden a formar un anillo, dejando una clara separación entre el parénquima cortical y el parénquima medular. Por su parte, en las monocotiledóneas esto no sucede tan a menudo.
]
Posteriormente, en la zona de diferenciación, el procámbium se convertirá en el *cambium fascicular*, dando origen al *metafloema* y al *metaxilema*, los cuales, ase encuentran entre el protofloema y protoxilema, respectivamente, y el cambium, como se ilustra en la @haces-vasculares.
],[
#figure(
caption: "Desarrollo de haces vasculares, y su posterior conformación en haces vasculares abiertos (con cambium fascicular).",
image("../figures/fig_haces_vasculares_abiertos.svg")
)<haces-vasculares>
]
)
Como el xilema y el floema están *enfrentados,* decimos que estamos ante un *haz vascular colateral.*
No todas las plantas tienen haces vasculares con cambium fascicular que les permita seguir creciendo. Cuando un haz vascular lo presente, decimos que son *abiertos,* si no, decimos que son *cerrados.*
#examplebox()[
Las monocotiledóneas se caracterizan por no poseer cambium fascicular, pues se ha agotado. Un ejemplo se haya en la @haces-vasculares-cerrados
]
La unión del protoxilema y el metaxilema recibe el nombre de *xilema primario.* Mientras que la unión del protofloema y el metafloema recibe el nombre de *floema primario.*
#figure(
caption: [
Haz vascular de una monocotiledónea (cerrado)
#emph(text(size: 10pt, "Imagen extraída de las cápsulas de clase de los profesores <NAME> y <NAME>, para el curso AGL101, \"Botánica\""))
],
image("..\figures\fig_haces_vasculares_cerrados.png")
)<haces-vasculares-cerrados>
#obsbox()[
Las células "más viejas" de un haz vascular se hallan más alejadas del cambium fascicular (i.e. del centro del haz).
][
El haz vascular de las monocotiledóneas se encuentra rodeado de fibras esclerenquimáticas, mientras que en las dicotiledóneas no.
]
== Características celulares de los haces vasculares de los tallos
1. En el *cambium fascicular,* las células se caracterizan por ser rectangulares, de paredes delgadas y estar ordenadas en filas y columnas radiales.
2. En el *metafloema,* las células poseen una *diferenciación centrípeta* o *diferenciación exarca,* pues las células viejas siempre están más "hacia afuera".
3. En el *protofloema,* las células comienzan a _"perderse",_ pues se transforman en otros tejidos como colénquima o parénquima cortical.
4. En el *protoxilema,* las células poseen lignificación escasa, la cual puede ser _anular_ o _espiral,_ sin cubrir toda la pared.
5. En el *metaxilema,* las células poseen una *diferenciación centrífuga* o *diferenciación endarca,* pues las células se van diferenciando desde el parénquima medular hacia el parénquima cortical. Las células diferenciadas, además, se caracterizan por poseer una pared secundaria lignificada, ya sea de forma _escaleriforme, reticulada_ o _punteada._
== Haz vascular maduro
Posee las siguientes estructuras:
+ *Protoxilema:* Divisiones periclinales del procámbium (zona de elongación).
+ *Metaxilema:* Divisiones periclinales del cambium fascicular.
+ *Metafloema:* Divisiones periclinales del cambium fascicular.
+ *Protofloema:* Divisiones periclinales del procámbium (zona de elongación).
]
#let clase-10-11 = [
#new-class(new-page: true, "Crecimiento primario y Formación de hojas", "25 de septiembre de 2023")
= Meristema apical radical o radicular
En esencia, podemos decir que este meristema es un meristema subapical, siendo el encargado de formar las raíces primarias.
Recordemos que la raíz es la encargada de la producción de hormonas y otras sustancias que regulan el desarrollo y estructura vegetal, además de la absorción de agua y minerales del suelo. Otras raíces modificadas (aéreas como los epífitos, tabulares o contrafuertes, de reserva, entre otras) cumplen funciones más diversas. También pueden existir relaciones de cooperación entre raíces y hongos (endomicorrizas y ectomicorrizas), y raíces y bacterias (para la obtención vegetal de amoniaco).
A grandes rasgos, se puede clasificar como *cerrado* si se diferencia claramente el origen de las células derivadas, o *abierto* si no se puede diferenciar claramente este origen.
También, posee una estructura adicional, denominada *caliptra*, formada por células adultas. Su función es proteger el meristema apical (de paredes delgadas) de las presiones mecánicas del suelo.
A diferencia del meristema apical caulinar, cuyo sentido de formación de tejido celular adulto es hacia abajo, en el meristema apical radical *el tejido adulto se forma en ambos sentidos,* hacia abajo (_gravitropismo positivo,_ en la formación de la caliptra) y hacia arriba (_gravitropismo negativo,_ en la formación de la raíz misma). Además, otra diferencia con el meristema apical caulinar es que este meristema *no posee primordios foliares.*
Finalmente, es importante mencionar que la raíz *también tiene zona de división, de elongación y de diferenciación.*
#figure(
caption: "Corte longitudinal del meristema apical radicular",
image("../figures/fig_meristema_apical_radical.svg")
)
== Zona de diferenciación
En la zona de diferenciación se hallan los *pelos radicales,* los cuales aumentan la superficie de absorción de la raíz; el *parénquima cortical (o córtex),* y el *haz vascular radical.*
== Zona de elongación
En la zona de elongación hallamos 3 regiones: el meristema fundamental, la protodermis y el procámbium.
=== Meristema fundamental
Solamente se encuentra en la periferia, por lo que, al generar el sistema fundamental, *_sólo_ habrá parénquima cortical.* Adicionalmente, también se formará un tejido denominado *endodermis* cerca del centro de la raíz.
*¡OJO!* Aunque no hay parénquima medular en la mayoría de las raíces, en algunos casos sí lo hay. Habrá parénquima medular cuando la raíz no se origina de la radícula.
¿Cuándo sucede esto? Recordemos que en el embrión está la radícula, de la cual saldrá la raíz. Sin embargo, a veces la raíz puede originarse a partir de los tallos, siendo una raíz adventicia, teniendo, finalmente, parénquima medular, pues los tallos también tienen parénquima medular.
#examplebox()[
Como en la monocotiledóneas las raíces tienen parénquima medular, sus raíces vienen de los tallos. Esto sucede porque su raíz proveniente de la radícula luego de un par de meses muere, quedando solo raíces adventicias.
]
=== Protodermis
Generará el sistema dérmico, el cual estará compuesto por los pelos radicales y la rizodermis (epidermis de la raíz).
=== Procámbium
En el caso de las raíces, el procámbium *es central,* y generará el sistema vascular (xilema primario, floema primario y *periciclo*).
== Zona de división
En la zona de división hallamos un grupo de células que está en la "punta" del meristema, las cuales son de mayor tamaño que el resto de las células meristemáticas. *El ritmo de división de estas células es bajo,* por lo que "se las separa de las demás" y se les denomina *centro quiescente* (_quietud_), cuya función es estructural o de reserva. También sirve como un "punto de división" para diferenciar las funciones del meristema a su alrededor: las células a los lados generarán la protodermis y meristema fundamental; las que están debajo generarán la caliptra; y las que están arriba generarán el procámbium y el meristema fundamental.
=== Caliptra
Como se mencionó, la caliptra es *formada por las células meristemáticas debajo del centro quiescente.* Estas células deben madurar muy rápido para poder reemplazar la caliptra vieja, pues esta tiene una vida corta debido a que debe penetrar en un medio sólido. Así, sus funciones se pueden concentrar como:
#enum(
numbering: "(a)",
[Protección apical],
[Ayuda al crecimiento apical, gracias a la secreción de *mucílago apical*, un polisacárido que contiene ciertas enzimas que facilitan el crecimiento de los ápices, formando una capa viscosa denominada *mucigel.*],
[Gravitropismo positivo de la raíz (hace que la raíz crezca hacia el centro de la Tierra). Las principales encargadas de esto son las células en el centro de la caliptra, denominadas como *células de la columela* ("columela" $arrow$ _"columnita"_), las cuales son células alargadas verticalmente y ricas en amiloplastos, y que se denominan como *estatocitos*.
]
)
#block(breakable: false)[
== Haces vasculares del meristema apical radicular
#grid(
columns: (1fr, 1.5fr),
column-gutter: 11pt,
[
Son haces característicos de raíces con crecimiento primario tanto en monocotiledóneas como en dicotiledóneas. En estos haces, el *xilema se ordena como los radios de un círculo*, mientras que el *floema se encuentra en medio de los radios.*
Por fuera del haz radial está el *periciclo* y, más afuera del periciclo, se encuentra la *endodermis.* Fuera de la endodermis encontramos el *parénquima cortical* y, finalmente, la *rizodermis* con los pelos radicales.
#obsbox()[
El periciclo *sí* es parte del haz vascular radial, pues tienen el *mismo origen:* el procámbium.
]
],
figure(
caption: "Corte transversal de un haz vascular radical",
image("../figures/fig_haz_vascular_radical.svg")
)
)
]
En cada radio de xilema, en la zona más interna, se haya el *metaxilema*, con células menos desarrolladas, mientras que hacia afuera se haya el *protoxilema* con células más desarrolladas (diferenciadas). De esta forma, las células más viejas están hacia afuera, y las más nuevas hacia adentro, concluyendo que el *xilema tiene desarrollo exarco* o centrípeto.
#obsbox()[
Las raíces con más de 5 arcos o radios de xilema son características de las monocotiledóneas, y se denominan poliarcas.
][
Raíces con menos cantidad de radios se denominan monarcas, diarcas, etc.
]
Por su parte, en el floema hay células más pequeñas de floema en la zona más exterior, y células más nuevas y grandes en la zona más interior, habiendo un desarrollo centrípeto al igual que en el xilema. De esta manera, el *floema tiene desarrollo exarco* también.
=== Periciclo
Corresponde a una sola capa de células, originada desde el procámbium, siendo parte del sistema vascular. Esencialmente, corresponde a un *tejido meristemático,* por lo que se le puede catalogar como *meristema primario.* Además, es el *responsable de la formación de las raíces laterales*, y se encuentra implicado en el crecimiento secundario de la raíz.
#obsbox()[
Podemos inferir que las raíces laterales no salen desde el exterior de la raíz madre, sino que desde el interior de ella, específicamente desde el periciclo.
]
// Diagrama
== Endodermis
#figure(
caption: "Células de la endodermis, con banda de Caspary",
image("../figures/fig_endodermis.svg"),
placement: top
)
El parénquima cortical de las raíces es un parénquima netamente almacenador. La endodermis corresponde a una *capa monoestratificada de células modificadas de la capa más interna de este parénquima cortical, rodeando el periciclo.*
Estas células de la endodermis, poseen en sus paredes radiales y transversales un mayor engrosamiento con _suberina,_ formando una banda que rodea la célula, llamada *banda de Caspary.*
De esta manera, el agua que entra a la raíz (*apoplásticamente*), deberá entrar al sistema vascular atravesando la pared tangencial de la célula de la endodermis, es decir, *simplásticamente.*
En las monocotiledóneas la endodermis no desaparece, pues no tienen crecimiento secundario. Sin embargo, aunque perdure, va a modificarse. Cuando la raíz primaria envejezca, la endodermis adquirirá lignina en las paredes radiales y en la pared tangencial interna (y a veces en la externa).
En las dicotiledóneas, por su parte, sí desaparecerá y será reemplazada por el xilema central.
== Sistemas radiculares
#figure(
caption: "Sistemas radiculares visualmente",
image("../figures/fig_sistemas_radicales.svg", height: 6cm)
)
Existen dos sistemas radiculares o radicales, los cuales se diferencian por la forma de crecimiento de las raíces: el *axonomorfo alorrizo* y el *fibroso homorrizo.* Ambos sistemas pueden entenderse como dos "estrategias" diferentes para obtener agua.
#obsbox()[
Los vegetales que se dan en ambientes más secos y desérticos se conocen con el nombre de *xerófitos* (_xeros_ "seco" --- _phyton_ "vegetal")
]
=== Axomorfo alorrizo (o primario)
#enum(
numbering: "(a)",
[Origen en la radícola del embrión.],
[Sin médula (parénquima medular).],
[Presente en la mayoría de las dicotiledóneas y gimnospermas],
[Se caracteriza por tener una raíz principal o _raíz axonomorfa,_ acompañada por raíces laterales o secundarias.]
)
=== Fibroso homorrizo (o fasciculado)
#enum(
numbering: "(a)",
[Origen en el tallo, pues son raíces adventicias.],
[Tienen parénquima medular.],
[Presente en monocotiledóneas, en plantas sin semillas y, en _menor medida,_ en dicotiledóneas.]
)
#obsbox()[
Estos pares de clasificaciones no son mutuamente excluyentes en ciertos niveles, pudiendo, además, tener la cualidad de ser *reservantes.* Por ello, es importante conocer el significado de estos términos clasificatorios:
/ Axonomorfo: Presencia de una raíz principal de la que se ramifican otras más delgadas.
/ Alorrizo: Con crecimiento "hacia abajo".
/ Fibroso: Raíz sin un eje principal, con todas sus ramificaciones de igual importancia.
/ Homorriza: Con crecimiento horizontal.
]
= Formación, histología y morfología de las hojas
Las hojas son unos de los órganos más modificables de las plantas, pudiendo presentarse en varias formas distintas a su constitución "normal", las cuales usualmente se asocian con la realización de fotosíntesis.
En este contexto, para la formación de la hojas intervienen tres meristemas, los cuales se encuentran listados en la @meristemas-formacion-foliar
#figure(
caption: "Meristemas que intervienen en la formación de la hoja",
figure-box()[
$ "Apical" &arrow "Crecimiento longitudinal" \
"Intercalar" &arrow "Crecimiento longitudinal" \
"Marginal" &arrow "Crecimiento de la lámina en expansión" $
]
)<meristemas-formacion-foliar>
== Tipos de hojas según su función
Como se mencionó, las hojas son órganos altamente modificables, hallándose en varias formas posibles, las cuales son listadas a continuación:
+ *Nomófilos:* Son las hojas "normales", las que usualmente todos conocemos y las que realizan fotosíntesis.
+ *Catáfilos:* Son hojas de tallos subterráneos con funciones de protección o almacenamiento.
+ *Antófilos:* Son las hojas que componen las flores.
+ *Hipsófilos:* Son hojas encargadas de proteger a las flores.
+ *Cotiledones o embriófilos:* Son las hojas embrionarias que aparecen una vez que germina la semilla.
+ *Hojas como espinas:* Son hojas que tienen usualmente la función de dar protección a la planta o, a veces, agarre.
+ *Hojas suculentas:* Son hojas almacenadoras de principalmente de agua, pudiendo también almacenar nutrientes.
+ *Hojas como espatas:* Son hojas que reemplazan o ayudan a las hojas de la flor en su labor de atraer a los polinizadores con sus colores vistosos y llamativos.
+ *Hojas como escamas:* Son hojas de menor tamaño cuya función principal deja de ser la fotosíntesis y pasa a ser la protección de tejidos, como los meristemas.
+ *Hojas esclerófilas:* Son hojas duras y robustas con textura similar a la del cuero. Poseen estas características para durar y sobrevivir largas épocas de sequía.
== Tipos de hojas según su estructura
Las hojas se dividen en dos grandes grupos según su estructura: *megáfilos* y *micrófilos.*
=== Micrófilos
Carecen de venación, o esta se encuentra reducida a un solo nervio, sin interrupción del haz vascular caulinar (esto es, no posee un _"espacio foliar"#footnote("Término inexacto, acuñado para explicar mejor esta situación.")_ entre el haz vascular de la rama principal, y el haz vascular suyo propio). Se dice que los micrófilos son *hojas no verdaderas o reducidas.*
*Origen*
Los micrófilos probablemente se originaron a partir de una prolongación espinosa.
=== Megáfilos
Presentan una venación compleja, presentando una interrupción respecto al haz vascular caulinar. Se dice que los megáfilos son *hojas verdaderas.*
*Origen*
Los megáfilos probablemente se originaron de una modificación de un grupo de ramas.
== Formación de la hoja
=== Iniciación
El proceso de formación de las hojas inicia con la *formación de una protuberancia en un flanco del meristema apical caulinar*, aportando el primer indicio de que aparecerá una nueva hoja. La protuberancia se forma gracias a divisiones anticlinales de células de la túnica, y divisiones periclinales del grupo de células del corpus.
=== Desarrollo del eje foliar
Conforme el meristema apical crece, alejándose de esta protuberancia, esta última *se alarga hasta que se forma un primordio foliar plano.* Luego, el ápice dejará de dividirse y sus células madurarán. A partir de entonces, el aumento en longitud de la hoja se debe a elongaciones y divisiones de células distantes del ápice (*crecimiento intercalar*).
=== Desarrollo de la lámina o limbo de la hoja
Como se mencionó, el primordio foliar plano se expande mediante división y crecimientos celulares, dando origen a un *peciolo delgado.* Pero, además de lo anterior, también dará origen a un *limbo* (parte plana de la hoja).
En la región del primordio que dará lugar al limbo, surgirán protuberancias longitudinales de células divisibles que se desarrollarán a cada lado del primordio (estas protuberancias se denominan comúnmente como *meristemas intercalares o marginales*). Si estas protuberancias producen células de forma pareja, el borde del limbo, denominado como *margen,* será liso y uniforme. Por el contrario, si hay varios grados de división celular en diferentes partes de ambos lados, el resultado será un margen foliar desigual.
#obsbox()[
Con frecuencia, los peciolos presentan dos pequeñas laminillas de aspecto foliar llamadas *estípulas,* que están unidas al nudo.
][
Algunas hojas, denominadas *sésiles,* carecen de pecíolos y están directamente unidas al tallo. Este tipo de hojas es muy común en las monocotiledóneas, donde la base de la hoja rodea al tallo, formando una _vaina._
]
== Histología de la hoja
#figure(
caption: [Corte transversal de una hoja común. Aunque no esté ilustrado, es importante recordar que *sobre la epidermis hay cutina y tricomas*],
placement: bottom,
image("../figures/fig_corte_transversal_hoja.svg")
)
Dos epidermis forman las hojas: una epidermis superior y una epidermis inferior. La epidermis superior se encuentra en la *cara adaxial* (por lo que también se le llama *epidermis adaxial*), mientras que la epidermis inferior se encuentra en la *cara abaxial* (por lo que también se llama *epidermis abaxial*).
#obsbox()[
Si la hoja presenta *hipodermis* (_"debajo de la piel o epidermis"_), esta se origina a partir de divisiones periclinales del meristema fundamental
]
Tanto en la cara abaxial como adaxial se encuentran estomas; sin embargo, lo más común es hallarlos en la cara abaxial. Cuando solo hay estomas en la cara inferior de la hoja, se llama *hipostomática*, mientras que cuando solo hay estomas en la cara superior se llama *epistomática*, y, si hay en ambas caras, se llama *anfiestomática.* Adicional a lo anterior, también pueden haber tricomas en ambas caras.
Recordemos, además, que en el interior de la hoja está, cerca de la zona superior, el *parénquima _empalizado_* (clorénquima), y en la zona inferior está el *parénquima _esponjoso_* (aerénquima). En medio de los parénquimas anteriores pasan los haces vasculares. El xilema pasa cerca de la zona superior, mientras que el floema pasa cerca de la zona inferior, formando la *nervadura*.
#obsbox()[
De manera general, el parénquima empalizado corresponde a _una_ sola capa de células. Sin embargo, pueden darse situaciones en las que hay más de una capa, con el fin de proteger mejor a la hoja frente a los rayos del Sol.
][
La nervadura da sostén a la hoja, y, a veces, está envuelta por *células envolventes del haz* para incrementar la fuerza y la protección.
]
La nervadura, como es lógico, se encuentra conectada al tejido vascular del tallo, en el cual hay dos o más haces vasculares que "lo abandonan" para "irse" a la hoja. Estos haces se denominan *rastros foliares,* y su nombre cambia al estar, finalmente, en el limbo, llamándose *nervios foliares.* Últimamente, los nervios foliares poseen dos distribuciones típicas en las hojas: como *nervadura reticulada,* o como *nervadura paralela* (o _estriada_).
Por otro lado, el parénquima empalizado y el parénquima esponjoso, junto con la nervadura, forman el *mesófilo,* el cual no incluye el sistema dérmico.
En este contexto, si la hoja posee ambas zonas de su mesófilo con parénquimas distintos (una parte con clorénquima y otra con aerénquima), se denomina *bifacial.* Si, por otro lado, posee las mismas estructuras a ambos lados, se denomina *equifacial.*
También, generalmente en vegetales donde el limbo es vertical, existen situaciones donde el mesófilo posee parénquima empalizado en ambas caras, y, en medio de ellos, aparece (o no) un parénquima esponjoso.
#obsbox()[
La mayor parte del proceso fotosintético se produce en el parénquima empalizado.
][
La epidermis de la hoja _suele_ ser monoestratificada. Si tiene más de una capa, diremos que es pluriestratificada.
]
Finalmente, es importante recordar que sobre la epidermis de la hoja hay una capa de cutina que permite evitar la pérdida de agua de las hojas.
== Morfología de la hoja
La forma, tamaño y disposición de las hojas en todas las plantas responde siempre a causas medioambientales. Las diversas formas y estructuras que poseen las hojas están _determinadas genéticamente,_ reflejando las características que les han permitido a determinadas plantas sobrevivir en diferentes medios.
Existen varios criterios para poder clasificar morfológicamente: la forma de su base, la forma de su lámina, la forma de su ápice, la forma de su margen, entre otros.
=== Tipos de hojas según la forma del limbo
Según la forma y desarrollo del limbo foliar, las hojas pueden clasificarse en *hojas simples* y *hojas compuestas.*
+ *Hojas simples:* Consisten en un limbo con el margen entero o, en su defecto, más o menos dividido en lóbulos o dientes.
+ *Hojas compuestas:* Consisten en hojas donde el limbo o lámina foliar queda dividido en partes, denominadas *foliolos,* los cuales están unidos a un peciolo más alargado denominado *raquis.* Los foliolos parecen hojas verdaderas, pero no lo son, pues _no poseen yemas en sus axilas._
==== Tipos de hojas simples según la forma de su limbo
Existen diversas formas en las que el limbo o lámina foliar puede desarrollarse. Las más comunes son *lanceolada* (forma de lanza), *triangular, ovalada, cordada* (en forma de corazón o acorazonada), entre otras.
==== Tipos de hojas compuestas según la distribución de los foliolos
Las hojas compuestas pueden dividirse en dos grupos, dependiendo de cómo se distribuyen los foliolos:
+ *Hojas palmadas:* Los foliolos se encuentran unidos a un punto común en la punta del pecíolo, desplegándose como una mano abierta.
+ *Hojas pinnadas:* Los foliolos se distribuyen en dos filas en los lados opuestos del eje, similar a una pluma. Si en la punta la hoja termina en un par opuesto de foliolos se llaman *paripinnadas,* si terminan en un único foliolo, se denominan *imparipinnadas.*
A veces, los foliolos de una hoja pinnada pueden dividirse, nuevamente, en otros foliolos, formando *hojas bipinnadas.*
=== Tipos de hojas según su margen
A grandes rasgos, los márgenes foliares pueden clasificarse en:
+ *Enteros:* Si el margen se extiende de manera lisa, sin interrupciones, desde el peciolo hasta el ápice foliar.
+ *Sinuado:* Si se forman senos y lóbulos redondeados.
+ *Aserrados:* Si poseen dientes simples o dobles (*doblemente aserrados*) que se inclinan hacia el ápice de la hoja.
+ *Dentados:* Si tienen dientes derechos.
+ *Crenados:* Si tienen dientes redondeados.
] |
https://github.com/max-niederman/MTH311 | https://raw.githubusercontent.com/max-niederman/MTH311/main/hw/5.typ | typst | #import "../lib.typ": *
#show: homework.with(title: "Math 311 Homework 5")
= 3.5.1
== 3.5.1 (a)
Let $epsilon > 0$ and $u, v in RR$ be given.
If $a = 0$, then
$
abs(f(u) - f(v))
&= abs((0)u + b - (0)v - b) \
&= abs(b - b) \
&= 0 \
&< epsilon "."
$
Otherwise, define $delta = epsilon / abs(a)$.
Then if $abs(u - v) < delta$, we have
$
abs(u - v) &< epsilon / abs(a) \
abs(a) abs(u - v) &< epsilon \
abs(a u - a v) &< epsilon \
abs(a u + b - a v - b) &< epsilon \
abs(f(u) - f(v)) &< epsilon "."
$
Therefore, $f$ is uniformly continuous on $RR$.
#sym.qed
== 3.5.1 (b)
Let $epsilon > 0$ be given, and define $delta = a^2 epsilon$.
Then for any $u, v in RR$ with $abs(u - v) < delta$,
we have $abs(u - v) < a^2 epsilon$.
Because $u$ and $v$ are greater than or equal to $a$, we can substite them into the inequality to get
$abs(u - v) < u v epsilon$.
Then we have
$
1 / (u v) abs(u - v) &< epsilon \
abs((u - v) / (u v)) &< epsilon quad "(because" u, v > 0 ")" \
abs(1 / u - 1 / v) &< epsilon \
abs(f(u) - f(v)) &< epsilon "."
$
Therefore, $f$ is by definition uniformly continuous on $[a, oo)$.
#sym.qed
= 4.1.2
== 4.1.2 (a)
The derivative of $f$ at $x_0$ is defined as
$
&lim_(x -> x_0) (f(x) - f(x_0)) / (x - x_0) \
= &lim_(x -> x_0) (m x + b - m x_0 - b) / (x - x_0) \
= &lim_(x -> x_0) (m x - m x_0) / (x - x_0) \
= &lim_(x -> x_0) m (x - x_0) / (x - x_0) \
= &lim_(x -> x_0) m \
= &m "."
$
That is, the derivative of $f$ is $m$ at any $x_0 in RR$.
== 4.1.2 (b)
The derivative of $f$ at $x_0 != 0$ is defined as
$
&lim_(x -> x_0) (f(x) - f(x_0)) / (x - x_0) \
= &lim_(x -> x_0) (1/x - 1/x_0) / (x - x_0) \
= &lim_(x -> x_0) ((x_0 - x)/(x x_0)) / (x - x_0) \
= &lim_(x -> x_0) 1/(x x_0) (x_0 - x) / (x - x_0) \
= &lim_(x -> x_0) (- 1/(x x_0)) \
= & -1/x_0^2 "."
$
So the derivative of $f$ is $-1/x^2$ at any $x_0 != 0$.
== 4.1.2 (c)
The derivative of $f$ at $x_0 > 0$ is defined as
$
&lim_(x -> x_0) (f(x) - f(x_0)) / (x - x_0) \
= &lim_(x -> x_0) (sqrt(x) - sqrt(x_0)) / (x - x_0) \
= &lim_(x -> x_0) (sqrt(x) - sqrt(x_0)) / ((sqrt(x) + sqrt(x_0))(sqrt(x) - sqrt(x_0))) \
= &lim_(x -> x_0) 1 / (sqrt(x) + sqrt(x_0)) \
= & 1 / (2 sqrt(x_0)) "."
$
Therefore the derivative of $f$ is $1 / (2 sqrt(x))$ at any $x_0 > 0$.
= 4.1.3
== 4.1.3 (a)
Let $epsilon > 0$ be given, and define $delta = epsilon$.
Then consider any $x in RR$ such that $0 < abs(x - 0) < delta$.
Then if $x > 0$ we have
$
abs(x - 0) &< epsilon \
abs(x) &< epsilon \
abs(x^2/x) &< epsilon \
abs(f(x)/x) &< epsilon \
$
And if $x < 0$ we have $f(x) &= 0$ so $abs(f(x)/x) = 0 < epsilon$.
Note that $x != 0$ because $0 < abs(x - 0)$.
In either case, $abs(f(x)/x) < epsilon$.
Since $f(0) = 0$, we also have $abs((f(x) - f(0))/(x - 0)) = abs(f(x)/x) < epsilon$.
Then by definition,
$ lim_(x->0) (f(x) - f(0))/(x - 0) = 0 "." $
So $f$ is differentiable at $0$.
#sym.qed
Furthermore, we can compute the derivative of $f$ at $x_0 in RR$.
If $x_0 > 0$, then also $x > 0$ for $x$ near $x_0$.
Then $f(x_0) = x_0^2$ and $f(x) = x^2$. Therefore the derivative of $f$ at $x_0$ is
the same as that of $x^2$ at $x_0$, which is $2 x_0$.
If $x_0 < 0$, then $f(x_0) = 0$ and $f(x) = 0$ for $x$ near $x_0$. Therefore the derivative of $f$ at $x_0$ is $0$.
And we have already shown the derivative of $f$ at $0$ to be $0$.
Therefore the derivative of $f'$ is summarized as
$
f'(x) = cases(
2 x &"if" x > 0,
0 &"if" x <= 0,
)
$
== 4.1.3 (b)
From this definition it is easy to see that $f'$ is continuous everywhere:
- On $(oo, 0]$, $f'$ is a constant function, which is continuous.
- On $[0, oo)$, $f'$ is a linear function, which is continuous.
- These intervals intersect at $0$. That is, the left and right limits of $f'$ at $0$ are both $0$ and therefore $f'$ is continuous at $0$.
However, it is not differentiable at $0$ because
$
&lim_(x -> 0^-) (f'(x))/x = lim_(x -> 0^-) 0/x = 0, "but" \
&lim_(x -> 0^+) (f'(x))/x = lim_(x -> 0^+) (2 x)/x = 2 "."
$
= 4.1.6 (b)
For any $x != 0$, $f$ is the product of two differentiable functions and therefore differentiable.
At $x = 0$, we can take the derivative as the following limit:
$
f'(0)
&= lim_(x -> 0) (f(x) - f(0)) / (x - 0) \
&= lim_(x -> 0) (x^2 sin(1/x)) / x \
&= lim_(x -> 0) (x sin(1/x)) "."
$
Note that $sin(1/x)$ is bounded between $-1$ and $1$, and $x$ goes to zero, so the product $x sin(1/x)$ goes to zero also.
This follows from the sequential characterization of limits and the result in Exercise 2.1.6;
i.e., for any sequence ${x_n}$ converging to $0$, the sequence $x_n sin(1/x_n)$ converges to $0$, so the limit of the function is $0$.
Therefore, $f$ has a derivative at $0$ also.
#sym.qed
= 4.1.7 (a)
Both $x^2$ and $x^3$ are differentiable at zero with derivative zero, so
$
lim_(x -> 0) (x^3 - 0) / (x - 0) = lim_(x -> 0) (x^2 - 0) / (x - 0) = 0 "."
$
That is, for any $epsilon > 0$ there exist $delta_2, delta_3 > 0$ such that for any $x in RR$,
- if $0 < abs(x - 0) < delta_2$ then $abs((x^2 - 0)/(x - 0) - 0) < epsilon$, and
- if $0 < abs(x - 0) < delta_3$ then $abs((x^3 - 0)/(x - 0) - 0) < epsilon$.
Now define $delta = min{delta_2, delta_3}$, and consider any $x$ such that $0 < abs(x - 0) < delta$.
Then we have that both $abs((x^2 - 0)/(x - 0) - 0) < epsilon$ and $abs((x^3 - 0)/(x - 0) - 0) < epsilon$. Therefore
$
abs((f(x) - 0)/(x - 0) - 0) < epsilon "."
$
That is,
$ lim_(x -> 0) (f(x) - 0) / (x - 0) = 0 "." $
So $f$ is differentiable at zero by definition, with zero derivative.
#sym.qed
= 4.2.2 (a)
Consider the function $f : [0, x] -> RR$ defined by $f(x) = sqrt(1 + x)$.
This function is differentiable because it is the composition of the differentiable functions $sqrt(x)$ and $1 + x$, so we can apply the Mean Value Theorem to find some $c in (0, x)$ such that
$ f'(c) = (f(x) - f(0))/(x - 0) "." $
Substituting in the formulae for $f$ and $f'$, we have
$
1/(2 sqrt(1 + c)) &= (sqrt(1 + x) - sqrt(1 + 0))/(x - 0) \
1/(2 sqrt(1 + c)) &= (sqrt(1 + x) - 1)/x \
1/(2 sqrt(1 + c)) x &= sqrt(1 + x) - 1 \
1 + 1/(2 sqrt(1 + c)) x &= sqrt(1 + x) "."
$
Now let's find the largest possible value of the left-hand side.
Note that $x > 0$ so and the square root maps positive real numbers like $1 + c$ to positive real numbers, so both factors of the second term are positive.
We therefore maximize the left-hand side by minimizing the denominator, which is increasing in $c$.
Therefore,
$ 1 + 1/(2 sqrt(1 + c)) x < 1 + 1/(2 sqrt(1 + 0)) = 1 + 1/2 x "." $
Note that $c > 0$, so this is a strict inequality.
And the the left-hand side is equal to $sqrt(1 + x)$, so
$ sqrt(1 + x) < 1 + 1/2 x "." $
#sym.qed
= 4.2.2 (b)
Applying the Mean Value Theorem to the natural exponential function on the interval $[0, x]$ gives some $c in (0, x)$ such that
$
e^c &= (e^x - e^0)/(x - 0) \
e^c &= (e^x - 1)/x \
x e^c &= e^x - 1 \
x e^c + 1 &= e^x "."
$
The exponential function is increasing and $c > 0$, so $e^c > e^0 = 1$.
Multiplying in $x$ (which is positive) and adding $1$ gives
$
x &< x e^c \
x + 1 &< x e^c + 1 = e^x "."
$
So $x + 1 < e^x$.
#sym.qed |
|
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/symbols/symbol.typ | typst | // Test symbols.
--- symbol ---
#emoji.face
#emoji.woman.old
#emoji.turtle
#set text(font: "New Computer Modern Math")
#sym.arrow
#sym.arrow.l
#sym.arrow.r.squiggly
#sym.arrow.tr.hook
#sym.arrow.r;this and this#sym.arrow.l;
--- symbol-constructor ---
#let envelope = symbol(
"🖂",
("stamped", "🖃"),
("stamped.pen", "🖆"),
("lightning", "🖄"),
("fly", "🖅"),
)
#envelope
#envelope.stamped
#envelope.pen
#envelope.stamped.pen
#envelope.lightning
#envelope.fly
--- symbol-constructor-empty ---
// Error: 2-10 expected at least one variant
#symbol()
--- symbol-unknown-modifier ---
// Error: 13-20 unknown symbol modifier
#emoji.face.garbage
|
|
https://github.com/flechonn/typst | https://raw.githubusercontent.com/flechonn/typst/main/output_file.typ | typst |
= New file : data/doc1.typ
= 1. Exercice : Appliquer la loi d'Ohm.
Solution : $V = I * R$
Niveau d'indice : Débutant
= 2. Exercice : Résoudre un problème de mouvement rectiligne uniformément accéléré.
Solution : $x(t) = x₀ + v₀t + (1/2)at²$
Niveau d'indice : Intermédiaire
= New file : data/doc2.typ
= 1. Exercice : Résoudre une équation quadratique.
Solution : $x = (-b ± √(b²-"4ac")) / 2a$
Niveau d'indice : Avancé
= 2. Exercice : Calculer la dérivée d'une fonction polynomiale.
Solution : $f'(x) = n*a*x^(n-1)$
Niveau d'indice : Intermédiaire
|
|
https://github.com/ivaquero/typst-fasvg | https://raw.githubusercontent.com/ivaquero/typst-fasvg/main/fontawesome.typ | typst | MIT License | #let fapath = (
// brands
brand-42-group: "fontawesome/brands/42-group.svg",
brand-500px: "fontawesome/brands/500px.svg",
brand-accessible-icon: "fontawesome/brands/accessible-icon.svg",
brand-accusoft: "fontawesome/brands/accusoft.svg",
brand-adn: "fontawesome/brands/adn.svg",
brand-adversal: "fontawesome/brands/adversal.svg",
brand-affiliatetheme: "fontawesome/brands/affiliatetheme.svg",
brand-airbnb: "fontawesome/brands/airbnb.svg",
brand-algolia: "fontawesome/brands/algolia.svg",
brand-alipay: "fontawesome/brands/alipay.svg",
brand-amazon-pay: "fontawesome/brands/amazon-pay.svg",
brand-amazon: "fontawesome/brands/amazon.svg",
brand-amilia: "fontawesome/brands/amilia.svg",
brand-android: "fontawesome/brands/android.svg",
brand-angellist: "fontawesome/brands/angellist.svg",
brand-angrycreative: "fontawesome/brands/angrycreative.svg",
brand-angular: "fontawesome/brands/angular.svg",
brand-app-store-ios: "fontawesome/brands/app-store-ios.svg",
brand-app-store: "fontawesome/brands/app-store.svg",
brand-apper: "fontawesome/brands/apper.svg",
brand-apple-pay: "fontawesome/brands/apple-pay.svg",
brand-apple: "fontawesome/brands/apple.svg",
brand-artstation: "fontawesome/brands/artstation.svg",
brand-asymmetrik: "fontawesome/brands/asymmetrik.svg",
brand-atlassian: "fontawesome/brands/atlassian.svg",
brand-audible: "fontawesome/brands/audible.svg",
brand-autoprefixer: "fontawesome/brands/autoprefixer.svg",
brand-avianex: "fontawesome/brands/avianex.svg",
brand-aviato: "fontawesome/brands/aviato.svg",
brand-aws: "fontawesome/brands/aws.svg",
brand-bandcamp: "fontawesome/brands/bandcamp.svg",
brand-battle-net: "fontawesome/brands/battle-net.svg",
brand-behance: "fontawesome/brands/behance.svg",
brand-bilibili: "fontawesome/brands/bilibili.svg",
brand-bimobject: "fontawesome/brands/bimobject.svg",
brand-bitbucket: "fontawesome/brands/bitbucket.svg",
brand-bitcoin: "fontawesome/brands/bitcoin.svg",
brand-bity: "fontawesome/brands/bity.svg",
brand-black-tie: "fontawesome/brands/black-tie.svg",
brand-blackberry: "fontawesome/brands/blackberry.svg",
brand-blogger-b: "fontawesome/brands/blogger-b.svg",
brand-blogger: "fontawesome/brands/blogger.svg",
brand-bluetooth-b: "fontawesome/brands/bluetooth-b.svg",
brand-bluetooth: "fontawesome/brands/bluetooth.svg",
brand-bootstrap: "fontawesome/brands/bootstrap.svg",
brand-bots: "fontawesome/brands/bots.svg",
brand-btc: "fontawesome/brands/btc.svg",
brand-buffer: "fontawesome/brands/buffer.svg",
brand-buromobelexperte: "fontawesome/brands/buromobelexperte.svg",
brand-buy-n-large: "fontawesome/brands/buy-n-large.svg",
brand-buysellads: "fontawesome/brands/buysellads.svg",
brand-canadian-maple-leaf: "fontawesome/brands/canadian-maple-leaf.svg",
brand-cc-amazon-pay: "fontawesome/brands/cc-amazon-pay.svg",
brand-cc-amex: "fontawesome/brands/cc-amex.svg",
brand-cc-apple-pay: "fontawesome/brands/cc-apple-pay.svg",
brand-cc-diners-club: "fontawesome/brands/cc-diners-club.svg",
brand-cc-discover: "fontawesome/brands/cc-discover.svg",
brand-cc-jcb: "fontawesome/brands/cc-jcb.svg",
brand-cc-mastercard: "fontawesome/brands/cc-mastercard.svg",
brand-cc-paypal: "fontawesome/brands/cc-paypal.svg",
brand-cc-stripe: "fontawesome/brands/cc-stripe.svg",
brand-cc-visa: "fontawesome/brands/cc-visa.svg",
brand-centercode: "fontawesome/brands/centercode.svg",
brand-centos: "fontawesome/brands/centos.svg",
brand-chrome: "fontawesome/brands/chrome.svg",
brand-chromecast: "fontawesome/brands/chromecast.svg",
brand-cloudflare: "fontawesome/brands/cloudflare.svg",
brand-cloudscale: "fontawesome/brands/cloudscale.svg",
brand-cloudsmith: "fontawesome/brands/cloudsmith.svg",
brand-cloudversify: "fontawesome/brands/cloudversify.svg",
brand-cmplid: "fontawesome/brands/cmplid.svg",
brand-codepen: "fontawesome/brands/codepen.svg",
brand-codiepie: "fontawesome/brands/codiepie.svg",
brand-confluence: "fontawesome/brands/confluence.svg",
brand-connectdevelop: "fontawesome/brands/connectdevelop.svg",
brand-contao: "fontawesome/brands/contao.svg",
brand-cotton-bureau: "fontawesome/brands/cotton-bureau.svg",
brand-cpanel: "fontawesome/brands/cpanel.svg",
brand-creative-commons-by: "fontawesome/brands/creative-commons-by.svg",
brand-creative-commons-nc-eu: "fontawesome/brands/creative-commons-nc-eu.svg",
brand-creative-commons-nc-jp: "fontawesome/brands/creative-commons-nc-jp.svg",
brand-creative-commons-nc: "fontawesome/brands/creative-commons-nc.svg",
brand-creative-commons-nd: "fontawesome/brands/creative-commons-nd.svg",
brand-creative-commons-pd-alt: "fontawesome/brands/creative-commons-pd-alt.svg",
brand-creative-commons-pd: "fontawesome/brands/creative-commons-pd.svg",
brand-creative-commons-remix: "fontawesome/brands/creative-commons-remix.svg",
brand-creative-commons-sa: "fontawesome/brands/creative-commons-sa.svg",
brand-creative-commons-sampling-plus: "fontawesome/brands/creative-commons-sampling-plus.svg",
brand-creative-commons-sampling: "fontawesome/brands/creative-commons-sampling.svg",
brand-creative-commons-share: "fontawesome/brands/creative-commons-share.svg",
brand-creative-commons-zero: "fontawesome/brands/creative-commons-zero.svg",
brand-creative-commons: "fontawesome/brands/creative-commons.svg",
brand-critical-role: "fontawesome/brands/critical-role.svg",
brand-css3-alt: "fontawesome/brands/css3-alt.svg",
brand-css3: "fontawesome/brands/css3.svg",
brand-cuttlefish: "fontawesome/brands/cuttlefish.svg",
brand-d-and-d-beyond: "fontawesome/brands/d-and-d-beyond.svg",
brand-d-and-d: "fontawesome/brands/d-and-d.svg",
brand-dailymotion: "fontawesome/brands/dailymotion.svg",
brand-dashcube: "fontawesome/brands/dashcube.svg",
brand-debian: "fontawesome/brands/debian.svg",
brand-deezer: "fontawesome/brands/deezer.svg",
brand-delicious: "fontawesome/brands/delicious.svg",
brand-deploydog: "fontawesome/brands/deploydog.svg",
brand-deskpro: "fontawesome/brands/deskpro.svg",
brand-dev: "fontawesome/brands/dev.svg",
brand-deviantart: "fontawesome/brands/deviantart.svg",
brand-dhl: "fontawesome/brands/dhl.svg",
brand-diaspora: "fontawesome/brands/diaspora.svg",
brand-digg: "fontawesome/brands/digg.svg",
brand-digital-ocean: "fontawesome/brands/digital-ocean.svg",
brand-discord: "fontawesome/brands/discord.svg",
brand-discourse: "fontawesome/brands/discourse.svg",
brand-dochub: "fontawesome/brands/dochub.svg",
brand-docker: "fontawesome/brands/docker.svg",
brand-draft2digital: "fontawesome/brands/draft2digital.svg",
brand-dribbble: "fontawesome/brands/dribbble.svg",
brand-dropbox: "fontawesome/brands/dropbox.svg",
brand-drupal: "fontawesome/brands/drupal.svg",
brand-dyalog: "fontawesome/brands/dyalog.svg",
brand-earlybirds: "fontawesome/brands/earlybirds.svg",
brand-ebay: "fontawesome/brands/ebay.svg",
brand-edge-legacy: "fontawesome/brands/edge-legacy.svg",
brand-edge: "fontawesome/brands/edge.svg",
brand-elementor: "fontawesome/brands/elementor.svg",
brand-ello: "fontawesome/brands/ello.svg",
brand-ember: "fontawesome/brands/ember.svg",
brand-empire: "fontawesome/brands/empire.svg",
brand-envira: "fontawesome/brands/envira.svg",
brand-erlang: "fontawesome/brands/erlang.svg",
brand-ethereum: "fontawesome/brands/ethereum.svg",
brand-etsy: "fontawesome/brands/etsy.svg",
brand-evernote: "fontawesome/brands/evernote.svg",
brand-expeditedssl: "fontawesome/brands/expeditedssl.svg",
brand-facebook-f: "fontawesome/brands/facebook-f.svg",
brand-facebook-messenger: "fontawesome/brands/facebook-messenger.svg",
brand-facebook: "fontawesome/brands/facebook.svg",
brand-fantasy-flight-games: "fontawesome/brands/fantasy-flight-games.svg",
brand-fedex: "fontawesome/brands/fedex.svg",
brand-fedora: "fontawesome/brands/fedora.svg",
brand-figma: "fontawesome/brands/figma.svg",
brand-firefox-browser: "fontawesome/brands/firefox-browser.svg",
brand-firefox: "fontawesome/brands/firefox.svg",
brand-first-order-alt: "fontawesome/brands/first-order-alt.svg",
brand-first-order: "fontawesome/brands/first-order.svg",
brand-firstdraft: "fontawesome/brands/firstdraft.svg",
brand-flickr: "fontawesome/brands/flickr.svg",
brand-flipboard: "fontawesome/brands/flipboard.svg",
brand-fly: "fontawesome/brands/fly.svg",
brand-font-awesome: "fontawesome/brands/font-awesome.svg",
brand-fonticons-fi: "fontawesome/brands/fonticons-fi.svg",
brand-fonticons: "fontawesome/brands/fonticons.svg",
brand-fort-awesome-alt: "fontawesome/brands/fort-awesome-alt.svg",
brand-fort-awesome: "fontawesome/brands/fort-awesome.svg",
brand-forumbee: "fontawesome/brands/forumbee.svg",
brand-foursquare: "fontawesome/brands/foursquare.svg",
brand-free-code-camp: "fontawesome/brands/free-code-camp.svg",
brand-freebsd: "fontawesome/brands/freebsd.svg",
brand-fulcrum: "fontawesome/brands/fulcrum.svg",
brand-galactic-republic: "fontawesome/brands/galactic-republic.svg",
brand-galactic-senate: "fontawesome/brands/galactic-senate.svg",
brand-get-pocket: "fontawesome/brands/get-pocket.svg",
brand-gg-circle: "fontawesome/brands/gg-circle.svg",
brand-gg: "fontawesome/brands/gg.svg",
brand-git-alt: "fontawesome/brands/git-alt.svg",
brand-git: "fontawesome/brands/git.svg",
brand-github-alt: "fontawesome/brands/github-alt.svg",
brand-github: "fontawesome/brands/github.svg",
brand-gitkraken: "fontawesome/brands/gitkraken.svg",
brand-gitlab: "fontawesome/brands/gitlab.svg",
brand-gitter: "fontawesome/brands/gitter.svg",
brand-glide-g: "fontawesome/brands/glide-g.svg",
brand-glide: "fontawesome/brands/glide.svg",
brand-gofore: "fontawesome/brands/gofore.svg",
brand-golang: "fontawesome/brands/golang.svg",
brand-goodreads-g: "fontawesome/brands/goodreads-g.svg",
brand-goodreads: "fontawesome/brands/goodreads.svg",
brand-google-drive: "fontawesome/brands/google-drive.svg",
brand-google-pay: "fontawesome/brands/google-pay.svg",
brand-google-play: "fontawesome/brands/google-play.svg",
brand-google-plus-g: "fontawesome/brands/google-plus-g.svg",
brand-google-plus: "fontawesome/brands/google-plus.svg",
brand-google-wallet: "fontawesome/brands/google-wallet.svg",
brand-google: "fontawesome/brands/google.svg",
brand-gratipay: "fontawesome/brands/gratipay.svg",
brand-grav: "fontawesome/brands/grav.svg",
brand-gripfire: "fontawesome/brands/gripfire.svg",
brand-grunt: "fontawesome/brands/grunt.svg",
brand-guilded: "fontawesome/brands/guilded.svg",
brand-gulp: "fontawesome/brands/gulp.svg",
brand-hacker-news: "fontawesome/brands/hacker-news.svg",
brand-hackerrank: "fontawesome/brands/hackerrank.svg",
brand-hashnode: "fontawesome/brands/hashnode.svg",
brand-hips: "fontawesome/brands/hips.svg",
brand-hire-a-helper: "fontawesome/brands/hire-a-helper.svg",
brand-hive: "fontawesome/brands/hive.svg",
brand-hooli: "fontawesome/brands/hooli.svg",
brand-hornbill: "fontawesome/brands/hornbill.svg",
brand-hotjar: "fontawesome/brands/hotjar.svg",
brand-houzz: "fontawesome/brands/houzz.svg",
brand-html5: "fontawesome/brands/html5.svg",
brand-hubspot: "fontawesome/brands/hubspot.svg",
brand-ideal: "fontawesome/brands/ideal.svg",
brand-imdb: "fontawesome/brands/imdb.svg",
brand-instagram: "fontawesome/brands/instagram.svg",
brand-instalod: "fontawesome/brands/instalod.svg",
brand-intercom: "fontawesome/brands/intercom.svg",
brand-internet-explorer: "fontawesome/brands/internet-explorer.svg",
brand-invision: "fontawesome/brands/invision.svg",
brand-ioxhost: "fontawesome/brands/ioxhost.svg",
brand-itch-io: "fontawesome/brands/itch-io.svg",
brand-itunes-note: "fontawesome/brands/itunes-note.svg",
brand-itunes: "fontawesome/brands/itunes.svg",
brand-java: "fontawesome/brands/java.svg",
brand-jedi-order: "fontawesome/brands/jedi-order.svg",
brand-jenkins: "fontawesome/brands/jenkins.svg",
brand-jira: "fontawesome/brands/jira.svg",
brand-joget: "fontawesome/brands/joget.svg",
brand-joomla: "fontawesome/brands/joomla.svg",
brand-js: "fontawesome/brands/js.svg",
brand-jsfiddle: "fontawesome/brands/jsfiddle.svg",
brand-kaggle: "fontawesome/brands/kaggle.svg",
brand-keybase: "fontawesome/brands/keybase.svg",
brand-keycdn: "fontawesome/brands/keycdn.svg",
brand-kickstarter-k: "fontawesome/brands/kickstarter-k.svg",
brand-kickstarter: "fontawesome/brands/kickstarter.svg",
brand-korvue: "fontawesome/brands/korvue.svg",
brand-laravel: "fontawesome/brands/laravel.svg",
brand-lastfm: "fontawesome/brands/lastfm.svg",
brand-leanpub: "fontawesome/brands/leanpub.svg",
brand-less: "fontawesome/brands/less.svg",
brand-line: "fontawesome/brands/line.svg",
brand-linkedin-in: "fontawesome/brands/linkedin-in.svg",
brand-linkedin: "fontawesome/brands/linkedin.svg",
brand-linode: "fontawesome/brands/linode.svg",
brand-linux: "fontawesome/brands/linux.svg",
brand-lyft: "fontawesome/brands/lyft.svg",
brand-magento: "fontawesome/brands/magento.svg",
brand-mailchimp: "fontawesome/brands/mailchimp.svg",
brand-mandalorian: "fontawesome/brands/mandalorian.svg",
brand-markdown: "fontawesome/brands/markdown.svg",
brand-mastodon: "fontawesome/brands/mastodon.svg",
brand-maxcdn: "fontawesome/brands/maxcdn.svg",
brand-mdb: "fontawesome/brands/mdb.svg",
brand-medapps: "fontawesome/brands/medapps.svg",
brand-medium: "fontawesome/brands/medium.svg",
brand-medrt: "fontawesome/brands/medrt.svg",
brand-meetup: "fontawesome/brands/meetup.svg",
brand-megaport: "fontawesome/brands/megaport.svg",
brand-mendeley: "fontawesome/brands/mendeley.svg",
brand-meta: "fontawesome/brands/meta.svg",
brand-microblog: "fontawesome/brands/microblog.svg",
brand-microsoft: "fontawesome/brands/microsoft.svg",
brand-mix: "fontawesome/brands/mix.svg",
brand-mixcloud: "fontawesome/brands/mixcloud.svg",
brand-mixer: "fontawesome/brands/mixer.svg",
brand-mizuni: "fontawesome/brands/mizuni.svg",
brand-modx: "fontawesome/brands/modx.svg",
brand-monero: "fontawesome/brands/monero.svg",
brand-napster: "fontawesome/brands/napster.svg",
brand-neos: "fontawesome/brands/neos.svg",
brand-nfc-directional: "fontawesome/brands/nfc-directional.svg",
brand-nfc-symbol: "fontawesome/brands/nfc-symbol.svg",
brand-nimblr: "fontawesome/brands/nimblr.svg",
brand-node-js: "fontawesome/brands/node-js.svg",
brand-node: "fontawesome/brands/node.svg",
brand-npm: "fontawesome/brands/npm.svg",
brand-ns8: "fontawesome/brands/ns8.svg",
brand-nutritionix: "fontawesome/brands/nutritionix.svg",
brand-octopus-deploy: "fontawesome/brands/octopus-deploy.svg",
brand-odnoklassniki: "fontawesome/brands/odnoklassniki.svg",
brand-odysee: "fontawesome/brands/odysee.svg",
brand-old-republic: "fontawesome/brands/old-republic.svg",
brand-opencart: "fontawesome/brands/opencart.svg",
brand-openid: "fontawesome/brands/openid.svg",
brand-opera: "fontawesome/brands/opera.svg",
brand-optin-monster: "fontawesome/brands/optin-monster.svg",
brand-orcid: "fontawesome/brands/orcid.svg",
brand-osi: "fontawesome/brands/osi.svg",
brand-padlet: "fontawesome/brands/padlet.svg",
brand-page4: "fontawesome/brands/page4.svg",
brand-pagelines: "fontawesome/brands/pagelines.svg",
brand-palfed: "fontawesome/brands/palfed.svg",
brand-patreon: "fontawesome/brands/patreon.svg",
brand-paypal: "fontawesome/brands/paypal.svg",
brand-perbyte: "fontawesome/brands/perbyte.svg",
brand-periscope: "fontawesome/brands/periscope.svg",
brand-phabricator: "fontawesome/brands/phabricator.svg",
brand-phoenix-framework: "fontawesome/brands/phoenix-framework.svg",
brand-phoenix-squadron: "fontawesome/brands/phoenix-squadron.svg",
brand-php: "fontawesome/brands/php.svg",
brand-pied-piper-alt: "fontawesome/brands/pied-piper-alt.svg",
brand-pied-piper-hat: "fontawesome/brands/pied-piper-hat.svg",
brand-pied-piper-pp: "fontawesome/brands/pied-piper-pp.svg",
brand-pied-piper: "fontawesome/brands/pied-piper.svg",
brand-pinterest-p: "fontawesome/brands/pinterest-p.svg",
brand-pinterest: "fontawesome/brands/pinterest.svg",
brand-pix: "fontawesome/brands/pix.svg",
brand-playstation: "fontawesome/brands/playstation.svg",
brand-product-hunt: "fontawesome/brands/product-hunt.svg",
brand-pushed: "fontawesome/brands/pushed.svg",
brand-python: "fontawesome/brands/python.svg",
brand-qq: "fontawesome/brands/qq.svg",
brand-quinscape: "fontawesome/brands/quinscape.svg",
brand-quora: "fontawesome/brands/quora.svg",
brand-r-project: "fontawesome/brands/r-project.svg",
brand-raspberry-pi: "fontawesome/brands/raspberry-pi.svg",
brand-ravelry: "fontawesome/brands/ravelry.svg",
brand-react: "fontawesome/brands/react.svg",
brand-reacteurope: "fontawesome/brands/reacteurope.svg",
brand-readme: "fontawesome/brands/readme.svg",
brand-rebel: "fontawesome/brands/rebel.svg",
brand-red-river: "fontawesome/brands/red-river.svg",
brand-reddit-alien: "fontawesome/brands/reddit-alien.svg",
brand-reddit: "fontawesome/brands/reddit.svg",
brand-redhat: "fontawesome/brands/redhat.svg",
brand-renren: "fontawesome/brands/renren.svg",
brand-replyd: "fontawesome/brands/replyd.svg",
brand-researchgate: "fontawesome/brands/researchgate.svg",
brand-resolving: "fontawesome/brands/resolving.svg",
brand-rev: "fontawesome/brands/rev.svg",
brand-rocketchat: "fontawesome/brands/rocketchat.svg",
brand-rockrms: "fontawesome/brands/rockrms.svg",
brand-rust: "fontawesome/brands/rust.svg",
brand-safari: "fontawesome/brands/safari.svg",
brand-salesforce: "fontawesome/brands/salesforce.svg",
brand-sass: "fontawesome/brands/sass.svg",
brand-schlix: "fontawesome/brands/schlix.svg",
brand-screenpal: "fontawesome/brands/screenpal.svg",
brand-scribd: "fontawesome/brands/scribd.svg",
brand-searchengin: "fontawesome/brands/searchengin.svg",
brand-sellcast: "fontawesome/brands/sellcast.svg",
brand-sellsy: "fontawesome/brands/sellsy.svg",
brand-servicestack: "fontawesome/brands/servicestack.svg",
brand-shirtsinbulk: "fontawesome/brands/shirtsinbulk.svg",
brand-shopify: "fontawesome/brands/shopify.svg",
brand-shopware: "fontawesome/brands/shopware.svg",
brand-simplybuilt: "fontawesome/brands/simplybuilt.svg",
brand-sistrix: "fontawesome/brands/sistrix.svg",
brand-sith: "fontawesome/brands/sith.svg",
brand-sitrox: "fontawesome/brands/sitrox.svg",
brand-sketch: "fontawesome/brands/sketch.svg",
brand-skyatlas: "fontawesome/brands/skyatlas.svg",
brand-skype: "fontawesome/brands/skype.svg",
brand-slack: "fontawesome/brands/slack.svg",
brand-slideshare: "fontawesome/brands/slideshare.svg",
brand-snapchat: "fontawesome/brands/snapchat.svg",
brand-soundcloud: "fontawesome/brands/soundcloud.svg",
brand-sourcetree: "fontawesome/brands/sourcetree.svg",
brand-space-awesome: "fontawesome/brands/space-awesome.svg",
brand-speakap: "fontawesome/brands/speakap.svg",
brand-speaker-deck: "fontawesome/brands/speaker-deck.svg",
brand-spotify: "fontawesome/brands/spotify.svg",
brand-square-behance: "fontawesome/brands/square-behance.svg",
brand-square-dribbble: "fontawesome/brands/square-dribbble.svg",
brand-square-facebook: "fontawesome/brands/square-facebook.svg",
brand-square-font-awesome-stroke: "fontawesome/brands/square-font-awesome-stroke.svg",
brand-square-font-awesome: "fontawesome/brands/square-font-awesome.svg",
brand-square-git: "fontawesome/brands/square-git.svg",
brand-square-github: "fontawesome/brands/square-github.svg",
brand-square-gitlab: "fontawesome/brands/square-gitlab.svg",
brand-square-google-plus: "fontawesome/brands/square-google-plus.svg",
brand-square-hacker-news: "fontawesome/brands/square-hacker-news.svg",
brand-square-instagram: "fontawesome/brands/square-instagram.svg",
brand-square-js: "fontawesome/brands/square-js.svg",
brand-square-lastfm: "fontawesome/brands/square-lastfm.svg",
brand-square-odnoklassniki: "fontawesome/brands/square-odnoklassniki.svg",
brand-square-pied-piper: "fontawesome/brands/square-pied-piper.svg",
brand-square-pinterest: "fontawesome/brands/square-pinterest.svg",
brand-square-reddit: "fontawesome/brands/square-reddit.svg",
brand-square-snapchat: "fontawesome/brands/square-snapchat.svg",
brand-square-steam: "fontawesome/brands/square-steam.svg",
brand-square-threads: "fontawesome/brands/square-threads.svg",
brand-square-tumblr: "fontawesome/brands/square-tumblr.svg",
brand-square-twitter: "fontawesome/brands/square-twitter.svg",
brand-square-viadeo: "fontawesome/brands/square-viadeo.svg",
brand-square-vimeo: "fontawesome/brands/square-vimeo.svg",
brand-square-whatsapp: "fontawesome/brands/square-whatsapp.svg",
brand-square-x-twitter: "fontawesome/brands/square-x-twitter.svg",
brand-square-xing: "fontawesome/brands/square-xing.svg",
brand-square-youtube: "fontawesome/brands/square-youtube.svg",
brand-squarespace: "fontawesome/brands/squarespace.svg",
brand-stack-exchange: "fontawesome/brands/stack-exchange.svg",
brand-stack-overflow: "fontawesome/brands/stack-overflow.svg",
brand-stackpath: "fontawesome/brands/stackpath.svg",
brand-staylinked: "fontawesome/brands/staylinked.svg",
brand-steam-symbol: "fontawesome/brands/steam-symbol.svg",
brand-steam: "fontawesome/brands/steam.svg",
brand-sticker-mule: "fontawesome/brands/sticker-mule.svg",
brand-strava: "fontawesome/brands/strava.svg",
brand-stripe-s: "fontawesome/brands/stripe-s.svg",
brand-stripe: "fontawesome/brands/stripe.svg",
brand-stubber: "fontawesome/brands/stubber.svg",
brand-studiovinari: "fontawesome/brands/studiovinari.svg",
brand-stumbleupon-circle: "fontawesome/brands/stumbleupon-circle.svg",
brand-stumbleupon: "fontawesome/brands/stumbleupon.svg",
brand-superpowers: "fontawesome/brands/superpowers.svg",
brand-supple: "fontawesome/brands/supple.svg",
brand-suse: "fontawesome/brands/suse.svg",
brand-swift: "fontawesome/brands/swift.svg",
brand-symfony: "fontawesome/brands/symfony.svg",
brand-teamspeak: "fontawesome/brands/teamspeak.svg",
brand-telegram: "fontawesome/brands/telegram.svg",
brand-tencent-weibo: "fontawesome/brands/tencent-weibo.svg",
brand-the-red-yeti: "fontawesome/brands/the-red-yeti.svg",
brand-themeco: "fontawesome/brands/themeco.svg",
brand-themeisle: "fontawesome/brands/themeisle.svg",
brand-think-peaks: "fontawesome/brands/think-peaks.svg",
brand-threads: "fontawesome/brands/threads.svg",
brand-tiktok: "fontawesome/brands/tiktok.svg",
brand-trade-federation: "fontawesome/brands/trade-federation.svg",
brand-trello: "fontawesome/brands/trello.svg",
brand-tumblr: "fontawesome/brands/tumblr.svg",
brand-twitch: "fontawesome/brands/twitch.svg",
brand-twitter: "fontawesome/brands/twitter.svg",
brand-typo3: "fontawesome/brands/typo3.svg",
brand-uber: "fontawesome/brands/uber.svg",
brand-ubuntu: "fontawesome/brands/ubuntu.svg",
brand-uikit: "fontawesome/brands/uikit.svg",
brand-umbraco: "fontawesome/brands/umbraco.svg",
brand-uncharted: "fontawesome/brands/uncharted.svg",
brand-uniregistry: "fontawesome/brands/uniregistry.svg",
brand-unity: "fontawesome/brands/unity.svg",
brand-unsplash: "fontawesome/brands/unsplash.svg",
brand-untappd: "fontawesome/brands/untappd.svg",
brand-ups: "fontawesome/brands/ups.svg",
brand-usb: "fontawesome/brands/usb.svg",
brand-usps: "fontawesome/brands/usps.svg",
brand-ussunnah: "fontawesome/brands/ussunnah.svg",
brand-vaadin: "fontawesome/brands/vaadin.svg",
brand-viacoin: "fontawesome/brands/viacoin.svg",
brand-viadeo: "fontawesome/brands/viadeo.svg",
brand-viber: "fontawesome/brands/viber.svg",
brand-vimeo-v: "fontawesome/brands/vimeo-v.svg",
brand-vimeo: "fontawesome/brands/vimeo.svg",
brand-vine: "fontawesome/brands/vine.svg",
brand-vk: "fontawesome/brands/vk.svg",
brand-vnv: "fontawesome/brands/vnv.svg",
brand-vuejs: "fontawesome/brands/vuejs.svg",
brand-watchman-monitoring: "fontawesome/brands/watchman-monitoring.svg",
brand-waze: "fontawesome/brands/waze.svg",
brand-weebly: "fontawesome/brands/weebly.svg",
brand-weibo: "fontawesome/brands/weibo.svg",
brand-weixin: "fontawesome/brands/weixin.svg",
brand-whatsapp: "fontawesome/brands/whatsapp.svg",
brand-whmcs: "fontawesome/brands/whmcs.svg",
brand-wikipedia-w: "fontawesome/brands/wikipedia-w.svg",
brand-windows: "fontawesome/brands/windows.svg",
brand-wirsindhandwerk: "fontawesome/brands/wirsindhandwerk.svg",
brand-wix: "fontawesome/brands/wix.svg",
brand-wizards-of-the-coast: "fontawesome/brands/wizards-of-the-coast.svg",
brand-wodu: "fontawesome/brands/wodu.svg",
brand-wolf-pack-battalion: "fontawesome/brands/wolf-pack-battalion.svg",
brand-wordpress-simple: "fontawesome/brands/wordpress-simple.svg",
brand-wordpress: "fontawesome/brands/wordpress.svg",
brand-wpbeginner: "fontawesome/brands/wpbeginner.svg",
brand-wpexplorer: "fontawesome/brands/wpexplorer.svg",
brand-wpforms: "fontawesome/brands/wpforms.svg",
brand-wpressr: "fontawesome/brands/wpressr.svg",
brand-x-twitter: "fontawesome/brands/x-twitter.svg",
brand-xbox: "fontawesome/brands/xbox.svg",
brand-xing: "fontawesome/brands/xing.svg",
brand-y-combinator: "fontawesome/brands/y-combinator.svg",
brand-yahoo: "fontawesome/brands/yahoo.svg",
brand-yammer: "fontawesome/brands/yammer.svg",
brand-yandex-international: "fontawesome/brands/yandex-international.svg",
brand-yandex: "fontawesome/brands/yandex.svg",
brand-yarn: "fontawesome/brands/yarn.svg",
brand-yelp: "fontawesome/brands/yelp.svg",
brand-yoast: "fontawesome/brands/yoast.svg",
brand-youtube: "fontawesome/brands/youtube.svg",
brand-zhihu: "fontawesome/brands/zhihu.svg",
// regular
reg-address-book: "fontawesome/regular/address-book.svg",
reg-address-card: "fontawesome/regular/address-card.svg",
reg-bell-slash: "fontawesome/regular/bell-slash.svg",
reg-bell: "fontawesome/regular/bell.svg",
reg-bookmark: "fontawesome/regular/bookmark.svg",
reg-building: "fontawesome/regular/building.svg",
reg-calendar-check: "fontawesome/regular/calendar-check.svg",
reg-calendar-days: "fontawesome/regular/calendar-days.svg",
reg-calendar-minus: "fontawesome/regular/calendar-minus.svg",
reg-calendar-plus: "fontawesome/regular/calendar-plus.svg",
reg-calendar-xmark: "fontawesome/regular/calendar-xmark.svg",
reg-calendar: "fontawesome/regular/calendar.svg",
reg-chart-bar: "fontawesome/regular/chart-bar.svg",
reg-chess-bishop: "fontawesome/regular/chess-bishop.svg",
reg-chess-king: "fontawesome/regular/chess-king.svg",
reg-chess-knight: "fontawesome/regular/chess-knight.svg",
reg-chess-pawn: "fontawesome/regular/chess-pawn.svg",
reg-chess-queen: "fontawesome/regular/chess-queen.svg",
reg-chess-rook: "fontawesome/regular/chess-rook.svg",
reg-circle-check: "fontawesome/regular/circle-check.svg",
reg-circle-dot: "fontawesome/regular/circle-dot.svg",
reg-circle-down: "fontawesome/regular/circle-down.svg",
reg-circle-left: "fontawesome/regular/circle-left.svg",
reg-circle-pause: "fontawesome/regular/circle-pause.svg",
reg-circle-play: "fontawesome/regular/circle-play.svg",
reg-circle-question: "fontawesome/regular/circle-question.svg",
reg-circle-right: "fontawesome/regular/circle-right.svg",
reg-circle-stop: "fontawesome/regular/circle-stop.svg",
reg-circle-up: "fontawesome/regular/circle-up.svg",
reg-circle-user: "fontawesome/regular/circle-user.svg",
reg-circle-xmark: "fontawesome/regular/circle-xmark.svg",
reg-circle: "fontawesome/regular/circle.svg",
reg-clipboard: "fontawesome/regular/clipboard.svg",
reg-clock: "fontawesome/regular/clock.svg",
reg-clone: "fontawesome/regular/clone.svg",
reg-closed-captioning: "fontawesome/regular/closed-captioning.svg",
reg-comment-dots: "fontawesome/regular/comment-dots.svg",
reg-comment: "fontawesome/regular/comment.svg",
reg-comments: "fontawesome/regular/comments.svg",
reg-compass: "fontawesome/regular/compass.svg",
reg-copy: "fontawesome/regular/copy.svg",
reg-copyright: "fontawesome/regular/copyright.svg",
reg-credit-card: "fontawesome/regular/credit-card.svg",
reg-envelope-open: "fontawesome/regular/envelope-open.svg",
reg-envelope: "fontawesome/regular/envelope.svg",
reg-eye-slash: "fontawesome/regular/eye-slash.svg",
reg-eye: "fontawesome/regular/eye.svg",
reg-face-angry: "fontawesome/regular/face-angry.svg",
reg-face-dizzy: "fontawesome/regular/face-dizzy.svg",
reg-face-flushed: "fontawesome/regular/face-flushed.svg",
reg-face-frown-open: "fontawesome/regular/face-frown-open.svg",
reg-face-frown: "fontawesome/regular/face-frown.svg",
reg-face-grimace: "fontawesome/regular/face-grimace.svg",
reg-face-grin-beam-sweat: "fontawesome/regular/face-grin-beam-sweat.svg",
reg-face-grin-beam: "fontawesome/regular/face-grin-beam.svg",
reg-face-grin-hearts: "fontawesome/regular/face-grin-hearts.svg",
reg-face-grin-squint-tears: "fontawesome/regular/face-grin-squint-tears.svg",
reg-face-grin-squint: "fontawesome/regular/face-grin-squint.svg",
reg-face-grin-stars: "fontawesome/regular/face-grin-stars.svg",
reg-face-grin-tears: "fontawesome/regular/face-grin-tears.svg",
reg-face-grin-tongue-squint: "fontawesome/regular/face-grin-tongue-squint.svg",
reg-face-grin-tongue-wink: "fontawesome/regular/face-grin-tongue-wink.svg",
reg-face-grin-tongue: "fontawesome/regular/face-grin-tongue.svg",
reg-face-grin-wide: "fontawesome/regular/face-grin-wide.svg",
reg-face-grin-wink: "fontawesome/regular/face-grin-wink.svg",
reg-face-grin: "fontawesome/regular/face-grin.svg",
reg-face-kiss-beam: "fontawesome/regular/face-kiss-beam.svg",
reg-face-kiss-wink-heart: "fontawesome/regular/face-kiss-wink-heart.svg",
reg-face-kiss: "fontawesome/regular/face-kiss.svg",
reg-face-laugh-beam: "fontawesome/regular/face-laugh-beam.svg",
reg-face-laugh-squint: "fontawesome/regular/face-laugh-squint.svg",
reg-face-laugh-wink: "fontawesome/regular/face-laugh-wink.svg",
reg-face-laugh: "fontawesome/regular/face-laugh.svg",
reg-face-meh-blank: "fontawesome/regular/face-meh-blank.svg",
reg-face-meh: "fontawesome/regular/face-meh.svg",
reg-face-rolling-eyes: "fontawesome/regular/face-rolling-eyes.svg",
reg-face-sad-cry: "fontawesome/regular/face-sad-cry.svg",
reg-face-sad-tear: "fontawesome/regular/face-sad-tear.svg",
reg-face-smile-beam: "fontawesome/regular/face-smile-beam.svg",
reg-face-smile-wink: "fontawesome/regular/face-smile-wink.svg",
reg-face-smile: "fontawesome/regular/face-smile.svg",
reg-face-surprise: "fontawesome/regular/face-surprise.svg",
reg-face-tired: "fontawesome/regular/face-tired.svg",
reg-file-audio: "fontawesome/regular/file-audio.svg",
reg-file-code: "fontawesome/regular/file-code.svg",
reg-file-excel: "fontawesome/regular/file-excel.svg",
reg-file-image: "fontawesome/regular/file-image.svg",
reg-file-lines: "fontawesome/regular/file-lines.svg",
reg-file-pdf: "fontawesome/regular/file-pdf.svg",
reg-file-powerpoint: "fontawesome/regular/file-powerpoint.svg",
reg-file-video: "fontawesome/regular/file-video.svg",
reg-file-word: "fontawesome/regular/file-word.svg",
reg-file-zipper: "fontawesome/regular/file-zipper.svg",
reg-file: "fontawesome/regular/file.svg",
reg-flag: "fontawesome/regular/flag.svg",
reg-floppy-disk: "fontawesome/regular/floppy-disk.svg",
reg-folder-closed: "fontawesome/regular/folder-closed.svg",
reg-folder-open: "fontawesome/regular/folder-open.svg",
reg-folder: "fontawesome/regular/folder.svg",
reg-font-awesome: "fontawesome/regular/font-awesome.svg",
reg-futbol: "fontawesome/regular/futbol.svg",
reg-gem: "fontawesome/regular/gem.svg",
reg-hand-back-fist: "fontawesome/regular/hand-back-fist.svg",
reg-hand-lizard: "fontawesome/regular/hand-lizard.svg",
reg-hand-peace: "fontawesome/regular/hand-peace.svg",
reg-hand-point-down: "fontawesome/regular/hand-point-down.svg",
reg-hand-point-left: "fontawesome/regular/hand-point-left.svg",
reg-hand-point-right: "fontawesome/regular/hand-point-right.svg",
reg-hand-point-up: "fontawesome/regular/hand-point-up.svg",
reg-hand-pointer: "fontawesome/regular/hand-pointer.svg",
reg-hand-scissors: "fontawesome/regular/hand-scissors.svg",
reg-hand-spock: "fontawesome/regular/hand-spock.svg",
reg-hand: "fontawesome/regular/hand.svg",
reg-handshake: "fontawesome/regular/handshake.svg",
reg-hard-drive: "fontawesome/regular/hard-drive.svg",
reg-heart: "fontawesome/regular/heart.svg",
reg-hospital: "fontawesome/regular/hospital.svg",
reg-hourglass-half: "fontawesome/regular/hourglass-half.svg",
reg-hourglass: "fontawesome/regular/hourglass.svg",
reg-id-badge: "fontawesome/regular/id-badge.svg",
reg-id-card: "fontawesome/regular/id-card.svg",
reg-image: "fontawesome/regular/image.svg",
reg-images: "fontawesome/regular/images.svg",
reg-keyboard: "fontawesome/regular/keyboard.svg",
reg-lemon: "fontawesome/regular/lemon.svg",
reg-life-ring: "fontawesome/regular/life-ring.svg",
reg-lightbulb: "fontawesome/regular/lightbulb.svg",
reg-map: "fontawesome/regular/map.svg",
reg-message: "fontawesome/regular/message.svg",
reg-money-bill-1: "fontawesome/regular/money-bill-1.svg",
reg-moon: "fontawesome/regular/moon.svg",
reg-newspaper: "fontawesome/regular/newspaper.svg",
reg-note-sticky: "fontawesome/regular/note-sticky.svg",
reg-object-group: "fontawesome/regular/object-group.svg",
reg-object-ungroup: "fontawesome/regular/object-ungroup.svg",
reg-paper-plane: "fontawesome/regular/paper-plane.svg",
reg-paste: "fontawesome/regular/paste.svg",
reg-pen-to-square: "fontawesome/regular/pen-to-square.svg",
reg-rectangle-list: "fontawesome/regular/rectangle-list.svg",
reg-rectangle-xmark: "fontawesome/regular/rectangle-xmark.svg",
reg-registered: "fontawesome/regular/registered.svg",
reg-share-from-square: "fontawesome/regular/share-from-square.svg",
reg-snowflake: "fontawesome/regular/snowflake.svg",
reg-square-caret-down: "fontawesome/regular/square-caret-down.svg",
reg-square-caret-left: "fontawesome/regular/square-caret-left.svg",
reg-square-caret-right: "fontawesome/regular/square-caret-right.svg",
reg-square-caret-up: "fontawesome/regular/square-caret-up.svg",
reg-square-check: "fontawesome/regular/square-check.svg",
reg-square-full: "fontawesome/regular/square-full.svg",
reg-square-minus: "fontawesome/regular/square-minus.svg",
reg-square-plus: "fontawesome/regular/square-plus.svg",
reg-square: "fontawesome/regular/square.svg",
reg-star-half-stroke: "fontawesome/regular/star-half-stroke.svg",
reg-star-half: "fontawesome/regular/star-half.svg",
reg-star: "fontawesome/regular/star.svg",
reg-sun: "fontawesome/regular/sun.svg",
reg-thumbs-down: "fontawesome/regular/thumbs-down.svg",
reg-thumbs-up: "fontawesome/regular/thumbs-up.svg",
reg-trash-can: "fontawesome/regular/trash-can.svg",
reg-user: "fontawesome/regular/user.svg",
reg-window-maximize: "fontawesome/regular/window-maximize.svg",
reg-window-minimize: "fontawesome/regular/window-minimize.svg",
reg-window-restore: "fontawesome/regular/window-restore.svg",
// solid
solid-0: "fontawesome/solid/0.svg",
solid-1: "fontawesome/solid/1.svg",
solid-2: "fontawesome/solid/2.svg",
solid-3: "fontawesome/solid/3.svg",
solid-4: "fontawesome/solid/4.svg",
solid-5: "fontawesome/solid/5.svg",
solid-6: "fontawesome/solid/6.svg",
solid-7: "fontawesome/solid/7.svg",
solid-8: "fontawesome/solid/8.svg",
solid-9: "fontawesome/solid/9.svg",
a: "fontawesome/solid/a.svg",
address-book: "fontawesome/solid/address-book.svg",
address-card: "fontawesome/solid/address-card.svg",
align-center: "fontawesome/solid/align-center.svg",
align-justify: "fontawesome/solid/align-justify.svg",
align-left: "fontawesome/solid/align-left.svg",
align-right: "fontawesome/solid/align-right.svg",
anchor-circle-check: "fontawesome/solid/anchor-circle-check.svg",
anchor-circle-exclamation: "fontawesome/solid/anchor-circle-exclamation.svg",
anchor-circle-xmark: "fontawesome/solid/anchor-circle-xmark.svg",
anchor-lock: "fontawesome/solid/anchor-lock.svg",
anchor: "fontawesome/solid/anchor.svg",
angle-down: "fontawesome/solid/angle-down.svg",
angle-left: "fontawesome/solid/angle-left.svg",
angle-right: "fontawesome/solid/angle-right.svg",
angle-up: "fontawesome/solid/angle-up.svg",
angles-down: "fontawesome/solid/angles-down.svg",
angles-left: "fontawesome/solid/angles-left.svg",
angles-right: "fontawesome/solid/angles-right.svg",
angles-up: "fontawesome/solid/angles-up.svg",
ankh: "fontawesome/solid/ankh.svg",
apple-whole: "fontawesome/solid/apple-whole.svg",
archway: "fontawesome/solid/archway.svg",
arrow-down-1-9: "fontawesome/solid/arrow-down-1-9.svg",
arrow-down-9-1: "fontawesome/solid/arrow-down-9-1.svg",
arrow-down-a-z: "fontawesome/solid/arrow-down-a-z.svg",
arrow-down-long: "fontawesome/solid/arrow-down-long.svg",
arrow-down-short-wide: "fontawesome/solid/arrow-down-short-wide.svg",
arrow-down-up-across-line: "fontawesome/solid/arrow-down-up-across-line.svg",
arrow-down-up-lock: "fontawesome/solid/arrow-down-up-lock.svg",
arrow-down-wide-short: "fontawesome/solid/arrow-down-wide-short.svg",
arrow-down-z-a: "fontawesome/solid/arrow-down-z-a.svg",
arrow-down: "fontawesome/solid/arrow-down.svg",
arrow-left-long: "fontawesome/solid/arrow-left-long.svg",
arrow-left: "fontawesome/solid/arrow-left.svg",
arrow-pointer: "fontawesome/solid/arrow-pointer.svg",
arrow-right-arrow-left: "fontawesome/solid/arrow-right-arrow-left.svg",
arrow-right-from-bracket: "fontawesome/solid/arrow-right-from-bracket.svg",
arrow-right-long: "fontawesome/solid/arrow-right-long.svg",
arrow-right-to-bracket: "fontawesome/solid/arrow-right-to-bracket.svg",
arrow-right-to-city: "fontawesome/solid/arrow-right-to-city.svg",
arrow-right: "fontawesome/solid/arrow-right.svg",
arrow-rotate-left: "fontawesome/solid/arrow-rotate-left.svg",
arrow-rotate-right: "fontawesome/solid/arrow-rotate-right.svg",
arrow-trend-down: "fontawesome/solid/arrow-trend-down.svg",
arrow-trend-up: "fontawesome/solid/arrow-trend-up.svg",
arrow-turn-down: "fontawesome/solid/arrow-turn-down.svg",
arrow-turn-up: "fontawesome/solid/arrow-turn-up.svg",
arrow-up-1-9: "fontawesome/solid/arrow-up-1-9.svg",
arrow-up-9-1: "fontawesome/solid/arrow-up-9-1.svg",
arrow-up-a-z: "fontawesome/solid/arrow-up-a-z.svg",
arrow-up-from-bracket: "fontawesome/solid/arrow-up-from-bracket.svg",
arrow-up-from-ground-water: "fontawesome/solid/arrow-up-from-ground-water.svg",
arrow-up-from-water-pump: "fontawesome/solid/arrow-up-from-water-pump.svg",
arrow-up-long: "fontawesome/solid/arrow-up-long.svg",
arrow-up-right-dots: "fontawesome/solid/arrow-up-right-dots.svg",
arrow-up-right-from-square: "fontawesome/solid/arrow-up-right-from-square.svg",
arrow-up-short-wide: "fontawesome/solid/arrow-up-short-wide.svg",
arrow-up-wide-short: "fontawesome/solid/arrow-up-wide-short.svg",
arrow-up-z-a: "fontawesome/solid/arrow-up-z-a.svg",
arrow-up: "fontawesome/solid/arrow-up.svg",
arrows-down-to-line: "fontawesome/solid/arrows-down-to-line.svg",
arrows-down-to-people: "fontawesome/solid/arrows-down-to-people.svg",
arrows-left-right-to-line: "fontawesome/solid/arrows-left-right-to-line.svg",
arrows-left-right: "fontawesome/solid/arrows-left-right.svg",
arrows-rotate: "fontawesome/solid/arrows-rotate.svg",
arrows-spin: "fontawesome/solid/arrows-spin.svg",
arrows-split-up-and-left: "fontawesome/solid/arrows-split-up-and-left.svg",
arrows-to-circle: "fontawesome/solid/arrows-to-circle.svg",
arrows-to-dot: "fontawesome/solid/arrows-to-dot.svg",
arrows-to-eye: "fontawesome/solid/arrows-to-eye.svg",
arrows-turn-right: "fontawesome/solid/arrows-turn-right.svg",
arrows-turn-to-dots: "fontawesome/solid/arrows-turn-to-dots.svg",
arrows-up-down-left-right: "fontawesome/solid/arrows-up-down-left-right.svg",
arrows-up-down: "fontawesome/solid/arrows-up-down.svg",
arrows-up-to-line: "fontawesome/solid/arrows-up-to-line.svg",
asterisk: "fontawesome/solid/asterisk.svg",
at: "fontawesome/solid/at.svg",
atom: "fontawesome/solid/atom.svg",
audio-description: "fontawesome/solid/audio-description.svg",
austral-sign: "fontawesome/solid/austral-sign.svg",
award: "fontawesome/solid/award.svg",
b: "fontawesome/solid/b.svg",
baby-carriage: "fontawesome/solid/baby-carriage.svg",
baby: "fontawesome/solid/baby.svg",
backward-fast: "fontawesome/solid/backward-fast.svg",
backward-step: "fontawesome/solid/backward-step.svg",
backward: "fontawesome/solid/backward.svg",
bacon: "fontawesome/solid/bacon.svg",
bacteria: "fontawesome/solid/bacteria.svg",
bacterium: "fontawesome/solid/bacterium.svg",
bag-shopping: "fontawesome/solid/bag-shopping.svg",
bahai: "fontawesome/solid/bahai.svg",
baht-sign: "fontawesome/solid/baht-sign.svg",
ban-smoking: "fontawesome/solid/ban-smoking.svg",
ban: "fontawesome/solid/ban.svg",
bandage: "fontawesome/solid/bandage.svg",
bangladeshi-taka-sign: "fontawesome/solid/bangladeshi-taka-sign.svg",
barcode: "fontawesome/solid/barcode.svg",
bars-progress: "fontawesome/solid/bars-progress.svg",
bars-staggered: "fontawesome/solid/bars-staggered.svg",
bars: "fontawesome/solid/bars.svg",
baseball-bat-ball: "fontawesome/solid/baseball-bat-ball.svg",
baseball: "fontawesome/solid/baseball.svg",
basket-shopping: "fontawesome/solid/basket-shopping.svg",
basketball: "fontawesome/solid/basketball.svg",
bath: "fontawesome/solid/bath.svg",
battery-empty: "fontawesome/solid/battery-empty.svg",
battery-full: "fontawesome/solid/battery-full.svg",
battery-half: "fontawesome/solid/battery-half.svg",
battery-quarter: "fontawesome/solid/battery-quarter.svg",
battery-three-quarters: "fontawesome/solid/battery-three-quarters.svg",
bed-pulse: "fontawesome/solid/bed-pulse.svg",
bed: "fontawesome/solid/bed.svg",
beer-mug-empty: "fontawesome/solid/beer-mug-empty.svg",
bell-concierge: "fontawesome/solid/bell-concierge.svg",
bell-slash: "fontawesome/solid/bell-slash.svg",
bell: "fontawesome/solid/bell.svg",
bezier-curve: "fontawesome/solid/bezier-curve.svg",
bicycle: "fontawesome/solid/bicycle.svg",
binoculars: "fontawesome/solid/binoculars.svg",
biohazard: "fontawesome/solid/biohazard.svg",
bitcoin-sign: "fontawesome/solid/bitcoin-sign.svg",
blender-phone: "fontawesome/solid/blender-phone.svg",
blender: "fontawesome/solid/blender.svg",
blog: "fontawesome/solid/blog.svg",
bold: "fontawesome/solid/bold.svg",
bolt-lightning: "fontawesome/solid/bolt-lightning.svg",
bolt: "fontawesome/solid/bolt.svg",
bomb: "fontawesome/solid/bomb.svg",
bone: "fontawesome/solid/bone.svg",
bong: "fontawesome/solid/bong.svg",
book-atlas: "fontawesome/solid/book-atlas.svg",
book-bible: "fontawesome/solid/book-bible.svg",
book-bookmark: "fontawesome/solid/book-bookmark.svg",
book-journal-whills: "fontawesome/solid/book-journal-whills.svg",
book-medical: "fontawesome/solid/book-medical.svg",
book-open-reader: "fontawesome/solid/book-open-reader.svg",
book-open: "fontawesome/solid/book-open.svg",
book-quran: "fontawesome/solid/book-quran.svg",
book-skull: "fontawesome/solid/book-skull.svg",
book-tanakh: "fontawesome/solid/book-tanakh.svg",
book: "fontawesome/solid/book.svg",
bookmark: "fontawesome/solid/bookmark.svg",
border-all: "fontawesome/solid/border-all.svg",
border-none: "fontawesome/solid/border-none.svg",
border-top-left: "fontawesome/solid/border-top-left.svg",
bore-hole: "fontawesome/solid/bore-hole.svg",
bottle-droplet: "fontawesome/solid/bottle-droplet.svg",
bottle-water: "fontawesome/solid/bottle-water.svg",
bowl-food: "fontawesome/solid/bowl-food.svg",
bowl-rice: "fontawesome/solid/bowl-rice.svg",
bowling-ball: "fontawesome/solid/bowling-ball.svg",
box-archive: "fontawesome/solid/box-archive.svg",
box-open: "fontawesome/solid/box-open.svg",
box-tissue: "fontawesome/solid/box-tissue.svg",
box: "fontawesome/solid/box.svg",
boxes-packing: "fontawesome/solid/boxes-packing.svg",
boxes-stacked: "fontawesome/solid/boxes-stacked.svg",
braille: "fontawesome/solid/braille.svg",
brain: "fontawesome/solid/brain.svg",
brazilian-real-sign: "fontawesome/solid/brazilian-real-sign.svg",
bread-slice: "fontawesome/solid/bread-slice.svg",
bridge-circle-check: "fontawesome/solid/bridge-circle-check.svg",
bridge-circle-exclamation: "fontawesome/solid/bridge-circle-exclamation.svg",
bridge-circle-xmark: "fontawesome/solid/bridge-circle-xmark.svg",
bridge-lock: "fontawesome/solid/bridge-lock.svg",
bridge-water: "fontawesome/solid/bridge-water.svg",
bridge: "fontawesome/solid/bridge.svg",
briefcase-medical: "fontawesome/solid/briefcase-medical.svg",
briefcase: "fontawesome/solid/briefcase.svg",
broom-ball: "fontawesome/solid/broom-ball.svg",
broom: "fontawesome/solid/broom.svg",
brush: "fontawesome/solid/brush.svg",
bucket: "fontawesome/solid/bucket.svg",
bug-slash: "fontawesome/solid/bug-slash.svg",
bug: "fontawesome/solid/bug.svg",
bugs: "fontawesome/solid/bugs.svg",
building-circle-arrow-right: "fontawesome/solid/building-circle-arrow-right.svg",
building-circle-check: "fontawesome/solid/building-circle-check.svg",
building-circle-exclamation: "fontawesome/solid/building-circle-exclamation.svg",
building-circle-xmark: "fontawesome/solid/building-circle-xmark.svg",
building-columns: "fontawesome/solid/building-columns.svg",
building-flag: "fontawesome/solid/building-flag.svg",
building-lock: "fontawesome/solid/building-lock.svg",
building-ngo: "fontawesome/solid/building-ngo.svg",
building-shield: "fontawesome/solid/building-shield.svg",
building-un: "fontawesome/solid/building-un.svg",
building-user: "fontawesome/solid/building-user.svg",
building-wheat: "fontawesome/solid/building-wheat.svg",
building: "fontawesome/solid/building.svg",
bullhorn: "fontawesome/solid/bullhorn.svg",
bullseye: "fontawesome/solid/bullseye.svg",
burger: "fontawesome/solid/burger.svg",
burst: "fontawesome/solid/burst.svg",
bus-simple: "fontawesome/solid/bus-simple.svg",
bus: "fontawesome/solid/bus.svg",
business-time: "fontawesome/solid/business-time.svg",
c: "fontawesome/solid/c.svg",
cable-car: "fontawesome/solid/cable-car.svg",
cake-candles: "fontawesome/solid/cake-candles.svg",
calculator: "fontawesome/solid/calculator.svg",
calendar-check: "fontawesome/solid/calendar-check.svg",
calendar-day: "fontawesome/solid/calendar-day.svg",
calendar-days: "fontawesome/solid/calendar-days.svg",
calendar-minus: "fontawesome/solid/calendar-minus.svg",
calendar-plus: "fontawesome/solid/calendar-plus.svg",
calendar-week: "fontawesome/solid/calendar-week.svg",
calendar-xmark: "fontawesome/solid/calendar-xmark.svg",
calendar: "fontawesome/solid/calendar.svg",
camera-retro: "fontawesome/solid/camera-retro.svg",
camera-rotate: "fontawesome/solid/camera-rotate.svg",
camera: "fontawesome/solid/camera.svg",
campground: "fontawesome/solid/campground.svg",
candy-cane: "fontawesome/solid/candy-cane.svg",
cannabis: "fontawesome/solid/cannabis.svg",
capsules: "fontawesome/solid/capsules.svg",
car-battery: "fontawesome/solid/car-battery.svg",
car-burst: "fontawesome/solid/car-burst.svg",
car-on: "fontawesome/solid/car-on.svg",
car-rear: "fontawesome/solid/car-rear.svg",
car-side: "fontawesome/solid/car-side.svg",
car-tunnel: "fontawesome/solid/car-tunnel.svg",
car: "fontawesome/solid/car.svg",
caravan: "fontawesome/solid/caravan.svg",
caret-down: "fontawesome/solid/caret-down.svg",
caret-left: "fontawesome/solid/caret-left.svg",
caret-right: "fontawesome/solid/caret-right.svg",
caret-up: "fontawesome/solid/caret-up.svg",
carrot: "fontawesome/solid/carrot.svg",
cart-arrow-down: "fontawesome/solid/cart-arrow-down.svg",
cart-flatbed-suitcase: "fontawesome/solid/cart-flatbed-suitcase.svg",
cart-flatbed: "fontawesome/solid/cart-flatbed.svg",
cart-plus: "fontawesome/solid/cart-plus.svg",
cart-shopping: "fontawesome/solid/cart-shopping.svg",
cash-register: "fontawesome/solid/cash-register.svg",
cat: "fontawesome/solid/cat.svg",
cedi-sign: "fontawesome/solid/cedi-sign.svg",
cent-sign: "fontawesome/solid/cent-sign.svg",
certificate: "fontawesome/solid/certificate.svg",
chair: "fontawesome/solid/chair.svg",
chalkboard-user: "fontawesome/solid/chalkboard-user.svg",
chalkboard: "fontawesome/solid/chalkboard.svg",
champagne-glasses: "fontawesome/solid/champagne-glasses.svg",
charging-station: "fontawesome/solid/charging-station.svg",
chart-area: "fontawesome/solid/chart-area.svg",
chart-bar: "fontawesome/solid/chart-bar.svg",
chart-column: "fontawesome/solid/chart-column.svg",
chart-gantt: "fontawesome/solid/chart-gantt.svg",
chart-line: "fontawesome/solid/chart-line.svg",
chart-pie: "fontawesome/solid/chart-pie.svg",
chart-simple: "fontawesome/solid/chart-simple.svg",
check-double: "fontawesome/solid/check-double.svg",
check-to-slot: "fontawesome/solid/check-to-slot.svg",
check: "fontawesome/solid/check.svg",
cheese: "fontawesome/solid/cheese.svg",
chess-bishop: "fontawesome/solid/chess-bishop.svg",
chess-board: "fontawesome/solid/chess-board.svg",
chess-king: "fontawesome/solid/chess-king.svg",
chess-knight: "fontawesome/solid/chess-knight.svg",
chess-pawn: "fontawesome/solid/chess-pawn.svg",
chess-queen: "fontawesome/solid/chess-queen.svg",
chess-rook: "fontawesome/solid/chess-rook.svg",
chess: "fontawesome/solid/chess.svg",
chevron-down: "fontawesome/solid/chevron-down.svg",
chevron-left: "fontawesome/solid/chevron-left.svg",
chevron-right: "fontawesome/solid/chevron-right.svg",
chevron-up: "fontawesome/solid/chevron-up.svg",
child-combatant: "fontawesome/solid/child-combatant.svg",
child-dress: "fontawesome/solid/child-dress.svg",
child-reaching: "fontawesome/solid/child-reaching.svg",
child: "fontawesome/solid/child.svg",
children: "fontawesome/solid/children.svg",
church: "fontawesome/solid/church.svg",
circle-arrow-down: "fontawesome/solid/circle-arrow-down.svg",
circle-arrow-left: "fontawesome/solid/circle-arrow-left.svg",
circle-arrow-right: "fontawesome/solid/circle-arrow-right.svg",
circle-arrow-up: "fontawesome/solid/circle-arrow-up.svg",
circle-check: "fontawesome/solid/circle-check.svg",
circle-chevron-down: "fontawesome/solid/circle-chevron-down.svg",
circle-chevron-left: "fontawesome/solid/circle-chevron-left.svg",
circle-chevron-right: "fontawesome/solid/circle-chevron-right.svg",
circle-chevron-up: "fontawesome/solid/circle-chevron-up.svg",
circle-dollar-to-slot: "fontawesome/solid/circle-dollar-to-slot.svg",
circle-dot: "fontawesome/solid/circle-dot.svg",
circle-down: "fontawesome/solid/circle-down.svg",
circle-exclamation: "fontawesome/solid/circle-exclamation.svg",
circle-h: "fontawesome/solid/circle-h.svg",
circle-half-stroke: "fontawesome/solid/circle-half-stroke.svg",
circle-info: "fontawesome/solid/circle-info.svg",
circle-left: "fontawesome/solid/circle-left.svg",
circle-minus: "fontawesome/solid/circle-minus.svg",
circle-nodes: "fontawesome/solid/circle-nodes.svg",
circle-notch: "fontawesome/solid/circle-notch.svg",
circle-pause: "fontawesome/solid/circle-pause.svg",
circle-play: "fontawesome/solid/circle-play.svg",
circle-plus: "fontawesome/solid/circle-plus.svg",
circle-question: "fontawesome/solid/circle-question.svg",
circle-radiation: "fontawesome/solid/circle-radiation.svg",
circle-right: "fontawesome/solid/circle-right.svg",
circle-stop: "fontawesome/solid/circle-stop.svg",
circle-up: "fontawesome/solid/circle-up.svg",
circle-user: "fontawesome/solid/circle-user.svg",
circle-xmark: "fontawesome/solid/circle-xmark.svg",
circle: "fontawesome/solid/circle.svg",
city: "fontawesome/solid/city.svg",
clapperboard: "fontawesome/solid/clapperboard.svg",
clipboard-check: "fontawesome/solid/clipboard-check.svg",
clipboard-list: "fontawesome/solid/clipboard-list.svg",
clipboard-question: "fontawesome/solid/clipboard-question.svg",
clipboard-user: "fontawesome/solid/clipboard-user.svg",
clipboard: "fontawesome/solid/clipboard.svg",
clock-rotate-left: "fontawesome/solid/clock-rotate-left.svg",
clock: "fontawesome/solid/clock.svg",
clone: "fontawesome/solid/clone.svg",
closed-captioning: "fontawesome/solid/closed-captioning.svg",
cloud-arrow-down: "fontawesome/solid/cloud-arrow-down.svg",
cloud-arrow-up: "fontawesome/solid/cloud-arrow-up.svg",
cloud-bolt: "fontawesome/solid/cloud-bolt.svg",
cloud-meatball: "fontawesome/solid/cloud-meatball.svg",
cloud-moon-rain: "fontawesome/solid/cloud-moon-rain.svg",
cloud-moon: "fontawesome/solid/cloud-moon.svg",
cloud-rain: "fontawesome/solid/cloud-rain.svg",
cloud-showers-heavy: "fontawesome/solid/cloud-showers-heavy.svg",
cloud-showers-water: "fontawesome/solid/cloud-showers-water.svg",
cloud-sun-rain: "fontawesome/solid/cloud-sun-rain.svg",
cloud-sun: "fontawesome/solid/cloud-sun.svg",
cloud: "fontawesome/solid/cloud.svg",
clover: "fontawesome/solid/clover.svg",
code-branch: "fontawesome/solid/code-branch.svg",
code-commit: "fontawesome/solid/code-commit.svg",
code-compare: "fontawesome/solid/code-compare.svg",
code-fork: "fontawesome/solid/code-fork.svg",
code-merge: "fontawesome/solid/code-merge.svg",
code-pull-request: "fontawesome/solid/code-pull-request.svg",
code: "fontawesome/solid/code.svg",
coins: "fontawesome/solid/coins.svg",
colon-sign: "fontawesome/solid/colon-sign.svg",
comment-dollar: "fontawesome/solid/comment-dollar.svg",
comment-dots: "fontawesome/solid/comment-dots.svg",
comment-medical: "fontawesome/solid/comment-medical.svg",
comment-slash: "fontawesome/solid/comment-slash.svg",
comment-sms: "fontawesome/solid/comment-sms.svg",
comment: "fontawesome/solid/comment.svg",
comments-dollar: "fontawesome/solid/comments-dollar.svg",
comments: "fontawesome/solid/comments.svg",
compact-disc: "fontawesome/solid/compact-disc.svg",
compass-drafting: "fontawesome/solid/compass-drafting.svg",
compass: "fontawesome/solid/compass.svg",
compress: "fontawesome/solid/compress.svg",
computer-mouse: "fontawesome/solid/computer-mouse.svg",
computer: "fontawesome/solid/computer.svg",
cookie-bite: "fontawesome/solid/cookie-bite.svg",
cookie: "fontawesome/solid/cookie.svg",
copy: "fontawesome/solid/copy.svg",
copyright: "fontawesome/solid/copyright.svg",
couch: "fontawesome/solid/couch.svg",
cow: "fontawesome/solid/cow.svg",
credit-card: "fontawesome/solid/credit-card.svg",
crop-simple: "fontawesome/solid/crop-simple.svg",
crop: "fontawesome/solid/crop.svg",
cross: "fontawesome/solid/cross.svg",
crosshairs: "fontawesome/solid/crosshairs.svg",
crow: "fontawesome/solid/crow.svg",
crown: "fontawesome/solid/crown.svg",
crutch: "fontawesome/solid/crutch.svg",
cruzeiro-sign: "fontawesome/solid/cruzeiro-sign.svg",
cube: "fontawesome/solid/cube.svg",
cubes-stacked: "fontawesome/solid/cubes-stacked.svg",
cubes: "fontawesome/solid/cubes.svg",
d: "fontawesome/solid/d.svg",
database: "fontawesome/solid/database.svg",
delete-left: "fontawesome/solid/delete-left.svg",
democrat: "fontawesome/solid/democrat.svg",
desktop: "fontawesome/solid/desktop.svg",
dharmachakra: "fontawesome/solid/dharmachakra.svg",
diagram-next: "fontawesome/solid/diagram-next.svg",
diagram-predecessor: "fontawesome/solid/diagram-predecessor.svg",
diagram-project: "fontawesome/solid/diagram-project.svg",
diagram-successor: "fontawesome/solid/diagram-successor.svg",
diamond-turn-right: "fontawesome/solid/diamond-turn-right.svg",
diamond: "fontawesome/solid/diamond.svg",
dice-d6: "fontawesome/solid/dice-d6.svg",
dice-d20: "fontawesome/solid/dice-d20.svg",
dice-five: "fontawesome/solid/dice-five.svg",
dice-four: "fontawesome/solid/dice-four.svg",
dice-one: "fontawesome/solid/dice-one.svg",
dice-six: "fontawesome/solid/dice-six.svg",
dice-three: "fontawesome/solid/dice-three.svg",
dice-two: "fontawesome/solid/dice-two.svg",
dice: "fontawesome/solid/dice.svg",
disease: "fontawesome/solid/disease.svg",
display: "fontawesome/solid/display.svg",
divide: "fontawesome/solid/divide.svg",
dna: "fontawesome/solid/dna.svg",
dog: "fontawesome/solid/dog.svg",
dollar-sign: "fontawesome/solid/dollar-sign.svg",
dolly: "fontawesome/solid/dolly.svg",
dong-sign: "fontawesome/solid/dong-sign.svg",
door-closed: "fontawesome/solid/door-closed.svg",
door-open: "fontawesome/solid/door-open.svg",
dove: "fontawesome/solid/dove.svg",
down-left-and-up-right-to-center: "fontawesome/solid/down-left-and-up-right-to-center.svg",
down-long: "fontawesome/solid/down-long.svg",
download: "fontawesome/solid/download.svg",
dragon: "fontawesome/solid/dragon.svg",
draw-polygon: "fontawesome/solid/draw-polygon.svg",
droplet-slash: "fontawesome/solid/droplet-slash.svg",
droplet: "fontawesome/solid/droplet.svg",
drum-steelpan: "fontawesome/solid/drum-steelpan.svg",
drum: "fontawesome/solid/drum.svg",
drumstick-bite: "fontawesome/solid/drumstick-bite.svg",
dumbbell: "fontawesome/solid/dumbbell.svg",
dumpster-fire: "fontawesome/solid/dumpster-fire.svg",
dumpster: "fontawesome/solid/dumpster.svg",
dungeon: "fontawesome/solid/dungeon.svg",
e: "fontawesome/solid/e.svg",
ear-deaf: "fontawesome/solid/ear-deaf.svg",
ear-listen: "fontawesome/solid/ear-listen.svg",
earth-africa: "fontawesome/solid/earth-africa.svg",
earth-americas: "fontawesome/solid/earth-americas.svg",
earth-asia: "fontawesome/solid/earth-asia.svg",
earth-europe: "fontawesome/solid/earth-europe.svg",
earth-oceania: "fontawesome/solid/earth-oceania.svg",
egg: "fontawesome/solid/egg.svg",
eject: "fontawesome/solid/eject.svg",
elevator: "fontawesome/solid/elevator.svg",
ellipsis-vertical: "fontawesome/solid/ellipsis-vertical.svg",
ellipsis: "fontawesome/solid/ellipsis.svg",
envelope-circle-check: "fontawesome/solid/envelope-circle-check.svg",
envelope-open-text: "fontawesome/solid/envelope-open-text.svg",
envelope-open: "fontawesome/solid/envelope-open.svg",
envelope: "fontawesome/solid/envelope.svg",
envelopes-bulk: "fontawesome/solid/envelopes-bulk.svg",
equals: "fontawesome/solid/equals.svg",
eraser: "fontawesome/solid/eraser.svg",
ethernet: "fontawesome/solid/ethernet.svg",
euro-sign: "fontawesome/solid/euro-sign.svg",
exclamation: "fontawesome/solid/exclamation.svg",
expand: "fontawesome/solid/expand.svg",
explosion: "fontawesome/solid/explosion.svg",
eye-dropper: "fontawesome/solid/eye-dropper.svg",
eye-low-vision: "fontawesome/solid/eye-low-vision.svg",
eye-slash: "fontawesome/solid/eye-slash.svg",
eye: "fontawesome/solid/eye.svg",
f: "fontawesome/solid/f.svg",
face-angry: "fontawesome/solid/face-angry.svg",
face-dizzy: "fontawesome/solid/face-dizzy.svg",
face-flushed: "fontawesome/solid/face-flushed.svg",
face-frown-open: "fontawesome/solid/face-frown-open.svg",
face-frown: "fontawesome/solid/face-frown.svg",
face-grimace: "fontawesome/solid/face-grimace.svg",
face-grin-beam-sweat: "fontawesome/solid/face-grin-beam-sweat.svg",
face-grin-beam: "fontawesome/solid/face-grin-beam.svg",
face-grin-hearts: "fontawesome/solid/face-grin-hearts.svg",
face-grin-squint-tears: "fontawesome/solid/face-grin-squint-tears.svg",
face-grin-squint: "fontawesome/solid/face-grin-squint.svg",
face-grin-stars: "fontawesome/solid/face-grin-stars.svg",
face-grin-tears: "fontawesome/solid/face-grin-tears.svg",
face-grin-tongue-squint: "fontawesome/solid/face-grin-tongue-squint.svg",
face-grin-tongue-wink: "fontawesome/solid/face-grin-tongue-wink.svg",
face-grin-tongue: "fontawesome/solid/face-grin-tongue.svg",
face-grin-wide: "fontawesome/solid/face-grin-wide.svg",
face-grin-wink: "fontawesome/solid/face-grin-wink.svg",
face-grin: "fontawesome/solid/face-grin.svg",
face-kiss-beam: "fontawesome/solid/face-kiss-beam.svg",
face-kiss-wink-heart: "fontawesome/solid/face-kiss-wink-heart.svg",
face-kiss: "fontawesome/solid/face-kiss.svg",
face-laugh-beam: "fontawesome/solid/face-laugh-beam.svg",
face-laugh-squint: "fontawesome/solid/face-laugh-squint.svg",
face-laugh-wink: "fontawesome/solid/face-laugh-wink.svg",
face-laugh: "fontawesome/solid/face-laugh.svg",
face-meh-blank: "fontawesome/solid/face-meh-blank.svg",
face-meh: "fontawesome/solid/face-meh.svg",
face-rolling-eyes: "fontawesome/solid/face-rolling-eyes.svg",
face-sad-cry: "fontawesome/solid/face-sad-cry.svg",
face-sad-tear: "fontawesome/solid/face-sad-tear.svg",
face-smile-beam: "fontawesome/solid/face-smile-beam.svg",
face-smile-wink: "fontawesome/solid/face-smile-wink.svg",
face-smile: "fontawesome/solid/face-smile.svg",
face-surprise: "fontawesome/solid/face-surprise.svg",
face-tired: "fontawesome/solid/face-tired.svg",
fan: "fontawesome/solid/fan.svg",
faucet-drip: "fontawesome/solid/faucet-drip.svg",
faucet: "fontawesome/solid/faucet.svg",
fax: "fontawesome/solid/fax.svg",
feather-pointed: "fontawesome/solid/feather-pointed.svg",
feather: "fontawesome/solid/feather.svg",
ferry: "fontawesome/solid/ferry.svg",
file-arrow-down: "fontawesome/solid/file-arrow-down.svg",
file-arrow-up: "fontawesome/solid/file-arrow-up.svg",
file-audio: "fontawesome/solid/file-audio.svg",
file-circle-check: "fontawesome/solid/file-circle-check.svg",
file-circle-exclamation: "fontawesome/solid/file-circle-exclamation.svg",
file-circle-minus: "fontawesome/solid/file-circle-minus.svg",
file-circle-plus: "fontawesome/solid/file-circle-plus.svg",
file-circle-question: "fontawesome/solid/file-circle-question.svg",
file-circle-xmark: "fontawesome/solid/file-circle-xmark.svg",
file-code: "fontawesome/solid/file-code.svg",
file-contract: "fontawesome/solid/file-contract.svg",
file-csv: "fontawesome/solid/file-csv.svg",
file-excel: "fontawesome/solid/file-excel.svg",
file-export: "fontawesome/solid/file-export.svg",
file-image: "fontawesome/solid/file-image.svg",
file-import: "fontawesome/solid/file-import.svg",
file-invoice-dollar: "fontawesome/solid/file-invoice-dollar.svg",
file-invoice: "fontawesome/solid/file-invoice.svg",
file-lines: "fontawesome/solid/file-lines.svg",
file-medical: "fontawesome/solid/file-medical.svg",
file-pdf: "fontawesome/solid/file-pdf.svg",
file-pen: "fontawesome/solid/file-pen.svg",
file-powerpoint: "fontawesome/solid/file-powerpoint.svg",
file-prescription: "fontawesome/solid/file-prescription.svg",
file-shield: "fontawesome/solid/file-shield.svg",
file-signature: "fontawesome/solid/file-signature.svg",
file-video: "fontawesome/solid/file-video.svg",
file-waveform: "fontawesome/solid/file-waveform.svg",
file-word: "fontawesome/solid/file-word.svg",
file-zipper: "fontawesome/solid/file-zipper.svg",
file: "fontawesome/solid/file.svg",
fill-drip: "fontawesome/solid/fill-drip.svg",
fill: "fontawesome/solid/fill.svg",
film: "fontawesome/solid/film.svg",
filter-circle-dollar: "fontawesome/solid/filter-circle-dollar.svg",
filter-circle-xmark: "fontawesome/solid/filter-circle-xmark.svg",
filter: "fontawesome/solid/filter.svg",
fingerprint: "fontawesome/solid/fingerprint.svg",
fire-burner: "fontawesome/solid/fire-burner.svg",
fire-extinguisher: "fontawesome/solid/fire-extinguisher.svg",
fire-flame-curved: "fontawesome/solid/fire-flame-curved.svg",
fire-flame-simple: "fontawesome/solid/fire-flame-simple.svg",
fire: "fontawesome/solid/fire.svg",
fish-fins: "fontawesome/solid/fish-fins.svg",
fish: "fontawesome/solid/fish.svg",
flag-checkered: "fontawesome/solid/flag-checkered.svg",
flag-usa: "fontawesome/solid/flag-usa.svg",
flag: "fontawesome/solid/flag.svg",
flask-vial: "fontawesome/solid/flask-vial.svg",
flask: "fontawesome/solid/flask.svg",
floppy-disk: "fontawesome/solid/floppy-disk.svg",
florin-sign: "fontawesome/solid/florin-sign.svg",
folder-closed: "fontawesome/solid/folder-closed.svg",
folder-minus: "fontawesome/solid/folder-minus.svg",
folder-open: "fontawesome/solid/folder-open.svg",
folder-plus: "fontawesome/solid/folder-plus.svg",
folder-tree: "fontawesome/solid/folder-tree.svg",
folder: "fontawesome/solid/folder.svg",
font-awesome: "fontawesome/solid/font-awesome.svg",
font: "fontawesome/solid/font.svg",
football: "fontawesome/solid/football.svg",
forward-fast: "fontawesome/solid/forward-fast.svg",
forward-step: "fontawesome/solid/forward-step.svg",
forward: "fontawesome/solid/forward.svg",
franc-sign: "fontawesome/solid/franc-sign.svg",
frog: "fontawesome/solid/frog.svg",
futbol: "fontawesome/solid/futbol.svg",
g: "fontawesome/solid/g.svg",
gamepad: "fontawesome/solid/gamepad.svg",
gas-pump: "fontawesome/solid/gas-pump.svg",
gauge-high: "fontawesome/solid/gauge-high.svg",
gauge-simple-high: "fontawesome/solid/gauge-simple-high.svg",
gauge-simple: "fontawesome/solid/gauge-simple.svg",
gauge: "fontawesome/solid/gauge.svg",
gavel: "fontawesome/solid/gavel.svg",
gear: "fontawesome/solid/gear.svg",
gears: "fontawesome/solid/gears.svg",
gem: "fontawesome/solid/gem.svg",
genderless: "fontawesome/solid/genderless.svg",
ghost: "fontawesome/solid/ghost.svg",
gift: "fontawesome/solid/gift.svg",
gifts: "fontawesome/solid/gifts.svg",
glass-water-droplet: "fontawesome/solid/glass-water-droplet.svg",
glass-water: "fontawesome/solid/glass-water.svg",
glasses: "fontawesome/solid/glasses.svg",
globe: "fontawesome/solid/globe.svg",
golf-ball-tee: "fontawesome/solid/golf-ball-tee.svg",
gopuram: "fontawesome/solid/gopuram.svg",
graduation-cap: "fontawesome/solid/graduation-cap.svg",
greater-than-equal: "fontawesome/solid/greater-than-equal.svg",
greater-than: "fontawesome/solid/greater-than.svg",
grip-lines-vertical: "fontawesome/solid/grip-lines-vertical.svg",
grip-lines: "fontawesome/solid/grip-lines.svg",
grip-vertical: "fontawesome/solid/grip-vertical.svg",
grip: "fontawesome/solid/grip.svg",
group-arrows-rotate: "fontawesome/solid/group-arrows-rotate.svg",
guarani-sign: "fontawesome/solid/guarani-sign.svg",
guitar: "fontawesome/solid/guitar.svg",
gun: "fontawesome/solid/gun.svg",
h: "fontawesome/solid/h.svg",
hammer: "fontawesome/solid/hammer.svg",
hamsa: "fontawesome/solid/hamsa.svg",
hand-back-fist: "fontawesome/solid/hand-back-fist.svg",
hand-dots: "fontawesome/solid/hand-dots.svg",
hand-fist: "fontawesome/solid/hand-fist.svg",
hand-holding-dollar: "fontawesome/solid/hand-holding-dollar.svg",
hand-holding-droplet: "fontawesome/solid/hand-holding-droplet.svg",
hand-holding-hand: "fontawesome/solid/hand-holding-hand.svg",
hand-holding-heart: "fontawesome/solid/hand-holding-heart.svg",
hand-holding-medical: "fontawesome/solid/hand-holding-medical.svg",
hand-holding: "fontawesome/solid/hand-holding.svg",
hand-lizard: "fontawesome/solid/hand-lizard.svg",
hand-middle-finger: "fontawesome/solid/hand-middle-finger.svg",
hand-peace: "fontawesome/solid/hand-peace.svg",
hand-point-down: "fontawesome/solid/hand-point-down.svg",
hand-point-left: "fontawesome/solid/hand-point-left.svg",
hand-point-right: "fontawesome/solid/hand-point-right.svg",
hand-point-up: "fontawesome/solid/hand-point-up.svg",
hand-pointer: "fontawesome/solid/hand-pointer.svg",
hand-scissors: "fontawesome/solid/hand-scissors.svg",
hand-sparkles: "fontawesome/solid/hand-sparkles.svg",
hand-spock: "fontawesome/solid/hand-spock.svg",
hand: "fontawesome/solid/hand.svg",
handcuffs: "fontawesome/solid/handcuffs.svg",
hands-asl-interpreting: "fontawesome/solid/hands-asl-interpreting.svg",
hands-bound: "fontawesome/solid/hands-bound.svg",
hands-bubbles: "fontawesome/solid/hands-bubbles.svg",
hands-clapping: "fontawesome/solid/hands-clapping.svg",
hands-holding-child: "fontawesome/solid/hands-holding-child.svg",
hands-holding-circle: "fontawesome/solid/hands-holding-circle.svg",
hands-holding: "fontawesome/solid/hands-holding.svg",
hands-praying: "fontawesome/solid/hands-praying.svg",
hands: "fontawesome/solid/hands.svg",
handshake-angle: "fontawesome/solid/handshake-angle.svg",
handshake-simple-slash: "fontawesome/solid/handshake-simple-slash.svg",
handshake-simple: "fontawesome/solid/handshake-simple.svg",
handshake-slash: "fontawesome/solid/handshake-slash.svg",
handshake: "fontawesome/solid/handshake.svg",
hanukiah: "fontawesome/solid/hanukiah.svg",
hard-drive: "fontawesome/solid/hard-drive.svg",
hashtag: "fontawesome/solid/hashtag.svg",
hat-cowboy-side: "fontawesome/solid/hat-cowboy-side.svg",
hat-cowboy: "fontawesome/solid/hat-cowboy.svg",
hat-wizard: "fontawesome/solid/hat-wizard.svg",
head-side-cough-slash: "fontawesome/solid/head-side-cough-slash.svg",
head-side-cough: "fontawesome/solid/head-side-cough.svg",
head-side-mask: "fontawesome/solid/head-side-mask.svg",
head-side-virus: "fontawesome/solid/head-side-virus.svg",
heading: "fontawesome/solid/heading.svg",
headphones-simple: "fontawesome/solid/headphones-simple.svg",
headphones: "fontawesome/solid/headphones.svg",
headset: "fontawesome/solid/headset.svg",
heart-circle-bolt: "fontawesome/solid/heart-circle-bolt.svg",
heart-circle-check: "fontawesome/solid/heart-circle-check.svg",
heart-circle-exclamation: "fontawesome/solid/heart-circle-exclamation.svg",
heart-circle-minus: "fontawesome/solid/heart-circle-minus.svg",
heart-circle-plus: "fontawesome/solid/heart-circle-plus.svg",
heart-circle-xmark: "fontawesome/solid/heart-circle-xmark.svg",
heart-crack: "fontawesome/solid/heart-crack.svg",
heart-pulse: "fontawesome/solid/heart-pulse.svg",
heart: "fontawesome/solid/heart.svg",
helicopter-symbol: "fontawesome/solid/helicopter-symbol.svg",
helicopter: "fontawesome/solid/helicopter.svg",
helmet-safety: "fontawesome/solid/helmet-safety.svg",
helmet-un: "fontawesome/solid/helmet-un.svg",
highlighter: "fontawesome/solid/highlighter.svg",
hill-avalanche: "fontawesome/solid/hill-avalanche.svg",
hill-rockslide: "fontawesome/solid/hill-rockslide.svg",
hippo: "fontawesome/solid/hippo.svg",
hockey-puck: "fontawesome/solid/hockey-puck.svg",
holly-berry: "fontawesome/solid/holly-berry.svg",
horse-head: "fontawesome/solid/horse-head.svg",
horse: "fontawesome/solid/horse.svg",
hospital-user: "fontawesome/solid/hospital-user.svg",
hospital: "fontawesome/solid/hospital.svg",
hot-tub-person: "fontawesome/solid/hot-tub-person.svg",
hotdog: "fontawesome/solid/hotdog.svg",
hotel: "fontawesome/solid/hotel.svg",
hourglass-end: "fontawesome/solid/hourglass-end.svg",
hourglass-half: "fontawesome/solid/hourglass-half.svg",
hourglass-start: "fontawesome/solid/hourglass-start.svg",
hourglass: "fontawesome/solid/hourglass.svg",
house-chimney-crack: "fontawesome/solid/house-chimney-crack.svg",
house-chimney-medical: "fontawesome/solid/house-chimney-medical.svg",
house-chimney-user: "fontawesome/solid/house-chimney-user.svg",
house-chimney-window: "fontawesome/solid/house-chimney-window.svg",
house-chimney: "fontawesome/solid/house-chimney.svg",
house-circle-check: "fontawesome/solid/house-circle-check.svg",
house-circle-exclamation: "fontawesome/solid/house-circle-exclamation.svg",
house-circle-xmark: "fontawesome/solid/house-circle-xmark.svg",
house-crack: "fontawesome/solid/house-crack.svg",
house-fire: "fontawesome/solid/house-fire.svg",
house-flag: "fontawesome/solid/house-flag.svg",
house-flood-water-circle-arrow-right: "fontawesome/solid/house-flood-water-circle-arrow-right.svg",
house-flood-water: "fontawesome/solid/house-flood-water.svg",
house-laptop: "fontawesome/solid/house-laptop.svg",
house-lock: "fontawesome/solid/house-lock.svg",
house-medical-circle-check: "fontawesome/solid/house-medical-circle-check.svg",
house-medical-circle-exclamation: "fontawesome/solid/house-medical-circle-exclamation.svg",
house-medical-circle-xmark: "fontawesome/solid/house-medical-circle-xmark.svg",
house-medical-flag: "fontawesome/solid/house-medical-flag.svg",
house-medical: "fontawesome/solid/house-medical.svg",
house-signal: "fontawesome/solid/house-signal.svg",
house-tsunami: "fontawesome/solid/house-tsunami.svg",
house-user: "fontawesome/solid/house-user.svg",
house: "fontawesome/solid/house.svg",
hryvnia-sign: "fontawesome/solid/hryvnia-sign.svg",
hurricane: "fontawesome/solid/hurricane.svg",
i-cursor: "fontawesome/solid/i-cursor.svg",
i: "fontawesome/solid/i.svg",
ice-cream: "fontawesome/solid/ice-cream.svg",
icicles: "fontawesome/solid/icicles.svg",
icons: "fontawesome/solid/icons.svg",
id-badge: "fontawesome/solid/id-badge.svg",
id-card-clip: "fontawesome/solid/id-card-clip.svg",
id-card: "fontawesome/solid/id-card.svg",
igloo: "fontawesome/solid/igloo.svg",
image-portrait: "fontawesome/solid/image-portrait.svg",
image: "fontawesome/solid/image.svg",
images: "fontawesome/solid/images.svg",
inbox: "fontawesome/solid/inbox.svg",
indent: "fontawesome/solid/indent.svg",
indian-rupee-sign: "fontawesome/solid/indian-rupee-sign.svg",
industry: "fontawesome/solid/industry.svg",
infinity: "fontawesome/solid/infinity.svg",
info: "fontawesome/solid/info.svg",
italic: "fontawesome/solid/italic.svg",
j: "fontawesome/solid/j.svg",
jar-wheat: "fontawesome/solid/jar-wheat.svg",
jar: "fontawesome/solid/jar.svg",
jedi: "fontawesome/solid/jedi.svg",
jet-fighter-up: "fontawesome/solid/jet-fighter-up.svg",
jet-fighter: "fontawesome/solid/jet-fighter.svg",
joint: "fontawesome/solid/joint.svg",
jug-detergent: "fontawesome/solid/jug-detergent.svg",
k: "fontawesome/solid/k.svg",
kaaba: "fontawesome/solid/kaaba.svg",
key: "fontawesome/solid/key.svg",
keyboard: "fontawesome/solid/keyboard.svg",
khanda: "fontawesome/solid/khanda.svg",
kip-sign: "fontawesome/solid/kip-sign.svg",
kit-medical: "fontawesome/solid/kit-medical.svg",
kitchen-set: "fontawesome/solid/kitchen-set.svg",
kiwi-bird: "fontawesome/solid/kiwi-bird.svg",
l: "fontawesome/solid/l.svg",
land-mine-on: "fontawesome/solid/land-mine-on.svg",
landmark-dome: "fontawesome/solid/landmark-dome.svg",
landmark-flag: "fontawesome/solid/landmark-flag.svg",
landmark: "fontawesome/solid/landmark.svg",
language: "fontawesome/solid/language.svg",
laptop-code: "fontawesome/solid/laptop-code.svg",
laptop-file: "fontawesome/solid/laptop-file.svg",
laptop-medical: "fontawesome/solid/laptop-medical.svg",
laptop: "fontawesome/solid/laptop.svg",
lari-sign: "fontawesome/solid/lari-sign.svg",
layer-group: "fontawesome/solid/layer-group.svg",
leaf: "fontawesome/solid/leaf.svg",
left-long: "fontawesome/solid/left-long.svg",
left-right: "fontawesome/solid/left-right.svg",
lemon: "fontawesome/solid/lemon.svg",
less-than-equal: "fontawesome/solid/less-than-equal.svg",
less-than: "fontawesome/solid/less-than.svg",
life-ring: "fontawesome/solid/life-ring.svg",
lightbulb: "fontawesome/solid/lightbulb.svg",
lines-leaning: "fontawesome/solid/lines-leaning.svg",
link-slash: "fontawesome/solid/link-slash.svg",
link: "fontawesome/solid/link.svg",
lira-sign: "fontawesome/solid/lira-sign.svg",
list-check: "fontawesome/solid/list-check.svg",
list-ol: "fontawesome/solid/list-ol.svg",
list-ul: "fontawesome/solid/list-ul.svg",
list: "fontawesome/solid/list.svg",
litecoin-sign: "fontawesome/solid/litecoin-sign.svg",
location-arrow: "fontawesome/solid/location-arrow.svg",
location-crosshairs: "fontawesome/solid/location-crosshairs.svg",
location-dot: "fontawesome/solid/location-dot.svg",
location-pin-lock: "fontawesome/solid/location-pin-lock.svg",
location-pin: "fontawesome/solid/location-pin.svg",
lock-open: "fontawesome/solid/lock-open.svg",
lock: "fontawesome/solid/lock.svg",
locust: "fontawesome/solid/locust.svg",
lungs-virus: "fontawesome/solid/lungs-virus.svg",
lungs: "fontawesome/solid/lungs.svg",
m: "fontawesome/solid/m.svg",
magnet: "fontawesome/solid/magnet.svg",
magnifying-glass-arrow-right: "fontawesome/solid/magnifying-glass-arrow-right.svg",
magnifying-glass-chart: "fontawesome/solid/magnifying-glass-chart.svg",
magnifying-glass-dollar: "fontawesome/solid/magnifying-glass-dollar.svg",
magnifying-glass-location: "fontawesome/solid/magnifying-glass-location.svg",
magnifying-glass-minus: "fontawesome/solid/magnifying-glass-minus.svg",
magnifying-glass-plus: "fontawesome/solid/magnifying-glass-plus.svg",
magnifying-glass: "fontawesome/solid/magnifying-glass.svg",
manat-sign: "fontawesome/solid/manat-sign.svg",
map-location-dot: "fontawesome/solid/map-location-dot.svg",
map-location: "fontawesome/solid/map-location.svg",
map-pin: "fontawesome/solid/map-pin.svg",
map: "fontawesome/solid/map.svg",
marker: "fontawesome/solid/marker.svg",
mars-and-venus-burst: "fontawesome/solid/mars-and-venus-burst.svg",
mars-and-venus: "fontawesome/solid/mars-and-venus.svg",
mars-double: "fontawesome/solid/mars-double.svg",
mars-stroke-right: "fontawesome/solid/mars-stroke-right.svg",
mars-stroke-up: "fontawesome/solid/mars-stroke-up.svg",
mars-stroke: "fontawesome/solid/mars-stroke.svg",
mars: "fontawesome/solid/mars.svg",
martini-glass-citrus: "fontawesome/solid/martini-glass-citrus.svg",
martini-glass-empty: "fontawesome/solid/martini-glass-empty.svg",
martini-glass: "fontawesome/solid/martini-glass.svg",
mask-face: "fontawesome/solid/mask-face.svg",
mask-ventilator: "fontawesome/solid/mask-ventilator.svg",
mask: "fontawesome/solid/mask.svg",
masks-theater: "fontawesome/solid/masks-theater.svg",
mattress-pillow: "fontawesome/solid/mattress-pillow.svg",
maximize: "fontawesome/solid/maximize.svg",
medal: "fontawesome/solid/medal.svg",
memory: "fontawesome/solid/memory.svg",
menorah: "fontawesome/solid/menorah.svg",
mercury: "fontawesome/solid/mercury.svg",
message: "fontawesome/solid/message.svg",
meteor: "fontawesome/solid/meteor.svg",
microchip: "fontawesome/solid/microchip.svg",
microphone-lines-slash: "fontawesome/solid/microphone-lines-slash.svg",
microphone-lines: "fontawesome/solid/microphone-lines.svg",
microphone-slash: "fontawesome/solid/microphone-slash.svg",
microphone: "fontawesome/solid/microphone.svg",
microscope: "fontawesome/solid/microscope.svg",
mill-sign: "fontawesome/solid/mill-sign.svg",
minimize: "fontawesome/solid/minimize.svg",
minus: "fontawesome/solid/minus.svg",
mitten: "fontawesome/solid/mitten.svg",
mobile-button: "fontawesome/solid/mobile-button.svg",
mobile-retro: "fontawesome/solid/mobile-retro.svg",
mobile-screen-button: "fontawesome/solid/mobile-screen-button.svg",
mobile-screen: "fontawesome/solid/mobile-screen.svg",
mobile: "fontawesome/solid/mobile.svg",
money-bill-1-wave: "fontawesome/solid/money-bill-1-wave.svg",
money-bill-1: "fontawesome/solid/money-bill-1.svg",
money-bill-transfer: "fontawesome/solid/money-bill-transfer.svg",
money-bill-trend-up: "fontawesome/solid/money-bill-trend-up.svg",
money-bill-wave: "fontawesome/solid/money-bill-wave.svg",
money-bill-wheat: "fontawesome/solid/money-bill-wheat.svg",
money-bill: "fontawesome/solid/money-bill.svg",
money-bills: "fontawesome/solid/money-bills.svg",
money-check-dollar: "fontawesome/solid/money-check-dollar.svg",
money-check: "fontawesome/solid/money-check.svg",
monument: "fontawesome/solid/monument.svg",
moon: "fontawesome/solid/moon.svg",
mortar-pestle: "fontawesome/solid/mortar-pestle.svg",
mosque: "fontawesome/solid/mosque.svg",
mosquito-net: "fontawesome/solid/mosquito-net.svg",
mosquito: "fontawesome/solid/mosquito.svg",
motorcycle: "fontawesome/solid/motorcycle.svg",
mound: "fontawesome/solid/mound.svg",
mountain-city: "fontawesome/solid/mountain-city.svg",
mountain-sun: "fontawesome/solid/mountain-sun.svg",
mountain: "fontawesome/solid/mountain.svg",
mug-hot: "fontawesome/solid/mug-hot.svg",
mug-saucer: "fontawesome/solid/mug-saucer.svg",
music: "fontawesome/solid/music.svg",
n: "fontawesome/solid/n.svg",
naira-sign: "fontawesome/solid/naira-sign.svg",
network-wired: "fontawesome/solid/network-wired.svg",
neuter: "fontawesome/solid/neuter.svg",
newspaper: "fontawesome/solid/newspaper.svg",
not-equal: "fontawesome/solid/not-equal.svg",
notdef: "fontawesome/solid/notdef.svg",
note-sticky: "fontawesome/solid/note-sticky.svg",
notes-medical: "fontawesome/solid/notes-medical.svg",
o: "fontawesome/solid/o.svg",
object-group: "fontawesome/solid/object-group.svg",
object-ungroup: "fontawesome/solid/object-ungroup.svg",
oil-can: "fontawesome/solid/oil-can.svg",
oil-well: "fontawesome/solid/oil-well.svg",
om: "fontawesome/solid/om.svg",
otter: "fontawesome/solid/otter.svg",
outdent: "fontawesome/solid/outdent.svg",
p: "fontawesome/solid/p.svg",
pager: "fontawesome/solid/pager.svg",
paint-roller: "fontawesome/solid/paint-roller.svg",
paintbrush: "fontawesome/solid/paintbrush.svg",
palette: "fontawesome/solid/palette.svg",
pallet: "fontawesome/solid/pallet.svg",
panorama: "fontawesome/solid/panorama.svg",
paper-plane: "fontawesome/solid/paper-plane.svg",
paperclip: "fontawesome/solid/paperclip.svg",
parachute-box: "fontawesome/solid/parachute-box.svg",
paragraph: "fontawesome/solid/paragraph.svg",
passport: "fontawesome/solid/passport.svg",
paste: "fontawesome/solid/paste.svg",
pause: "fontawesome/solid/pause.svg",
paw: "fontawesome/solid/paw.svg",
peace: "fontawesome/solid/peace.svg",
pen-clip: "fontawesome/solid/pen-clip.svg",
pen-fancy: "fontawesome/solid/pen-fancy.svg",
pen-nib: "fontawesome/solid/pen-nib.svg",
pen-ruler: "fontawesome/solid/pen-ruler.svg",
pen-to-square: "fontawesome/solid/pen-to-square.svg",
pen: "fontawesome/solid/pen.svg",
pencil: "fontawesome/solid/pencil.svg",
people-arrows: "fontawesome/solid/people-arrows.svg",
people-carry-box: "fontawesome/solid/people-carry-box.svg",
people-group: "fontawesome/solid/people-group.svg",
people-line: "fontawesome/solid/people-line.svg",
people-pulling: "fontawesome/solid/people-pulling.svg",
people-robbery: "fontawesome/solid/people-robbery.svg",
people-roof: "fontawesome/solid/people-roof.svg",
pepper-hot: "fontawesome/solid/pepper-hot.svg",
percent: "fontawesome/solid/percent.svg",
person-arrow-down-to-line: "fontawesome/solid/person-arrow-down-to-line.svg",
person-arrow-up-from-line: "fontawesome/solid/person-arrow-up-from-line.svg",
person-biking: "fontawesome/solid/person-biking.svg",
person-booth: "fontawesome/solid/person-booth.svg",
person-breastfeeding: "fontawesome/solid/person-breastfeeding.svg",
person-burst: "fontawesome/solid/person-burst.svg",
person-cane: "fontawesome/solid/person-cane.svg",
person-chalkboard: "fontawesome/solid/person-chalkboard.svg",
person-circle-check: "fontawesome/solid/person-circle-check.svg",
person-circle-exclamation: "fontawesome/solid/person-circle-exclamation.svg",
person-circle-minus: "fontawesome/solid/person-circle-minus.svg",
person-circle-plus: "fontawesome/solid/person-circle-plus.svg",
person-circle-question: "fontawesome/solid/person-circle-question.svg",
person-circle-xmark: "fontawesome/solid/person-circle-xmark.svg",
person-digging: "fontawesome/solid/person-digging.svg",
person-dots-from-line: "fontawesome/solid/person-dots-from-line.svg",
person-dress-burst: "fontawesome/solid/person-dress-burst.svg",
person-dress: "fontawesome/solid/person-dress.svg",
person-drowning: "fontawesome/solid/person-drowning.svg",
person-falling-burst: "fontawesome/solid/person-falling-burst.svg",
person-falling: "fontawesome/solid/person-falling.svg",
person-half-dress: "fontawesome/solid/person-half-dress.svg",
person-harassing: "fontawesome/solid/person-harassing.svg",
person-hiking: "fontawesome/solid/person-hiking.svg",
person-military-pointing: "fontawesome/solid/person-military-pointing.svg",
person-military-rifle: "fontawesome/solid/person-military-rifle.svg",
person-military-to-person: "fontawesome/solid/person-military-to-person.svg",
person-praying: "fontawesome/solid/person-praying.svg",
person-pregnant: "fontawesome/solid/person-pregnant.svg",
person-rays: "fontawesome/solid/person-rays.svg",
person-rifle: "fontawesome/solid/person-rifle.svg",
person-running: "fontawesome/solid/person-running.svg",
person-shelter: "fontawesome/solid/person-shelter.svg",
person-skating: "fontawesome/solid/person-skating.svg",
person-skiing-nordic: "fontawesome/solid/person-skiing-nordic.svg",
person-skiing: "fontawesome/solid/person-skiing.svg",
person-snowboarding: "fontawesome/solid/person-snowboarding.svg",
person-swimming: "fontawesome/solid/person-swimming.svg",
person-through-window: "fontawesome/solid/person-through-window.svg",
person-walking-arrow-loop-left: "fontawesome/solid/person-walking-arrow-loop-left.svg",
person-walking-arrow-right: "fontawesome/solid/person-walking-arrow-right.svg",
person-walking-dashed-line-arrow-right: "fontawesome/solid/person-walking-dashed-line-arrow-right.svg",
person-walking-luggage: "fontawesome/solid/person-walking-luggage.svg",
person-walking-with-cane: "fontawesome/solid/person-walking-with-cane.svg",
person-walking: "fontawesome/solid/person-walking.svg",
person: "fontawesome/solid/person.svg",
peseta-sign: "fontawesome/solid/peseta-sign.svg",
peso-sign: "fontawesome/solid/peso-sign.svg",
phone-flip: "fontawesome/solid/phone-flip.svg",
phone-slash: "fontawesome/solid/phone-slash.svg",
phone-volume: "fontawesome/solid/phone-volume.svg",
phone: "fontawesome/solid/phone.svg",
photo-film: "fontawesome/solid/photo-film.svg",
piggy-bank: "fontawesome/solid/piggy-bank.svg",
pills: "fontawesome/solid/pills.svg",
pizza-slice: "fontawesome/solid/pizza-slice.svg",
place-of-worship: "fontawesome/solid/place-of-worship.svg",
plane-arrival: "fontawesome/solid/plane-arrival.svg",
plane-circle-check: "fontawesome/solid/plane-circle-check.svg",
plane-circle-exclamation: "fontawesome/solid/plane-circle-exclamation.svg",
plane-circle-xmark: "fontawesome/solid/plane-circle-xmark.svg",
plane-departure: "fontawesome/solid/plane-departure.svg",
plane-lock: "fontawesome/solid/plane-lock.svg",
plane-slash: "fontawesome/solid/plane-slash.svg",
plane-up: "fontawesome/solid/plane-up.svg",
plane: "fontawesome/solid/plane.svg",
plant-wilt: "fontawesome/solid/plant-wilt.svg",
plate-wheat: "fontawesome/solid/plate-wheat.svg",
play: "fontawesome/solid/play.svg",
plug-circle-bolt: "fontawesome/solid/plug-circle-bolt.svg",
plug-circle-check: "fontawesome/solid/plug-circle-check.svg",
plug-circle-exclamation: "fontawesome/solid/plug-circle-exclamation.svg",
plug-circle-minus: "fontawesome/solid/plug-circle-minus.svg",
plug-circle-plus: "fontawesome/solid/plug-circle-plus.svg",
plug-circle-xmark: "fontawesome/solid/plug-circle-xmark.svg",
plug: "fontawesome/solid/plug.svg",
plus-minus: "fontawesome/solid/plus-minus.svg",
plus: "fontawesome/solid/plus.svg",
podcast: "fontawesome/solid/podcast.svg",
poo-storm: "fontawesome/solid/poo-storm.svg",
poo: "fontawesome/solid/poo.svg",
poop: "fontawesome/solid/poop.svg",
power-off: "fontawesome/solid/power-off.svg",
prescription-bottle-medical: "fontawesome/solid/prescription-bottle-medical.svg",
prescription-bottle: "fontawesome/solid/prescription-bottle.svg",
prescription: "fontawesome/solid/prescription.svg",
print: "fontawesome/solid/print.svg",
pump-medical: "fontawesome/solid/pump-medical.svg",
pump-soap: "fontawesome/solid/pump-soap.svg",
puzzle-piece: "fontawesome/solid/puzzle-piece.svg",
q: "fontawesome/solid/q.svg",
qrcode: "fontawesome/solid/qrcode.svg",
question: "fontawesome/solid/question.svg",
quote-left: "fontawesome/solid/quote-left.svg",
quote-right: "fontawesome/solid/quote-right.svg",
r: "fontawesome/solid/r.svg",
radiation: "fontawesome/solid/radiation.svg",
radio: "fontawesome/solid/radio.svg",
rainbow: "fontawesome/solid/rainbow.svg",
ranking-star: "fontawesome/solid/ranking-star.svg",
receipt: "fontawesome/solid/receipt.svg",
record-vinyl: "fontawesome/solid/record-vinyl.svg",
rectangle-ad: "fontawesome/solid/rectangle-ad.svg",
rectangle-list: "fontawesome/solid/rectangle-list.svg",
rectangle-xmark: "fontawesome/solid/rectangle-xmark.svg",
recycle: "fontawesome/solid/recycle.svg",
registered: "fontawesome/solid/registered.svg",
repeat: "fontawesome/solid/repeat.svg",
reply-all: "fontawesome/solid/reply-all.svg",
reply: "fontawesome/solid/reply.svg",
republican: "fontawesome/solid/republican.svg",
restroom: "fontawesome/solid/restroom.svg",
retweet: "fontawesome/solid/retweet.svg",
ribbon: "fontawesome/solid/ribbon.svg",
right-from-bracket: "fontawesome/solid/right-from-bracket.svg",
right-left: "fontawesome/solid/right-left.svg",
right-long: "fontawesome/solid/right-long.svg",
right-to-bracket: "fontawesome/solid/right-to-bracket.svg",
ring: "fontawesome/solid/ring.svg",
road-barrier: "fontawesome/solid/road-barrier.svg",
road-bridge: "fontawesome/solid/road-bridge.svg",
road-circle-check: "fontawesome/solid/road-circle-check.svg",
road-circle-exclamation: "fontawesome/solid/road-circle-exclamation.svg",
road-circle-xmark: "fontawesome/solid/road-circle-xmark.svg",
road-lock: "fontawesome/solid/road-lock.svg",
road-spikes: "fontawesome/solid/road-spikes.svg",
road: "fontawesome/solid/road.svg",
robot: "fontawesome/solid/robot.svg",
rocket: "fontawesome/solid/rocket.svg",
rotate-left: "fontawesome/solid/rotate-left.svg",
rotate-right: "fontawesome/solid/rotate-right.svg",
rotate: "fontawesome/solid/rotate.svg",
route: "fontawesome/solid/route.svg",
rss: "fontawesome/solid/rss.svg",
ruble-sign: "fontawesome/solid/ruble-sign.svg",
rug: "fontawesome/solid/rug.svg",
ruler-combined: "fontawesome/solid/ruler-combined.svg",
ruler-horizontal: "fontawesome/solid/ruler-horizontal.svg",
ruler-vertical: "fontawesome/solid/ruler-vertical.svg",
ruler: "fontawesome/solid/ruler.svg",
rupee-sign: "fontawesome/solid/rupee-sign.svg",
rupiah-sign: "fontawesome/solid/rupiah-sign.svg",
s: "fontawesome/solid/s.svg",
sack-dollar: "fontawesome/solid/sack-dollar.svg",
sack-xmark: "fontawesome/solid/sack-xmark.svg",
sailboat: "fontawesome/solid/sailboat.svg",
satellite-dish: "fontawesome/solid/satellite-dish.svg",
satellite: "fontawesome/solid/satellite.svg",
scale-balanced: "fontawesome/solid/scale-balanced.svg",
scale-unbalanced-flip: "fontawesome/solid/scale-unbalanced-flip.svg",
scale-unbalanced: "fontawesome/solid/scale-unbalanced.svg",
school-circle-check: "fontawesome/solid/school-circle-check.svg",
school-circle-exclamation: "fontawesome/solid/school-circle-exclamation.svg",
school-circle-xmark: "fontawesome/solid/school-circle-xmark.svg",
school-flag: "fontawesome/solid/school-flag.svg",
school-lock: "fontawesome/solid/school-lock.svg",
school: "fontawesome/solid/school.svg",
scissors: "fontawesome/solid/scissors.svg",
screwdriver-wrench: "fontawesome/solid/screwdriver-wrench.svg",
screwdriver: "fontawesome/solid/screwdriver.svg",
scroll-torah: "fontawesome/solid/scroll-torah.svg",
scroll: "fontawesome/solid/scroll.svg",
sd-card: "fontawesome/solid/sd-card.svg",
section: "fontawesome/solid/section.svg",
seedling: "fontawesome/solid/seedling.svg",
server: "fontawesome/solid/server.svg",
shapes: "fontawesome/solid/shapes.svg",
share-from-square: "fontawesome/solid/share-from-square.svg",
share-nodes: "fontawesome/solid/share-nodes.svg",
share: "fontawesome/solid/share.svg",
sheet-plastic: "fontawesome/solid/sheet-plastic.svg",
shekel-sign: "fontawesome/solid/shekel-sign.svg",
shield-cat: "fontawesome/solid/shield-cat.svg",
shield-dog: "fontawesome/solid/shield-dog.svg",
shield-halved: "fontawesome/solid/shield-halved.svg",
shield-heart: "fontawesome/solid/shield-heart.svg",
shield-virus: "fontawesome/solid/shield-virus.svg",
shield: "fontawesome/solid/shield.svg",
ship: "fontawesome/solid/ship.svg",
shirt: "fontawesome/solid/shirt.svg",
shoe-prints: "fontawesome/solid/shoe-prints.svg",
shop-lock: "fontawesome/solid/shop-lock.svg",
shop-slash: "fontawesome/solid/shop-slash.svg",
shop: "fontawesome/solid/shop.svg",
shower: "fontawesome/solid/shower.svg",
shrimp: "fontawesome/solid/shrimp.svg",
shuffle: "fontawesome/solid/shuffle.svg",
shuttle-space: "fontawesome/solid/shuttle-space.svg",
sign-hanging: "fontawesome/solid/sign-hanging.svg",
signal: "fontawesome/solid/signal.svg",
signature: "fontawesome/solid/signature.svg",
signs-post: "fontawesome/solid/signs-post.svg",
sim-card: "fontawesome/solid/sim-card.svg",
sink: "fontawesome/solid/sink.svg",
sitemap: "fontawesome/solid/sitemap.svg",
skull-crossbones: "fontawesome/solid/skull-crossbones.svg",
skull: "fontawesome/solid/skull.svg",
slash: "fontawesome/solid/slash.svg",
sleigh: "fontawesome/solid/sleigh.svg",
sliders: "fontawesome/solid/sliders.svg",
smog: "fontawesome/solid/smog.svg",
smoking: "fontawesome/solid/smoking.svg",
snowflake: "fontawesome/solid/snowflake.svg",
snowman: "fontawesome/solid/snowman.svg",
snowplow: "fontawesome/solid/snowplow.svg",
soap: "fontawesome/solid/soap.svg",
socks: "fontawesome/solid/socks.svg",
solar-panel: "fontawesome/solid/solar-panel.svg",
sort-down: "fontawesome/solid/sort-down.svg",
sort-up: "fontawesome/solid/sort-up.svg",
sort: "fontawesome/solid/sort.svg",
spa: "fontawesome/solid/spa.svg",
spaghetti-monster-flying: "fontawesome/solid/spaghetti-monster-flying.svg",
spell-check: "fontawesome/solid/spell-check.svg",
spider: "fontawesome/solid/spider.svg",
spinner: "fontawesome/solid/spinner.svg",
splotch: "fontawesome/solid/splotch.svg",
spoon: "fontawesome/solid/spoon.svg",
spray-can-sparkles: "fontawesome/solid/spray-can-sparkles.svg",
spray-can: "fontawesome/solid/spray-can.svg",
square-arrow-up-right: "fontawesome/solid/square-arrow-up-right.svg",
square-caret-down: "fontawesome/solid/square-caret-down.svg",
square-caret-left: "fontawesome/solid/square-caret-left.svg",
square-caret-right: "fontawesome/solid/square-caret-right.svg",
square-caret-up: "fontawesome/solid/square-caret-up.svg",
square-check: "fontawesome/solid/square-check.svg",
square-envelope: "fontawesome/solid/square-envelope.svg",
square-full: "fontawesome/solid/square-full.svg",
square-h: "fontawesome/solid/square-h.svg",
square-minus: "fontawesome/solid/square-minus.svg",
square-nfi: "fontawesome/solid/square-nfi.svg",
square-parking: "fontawesome/solid/square-parking.svg",
square-pen: "fontawesome/solid/square-pen.svg",
square-person-confined: "fontawesome/solid/square-person-confined.svg",
square-phone-flip: "fontawesome/solid/square-phone-flip.svg",
square-phone: "fontawesome/solid/square-phone.svg",
square-plus: "fontawesome/solid/square-plus.svg",
square-poll-horizontal: "fontawesome/solid/square-poll-horizontal.svg",
square-poll-vertical: "fontawesome/solid/square-poll-vertical.svg",
square-root-variable: "fontawesome/solid/square-root-variable.svg",
square-rss: "fontawesome/solid/square-rss.svg",
square-share-nodes: "fontawesome/solid/square-share-nodes.svg",
square-up-right: "fontawesome/solid/square-up-right.svg",
square-virus: "fontawesome/solid/square-virus.svg",
square-xmark: "fontawesome/solid/square-xmark.svg",
square: "fontawesome/solid/square.svg",
staff-snake: "fontawesome/solid/staff-snake.svg",
stairs: "fontawesome/solid/stairs.svg",
stamp: "fontawesome/solid/stamp.svg",
stapler: "fontawesome/solid/stapler.svg",
star-and-crescent: "fontawesome/solid/star-and-crescent.svg",
star-half-stroke: "fontawesome/solid/star-half-stroke.svg",
star-half: "fontawesome/solid/star-half.svg",
star-of-david: "fontawesome/solid/star-of-david.svg",
star-of-life: "fontawesome/solid/star-of-life.svg",
star: "fontawesome/solid/star.svg",
sterling-sign: "fontawesome/solid/sterling-sign.svg",
stethoscope: "fontawesome/solid/stethoscope.svg",
stop: "fontawesome/solid/stop.svg",
stopwatch-20: "fontawesome/solid/stopwatch-20.svg",
stopwatch: "fontawesome/solid/stopwatch.svg",
store-slash: "fontawesome/solid/store-slash.svg",
store: "fontawesome/solid/store.svg",
street-view: "fontawesome/solid/street-view.svg",
strikethrough: "fontawesome/solid/strikethrough.svg",
stroopwafel: "fontawesome/solid/stroopwafel.svg",
subscript: "fontawesome/solid/subscript.svg",
suitcase-medical: "fontawesome/solid/suitcase-medical.svg",
suitcase-rolling: "fontawesome/solid/suitcase-rolling.svg",
suitcase: "fontawesome/solid/suitcase.svg",
sun-plant-wilt: "fontawesome/solid/sun-plant-wilt.svg",
sun: "fontawesome/solid/sun.svg",
superscript: "fontawesome/solid/superscript.svg",
swatchbook: "fontawesome/solid/swatchbook.svg",
synagogue: "fontawesome/solid/synagogue.svg",
syringe: "fontawesome/solid/syringe.svg",
t: "fontawesome/solid/t.svg",
table-cells-large: "fontawesome/solid/table-cells-large.svg",
table-cells: "fontawesome/solid/table-cells.svg",
table-columns: "fontawesome/solid/table-columns.svg",
table-list: "fontawesome/solid/table-list.svg",
table-tennis-paddle-ball: "fontawesome/solid/table-tennis-paddle-ball.svg",
table: "fontawesome/solid/table.svg",
tablet-button: "fontawesome/solid/tablet-button.svg",
tablet-screen-button: "fontawesome/solid/tablet-screen-button.svg",
tablet: "fontawesome/solid/tablet.svg",
tablets: "fontawesome/solid/tablets.svg",
tachograph-digital: "fontawesome/solid/tachograph-digital.svg",
tag: "fontawesome/solid/tag.svg",
tags: "fontawesome/solid/tags.svg",
tape: "fontawesome/solid/tape.svg",
tarp-droplet: "fontawesome/solid/tarp-droplet.svg",
tarp: "fontawesome/solid/tarp.svg",
taxi: "fontawesome/solid/taxi.svg",
teeth-open: "fontawesome/solid/teeth-open.svg",
teeth: "fontawesome/solid/teeth.svg",
temperature-arrow-down: "fontawesome/solid/temperature-arrow-down.svg",
temperature-arrow-up: "fontawesome/solid/temperature-arrow-up.svg",
temperature-empty: "fontawesome/solid/temperature-empty.svg",
temperature-full: "fontawesome/solid/temperature-full.svg",
temperature-half: "fontawesome/solid/temperature-half.svg",
temperature-high: "fontawesome/solid/temperature-high.svg",
temperature-low: "fontawesome/solid/temperature-low.svg",
temperature-quarter: "fontawesome/solid/temperature-quarter.svg",
temperature-three-quarters: "fontawesome/solid/temperature-three-quarters.svg",
tenge-sign: "fontawesome/solid/tenge-sign.svg",
tent-arrow-down-to-line: "fontawesome/solid/tent-arrow-down-to-line.svg",
tent-arrow-left-right: "fontawesome/solid/tent-arrow-left-right.svg",
tent-arrow-turn-left: "fontawesome/solid/tent-arrow-turn-left.svg",
tent-arrows-down: "fontawesome/solid/tent-arrows-down.svg",
tent: "fontawesome/solid/tent.svg",
tents: "fontawesome/solid/tents.svg",
terminal: "fontawesome/solid/terminal.svg",
text-height: "fontawesome/solid/text-height.svg",
text-slash: "fontawesome/solid/text-slash.svg",
text-width: "fontawesome/solid/text-width.svg",
thermometer: "fontawesome/solid/thermometer.svg",
thumbs-down: "fontawesome/solid/thumbs-down.svg",
thumbs-up: "fontawesome/solid/thumbs-up.svg",
thumbtack: "fontawesome/solid/thumbtack.svg",
ticket-simple: "fontawesome/solid/ticket-simple.svg",
ticket: "fontawesome/solid/ticket.svg",
timeline: "fontawesome/solid/timeline.svg",
toggle-off: "fontawesome/solid/toggle-off.svg",
toggle-on: "fontawesome/solid/toggle-on.svg",
toilet-paper-slash: "fontawesome/solid/toilet-paper-slash.svg",
toilet-paper: "fontawesome/solid/toilet-paper.svg",
toilet-portable: "fontawesome/solid/toilet-portable.svg",
toilet: "fontawesome/solid/toilet.svg",
toilets-portable: "fontawesome/solid/toilets-portable.svg",
toolbox: "fontawesome/solid/toolbox.svg",
tooth: "fontawesome/solid/tooth.svg",
torii-gate: "fontawesome/solid/torii-gate.svg",
tornado: "fontawesome/solid/tornado.svg",
tower-broadcast: "fontawesome/solid/tower-broadcast.svg",
tower-cell: "fontawesome/solid/tower-cell.svg",
tower-observation: "fontawesome/solid/tower-observation.svg",
tractor: "fontawesome/solid/tractor.svg",
trademark: "fontawesome/solid/trademark.svg",
traffic-light: "fontawesome/solid/traffic-light.svg",
trailer: "fontawesome/solid/trailer.svg",
train-subway: "fontawesome/solid/train-subway.svg",
train-tram: "fontawesome/solid/train-tram.svg",
train: "fontawesome/solid/train.svg",
transgender: "fontawesome/solid/transgender.svg",
trash-arrow-up: "fontawesome/solid/trash-arrow-up.svg",
trash-can-arrow-up: "fontawesome/solid/trash-can-arrow-up.svg",
trash-can: "fontawesome/solid/trash-can.svg",
trash: "fontawesome/solid/trash.svg",
tree-city: "fontawesome/solid/tree-city.svg",
tree: "fontawesome/solid/tree.svg",
triangle-exclamation: "fontawesome/solid/triangle-exclamation.svg",
trophy: "fontawesome/solid/trophy.svg",
trowel-bricks: "fontawesome/solid/trowel-bricks.svg",
trowel: "fontawesome/solid/trowel.svg",
truck-arrow-right: "fontawesome/solid/truck-arrow-right.svg",
truck-droplet: "fontawesome/solid/truck-droplet.svg",
truck-fast: "fontawesome/solid/truck-fast.svg",
truck-field-un: "fontawesome/solid/truck-field-un.svg",
truck-field: "fontawesome/solid/truck-field.svg",
truck-front: "fontawesome/solid/truck-front.svg",
truck-medical: "fontawesome/solid/truck-medical.svg",
truck-monster: "fontawesome/solid/truck-monster.svg",
truck-moving: "fontawesome/solid/truck-moving.svg",
truck-pickup: "fontawesome/solid/truck-pickup.svg",
truck-plane: "fontawesome/solid/truck-plane.svg",
truck-ramp-box: "fontawesome/solid/truck-ramp-box.svg",
truck: "fontawesome/solid/truck.svg",
tty: "fontawesome/solid/tty.svg",
turkish-lira-sign: "fontawesome/solid/turkish-lira-sign.svg",
turn-down: "fontawesome/solid/turn-down.svg",
turn-up: "fontawesome/solid/turn-up.svg",
tv: "fontawesome/solid/tv.svg",
u: "fontawesome/solid/u.svg",
umbrella-beach: "fontawesome/solid/umbrella-beach.svg",
umbrella: "fontawesome/solid/umbrella.svg",
underline: "fontawesome/solid/underline.svg",
universal-access: "fontawesome/solid/universal-access.svg",
unlock-keyhole: "fontawesome/solid/unlock-keyhole.svg",
unlock: "fontawesome/solid/unlock.svg",
up-down-left-right: "fontawesome/solid/up-down-left-right.svg",
up-down: "fontawesome/solid/up-down.svg",
up-long: "fontawesome/solid/up-long.svg",
up-right-and-down-left-from-center: "fontawesome/solid/up-right-and-down-left-from-center.svg",
up-right-from-square: "fontawesome/solid/up-right-from-square.svg",
upload: "fontawesome/solid/upload.svg",
user-astronaut: "fontawesome/solid/user-astronaut.svg",
user-check: "fontawesome/solid/user-check.svg",
user-clock: "fontawesome/solid/user-clock.svg",
user-doctor: "fontawesome/solid/user-doctor.svg",
user-gear: "fontawesome/solid/user-gear.svg",
user-graduate: "fontawesome/solid/user-graduate.svg",
user-group: "fontawesome/solid/user-group.svg",
user-injured: "fontawesome/solid/user-injured.svg",
user-large-slash: "fontawesome/solid/user-large-slash.svg",
user-large: "fontawesome/solid/user-large.svg",
user-lock: "fontawesome/solid/user-lock.svg",
user-minus: "fontawesome/solid/user-minus.svg",
user-ninja: "fontawesome/solid/user-ninja.svg",
user-nurse: "fontawesome/solid/user-nurse.svg",
user-pen: "fontawesome/solid/user-pen.svg",
user-plus: "fontawesome/solid/user-plus.svg",
user-secret: "fontawesome/solid/user-secret.svg",
user-shield: "fontawesome/solid/user-shield.svg",
user-slash: "fontawesome/solid/user-slash.svg",
user-tag: "fontawesome/solid/user-tag.svg",
user-tie: "fontawesome/solid/user-tie.svg",
user-xmark: "fontawesome/solid/user-xmark.svg",
user: "fontawesome/solid/user.svg",
users-between-lines: "fontawesome/solid/users-between-lines.svg",
users-gear: "fontawesome/solid/users-gear.svg",
users-line: "fontawesome/solid/users-line.svg",
users-rays: "fontawesome/solid/users-rays.svg",
users-rectangle: "fontawesome/solid/users-rectangle.svg",
users-slash: "fontawesome/solid/users-slash.svg",
users-viewfinder: "fontawesome/solid/users-viewfinder.svg",
users: "fontawesome/solid/users.svg",
utensils: "fontawesome/solid/utensils.svg",
v: "fontawesome/solid/v.svg",
van-shuttle: "fontawesome/solid/van-shuttle.svg",
vault: "fontawesome/solid/vault.svg",
vector-square: "fontawesome/solid/vector-square.svg",
venus-double: "fontawesome/solid/venus-double.svg",
venus-mars: "fontawesome/solid/venus-mars.svg",
venus: "fontawesome/solid/venus.svg",
vest-patches: "fontawesome/solid/vest-patches.svg",
vest: "fontawesome/solid/vest.svg",
vial-circle-check: "fontawesome/solid/vial-circle-check.svg",
vial-virus: "fontawesome/solid/vial-virus.svg",
vial: "fontawesome/solid/vial.svg",
vials: "fontawesome/solid/vials.svg",
video-slash: "fontawesome/solid/video-slash.svg",
video: "fontawesome/solid/video.svg",
vihara: "fontawesome/solid/vihara.svg",
virus-covid-slash: "fontawesome/solid/virus-covid-slash.svg",
virus-covid: "fontawesome/solid/virus-covid.svg",
virus-slash: "fontawesome/solid/virus-slash.svg",
virus: "fontawesome/solid/virus.svg",
viruses: "fontawesome/solid/viruses.svg",
voicemail: "fontawesome/solid/voicemail.svg",
volcano: "fontawesome/solid/volcano.svg",
volleyball: "fontawesome/solid/volleyball.svg",
volume-high: "fontawesome/solid/volume-high.svg",
volume-low: "fontawesome/solid/volume-low.svg",
volume-off: "fontawesome/solid/volume-off.svg",
volume-xmark: "fontawesome/solid/volume-xmark.svg",
vr-cardboard: "fontawesome/solid/vr-cardboard.svg",
w: "fontawesome/solid/w.svg",
walkie-talkie: "fontawesome/solid/walkie-talkie.svg",
wallet: "fontawesome/solid/wallet.svg",
wand-magic-sparkles: "fontawesome/solid/wand-magic-sparkles.svg",
wand-magic: "fontawesome/solid/wand-magic.svg",
wand-sparkles: "fontawesome/solid/wand-sparkles.svg",
warehouse: "fontawesome/solid/warehouse.svg",
water-ladder: "fontawesome/solid/water-ladder.svg",
water: "fontawesome/solid/water.svg",
wave-square: "fontawesome/solid/wave-square.svg",
weight-hanging: "fontawesome/solid/weight-hanging.svg",
weight-scale: "fontawesome/solid/weight-scale.svg",
wheat-awn-circle-exclamation: "fontawesome/solid/wheat-awn-circle-exclamation.svg",
wheat-awn: "fontawesome/solid/wheat-awn.svg",
wheelchair-move: "fontawesome/solid/wheelchair-move.svg",
wheelchair: "fontawesome/solid/wheelchair.svg",
whiskey-glass: "fontawesome/solid/whiskey-glass.svg",
wifi: "fontawesome/solid/wifi.svg",
wind: "fontawesome/solid/wind.svg",
window-maximize: "fontawesome/solid/window-maximize.svg",
window-minimize: "fontawesome/solid/window-minimize.svg",
window-restore: "fontawesome/solid/window-restore.svg",
wine-bottle: "fontawesome/solid/wine-bottle.svg",
wine-glass-empty: "fontawesome/solid/wine-glass-empty.svg",
wine-glass: "fontawesome/solid/wine-glass.svg",
won-sign: "fontawesome/solid/won-sign.svg",
worm: "fontawesome/solid/worm.svg",
wrench: "fontawesome/solid/wrench.svg",
x-ray: "fontawesome/solid/x-ray.svg",
x: "fontawesome/solid/x.svg",
xmark: "fontawesome/solid/xmark.svg",
xmarks-lines: "fontawesome/solid/xmarks-lines.svg",
y: "fontawesome/solid/y.svg",
yen-sign: "fontawesome/solid/yen-sign.svg",
yin-yang: "fontawesome/solid/yin-yang.svg",
z: "fontawesome/solid/z.svg"
)
#let fa(name,
baseline: 0.125em,
height: 1.0em,
width: 1.25em) = {
box(
baseline: baseline,
height: height,
width: width,
image(fapath.at(name))
)}
|
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/visualize/shape-circle-02.typ | typst | Other | // Ensure circle directly in rect works.
#rect(width: 40pt, height: 30pt, fill: red,
circle(fill: green))
|
https://github.com/veilkev/jvvslead | https://raw.githubusercontent.com/veilkev/jvvslead/Typst/files/books.typ | typst | #import "../sys/packages.typ": *
#import "../sys/sys.typ": *
#import "../sys/header.typ": *
#import "@preview/bob-draw:0.1.0": *
// Space between header
#v(150pt)
// Shows heading
#text(size: 12pt
)[= Bookkeeping]
#note[
There are multiple ways that you are able to view operator numbers.
]
#grid(columns: (1fr, 1fr),
column-gutter: 0.15in,
)[
#subhead(head: true, "Media Report")
#badge-green("Manager Menu")
#menu("1 (Bank Functions Menu)", "2 (Media Reports)")
#subhead(head: true, "Bank Audit Report")
#badge-green("Manager Menu")
#menu("1 (Bank Functions Menu)","..")
#menu("..", "5 (Audits Reports Menu)")
#menu("...", "1 ( Bank Audit Report - Today)")
][
#subhead(head: true, "Bookkeeping Terminal")
#badge-green("From POS")
#menu("2 (Reports Main Menu)", "4 (Front-End Reports Menu)")
#menu("5 (POS Operator Report)", "F4")
#subhead(head: true, "Reports Main Menu")
#badge-green("From POS")
#menu("2 (Reports Main Menu)", "5 (Detail Journal Report)")
#menu("..", "Arrow Down to [Operator Number]", "HELP")
]
#move(dx: 400pt, dy: -310pt,
box(inset: 20pt, height: 140pt,
stickybox(
rotation: 0deg,
width: 4cm
)[
#underline("Options in bookkeeping"): \
Select (A)ll or (E)xceptions: *A* \x
Group by AuthLevel (Y/N): *N* \
]
))
|
|
https://github.com/CodeHex16/documentazione | https://raw.githubusercontent.com/CodeHex16/documentazione/main/verbali/interni/source/2024-10-22_Discussione-Capitolati.typ | typst | #import "../../../template/verbale.typ": *
#show : doc => verbale(
titolo: "Conferme sulla scelta dei capitolati",
ordine-del-giorno: ("Seconda discussione sui capitolati","Comunicazione con le aziende", "Organizzazione incontri interni"),
data: [22/10/2024],
ora: [14:30-15:30],
tipo: "interno",
versione: [0.2.0],
presenze: (
"<NAME>","Redattore","1h",
"<NAME>","Verificatore","1h",
"<NAME> ","Verificatore ","1h",
"<NAME>","Redattore","1h",
"<NAME>","Verificatore","1h",
"<NAME>","Verificatore","1h",
),
doc,
)
= Seconda discussione sui capitolati
== Revisione dei capitolati proposti
Nel corso di questo incontro, il gruppo ha effettuato una revisione approfondita dei capitolati disponibili, con l’obiettivo di definire una strategia per la scelta finale del progetto da sviluppare. Nello specifico, si è deciso di riconsiderare le preferenze espresse durante il primo incontro, alla luce delle nuove riflessioni e dei criteri emersi dalla discussione.
I capitolati in esame erano complessivamente nove, tra i quali il gruppo ha selezionato tre preferenze principali, ordinate in base a vari fattori, tra cui la presenza di tecnologie innovative (in particolare l'intelligenza artificiale), la rilevanza del progetto nel mercato del lavoro e la fattibilità in termini di competenze richieste.
== Criteri di selezione
Durante la discussione sono emersi i seguenti criteri fondamentali per la scelta dei capitolati:
- *Presenza di tecnologie avanzate*, con particolare attenzione all'intelligenza artificiale, ritenuta un settore chiave per il futuro professionale dei membri del gruppo.
- *Applicabilità nel mondo del lavoro*, ovvero la capacità del progetto di rispondere a esigenze concrete delle aziende e del mercato.
- *Fattibilità del progetto*, basata sulla valutazione delle competenze già acquisite dai membri del gruppo e su quelle da sviluppare durante il percorso.
== Decisioni finali sui capitolati
=== Prima preferenza
Capitolato scelto come prima preferenza:
Capitolato 7 - "*LLM: Assistente Virtuale*" (Azienda: Ergon)
*Motivazioni:*
Il gruppo ha concordato di assegnare la massima priorità al capitolato n. 7, intitolato "LLM: Assistente Virtuale", proposto dall'azienda Ergon. Questo progetto si è distinto per diversi aspetti ritenuti cruciali:
- La rilevanza del progetto in ambito lavorativo: si tratta di una soluzione che potrebbe essere ampiamente richiesta da diverse aziende, soprattutto nell'ottica di sviluppo di assistenti virtuali e chatbot avanzati.
- La forte integrazione di intelligenza artificiale, in particolare con l'uso di modelli linguistici di grandi dimensioni (LLM), elemento chiave che soddisfa l’interesse del gruppo per l’IA.
- La concretezza del progetto, che si presta ad essere applicato in scenari reali e che potrebbe avere un impatto immediato sul mondo aziendale.
=== Seconda preferenza
Capitolato scelto come seconda preferenza:
"*NearYou - Smart custom advertising platform*" (Azienda: Synclab)
*Motivazioni:*
La seconda scelta del gruppo è caduta sul capitolato "NearYou - Smart custom advertising platform", proposto da Synclab. Sebbene la parte di intelligenza artificiale sia meno marcata rispetto alla prima opzione, questo capitolato presenta comunque elementi tecnologici di grande interesse:
- Tecnologie legate alla personalizzazione della pubblicità e all’analisi dei dati, con un focus su algoritmi di machine learning per ottimizzare campagne pubblicitarie.
- Potenziale di utilizzo nel marketing digitale, settore in forte espansione, che richiede soluzioni sempre più innovative per raggiungere target specifici.
- Sfida tecnica interessante, che consentirebbe al gruppo di esplorare nuove aree di sviluppo software, pur mantenendo una certa complessità gestibile.
=== Terza preferenza
Capitolato scelto come terza preferenza:
"*<NAME>*" (Azienda: Vimar)
*Motivazioni:*
Infine, come terza scelta, il gruppo ha optato per il capitolato "<NAME>", presentato da Vimar. Questo progetto si distingue per la sua somiglianza con il capitolato 7, ma con alcune differenze importanti:
- L'output del sistema non è basato su dati predefiniti, ma viene generato a partire da informazioni estratte direttamente dal sito web di Vimar, il che aggiunge una dimensione dinamica interessante.
- La presenza di un sistema di risposta intelligente, che sfrutta dati aziendali reali e richiede una forte integrazione con le tecnologie web.
= Comunicazione con l'azienda Ergon Informatica Srl
Al termine della decisione sui capitolati, il gruppo ha concordato di inviare una prima e-mail all'azienda *Ergon Informatica Srl*, in merito al capitolato "LLM: Assistente Virtuale". L'obiettivo della comunicazione era quello di ottenere maggiori informazioni riguardo al progetto e alle tecnologie consigliate per lo sviluppo.
Sono state poste le seguenti domande:
- Si suppone che per il reperimento dei dati siano supportati almeno i formati .pdf e .txt; ne vengono rischiesti altri?
- Che parametri si vogliono rendere configurabili tramite l'interfaccia utente?
- Citando: _"La piattaforma nel suo complesso, deve tener conto del flusso di interazioni uomo-macchina con i relativi tempi di attesa mantenendo uno stato complessivo sulla conversazione aggiornato."_ ci si riferisce al fatto che l'interazione via chat abbia attese brevi in modo che l'interazione risulti naturale e fluente?
- Pro e contro nell'uso di fonti dati ODBC o di un middleware per la comunicazione tra database e LLM?
- Vengono fornite delle risorse per poter interagire o hostare i LLM (se necessario), soprattutto in vista di una fase di debugging e/o testing del prodotto?
= Organizzazione degli incontri futuri
Come ultimo punto dell'incontro, il gruppo ha discusso riguardo la *programmazione dei prossimi incontri*. Al fine di semplificare la pianificazione e assicurare la massima disponibilità di tutti i membri, è stato creato un #link("https://docs.google.com/spreadsheets/d/16KMeeW7fNX_SnfywgynXvfblE6J0bMLXzpujRgH2c2Q/edit?gid=0#gid=")[#underline[*documento condiviso su Google Fogli*]]. Questo strumento permette a ciascun membro di aggiornare il proprio calendario all'inizio di ogni settimana, specificando la disponibilità suddivisa per giorni e fasce orarie (mattina, primo pomeriggio, tardo pomeriggio, sera).
Nel dettaglio:
- Ogni membro del gruppo inserisce la propria disponibilità scegliendo tra le opzioni: online, in presenza, entrambe, o nessuno.
- Il sistema genera automaticamente un calendario generale, che mostra per ciascuna giornata e fascia oraria quante persone sono disponibili e quale modalità (online o in presenza) è preferibile per gli incontri.
Questa soluzione ci permetterà di ottimizzare la pianificazione degli incontri settimanali, garantendo una partecipazione quanto più possibile completa e coordinata. |
|
https://github.com/Fabioni/Typst-TUM-Thesis-Template | https://raw.githubusercontent.com/Fabioni/Typst-TUM-Thesis-Template/main/README.md | markdown | MIT No Attribution |
[The compiled demo main.pdf](./template/main.pdf)
# tum-exzellenz-thesis
This is a Typst template for a thesis at TU Munich. I made it for my thesis in the School CIT, but I think it can be adapted to other schools as well.
## Usage
You can use this template in the Typst web app by clicking "Start from template"
on the dashboard and searching for `tum-exzellenz-thesis`.
Alternatively, you can use the CLI to kick this project off using the command
```
typst init @preview/tum-exzellenz-thesis
```
Typst will create a new directory with all the files needed to get you started.
## Configuration
This template exports the `tum-exzellenz-thesis` function with the following named arguments:
- `degree`: String
- `program`: String
- `supervisor`: String
- `advisor`: Array of Strings
- `author`: String
- `startDate`: String
- `titleEnglish`: String
- `titleGerman`: String
- `abstract_en`: Content
- `abstract_de`: Content block
- `acknowledgements`: Content block
- `submissionDate`: String
- `showTitleInHeader`: Boolean
- `draft`: Boolean
The template will initialize your package with a sample call to the `tum-exzellenz-thesis` function. |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/touying/0.3.2/themes/default.typ | typst | Apache License 2.0 | #import "../slide.typ": s
// export default self
#let register(self: s, aspect-ratio: "16-9") = {
self.page-args += (
paper: "presentation-" + aspect-ratio,
)
self
}
|
https://github.com/sarahzeller/tud | https://raw.githubusercontent.com/sarahzeller/tud/main/_extensions/sarahzeller/tud/typst-show.typ | typst | MIT License | // Typst custom formats typically consist of a 'typst-template.typ' (which is
// the source code for a typst template) and a 'typst-show.typ' which calls the
// template's function (forwarding Pandoc metadata values as required)
//
// This is an example 'typst-show.typ' file (based on the default template
// that ships with Quarto). It calls the typst function named 'article' which
// is defined in the 'typst-template.typ' file.
//
// If you are creating or packaging a custom typst template you will likely
// want to replace this file and 'typst-template.typ' entirely. You can find
// documentation on creating typst templates here and some examples here:
// - https://typst.app/docs/tutorial/making-a-template/
// - https://github.com/typst/templates
#show: doc => slides(
$if(title)$
title: [$title$],
$endif$
$if(subtitle)$
subtitle: [$subtitle$],
$endif$
$if(author)$
author: "$author$",
$endif$
$if(date)$
date: [$date$],
$endif$
$if(beamer_format)$
beamer-format: ($beamer_format$),
$endif$
$if(font)$
font: [$font$],
$endif$
$if(theme_background)$
theme-background: $theme_background$,
$endif$
$if(theme_text)$
theme-text: $theme_text$,
$endif$
has-section-slides: $has_section_slides$,
doc
)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.