Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
1 change: 1 addition & 0 deletions packages/preview/ucph-nielsine-touying/0.1.3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assets/fonts
84 changes: 84 additions & 0 deletions packages/preview/ucph-nielsine-touying/0.1.3/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

<details>
<summary>Migration guide from v0.1.X</summary>

<!-- Write migration guide here -->

</details>

### Added

### Changed

### Deprecated

### Removed

### Fixed

### Security

## [0.1.3] - 2026-03-13

### Changed
- Bumped `Touying` version to 0.6.3.
- Exposed `header-block-size` & `header-block-text-size` to user
- Increased default `header-block-size` & `header-block-text-size`
- Removed Fira Math as default math font

## [0.1.2] - 2025-10-28

### Changed
- [Works with `typst` 0.14.0].
- Updated optional dependencies (`theorion`).

### Fixed
- No bold text for current section.
- White cite color in heading, blue in main text.

## [0.1.1] - 2025-07-21

### Added
- logos.typ
- Examples with `pinit`and `theorion`.
- Language option - `en` or `dk` -> changes logo on `uc.focus-slide()` to Danish/English version.

### Changed
- Default font to [*Fira Sans*](https://fonts.google.com/specimen/Fira+Sans) and [*Fira Math*](https://github.com/firamath/firamath).
- Screenshots of template.
- Logos are no longer included under `/assets`-folder in template, but are accessed as `uc.logos.seal`.
- Color scheme: Secondary color is UCPH-medium gray.

### Fixed
- Issue with heading (#1): Could not write in **BOLD**.

## [0.1.0] - 2025-07-03

### Added

<!-- Describe the feature set of the initial release here -->
- Based on the `metropolis` Touying theme
- Adapted to fit the styling of University of Copenhagen
- Section links in the footer
- Exposing more custom options for the user than originally available

<!--
Below are the target URLs for each version
You can link version numbers (in level-2 headings)
to the corresponding tag on GitHub, or the diff
in comparison to the previous release
-->

[Unreleased]: https://github.com/jorgenhost/ucph-nielsine-touying/compare/v0.1.0...HEAD
[0.1.0]: https://github.com/jorgenhost/ucph-nielsine-touying/releases/tag/v0.1.0
[0.1.1]: https://github.com/jorgenhost/ucph-nielsine-touying/releases/tag/v0.1.1
[0.1.2]: https://github.com/jorgenhost/ucph-nielsine-touying/releases/tag/v0.1.2
[0.1.3]: https://github.com/jorgenhost/ucph-nielsine-touying/releases/tag/v0.1.3
9 changes: 9 additions & 0 deletions packages/preview/ucph-nielsine-touying/0.1.3/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2025 Jørgen Baun Høst

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.
145 changes: 145 additions & 0 deletions packages/preview/ucph-nielsine-touying/0.1.3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# `ucph-nielsine-touying`

_This theme is **NOT** affiliated with the University of Copenhagen. The logo is the property of the University of Copenhagen._

**ucph-nielsine-touying** is a [Touying](https://github.com/touying-typ/touying) theme for creating presentation slides in [Typst](https://github.com/typst/typst), adhering to the core principles of the [style guide of the University of Copenhagen, Denmark](https://designguide.ku.dk/) (Danish). It is an **unofficial** theme.

This theme was partly created using components from [touying-unistra-pristine](https://github.com/spidersouris/touying-unistra-pristine) and [typslides](https://github.com/manjavacas/typslides).

## Getting Started

These instructions will get you a copy of the project up and running on the typst web app.

```typ
#import "@preview/ucph-nielsine-touying:0.1.3" as uc
#import "@preview/touying:0.6.3" as ty

// Font settings
#set text(font: "Fira Sans", weight: "light")

#show: uc.ucph-metropolis-theme.with(
language: "en", // or "dk"
ty.config-info(
title: [Title],
subtitle: [Subtitle],
author: [Authors],
date: datetime.today(),
institution: [University of Copenhagen],
logo: uc.logos.seal,
),
)

#uc.title-slide()

= First section
== First slide
Wow, this is a slide.

#uc.focus-slide("Wake up!")
```

<kbd><img src="assets/thumbnail.png" width="400"></kbd><kbd><img src="assets/slide1.png" width="400"></kbd>

<kbd><img src="assets/slide2.png" width="400"></kbd>
<kbd><img src="assets/slide3.png" width="400"></kbd>


## Usage

Configuration is done via `Touying`'s `config-xxx` options which is then passed to the `ucph-metropolis` function. It is strongly recommended to explore the [documentation](https://touying-typ.github.io/) of the `touying` package to learn more about the core functionality that this template is built around. This includes, but is not limited to, bibliography/references, animations and compatibility with other Typst packages like [`pinit`](https://typst.app/universe/package/pinit/) and [`theorion`](https://typst.app/universe/package/theorion/). Check out the example below to learn more about the functionality:

```typ
#import "@preview/ucph-nielsine-touying:0.1.3" as uc
#import "@preview/theorion:0.4.1" as th
#import th.cosmos.clouds as thc
#import "@preview/touying:0.6.3" as ty
#import "@preview/pinit:0.2.2" as pi

// Font settings
#set text(font: "Fira Sans", weight: "light")

// Settings for theorion package
#show: th.show-theorion
#th.set-inherited-levels(0)

#show: uc.ucph-metropolis-theme.with(language: "en", ty.config-info(
title: [Title],
subtitle: [Subtitle],
author: [Authors],
date: datetime.today(),
institution: [University of Copenhagen],
logo: uc.logos.seal,
))

#uc.title-slide()


= First section

== First slide
_Wow, this is a slide._

#cite(<schelling1971dynamic>, form: "prose") proposed a model to describe segregation dynamics that has a striking proposition: Despite "tolerant" attitudes towards people of different types, patterns of segregation will still persist.

= Examples
== Example: `pinit`
The music experience has been #pi.pin(1)cancelled#pi.pin(2).

#pi.pinit-highlight(1, 2)

#pi.pinit-point-from(2)[This quote is from the Severance TV-show]


== Example: `theorion`
#thc.definition()[
The OLS estimator
$
hat(bold(beta)) = (bold(X)^T bold(X))^(-1) bold(X)^T bold(y)
$
]
#th.important-box(fill: uc.colors.ucph-dark.red)[
- This is very important.
- Remember this.
]
#thc.theorem()[
#lorem(5)
]
#thc.proposition()[
#lorem(5)
]

#let my-gradient = gradient.linear(uc.colors.ucph-dark.red, uc.colors.ucph-dark.blue, angle: 45deg)

#uc.focus-slide(fill: my-gradient)[
Please pay attention!
]

== References
#set text(size: 14pt)
#bibliography("bibliography.bib", style: "harvard-cite-them-right", title: none)
```
A more extensive example of the slide template is available [here](https://github.com/jorgenhost/ucph-nielsine-touying/tree/main/examples).


<kbd><img src="assets/slide4.png" width="400"></kbd><kbd><img src="assets/slide5.png" width="400"></kbd>

<kbd><img src="assets/slide6.png" width="400"></kbd><kbd><img src="assets/slide7.png" width="400"></kbd>

## Working locally
Follow the initial steps from the official [repo](https://github.com/typst/typst) to install Typst on your machine. Open your terminal and type:

```
typst init @preview/ucph-nielsine-touying
```
This will create a directory with the template name on your current path. Note that you may need to install the [Fira Sans](https://fonts.google.com/specimen/Fira+Sans) font used in this template.

## Development
Clone the following repository:

```
$ git clone https://github.com/jorgenhost/ucph-nielsine-touying
$ cd ucph-nielsine-touying
```

## Why "nielsine"?
On Friday, January 23, 1885, Nielsine Nielsen made history in Denmark by becoming the first woman to earn a degree in medicine and the nation's first female academic. The reply (by royal decree) to her application read: _"Women are hereby allowed to obtain an academic degree at the University of Copenhagen."_ That is pretty cool. Read more [here](https://news.ku.dk/nielsine-nielsen/).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading