Skip to content

Commit

Permalink
add modern-uit-thesis:0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
otytlandsvik committed Feb 5, 2025
1 parent dc189ac commit b735190
Show file tree
Hide file tree
Showing 44 changed files with 3,843 additions and 0 deletions.
29 changes: 29 additions & 0 deletions packages/preview/modern-uit-thesis/0.1.3/Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
root := justfile_directory()

export TYPST_ROOT := root

[private]
default:
@just --list --unsorted

# Package the library into the specified destination folder
package target:
./scripts/package "{{target}}"

# Install the library with the "@local" prefix
install: (package "@local")

# Install the library with the "@preview" prefix (for pre-release testing)
install-preview: (package "@preview")

[private]
remove target:
./scripts/uninstall "{{target}}"

# Uninstalls the library from the "@local" prefix
[confirm("Are you sure you want to uninstall the library \"@local\"? This will remove all files and directories associated with the library.")]
uninstall: (remove "@local")

# Uninstalls the library from the "@preview" prefix (for pre-release testing)
[confirm("Are you sure you want to uninstall the library \"@preview\"? This will remove all files and directories associated with the library.")]
uninstall-preview: (remove "@preview")
20 changes: 20 additions & 0 deletions packages/preview/modern-uit-thesis/0.1.3/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2025, Moritz Jörg <@mrtz-j>, Ole Tytlandsvik <@otytlandsvik>

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.
41 changes: 41 additions & 0 deletions packages/preview/modern-uit-thesis/0.1.3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Modern UiT Thesis Template

Port of the [uit-thesis](https://github.com/egraff/uit-thesis)-latex template to Typst.

`thesis.typ` contains a full usage example, see `thesis.pdf` for a rendered pdf.

## Usage

Using the Typst Universe package/template:

```bash
typst init @preview/modern-uit-thesis:0.1.3
```

### Fonts

This template uses a number of different fonts:

- Open Sans (Noto Sans)
- JetBrains Mono (Fira Code)
- XCharter (Charter)

The above parenthesized fonts are fallback typefaces available by default in [the web app](https://typst.app).
If you'd like to use the main fonts instead, simply upload the `.ttf`s or `.otf`s to the web app and it will detect and apply them automatically.

XCharter is commonly packaged only for LaTeX, however to use it with typst, we need to fetch the archive from [CTAN](https://mirrors.ctan.org/fonts/xcharter.zip).
The required `.otf` font files are in the `opentype` directory of the archive.

If you're running typst locally, install the fonts in a directory of your choosing and specify it with `--font-path`.

> [!IMPORTANT]
> We use XCharter to access additional font features not available in Charter, such as smallcaps and oldstyle figures.
> If you instead use the fallback font Charter to compile your document, be aware that these are unavailable.
### Nix

If you're using the nix package manager, simply run the provided dev shell. It includes all dependencies needed to write and build the document locally, including the main fonts.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
548 changes: 548 additions & 0 deletions packages/preview/modern-uit-thesis/0.1.3/assets/backpage.svg
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.
1 change: 1 addition & 0 deletions packages/preview/modern-uit-thesis/0.1.3/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b735190

Please sign in to comment.