Add first version of workshop slides
This commit is contained in:
parent
0739d26c9e
commit
a57fda18c1
45 changed files with 879 additions and 0 deletions
17
codebeispiele/beispiel.typ
Normal file
17
codebeispiele/beispiel.typ
Normal 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
|
||||
14
codebeispiele/bib-file.bib
Normal file
14
codebeispiele/bib-file.bib
Normal 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{...
|
||||
|
||||
16
codebeispiele/bibliography.typ
Normal file
16
codebeispiele/bibliography.typ
Normal 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"
|
||||
)
|
||||
11
codebeispiele/book-footer.typ
Normal file
11
codebeispiele/book-footer.typ
Normal 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))
|
||||
}})
|
||||
|
||||
12
codebeispiele/book-header.typ
Normal file
12
codebeispiele/book-header.typ
Normal 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))
|
||||
}
|
||||
})
|
||||
|
||||
11
codebeispiele/codly-figure.typ
Normal file
11
codebeispiele/codly-figure.typ
Normal 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.
|
||||
4
codebeispiele/codly-highlights-reference.typ
Normal file
4
codebeispiele/codly-highlights-reference.typ
Normal 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.
|
||||
13
codebeispiele/codly-highlights.typ
Normal file
13
codebeispiele/codly-highlights.typ
Normal 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>
|
||||
7
codebeispiele/example-table.typ
Normal file
7
codebeispiele/example-table.typ
Normal 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]
|
||||
)
|
||||
3
codebeispiele/functions.typ
Normal file
3
codebeispiele/functions.typ
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#align(center)[Zentrierter Text]
|
||||
|
||||
#text(lang: "en")[english text]
|
||||
16
codebeispiele/hayagriva-file.yaml
Normal file
16
codebeispiele/hayagriva-file.yaml
Normal 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
|
||||
...
|
||||
11
codebeispiele/image-float.typ
Normal file
11
codebeispiele/image-float.typ
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#figure(
|
||||
image(
|
||||
"/images/katze.jpg",
|
||||
width: 80%
|
||||
),
|
||||
caption: [
|
||||
Eine Katze
|
||||
],
|
||||
)<img:katze>
|
||||
|
||||
@img:katze zeigt eine Katze.
|
||||
3
codebeispiele/math-block.typ
Normal file
3
codebeispiele/math-block.typ
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
In diesem Absatz geht es um ein wichtiges Thema.
|
||||
Nun folgt eine Gleichung:
|
||||
$ f(x)=x^2 $
|
||||
1
codebeispiele/math-inline.typ
Normal file
1
codebeispiele/math-inline.typ
Normal file
|
|
@ -0,0 +1 @@
|
|||
Hier ist nun ein Fließtext, in den ich eine Gleichung $f(x)=x^2$ setzen möchte.
|
||||
4
codebeispiele/math-numbered.typ
Normal file
4
codebeispiele/math-numbered.typ
Normal 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.
|
||||
11
codebeispiele/math-symbols.typ
Normal file
11
codebeispiele/math-symbols.typ
Normal 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
|
||||
$
|
||||
14
codebeispiele/native-listings.typ
Normal file
14
codebeispiele/native-listings.typ
Normal 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")
|
||||
5
codebeispiele/quotations.typ
Normal file
5
codebeispiele/quotations.typ
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#text(lang: "de")["Beispieltext"]
|
||||
|
||||
#text(lang: "fr")["texte exemple"]
|
||||
|
||||
#text(lang: "en")["example text"]
|
||||
7
codebeispiele/table-alternate-row-color.typ
Normal file
7
codebeispiele/table-alternate-row-color.typ
Normal 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]
|
||||
)
|
||||
6
codebeispiele/table-fr.typ
Normal file
6
codebeispiele/table-fr.typ
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#table(
|
||||
columns: (2fr, 1fr, 2fr),
|
||||
table.header[*Tabellenkopf*][*für*][*Barrierefreiheit*],
|
||||
[Hallo],[Beispiel],[Ende],
|
||||
[Dies],[ist],[Zeile 2]
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue