Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7117a1e60f
|
||
|
|
9be60483a5 | ||
|
|
214a956f42 | ||
|
|
eebb2a9d7e | ||
|
|
c179c25fe9 | ||
|
|
d90cdc1894 | ||
|
|
f0961eeb8b | ||
|
|
7d40e146fb |
No files matched your search
+1
-1
@@ -41,7 +41,7 @@ different goals:
|
||||
### Import the package
|
||||
|
||||
```typst
|
||||
#import "@preview/glossy:0.6.0": *
|
||||
#import "@preview/glossy:0.7.0": *
|
||||
```
|
||||
|
||||
### Defining Glossary Terms
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#import "@preview/valkyrie:0.2.1" as z
|
||||
#import "@preview/valkyrie:0.2.2" as z
|
||||
|
||||
#import "./schemas.typ": *
|
||||
#import "./themes.typ": *
|
||||
@@ -39,7 +39,7 @@
|
||||
if not "short" in entry {
|
||||
panic("Entry must contain a 'short' key")
|
||||
}
|
||||
if type(entry.short) != "string" {
|
||||
if type(entry.short) != str {
|
||||
panic("Entry 'short' must be a string")
|
||||
}
|
||||
if entry.short.trim() == "" {
|
||||
@@ -347,7 +347,7 @@
|
||||
|
||||
// Apply format-term() to get the term
|
||||
let formatted-term = format-term(mode, short-form, long-form)
|
||||
if type(formatted-term) != "string" {
|
||||
if type(formatted-term) != str {
|
||||
// This is because we still need to capitalize the term, and we cannot do
|
||||
// that with content, thus requiring a string here.
|
||||
// TODO: consider if we want to capitalize *before* this. First intuition is
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#import "@preview/valkyrie:0.2.1" as z
|
||||
#import "@preview/valkyrie:0.2.2" as z
|
||||
|
||||
#let dict-schema = z.either(
|
||||
z.string(),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#import "/lib.typ": *
|
||||
#import "@preview/glossarium:0.5.1": *
|
||||
#import "@preview/glossarium:0.5.3": *
|
||||
|
||||
#set page(height: auto, width: 4.5in)
|
||||
#show link: set text(fill: red)
|
||||
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
[package]
|
||||
name = "glossy"
|
||||
version = "0.6.0"
|
||||
version = "0.7.0"
|
||||
compiler = "0.13.0"
|
||||
entrypoint = "lib.typ"
|
||||
authors = ["Stephen Waits <steve@waits.net>"]
|
||||
license = "MIT"
|
||||
@@ -8,4 +9,4 @@ description = "A very simple glossary system with easily customizable output."
|
||||
categories = ["model"]
|
||||
keywords = ["glossary", "index", "dictionary", "gloss"]
|
||||
repository = "https://github.com/swaits/typst-collection"
|
||||
exclude = ["thumbnail.png", "themeshots.pjng", "tests", "bin"]
|
||||
exclude = ["thumbnail.png", "themeshots.png", "tests", "bin"]
|
||||
Reference in new issue
Block a user