Add first version of workshop slides

This commit is contained in:
Julius Freudenberger 2026-03-18 18:25:38 +01:00
parent 0739d26c9e
commit a57fda18c1
45 changed files with 879 additions and 0 deletions

View file

@ -0,0 +1,17 @@
#import "@preview/unify:0.7.1": * // Einfügen von Paketen
#set page("a4") // Papierformat
#set document( // Dokumenteninformationen
title: [Dokumententitel]
)
#set text(lang: "de") // Sprache des Dokuments
#show link: set text(blue) // Formatierung (hier: Links in blau)
#title() // Dokumententitel
= Überschrift // Anzahl der = gibt Ebene der Überschrift an
== Unterüberschrift
#outline() // Inhaltsverzeichnis
Beispielhafter Text
- Aufzählung 1 // Aufzählung mit - begonnen
- Aufzählung 2 // Einrückung mit 2 Leerzeichen

View file

@ -0,0 +1,14 @@
@book{kochbuch,
title = {Mathematik für das Ingenieurstudium},
author = {Koch, Jürgen},
editor = {Stämpfle, Martin},
address = {München},
publisher = {Hanser},
year = {2018},
edition = {4., aktualisierte Auflage},
isbn = {9783446451667},
doi = {10.3139/9783446455818},
}
@article{...

View file

@ -0,0 +1,16 @@
// Im Dokument
@citation-key
// oder
#cite(<citation-key>)
// für die Einbindung innerhalb des Satzes
#cite(<citation-key>, form: "prose")
// nur Autor:in
#cite(<citation-key>, form: "author")
// Stelle, an der Literaturverzeichnis erscheinen soll
#bibliography(
("bib/books.bib",
"bib/theses.bib",)
title: "Literaturverzeichnis", // Standardübersetzung Bibliografie
style: "ieee"
)

View file

@ -0,0 +1,11 @@
#set page(footer: context {
let page-num = counter(page).get().first()
let inner-text = [Innerer Text]
let middle-text = [Mittlerer Text]
let outer-text = [#page-num]
if calc.even(page-num) {
grid(columns: (1fr, 1fr, 1fr), align(left, inner-text), align(center, middle-text), align(right, outer-text))
} else {
grid(columns: (1fr, 1fr, 1fr), align(left, outer-text), align(center, middle-text), align(right, inner-text))
}})

View file

@ -0,0 +1,12 @@
#set page(footer: context {
let page-num = counter(page).get().first()
let inner-text = [Innerer Text]
let middle-text = [Mittlerer Text]
let outer-text = [#page-num]
if calc.even(page-num) {
grid(columns: (1fr, 1fr, 1fr), align(left, inner-text), align(center, middle-text), align(right, outer-text))
} else {
grid(columns: (1fr, 1fr, 1fr), align(left, outer-text), align(center, middle-text), align(right, inner-text))
}
})

View file

@ -0,0 +1,11 @@
#figure(
caption: [Beispielcode in Java]
)[
```java
public static void main(String[] args) {
System.out.println("Hello Cyberweek");
}
```
]<code:example-java>
In @code:example-java ist ein wichtiger Codeausschnitt zu sehen.

View file

@ -0,0 +1,4 @@
In @code:codly-highlights wird die alte Syntax verwendet.
Für kleine Projekte kann die `main`-Funktion ohne Parameter und ohne Modifier angegeben werden. Aus @code:codly-highlights:psvm wird dann ```java main() {```.
Außerdem ist nun auch der Aufruf ohne das ```java System.out.``` möglich, wie in @code:codly-highlights:sout dargestellt.

View file

@ -0,0 +1,13 @@
#import "/globals.typ": *
#figure(caption: [Highlights in codly])[
#codly(highlights: (
(line: 1, fill: blue, label: <code:codly-highlights:psvm>),
(line: 2, start: 3, end: 13, fill: red, label: <code:codly-highlights:sout>),
))
```java
public static void main(String[] args) {
System.out.println("Hello Cyberweek");
}
```
]<code:codly-highlights>

View file

@ -0,0 +1,7 @@
#table(
columns: 3,
align: (left, center, right),
table.header[*Tabellenkopf*][*für*][*Barrierefreiheit*],
[Hallo],[Beispiel],[Ende],
[Dies],[ist],[Zeile 2]
)

View file

@ -0,0 +1,3 @@
#align(center)[Zentrierter Text]
#text(lang: "en")[english text]

View file

@ -0,0 +1,16 @@
kochbuch:
type: book
title: Mathematik für das Ingenieurstudium
author: Koch, Jürgen
date: 2018
editor: Stämpfle, Martin
publisher:
name: Hanser
location: München
edition: 4., aktualisierte Auflage
serial-number:
doi: 10.3139/9783446455818
isbn: '9783446451667'
artikel:
type: article
...

View file

@ -0,0 +1,11 @@
#figure(
image(
"/images/katze.jpg",
width: 80%
),
caption: [
Eine Katze
],
)<img:katze>
@img:katze zeigt eine Katze.

View file

@ -0,0 +1,3 @@
In diesem Absatz geht es um ein wichtiges Thema.
Nun folgt eine Gleichung:
$ f(x)=x^2 $

View file

@ -0,0 +1 @@
Hier ist nun ein Fließtext, in den ich eine Gleichung $f(x)=x^2$ setzen möchte.

View file

@ -0,0 +1,4 @@
In diesem Absatz geht es um ein wichtiges Thema.
Nun folgt eine Gleichung:
#math.equation(block: true, numbering: "(1)")[$f(x)=x^2$]<eq:example-block>
In @eq:example-block steht eine wichtige Gleichung.

View file

@ -0,0 +1,11 @@
$
f(x)=x^2 \
f_(x y)(x)=x^(2-y) \
pi approx 3.14 \
2 dot 4 <= 8 \
1 < 2 > 1, 2 != 3 \
1 lt 2 gt 1, 2 eq.not 3, 4 lt.eq 8 \
(f^(-1)_x) \
frac(2,4) + frac(1, frac(5,17)) \
sqrt(16) = 4, root(4, 64) = 2
$

View file

@ -0,0 +1,14 @@
`Text in Monospacefont`
Javacode im ```java public static``` Fließtext
```java
public static void main() {
println("Hallo Cyberweek");
}
```
#raw("def main():
print(\"Hallo Cyberweek\")",
block: true,
lang: "python")

View file

@ -0,0 +1,5 @@
#text(lang: "de")["Beispieltext"]
#text(lang: "fr")["texte exemple"]
#text(lang: "en")["example text"]

View file

@ -0,0 +1,7 @@
#table(
columns: 3,
fill: (x, y) => if calc.odd(y) { green.lighten(80%) },
table.header[*Tabellenkopf*][*für*][*Barrierefreiheit*],
[Hallo],[Beispiel],[Ende],
[Dies],[ist],[Zeile 2]
)

View file

@ -0,0 +1,6 @@
#table(
columns: (2fr, 1fr, 2fr),
table.header[*Tabellenkopf*][*für*][*Barrierefreiheit*],
[Hallo],[Beispiel],[Ende],
[Dies],[ist],[Zeile 2]
)