Skip to content

Conversation

@TomPlanche
Copy link
Contributor

I am submitting

  • a new package
  • an update for a package

Description

This update (v1.2.0) introduces comprehensive customization capabilities across all template components, making the CNAM template significantly more flexible and user-friendly.

What Changed

Enhanced Component Customization:

  1. Blockquote Component - Now supports:

    • Flexible border positioning (left, right, top, bottom, or all sides)
    • Attribution/source citations with customizable styling and alignment
    • Block-level and content-level alignment controls
    • Customizable width (auto, 100%, or custom length)
  2. my-block Component - New features:

    • Optional titles with customizable styling and alignment
    • Block and content alignment options
    • Flexible width controls
  3. Code Component - Improvements:

    • Optional title/caption support
    • Enhanced line number styling customization
    • Better alignment options
    • Improved text color support
  4. Math Components (definition, example, theorem) - Now fully customizable:

    • All visual parameters exposed: fill, stroke, radius, inset
    • Configurable numbering and breakable behavior
    • Consistent API across all three components

Documentation Improvements:

  • Comprehensive showcase document (main.typ) with 20+ real-world examples
  • Enhanced JSDoc documentation with detailed usage examples
  • All parameters documented with types and defaults

Bug Fixes:

  • Fixed code block width handling for proper alignment
  • Corrected border radius calculations for different border sides
  • Improved spacing consistency across components

This update significantly enhances the template's flexibility while maintaining backward compatibility with existing documents.

@typst-package-check typst-package-check bot changed the title Clean cnam template 1.2.0 clean-cnam-template:1.2.0 Oct 20, 2025
@typst-package-check typst-package-check bot added the update A package update. label Oct 20, 2025
@elegaanz elegaanz self-assigned this Oct 22, 2025
@elegaanz
Copy link
Member

Thanks!

@elegaanz elegaanz merged commit 51f696e into typst:main Oct 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

update A package update.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants