diff --git a/packages/preview/stv-vub-huisstijl/0.1.1/LICENSE b/packages/preview/stv-vub-huisstijl/0.1.1/LICENSE new file mode 100644 index 0000000000..885afad4d7 --- /dev/null +++ b/packages/preview/stv-vub-huisstijl/0.1.1/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Wannes Malfait + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/preview/stv-vub-huisstijl/0.1.1/README.md b/packages/preview/stv-vub-huisstijl/0.1.1/README.md new file mode 100644 index 0000000000..d2c0e26150 --- /dev/null +++ b/packages/preview/stv-vub-huisstijl/0.1.1/README.md @@ -0,0 +1,25 @@ +# VUB Typst huisstijl + +An unofficial template to get the look of the [Vrije Universiteit Brussel (VUB)](https://www.vub.be) huisstijl in Typst based on [this LaTeX template](https://gitlab.com/rubdos/texlive-vub) + +## Getting Started + +You can choose "Start from template" in the web app, and search for `vub-huisstijl`. + +If you are running Typst locally, you can use the following command to initialize the template: + +```shell +typst init @preview/stv-vub-huisstijl:0.1.0 +``` + +### Fonts + +The package makes use of the "TeX Gyre Adventor" font, with "Roboto" as a fallback. These should be installed for the title page to look right. They are available for free, and also come bundled with texlive. + +## Note + +This only provides a template for a thesis title page, not for slides. That can be added in the future. + +## About the name + +St V ([Saint Verhaegen](https://en.wikipedia.org/wiki/Saint_Verhaegen)) is an important part of the folklore of the VUB and the ULB. diff --git a/packages/preview/stv-vub-huisstijl/0.1.1/assets/vub_logo_cmyk.svg b/packages/preview/stv-vub-huisstijl/0.1.1/assets/vub_logo_cmyk.svg new file mode 100644 index 0000000000..d64078378a --- /dev/null +++ b/packages/preview/stv-vub-huisstijl/0.1.1/assets/vub_logo_cmyk.svg @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/preview/stv-vub-huisstijl/0.1.1/src/lib.typ b/packages/preview/stv-vub-huisstijl/0.1.1/src/lib.typ new file mode 100644 index 0000000000..69a9e6df7e --- /dev/null +++ b/packages/preview/stv-vub-huisstijl/0.1.1/src/lib.typ @@ -0,0 +1,143 @@ +#import "@preview/cetz:0.4.2" + +#let vub-orange = cmyk( + 0%, + 78%, + 100%, + 0%, +) +#let vub-blue = cmyk( + 100%, + 80%, + 16%, + 3%, +) + +#let triangle-height = 27.7mm +#let vub-triangle = cetz.canvas({ + import cetz.draw: * + line( + (0, 0), + (0, triangle-height), + (-10mm, triangle-height), + close: true, + fill: vub-orange, + stroke: none, + ) +}) + +#let vub-titlepage( + title: "Title of the thesis", + subtitle: "An optional subtitle", + pretitle: "Graduation thesis submitted in partial fulfillment of the requirements for the degree of Master of Science in Mathematics", + authors: ("Jane Doe",), + promotors: ("John Smith",), + faculty: "Sciences and Bio-Engineering Sciences", + date: datetime.today().display("[month repr:long] [day], [year]"), +) = { + set document( + author: authors, + title: title, + ) + + { + set page(margin: ( + left: 18mm, + top: 20mm, + right: 10mm, + )) + set text(font: ("TeX Gyre Adventor", "Roboto")) + set par( + linebreaks: "optimized", + // We adjust it manually + spacing: 0pt, + ) + + // First the top part with the vub logo and triangle + place( + top + left, + image( + "/assets/vub_logo_cmyk.svg", + width: 5.66cm, + ), + ) + + place( + top + right, + vub-triangle, + ) + + // Account for space of triangle + v(triangle-height) + + v(1fr) + + // Title + author + date + h(25mm) + pad(x: 29mm)[ + + #par(leading: 0.3em)[#text( + size: 9pt, + fill: vub-orange, + pretitle, + ) + ] + + #v(5mm) + + #par(leading: 0.3em)[#text( + size: 24.88pt, + fill: vub-blue, + strong( + upper(title), + ), + ) + ] + #v(5mm) + + #text( + size: 17.28pt, + fill: vub-blue, + subtitle, + ) + + #v(3cm) + + #text( + size: 12pt, + fill: vub-orange, + authors.join(", "), + ) + #v(5mm) + + #text( + size: 12pt, + fill: vub-blue, + date, + ) + ] + + v(1fr) + + // Promotors + faculty + h(25mm) + pad(x: 29mm)[ + #text( + size: 10pt, + fill: vub-orange, + promotors.join(", "), + ) + + #v(5mm) + + #text( + size: 10pt, + fill: vub-blue, + strong(faculty), + ) + ] + + + pagebreak(weak: true) + } +} diff --git a/packages/preview/stv-vub-huisstijl/0.1.1/template/main.typ b/packages/preview/stv-vub-huisstijl/0.1.1/template/main.typ new file mode 100644 index 0000000000..3fb9d336b5 --- /dev/null +++ b/packages/preview/stv-vub-huisstijl/0.1.1/template/main.typ @@ -0,0 +1,12 @@ +#import "@preview/stv-vub-huisstijl:0.1.1": vub-titlepage + +// Adapt the default arguments to your needs. +#vub-titlepage( + title: "Title of the thesis", + subtitle: "An optional subtitle", + pretitle: "Graduation thesis submitted in partial fulfillment of the requirements for the degree of Master of Science in Mathematics", + authors: ("Jane Doe",), + promotors: ("John Smith",), + faculty: "Sciences and Bio-Engineering Sciences", + date: datetime.today().display("[month repr:long] [day], [year]"), +) diff --git a/packages/preview/stv-vub-huisstijl/0.1.1/thumbnail.png b/packages/preview/stv-vub-huisstijl/0.1.1/thumbnail.png new file mode 100644 index 0000000000..da2d7bc923 Binary files /dev/null and b/packages/preview/stv-vub-huisstijl/0.1.1/thumbnail.png differ diff --git a/packages/preview/stv-vub-huisstijl/0.1.1/typst.toml b/packages/preview/stv-vub-huisstijl/0.1.1/typst.toml new file mode 100644 index 0000000000..38c18c696b --- /dev/null +++ b/packages/preview/stv-vub-huisstijl/0.1.1/typst.toml @@ -0,0 +1,19 @@ +[package] +name = "stv-vub-huisstijl" +version = "0.1.1" +entrypoint = "src/lib.typ" +authors = ["Wannes Malfait "] +license = "MIT" +description = "An unofficial template to get the look of the Vrije Universiteit Brussel (VUB) huisstijl in Typst." +# homepage = "" +repository = "https://github.com/WannesMalfait/vub-huisstijl-typst/" +keywords = ["VUB", "thesis"] +categories = ["thesis"] +disciplines = [] +# compiler = "" +exclude = [".github", "docs", "scripts", "tests", ".typstignore", "Justfile"] + +[template] +path = "template" +entrypoint = "main.typ" +thumbnail = "thumbnail.png"