Skip to content

Commit

Permalink
add img function
Browse files Browse the repository at this point in the history
  • Loading branch information
toebiDE committed Feb 28, 2024
1 parent 083a438 commit 8a8673c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
Binary file added Images/Test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 15 additions & 4 deletions Template/customFunctions.typ
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
#let codeFigure(caption, plabel, filename) = [
#figure(
caption: caption,
kind: "code",
supplement: [Code],
include "../Code/" + filename + ".typ"
caption: caption,
kind: "code",
supplement: [Code],
include "../Code/" + filename + ".typ"
) #plabel
]

#let imageFigure(caption, plabel, filename, height: auto, width: auto) = [
#figure(
image("../Images/" + filename, height: height, width: width),
caption: caption,
) #plabel
]




// header
#import "@preview/hydra:0.3.0": hydra

#let getCurrentHeadingHydra(loc, topLevel: false) = {
Expand Down
2 changes: 1 addition & 1 deletion Template/template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
set page(header: none)

// bibliography
bibliography("../sources.yaml", style: "springer-lecture-notes-in-computer-science")
bibliography("../sources.yaml", style: "springer-lecture-notes-in-computer-science", title: "Literaturverzeichnis")
}


8 changes: 2 additions & 6 deletions main.typ
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@
)







#import "@preview/hydra:0.3.0": hydra, anchor
= Introduction

What is ```rust fn main()``` in Rust
Expand All @@ -38,6 +32,8 @@ would be ```c int main()``` in C.

In @HelloWorld you can see...

#imageFigure("Bild", <Test>, "Test.png", width: 40%)



== Zitieren
Expand Down

0 comments on commit 8a8673c

Please sign in to comment.