Universe

Manual Example PDF Example SRC Changelog Contribute

Quick Start

#import "@preview/nexus-tools:0.1.0": *

Description

Easily implement handy features from a curated collection of frequently used package functionality, such as data storage or custom defaults. This library was created as part of the development of my other Typst projects; it contains functionality shared across multiple projects that would otherwise need to be maintained and updated individually, but is now centralized in a single place. This is not intended to be a full-fledged development toolset, but rather a compartmentalization of shared resources.

You can use this library without restrictions as a development aid, especially for packages.

Feature List

  • Custom defaults that can be overridden by set rules
  • General data storage
    • Storage compartmentalization (namespaces)
    • Add, append, and remove data
    • Retrieve individual data or whole namespaces
    • Reset namespaces
  • Visual components
    • Paper-friendly links (attached to footnotes)
    • General package URLs
    • Customizable callout box
  • Get Typst values
    • Generate datetime using positional and/or named arguments
    • Null value
    • Replacement of auto values
  • Attribute checks
    • Content fields
    • Dictionary keys
    • Dictionary values
    • Array items
  • Specific tests
    • None values
    • Null values
    • Empty values
    • Context values
    • Content sequences
    • Content spaces
    • Content functions
    • Any value types

Internal Structure

YAML structure

This is a YAML representation of the package internal structure and all its features.