Added a build script
Some checks failed
Build Typst PDFs (Docker) / build-typst (push) Failing after 31s

This commit is contained in:
alexander
2025-12-14 16:36:05 +01:00
parent 5a7e4764cc
commit 9bba9a337a
4 changed files with 214 additions and 8 deletions

View File

@@ -0,0 +1,46 @@
# .gitea/workflows/typst-build.yml
name: Build Typst PDFs (Docker)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Change this to the folder that contains your .typ files (relative to repo root)
env:
TYPST_SOURCE_DIR: src
BUILD_DIR: build
jobs:
build-typst:
runs-on: ubuntu-latest
# Run the whole job inside a Docker container that has Typst installed
container:
image: ghcr.io/typst/typst:latest
options: --user root
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Show Typst & OS versions
run: |
typst --version || true
uname -a
- name: Compile all .typ files
shell: bash
run: |
TYPST_SOURCE_DIR="${TYPST_SOURCE_DIR}"
BUILD_DIR="${BUILD_DIR}"
./compile-all.bash
- name: Upload PDFs
if: always()
uses: actions/upload-artifact@v4
with:
name: typst-pdfs
path: ${{ env.BUILD_DIR }}/
if-no-files-found: warn

View File

@@ -1,11 +1,30 @@
#!/bin/bash #!/usr/bin/env bash
# Find all .typ files under src/ (recursive) into an array set -euo pipefail
mapfile -d '' LIST_OF_TYPST_FILES < <(find src -maxdepth 1 -type f -name '*.typ' -print0) SRC_DIR="${TYPST_SOURCE_DIR}"
OUT_DIR="${BUILD_DIR}"
rm -rf output if [[ ! -d "$SRC_DIR" ]]; then
mkdir -p output echo "Source directory '$SRC_DIR' does not exist."
exit 1
fi
for FILE in "${LIST_OF_TYPST_FILES[@]}"; do mkdir -p "$OUT_DIR"
typst compile "$FILE" output/"$(basename "${FILE%.*}").pdf"
done # Find all .typ files under $SRC_DIR (excluding hidden dirs)
mapfile -d '' files < <(printf '%s\0' "$SRC_DIR"/*.typ 2>/dev/null)
if [[ ${#files[@]} -eq 0 ]]; then
echo "No .typ files found in '$SRC_DIR'."
exit 0
fi
for f in "${files[@]}"; do
# Trim leading ./ if present
rel="${f#./}"
# Destination path: build/<same-subdirs>/<filename>.pdf
dest_pdf="${OUT_DIR}/$(basename "${rel%.typ}").pdf"
echo "Compiling: $f -> $dest_pdf"
typst compile "$f" "$dest_pdf"
done

141
src/Analysis_rewrite.typ Normal file
View File

@@ -0,0 +1,141 @@
#set page(
paper: "a4",
margin: (
bottom: 10mm,
top: 5mm,
left: 5mm,
right: 5mm
),
flipped:true,
numbering: "— 1 —",
number-align: center
)
#set text(
size: 8pt,
)
#place(top+center, scope: "parent", float: true, heading(
[Analysis 1 (IE)]
))
#let subHeading(it: content, fill: color) = {
box(
align(
top+center,
text(
it,
size: 10pt,
weight: "regular",
style: "italic",
)
),
fill: fill,
width: 100%,
inset: 1mm,
height: auto
)
}
#let SeperatorLine = line(length: 100%, stroke: (paint: black, thickness: 0.3mm))
#let MathAlignLeft(e) = {
align(left, block(e))
}
#let colorFolgen = color.hsl(202.05deg, 92.13%, 75.1%)
#let colorReihen = color.hsl(280deg, 92.13%, 75.1%)
#let colorAbleitung = color.hsl(356.92deg, 92.13%, 75.1%)
#let colorIntegral = color.hsl(34.87deg, 92.13%, 75.1%)
#columns(5, gutter: 2mm)[
#subHeading(fill: colorFolgen, it: [Folgen])
$ lim_(x -> infinity) a_n $
*Beschränkt:* $exists k in RR$ sodass $abs(a_n) <= k$
- Beweiße: durch Induktion
- Beweiße: Hat min. ein konvergent Teilefolge
- (Beweiße: Ungleichung $abs(a_n) <= k$)
*Monoton fallend/steigended*
- Beweise: Induktion
#grid(columns: (1fr, 1fr),
gutter: 1mm,
row-gutter: 2mm,
align(top+center, [*Fallend*]), align(top+center, [*Fallend*]),
[$ a_(n+1) <= a_(n) $],
[$ a_(n+1) >= a_(n) $],
[$ a_(n+1)/a_(n) > 1 $],
[$ a_(n+1)/a_(n) < 1 $],
)
*Konvergentz Allgemein*
$ lim_(n -> infinity) a_n = a $
$forall epsilon > 0 space exists n_epsilon in NN$ sodass \
- Konvergent $-> a$: $a_n in [a - epsilon, a + epsilon] $
- Divergent $-> infinity$: $a_n in [epsilon, infinity) $
- Divergent $-> infinity$: $a_n in (-infinity, epsilon) $
$space forall n > n_epsilon$
*Konvergentz Häufungspunkte*
- $a_n -> a <=>$ Alle Teilfolgen $-> a$
*Konvergenz Beweißen*
- Monoton UND Beschränkt $=>$ Konvergenz
NICHT Umgekehert
- (Cauchyfolge \
$forall epsilon > 0 space exists n_epsilon in NN space$ sodass \
$forall m,n >= n_epsilon : abs(a_n - a_m) < epsilon$ \
Cauchyfolge $=>$ Konvergenz)
*Konvergent Grenzwert finden*
- Von Bekannten Ausdrücken aufbauen
- Fixpunk Gleichung: $a = f(a)$ \
für $a_(n+1) = f(a_n)$
- Bernoulli-Ungleichung Folgen der Art $(a_n)^n$: \
$(1 + a)^n >= 1 + n a$
#subHeading(fill: colorFolgen, it: [Konvergent Folge Regeln])
#grid(
columns: (auto, auto),
align: bottom,
gutter: 2mm,
[$ lim_(n->infinity) (a_n + b_n) = a + b $],
grid.cell(
rowspan: 2,
[$ lim_(n->infinity) (a_n / b_n) = a / b $ für ($b != 0$)],
),
MathAlignLeft($ lim_(n->infinity) (a_n dot b_n) = a dot b $),
MathAlignLeft($ lim_(n->infinity) sqrt(a_n) = sqrt(a) $),
MathAlignLeft($ lim_(n->infinity) abs(a_n) = abs(a) $),
MathAlignLeft($ lim_(n->infinity) c dot a_n = c dot lim_(n->infinity) a_n $),
)
#subHeading(fill: colorFolgen, it: [Bekannte Folgen])
#grid(
columns: (auto, auto, auto),
column-gutter: 4mm,
row-gutter: 2mm,
align: bottom,
MathAlignLeft($ lim_(n->infinity) 1/n = 0 $),
MathAlignLeft($ lim_(n->infinity) q^n = 0 $),
MathAlignLeft($ lim_(n->infinity) q^n = 0 $),
grid.cell(colspan: 2, MathAlignLeft($ lim_(n->infinity) sqrt(n) = + infinity $)), [],
grid.cell(colspan: 2, MathAlignLeft($ lim_(n->infinity) k = k, k in RR $)), [],
grid.cell(colspan: 2, MathAlignLeft($ exp(x) = e^x = lim_(n->infinity) (1 + x/n)^n $))
)
#subHeading(fill: colorReihen, it: [Reihen])
#subHeading(fill: colorReihen, it: [Potenzreihen])
#subHeading(fill: colorAbleitung, it: [Funktionen])
#subHeading(fill: colorAbleitung, it: [Ableitung])
#colbreak()
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB