Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions packages/preview/stv-vub-huisstijl/0.1.1/LICENSE
Original file line number Diff line number Diff line change
@@ -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.
25 changes: 25 additions & 0 deletions packages/preview/stv-vub-huisstijl/0.1.1/README.md
Original file line number Diff line number Diff line change
@@ -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.
150 changes: 150 additions & 0 deletions packages/preview/stv-vub-huisstijl/0.1.1/assets/vub_logo_cmyk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
143 changes: 143 additions & 0 deletions packages/preview/stv-vub-huisstijl/0.1.1/src/lib.typ
Original file line number Diff line number Diff line change
@@ -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)
}
}
12 changes: 12 additions & 0 deletions packages/preview/stv-vub-huisstijl/0.1.1/template/main.typ
Original file line number Diff line number Diff line change
@@ -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]"),
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions packages/preview/stv-vub-huisstijl/0.1.1/typst.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "stv-vub-huisstijl"
version = "0.1.1"
entrypoint = "src/lib.typ"
authors = ["Wannes Malfait <https://github.com/WannesMalfait>"]
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"