Universe

A Typst package for creating beautiful, print-friendly title styles for documents. Perfect for textbooks, course materials, academic papers, and any document that needs professional heading styles.

Features

  • 19 distinctive styles - From classic academic to modern creative
  • Print-friendly - All styles use minimal ink (no heavy backgrounds)
  • Fully configurable - Colors, sizes, spacing, and numbering
  • Styled Table of Contents - Each style has a matching TOC design
  • Page breaks - Optional automatic page breaks before chapters
  • Multilingual - Customizable prefixes for any language
  • Native Typst support - Works with = Heading syntax
  • Cross-references - Full outline and bookmark support

View the full manual (PDF)

Quick Start

#import "@preview/beautitled:0.2.0": *

#beautitled-setup(style: "titled")
#show: beautitled-init

= My Chapter Title
== My Section Title
=== My Subsection Title

Available Styles (19)

Category Style Description
Original titled Boxed sections with floating labels (DEFAULT)
General classic Traditional with underlines
modern Clean geometric with accent
elegant Refined with ornaments
bold Strong left border
creative Student portfolio style
minimal Ultra-clean
vintage Classic book ornaments
Educational schoolbook Textbook style
notes Course notes
clean Maximum simplicity
Academic technical Documentation
academic Professional academic
textbook Bold numbers, clear hierarchy
scholarly Centered with thin rules
classical Small caps, minimal
educational Left border with numbers
structured Boxed numbers
magazine Editorial style
titled style: chapter heading with boxed floating label
titled
classic style: traditional heading with underline
classic
modern style: clean geometric heading with accent bar
modern
elegant style: refined heading with ornamental rules
elegant
bold style: strong left border heading
bold
creative style: student portfolio heading
creative
minimal style: ultra-clean heading with no decoration
minimal
vintage style: classic book heading with ornaments
vintage
schoolbook style: textbook heading with number badge
schoolbook
notes style: course notes heading with tab marker
notes
clean style: maximum simplicity heading
clean
technical style: documentation heading with monospace number
technical
academic style: professional academic heading with serif
academic
textbook style: bold numbered heading with clear hierarchy
textbook
scholarly style: centered heading with thin rules
scholarly
classical style: small caps heading with minimal decoration
classical
educational style: left border heading with large number
educational
structured style: boxed number with indented heading
structured
magazine style: editorial heading with decorative rule
magazine
Table of contents in titled style with floating chapter labels
titled
Table of contents in classic style with dot leaders
classic
Table of contents in modern style with accent bar
modern
Table of contents in elegant style with ornamental rules
elegant
Table of contents in bold style with left border
bold
Table of contents in minimal style with clean layout
minimal
Table of contents in scholarly style with centered titles
scholarly
Table of contents in simple style
simple

Configuration

Full Parameter Reference

#beautitled-setup(
  // Style
  style: "titled",              // Style name

  // Colors
  primary-color: rgb("#2c3e50"),
  secondary-color: rgb("#7f8c8d"),
  accent-color: rgb("#2980b9"),

  // Font sizes
  chapter-size: 18pt,
  section-size: 14pt,
  subsection-size: 12pt,
  subsubsection-size: 11pt,

  // Numbering
  show-chapter-number: true,
  show-section-number: true,
  show-subsection-number: true,
  show-chapter-in-section: true,

  // Prefixes (localization)
  chapter-prefix: "Chapitre",
  section-prefix: "Section",

  // Page breaks
  chapter-pagebreak: false,

  // Table of Contents
  toc-style: none,              // Different style for TOC (none = same as headings)
  toc-indent: 1em,
  toc-fill: repeat[.],
)

Table of Contents

// Basic TOC
#beautitled-toc()

// Custom title
#beautitled-toc(title: "Contents")

// Different style for TOC
#beautitled-toc(title: "Index", style: "elegant")

Mix Heading and TOC Styles

#beautitled-setup(style: "titled")
#show: beautitled-init

// TOC uses "scholarly" style
#beautitled-toc(title: "Table of Contents", style: "scholarly")

= First Chapter
...

Page Breaks

#beautitled-setup(
  style: "textbook",
  chapter-pagebreak: true,  // Page break before each chapter
)
#show: beautitled-init

Language Presets

#preset-french()   // "Chapitre", "Section"
#preset-english()  // "Chapter", "Section"
#preset-german()   // "Kapitel", "Abschnitt"
#preset-no-numbers()

Color Themes

#theme-ocean()   // Blue
#theme-forest()  // Green
#theme-royal()   // Purple
#theme-mono()    // Grayscale
#theme-warm()    // Orange/brown
#theme-coral()   // Red

Manual & Demo

  • Full manual: manual.typ / manual.pdf
  • Style showcase: demo.typ / demo.pdf

Changelog

v0.2.0

  • Fix: Use Unicode word joiners (\u{2060}) around dots in section numbering — prevents decimal-comma localization from rendering “1.2” as “1,2” in affected locales
  • Applied to lib.typ and all 19 style files
  • Compiler requirement updated to 0.14.2

v0.1.0

  • Initial release: 19 styles, TOC support, language presets, color themes, show-rule integration

License

MIT License - see LICENSE file for details.