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
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on the dashboard and searching for `clean-hwr`.

Alternatively, you can use the CLI to kick this project off using the command
```
typst init @preview/clean-hwr:0.1.3
typst init @preview/clean-hwr:0.1.4
```

Typst will create a new directory with all the files needed to get you started.
Expand Down Expand Up @@ -62,7 +62,8 @@ The `hwr(...)` function is the main entry point to configure and render the **PT
long: "Typst Typesetting System",
description: "A modern alternative to LaTeX."
),
)
),
disable-back-references: true,
),

acronyms: (
Expand Down
13 changes: 7 additions & 6 deletions lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
// All the lists and outlines
glossary: (
title: "",
entries: ()
entries: (),
disable-back-references: none,
),
acronyms: (
title: "",
Expand Down Expand Up @@ -70,6 +71,7 @@
body,
) = {
import "@preview/acrostiche:0.6.0": *
import "@preview/glossarium:0.5.8": *

set document(author: metadata.authors, title: metadata.title)
set page(numbering: none, number-align: center)
Expand All @@ -82,6 +84,9 @@
init-acronyms(acronyms.entries)
}

show: make-glossary
register-glossary(if glossary.entries != () {glossary.entries} else {((key:"KPI", short: "KPI", long: "Key Performance Indicator"),)})

// SETUP Title page
let equal-spacing = 0.25fr
set align(center)
Expand Down Expand Up @@ -312,12 +317,8 @@

// Glossary
if glossary.entries != () {
import "@preview/glossarium:0.5.8": *
show: make-glossary
register-glossary(glossary.entries)

heading(glossary.at("title", default: if language == "de" { "Glossar" } else { "Glossary" }), numbering: none)
print-glossary(glossary.entries, show-all: true)
print-glossary(glossary.entries, show-all: true, disable-back-references: glossary.at("disable-back-references", default: false))
pagebreak()
}

Expand Down
2 changes: 1 addition & 1 deletion template/main.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "@preview/clean-hwr:0.1.3": *
#import "@preview/clean-hwr:0.1.4": *

// These packages are used to displaying the acronyms and glossaries
// They need to be imported here so you can use #acr / #gls
Expand Down
2 changes: 1 addition & 1 deletion typst.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clean-hwr"
version = "0.1.3"
version = "0.1.4"
compiler = "0.13.1"
entrypoint = "lib.typ"
repository = "https://github.com/testspieler09/clean-hwr"
Expand Down
Loading