-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from FussballAndy/feature/tudaexercise
Add tudaexercise template
- Loading branch information
Showing
20 changed files
with
633 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,8 @@ tudapub*.pdf | |
example_*.pdf | ||
test*.pdf | ||
|
||
!example_tudapub.pdf | ||
!example_tudapub.pdf | ||
|
||
.vscode | ||
.DS_Store | ||
.venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.jpeg | ||
*.png | ||
*.svg | ||
!tuda_replace.svg |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#let calc-color-component(srgb) = { | ||
if srgb <= 0.03928 { | ||
return srgb / 12.92 | ||
} else { | ||
return calc.pow((srgb + 0.055) / 1.055, 2.4) | ||
} | ||
} | ||
|
||
#let calc-relative-luminance(color) = { | ||
let rgb_color = rgb(color.to-hex()) | ||
let components = rgb_color.components(alpha: false) | ||
|
||
let r_srgb = float(components.at(0)) | ||
let b_srgb = float(components.at(1)) | ||
let g_srgb = float(components.at(2)) | ||
return calc-color-component(r_srgb) * 0.2126 + calc-color-component(b_srgb) * 0.0722 + calc-color-component(g_srgb) * 0.7152 | ||
} | ||
|
||
#let calc-contrast(rl1, rl2) = { | ||
let l1 = calc.max(rl1, rl2) | ||
let l2 = calc.min(rl1, rl2) | ||
return (l1 + 0.05) / (l2 + 0.05) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#let overwrite-dict(new, base) = { | ||
for key in base.keys() { | ||
if key in new { | ||
base.insert(key, new.at(key)) | ||
} | ||
} | ||
return base | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#import "tudaexercise.typ": tuda-exercise | ||
#import "common/tudacolors.typ": tuda_colors | ||
#import "tudaexercise.typ": tudaexercise | ||
#import "common/headings.typ": tuda-section, tuda-subsection | ||
#import "common/tudacolors.typ": tuda_colors, text_colors as tuda_text_colors | ||
#import "common/props.typ": * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#let dict_de = ( | ||
sheet: "Übungsblatt", | ||
task: "Aufgabe", | ||
locale: "ger" | ||
) | ||
|
||
#let dict_en = ( | ||
sheet: "Sheet", | ||
task: "Task", | ||
locale: "eng" | ||
) |
Oops, something went wrong.