Created theme

This commit is contained in:
Marius Drechsler 2025-06-15 15:20:41 +02:00
commit 424eeef545
Signed by: marius
GPG key ID: 56D4131BA3104777
14 changed files with 453 additions and 0 deletions

178
template/conf.typ Normal file
View file

@ -0,0 +1,178 @@
#import "@preview/touying:0.6.1": *
#let slide(title: auto, ..args) = touying-slide-wrapper(self => {
let info = self.info + args.named()
if title != auto {
self.store.title = title
}
let header(self) = {
set align(top)
set text(fill: rgb("0065BD"), size: 25pt, weight: "bold")
place(top + right,
dx: -1em,
dy: 1em,
image("./resources/TUM_Logo_blau.svg", width: 7%)
)
v(1.5em)
h(1em)
utils.display-current-heading(level: 1)
v(-1.6em)
linebreak()
h(1em)
set text(fill: rgb("005293"), size: 20pt)
if self.store.title != none {
utils.call-or-display(self, self.store.title)
} else {
utils.display-current-heading(level: 2)
}
}
let footer(self) = {
set align(bottom)
show: pad.with(.4em)
set text(size: 14pt)
h(1em)
h(1fr)
grid(
columns: (1fr, 4fr, 1fr, 1fr),
align: center,
grid.cell(align: left)[
#h(1em)
#info.footer-author],
info.title,
utils.display-info-date(self),
grid.cell(align: right)[
#context [#utils.slide-counter.display()/#utils.last-slide-number] #h(1em)]
)
}
self = utils.merge-dicts(
self,
config-page(
header: header,
footer: footer,
),
)
touying-slide(self: self, ..args)
})
#let title-slide(..args) = touying-slide-wrapper(self => {
let info = self.info + args.named()
let header = {
set text(fill: rgb("0065BD"), size: 25pt, weight: "bold")
place(top + right,
dx: -1em,
dy: 1em,
image("./resources/TUM_Logo_blau.svg", width: 7%)
)
place(top + left,
dy: 3em,
dx: 0.9em,
grid(
columns: (3fr, 1fr),
[
#set text(fill: rgb("0065BD"), size: 32pt, weight: "bold")
#info.title
]
)
)
}
let body = {
set text(weight: "bold")
v(5em)
info.author
v(2em)
set text(weight: "regular")
utils.display-info-date(self)
place(bottom + right,
dx: 2em,
dy: 2em,
image("./resources/TUM_Tower.png", width: 50%)
)
}
self = utils.merge-dicts(
self,
config-page(
header: header,
),
)
touying-slide(self: self, body)
})
#let outline-slide(..args) = touying-slide-wrapper(self => {
let header = {
set text(fill: rgb("0065BD"), size: 25pt, weight: "bold")
place(top + right,
dx: -1em,
dy: 1em,
image("./resources/TUM_Logo_blau.svg", width: 7%)
)
place(top + left,
dy: 3em,
dx: 0.9em,
grid(
columns: (3fr, 1fr),
[
#set text(fill: rgb("0065BD"), size: 25pt, weight: "bold")
Outline
]
)
)
}
let body = {
show outline.entry: it => link(
it.element.location(),
[
#it.body() #linebreak() #v(1em)
]
)
align(horizon)[
#outline(title: none, depth: 1)
//#utils.slide-counter.update(0)
]
}
self = utils.merge-dicts(
self,
config-page(
header: header,
),
)
touying-slide(self: self, body)
})
#let tum-slides(
aspect-ratio: "16-9",
footer: none,
..args,
language: "en",
body,
) = {
set text(size: 20pt, font: "TUM Neue Helvetica", lang: language)
set par(spacing: 0.6em)
show: touying-slides.with(
config-page(
paper: "presentation-" + aspect-ratio,
margin: (top: 5.5em, left: 1.2em),
),
config-common(
slide-fn: slide,
datetime-format: "[day].[month].[year]"
),
config-store(
title: none,
footer: footer,
),
..args,
)
title-slide()
outline-slide()
body
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 KiB

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="Ebene_1" x="0px" y="0px" width="408.16" height="212.46684" viewBox="-16.014 -31 408.16 212.46684" enable-background="new -16.014 -31 149 114" xml:space="preserve" sodipodi:docname="TUM_Web_Logo_blau.svg" inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"><metadata id="metadata13"><rdf:RDF><cc:Work rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:title>TUM_Web_Logo_blau</dc:title></cc:Work></rdf:RDF></metadata><defs id="defs11"/><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1920" inkscape:window-height="986" id="namedview9" showgrid="false" fit-margin-top="0" fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" inkscape:zoom="1.754386" inkscape:cx="124.61021" inkscape:cy="115.2546" inkscape:window-x="-11" inkscape:window-y="-11" inkscape:window-maximized="1" inkscape:current-layer="Ebene_1"/>
<title id="title2">TUM_Web_Logo_blau</title>
<desc id="desc4">TUM</desc>
<path fill="#3070b3" d="m 140.54052,-31 v 173.32822 h 44.72985 V -31 H 392.146 V 181.46685 H 353.00738 V 8.138629 H 308.2775 V 181.46685 H 269.13887 V 8.138629 H 224.40902 V 181.46685 H 101.4019 V 8.138629 H 62.26327 V 181.46685 H 23.12462 V 8.138629 H -16.014 V -31 Z" id="path6" style="stroke-width:5.59123"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB