import
This commit is contained in:
commit
68495d7a47
5 changed files with 168 additions and 0 deletions
BIN
src/lib.pdf
Normal file
BIN
src/lib.pdf
Normal file
Binary file not shown.
67
src/lib.typ
Normal file
67
src/lib.typ
Normal file
|
|
@ -0,0 +1,67 @@
|
||||||
|
|
||||||
|
#let accent = rgb(75, 50, 200)
|
||||||
|
#let yellow = rgb(255, 243, 0, 100)
|
||||||
|
#let darkyellow = rgb(255, 213, 00, 150)
|
||||||
|
|
||||||
|
#let document(
|
||||||
|
title: [Title],
|
||||||
|
task: [Task],
|
||||||
|
university: [Universität Graz],
|
||||||
|
institute: [Uni for Life],
|
||||||
|
course: [Course name],
|
||||||
|
instructor: [Instructor],
|
||||||
|
author: [Firstname Lastname],
|
||||||
|
date: [#datetime.today().display("[day]. [month repr:long] [year]")],
|
||||||
|
fontsize: 1.269em,
|
||||||
|
logo: "logo_uniforlife.svg",
|
||||||
|
lang: "de",
|
||||||
|
|
||||||
|
body
|
||||||
|
) = {
|
||||||
|
let doublerule = [#set text(1pt, bottom-edge: "descender")
|
||||||
|
#line(length: 100%, stroke: darkyellow+2pt)#line(length: 100%, stroke: luma(150)+1pt)
|
||||||
|
]
|
||||||
|
show heading: smallcaps
|
||||||
|
|
||||||
|
show link: it => underline(stroke: yellow+0.2em, offset: 0.15em, evade: false, background: true)[#it]
|
||||||
|
|
||||||
|
let ulink(.. args) = {
|
||||||
|
[#underline(stroke: darkyellow+0.2em, offset: 0em, evade: false, background: true)[#link(.. args)]]
|
||||||
|
}
|
||||||
|
|
||||||
|
set page(
|
||||||
|
margin: (top: 8em, bottom: 5em),
|
||||||
|
header: context {
|
||||||
|
if counter(page).get().first() == 1 [
|
||||||
|
#set text(0.7em, top-edge: 1em)
|
||||||
|
#grid(inset: 0.1em, columns: (1fr, auto, 1fr), align: (left, center, right),
|
||||||
|
course,
|
||||||
|
[#emph(author)],
|
||||||
|
grid.cell(rowspan:3)[#image(logo, height: 3em)],
|
||||||
|
instructor, grid.cell(rowspan: 2)[#set text(1.3em); #align(bottom)[#task]],
|
||||||
|
date)
|
||||||
|
#doublerule
|
||||||
|
] else [
|
||||||
|
#set text(0.7em, top-edge: 1em)
|
||||||
|
#align(right)[#image(logo, height: 3em)]
|
||||||
|
#doublerule
|
||||||
|
]},
|
||||||
|
footer: context [
|
||||||
|
#doublerule
|
||||||
|
#v(0.5em)
|
||||||
|
#align(center)[#counter(page).display("1 / 1", both: true)]
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
let leading = 1.5em
|
||||||
|
let leading = leading - 0.75em // "Normalization"
|
||||||
|
set block(spacing: leading)
|
||||||
|
set par(spacing: leading, leading: leading, first-line-indent: 2em, justify: true)
|
||||||
|
set text(top-edge: 0.7em, fontsize, lang: lang)
|
||||||
|
|
||||||
|
v(-0.5cm)
|
||||||
|
align(center)[#text(1.1em)[#underline(stroke: darkyellow+0.5em, extent: 0.1em, offset: 0.05em, evade: false, background: true)[#smallcaps([=== *#title*])]]]
|
||||||
|
v(0.5cm)
|
||||||
|
|
||||||
|
body
|
||||||
|
}
|
||||||
64
src/logo_uniforlife.svg
Normal file
64
src/logo_uniforlife.svg
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 23.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256.53 101.85" style="enable-background:new 0 0 256.53 101.85;" xml:space="preserve">
|
||||||
|
<style type="text/css">
|
||||||
|
.Grün_x0020_bogenförmig{fill:url(#SVGID_1_);stroke:#FFFFFF;stroke-width:0.25;stroke-miterlimit:1;}
|
||||||
|
.st0{fill:#C6C7C8;}
|
||||||
|
.st1{fill:#FFFFFF;}
|
||||||
|
.st2{fill:#FFD500;}
|
||||||
|
.st3{fill:#1A171B;}
|
||||||
|
.st4{fill:none;stroke:#1A171B;stroke-width:0.048;stroke-miterlimit:3.864;}
|
||||||
|
.st5{fill:#FFD400;}
|
||||||
|
.st6{display:none;}
|
||||||
|
.st7{display:inline;fill:#E1007A;}
|
||||||
|
</style>
|
||||||
|
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="-455.0492" y1="1241.8823" x2="-454.3421" y2="1241.1752">
|
||||||
|
<stop offset="0" style="stop-color:#249E2E"/>
|
||||||
|
<stop offset="0.9831" style="stop-color:#1C371D"/>
|
||||||
|
</linearGradient>
|
||||||
|
<g id="Ebene_1">
|
||||||
|
<g>
|
||||||
|
<rect x="137.29" class="st0" width="119.24" height="101.85"/>
|
||||||
|
<rect x="142.54" y="5.25" class="st1" width="34.79" height="91.33"/>
|
||||||
|
<rect x="177.33" y="5.25" class="st2" width="73.94" height="91.33"/>
|
||||||
|
<path class="st3" d="M202.93,58.47v10.76c0,4.71,4.08,8.29,8.79,8.29c4.71-0.01,8.78-3.58,8.78-8.29V58.47h-5.35v9.96 c0,2.36-1.41,3.93-3.45,3.93c-2.04,0-3.45-1.47-3.45-3.93v-9.96L202.93,58.47z"/>
|
||||||
|
<path class="st4" d="M202.93,58.47v10.76c0,4.71,4.08,8.29,8.79,8.29c4.71-0.01,8.78-3.58,8.78-8.29V58.47h-5.35v9.96 c0,2.36-1.41,3.93-3.45,3.93c-2.04,0-3.45-1.47-3.45-3.93v-9.96L202.93,58.47z"/>
|
||||||
|
<polygon class="st3" points="223.11,58.12 224.61,58.12 234.32,66.91 234.32,58.47 239.62,58.47 239.62,77.4 237.99,77.4 228.42,68.72 228.42,77.16 223.1,77.16 "/>
|
||||||
|
<polygon class="st4" points="223.11,58.12 224.61,58.12 234.32,66.91 234.32,58.47 239.62,58.47 239.62,77.4 237.99,77.4 228.42,68.72 228.42,77.16 223.1,77.16 "/>
|
||||||
|
<rect x="242.49" y="58.47" class="st3" width="5.32" height="18.68"/>
|
||||||
|
<rect x="242.49" y="58.47" class="st4" width="5.32" height="18.68"/>
|
||||||
|
<path class="st3" d="M247.89,91.26h-9.04v-0.84l4.71-7.44h-4.64v-2.55h8.97v0.62l-4.92,7.66h4.92V91.26z M235.03,91.26l-0.9-1.88 h-4l-0.9,1.88h-6.11l-2.09-3.16h-1.64v3.16h-3.02V80.43h5.17c2.42,0,4.02,1.67,4.02,3.83c0,1.47-0.64,2.53-1.9,3.06l2.57,3.64 l5.63-10.63h0.71l5.62,10.94H235.03z M213.78,88.84c-0.86,1.65-2.83,2.62-4.92,2.62c-3.41,0-5.73-2.52-5.73-5.62 c0-3.1,2.62-5.62,5.73-5.62c1.87,0,3.52,0.9,4.55,2.3l-2.2,1.56c-0.58-0.79-1.29-1.24-2.34-1.24c-1.77,0-2.96,1.23-2.96,2.99 c0,1.76,1.23,2.92,3,2.92c1.54,0,2.39-0.63,2.6-1.42h-1.84v-1.98h4.6l0,0.9C214.27,87.21,214.16,88.11,213.78,88.84 M177.33,96.59 h73.95V78.93h-73.95V96.59z M230.93,87.16h2.4l-1.18-2.83L230.93,87.16z M221.26,82.98h-1.86v2.57h1.86c1.16,0,1.51-0.57,1.51-1.3 C222.76,83.55,222.42,82.98,221.26,82.98"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path class="st5" d="M25.51,0c-6.44,10.24-10.16,22.36-10.16,35.35c0,36.73,29.77,66.5,66.5,66.5c14.87,0,28.6-4.88,39.68-13.13 V72.26c-9.89,10.63-24.01,17.29-39.68,17.29c-29.93,0-54.2-24.27-54.2-54.2c0-13.5,4.94-25.86,13.11-35.35H25.51z"/>
|
||||||
|
</g>
|
||||||
|
<path class="st3" d="M93.46,72.4h13.27v-3.83H97.6v-3.86h8.17v-3.83H97.6V57.4h8.64v-3.83H93.46V72.4z M77.15,72.4h4.15v-7.34h7.85 v-3.83H81.3V57.4h8.49v-3.83H77.15V72.4z M68.53,72.4h4.15V53.57h-4.15V72.4z M53.93,72.4h11.83v-3.83h-7.69v-15h-4.15V72.4z"/>
|
||||||
|
<g>
|
||||||
|
<path class="st3" d="M95.81,34.5h2.72c1.52,0,3.22,0.29,3.22,2.18c0,2.05-1.97,2.1-3.49,2.1h-2.45V34.5z M91.66,49.82h4.15v-7.53 h2.05l3.94,7.53h4.97l-4.79-7.95c2.66-0.48,4.07-2.52,4.07-5.16c0-4.39-3.24-5.72-7.1-5.72h-7.29V49.82z M72.83,40.4 c0-3.51,2.31-6.07,5.85-6.07c3.54,0,5.85,2.56,5.85,6.07s-2.32,6.07-5.85,6.07C75.14,46.47,72.83,43.92,72.83,40.4 M68.52,40.4 c0,6.04,4.28,9.89,10.16,9.89c5.88,0,10.16-3.85,10.16-9.89s-4.28-9.89-10.16-9.89C72.8,30.51,68.52,34.36,68.52,40.4 M53.92,49.82h4.15v-7.34h7.85v-3.83h-7.85v-3.83h8.49v-3.83H53.92V49.82z"/>
|
||||||
|
<path class="st3" d="M95.11,27.19h4.15V8.37h-4.15V27.19z M73.48,27.19h4.14v-13.4h0.05l8.22,13.4h5.42V8.37h-4.15v13.09h-0.05 L79.12,8.37h-5.64V27.19z M69.65,8.37H65.5v11.41c0,2.32-1.6,4.07-3.78,4.07c-2.21,0-3.81-1.75-3.81-4.07V8.37h-4.15v11.57 c0,4.44,2.71,7.74,7.95,7.74c5.21,0,7.93-3.3,7.93-7.74V8.37z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g id="Abstände" class="st6">
|
||||||
|
<rect x="132.04" y="88.45" class="st7" width="5.25" height="5.25"/>
|
||||||
|
<rect x="126.79" y="89.23" class="st7" width="5.25" height="5.25"/>
|
||||||
|
<rect x="121.54" y="88.45" class="st7" width="5.25" height="5.25"/>
|
||||||
|
<rect x="10.5" y="88.45" class="st7" width="5.25" height="5.25"/>
|
||||||
|
<rect x="5.25" y="89.23" class="st7" width="5.25" height="5.25"/>
|
||||||
|
<rect y="88.45" class="st7" width="5.25" height="5.25"/>
|
||||||
|
<rect x="267.03" y="88.45" class="st7" width="5.25" height="5.25"/>
|
||||||
|
<rect x="261.78" y="89.23" class="st7" width="5.25" height="5.25"/>
|
||||||
|
<rect x="256.53" y="88.45" class="st7" width="5.25" height="5.25"/>
|
||||||
|
|
||||||
|
<rect x="46.86" y="112.34" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 164.4528 65.4832)" class="st7" width="5.25" height="5.25"/>
|
||||||
|
|
||||||
|
<rect x="46.08" y="107.09" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 158.4259 61.0119)" class="st7" width="5.25" height="5.25"/>
|
||||||
|
|
||||||
|
<rect x="46.86" y="101.85" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 153.9545 54.985)" class="st7" width="5.25" height="5.25"/>
|
||||||
|
|
||||||
|
<rect x="46.86" y="-5.25" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 46.8602 -52.1093)" class="st7" width="5.25" height="5.25"/>
|
||||||
|
|
||||||
|
<rect x="46.08" y="-10.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 40.8333 -56.5807)" class="st7" width="5.25" height="5.25"/>
|
||||||
|
|
||||||
|
<rect x="46.86" y="-15.75" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 36.362 -62.6076)" class="st7" width="5.25" height="5.25"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 5.6 KiB |
21
template/document.typ
Normal file
21
template/document.typ
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
#import "@local/uniforlife-document:0.0.1": document
|
||||||
|
|
||||||
|
#document(
|
||||||
|
title: [Antigravity cuisine],
|
||||||
|
task: [Recipe for fried eggs],
|
||||||
|
university: [University of Graz],
|
||||||
|
institute: [Uni for Life],
|
||||||
|
course: [Cooking 101],
|
||||||
|
instructor: [Lady Gaga],
|
||||||
|
author: [John Doe],
|
||||||
|
lang: "de",
|
||||||
|
)[
|
||||||
|
|
||||||
|
#lorem(100)
|
||||||
|
|
||||||
|
#lorem(200)
|
||||||
|
|
||||||
|
|
||||||
|
// #bibliography("refs.bib")
|
||||||
|
]
|
||||||
|
|
||||||
16
typst.toml
Normal file
16
typst.toml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
[package]
|
||||||
|
name = "uniforlife-document"
|
||||||
|
version = "0.0.1"
|
||||||
|
entrypoint = "src/lib.typ"
|
||||||
|
authors = ["Gaspard Jankowiak"]
|
||||||
|
license = "MIT"
|
||||||
|
description = "An unofficial UniForLife-UniGraz housework template"
|
||||||
|
repository = ""
|
||||||
|
categories = ["presentation"]
|
||||||
|
disciplines = ["computer-science", "engineering"]
|
||||||
|
keywords = ["University of Graz", "template"]
|
||||||
|
compiler = "0.14.0"
|
||||||
|
|
||||||
|
[template]
|
||||||
|
path = "template"
|
||||||
|
entrypoint = "document.typ"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue