diff --git a/packages/preview/kdl-unofficial-template/0.1.0/LICENSE b/packages/preview/kdl-unofficial-template/0.1.0/LICENSE new file mode 100644 index 0000000000..b0884202ed --- /dev/null +++ b/packages/preview/kdl-unofficial-template/0.1.0/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Martin Heuschober + +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/kdl-unofficial-template/0.1.0/README.md b/packages/preview/kdl-unofficial-template/0.1.0/README.md new file mode 100644 index 0000000000..527cd52b95 --- /dev/null +++ b/packages/preview/kdl-unofficial-template/0.1.0/README.md @@ -0,0 +1,111 @@ +# KULT: Divinity Lost unofficial scenario template + +This is a typst template for the horror tabletop RPG 'KULT: Divinity Lost'. +It has been designed based on the LaTeX scenario template for Ryan Northcott's memorial scenarios. +The scenario is made for A4 paper and uses the [Mathison](https://www.dafontfree.io/mathison-typeface/) and the [Ubuntu Sans](https://github.com/canonical/Ubuntu-Sans-fonts/releases) font. + +To publish a scenario for 'KULT: divinity lost' you must follow the [Helmgast AB - fan content policy](https://helmgast.se/en/meta/fan-content-policy) + +> ## Warning +> +> Fonts are not included please download them from the links above and install +> them on your system OR unpack them in a local folder, e.g. `./main/assets/` +> and use the `--font-paths` command line option to compile. + +The printer friendly version can be compiled with + +```sh +typst compile my-scenario.typ --input printer-friendly=true +``` + +With a version + +```sh +typst compile my-scenario.typ --input version="0.1.0" +``` + +Or combined + +```sh +typst compile my-scenario.typ --input version="0.1.0" --input printter-friendly=true +``` + +This package provides a template and a few functions, see the example section for more details: + +## Basic usage + +```typst +#import "preview/kdl-unofficial-template:" as kdl + +#show: kdl.template + +#kdl.pages.title.with( + title: "A tall tale", + author: "Baron von Münchhausen", + size: 64pt // optional +)() + +#kdl.pages.blank +#kdl.pages.blank + +#include("./chapters/01-intro.typ") +#include("./chapters/02-pre-gen.typ") +#include("./chapters/03-story.typ") + +#bibliography("/template/bibliography.bib", full: true, style: "pensoft") +``` + +## extra functionality and customization + +### Skill stuff + +- `skill-tree( fort: 2, will: 1, refl: "0")` has named arguments `fort`, `will`, `refl`, `reas`, `char`, `intu`, `viol`, `perc`, `cool`, `soul` omitted arguments will just be left empty for the player to be filled in, when printing the skill tree. +- `attrs` a dictionary with `name` and `move` for each attribute (`fort`, `will`, `refl`, `reas`, `char`, `intu`, `viol`, `perc`, `cool`, `soul`, and `dis` for disadvantages), example usage `kdl.attrs.intu.name`, this is to mostly for consistency. + +### Pageref + +- `pageref(