Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
5fdfdf0
fix wrong symbol for "much smaller than"
Opisek Dec 6, 2024
51ad5cc
fix wrong font for "det"
Opisek Dec 6, 2024
ceafb42
fix inconsistent usage of mathcal
Opisek Dec 6, 2024
1bf40d7
fix wrong font for "lin"
Opisek Dec 6, 2024
bdeda05
fix more lacking math mode
Opisek Dec 6, 2024
ff02f46
revert mistakenly changed tabulation
Opisek Dec 6, 2024
b396d08
Merge branch 'latex4ei:master' into master
Opisek Jan 31, 2025
abf6635
add function name conventions for u, q, i, Φ
Opisek Jan 31, 2025
70081d6
dualwandlung von reaktanzen
Opisek Jan 31, 2025
ac73a8e
mehr mathe
Opisek Jan 31, 2025
bc75d2e
add more elements from the lecture
Opisek Jan 31, 2025
3216e5e
mention of how to calculate i_q
Opisek Jan 31, 2025
84ed4d9
fix a typo
Opisek Jan 31, 2025
e9fcc49
fix wrong function names
Opisek Jan 31, 2025
af559e6
fix workflow
dariusptrs Feb 5, 2025
4b9b17f
wrong linear derivative
Opisek Feb 7, 2025
f366814
missing constant
Opisek Feb 7, 2025
e4371d5
abs val for 1/x derivative
Opisek Feb 7, 2025
f247da7
missing minus
Opisek Feb 7, 2025
788e9a0
missing minus
Opisek Feb 7, 2025
3d92615
more consice explanation
Opisek Feb 7, 2025
234513f
dual element definition
Opisek Feb 7, 2025
9430b5b
add chi relation
Opisek Feb 7, 2025
0473044
add phi relation
Opisek Feb 7, 2025
c3ca616
add cramer'sche regel
Opisek Feb 7, 2025
0e5705d
fix missing backslashes
Opisek Feb 7, 2025
b33bdc5
add section about complex numbers
Opisek Feb 7, 2025
505294a
matrix/vector styling issues
Opisek Feb 7, 2025
7d6623f
add duality symbol
Opisek Feb 7, 2025
31ceb38
source conversion
Opisek Feb 7, 2025
1a43bd7
kreisfrequenz
Opisek Feb 7, 2025
9863260
typo
Opisek Feb 8, 2025
1c20abe
typo
Opisek Feb 8, 2025
5395527
add example
Opisek Feb 8, 2025
2d021bb
fix typo
Opisek Feb 8, 2025
b06f789
fix latexdiff fail
dariusptrs Feb 9, 2025
f2873cf
fix latexdiff fail 2
dariusptrs Feb 9, 2025
ce83555
case distinction for polar angles
Opisek Feb 9, 2025
827a568
change definition for Knoten-Stromquellenvektor
dariusptrs Feb 9, 2025
9269784
update Zenerdiode
dariusptrs Feb 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 51 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: CI

on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down Expand Up @@ -33,22 +31,67 @@ jobs:
fetch-depth: 0

- name: Configure Git safe directory with GITHUB_WORKSPACE
run: git config --global --add safe.directory $GITHUB_WORKSPACE

- name: Build
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

# Build documents via CMake
- name: Build documents
run: |
cmake --version; pdflatex --version
cmake --version
pdflatex --version

# Create and enter the build directory.
mkdir -p build && cd build
cmake ..
make

# Prepare the "original" version from the default branch.
- name: Checkout default branch for diff
run: |
git fetch origin ${{ github.event.repository.default_branch }}
git worktree add original origin/${{ github.event.repository.default_branch }}

# Run latexdiff on each document.
- name: Run latexdiff on documents
run: |
# Install latexdiff if not present
apt-get install -y latexdiff

# Create a directory to hold diff outputs.
mkdir -p diff

- name: Upload artifact
# Loop over each PDF in the build folder.
for pdf in build/*.pdf; do
# Extract the basename (e.g. "document" from "document.pdf")
filename=$(basename "$pdf" .pdf)

if [ -f "$filename.tex" ] && [ -f original/"$filename.tex" ]; then
echo "Running latexdiff on $filename.tex"
# Generate a diff TeX file.
latexdiff original/"$filename.tex" "$filename.tex" > diff/"${filename}_diff.tex"
# Compile the diff file to produce a diff PDF.
pdflatex -output-directory=diff diff/"${filename}_diff.tex"
else
echo "Skipping $filename: Corresponding .tex file not found in one of the branches."
fi
done

# Upload the PDFs produced by build.
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact
path: ./build/*.pdf
path: build/*.pdf

# Upload the diff PDFs produced by latexdiff.
- name: Upload latexdiff artifact
uses: actions/upload-artifact@v4
with:
name: latexdiff-artifact
path: diff/*.pdf

- name: Comment on PR with artifact link
if: ${{ github.event_name == 'pull_request' }}
continue-on-error: true
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
215 changes: 189 additions & 26 deletions Schaltungstechnik.tex

Large diffs are not rendered by default.

Binary file added img/char/char_diode_tunnel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/char/char_diode_zener.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/char/char_resistor_concave.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/char/char_resistor_convex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/source_conv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/symb/symb_diode_tunnel2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/symb/symb_diode_zener3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/symb/symb_resistor_concave.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/symb/symb_resistor_convex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading