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
127 changes: 127 additions & 0 deletions packages/preview/clean-cnam-template/1.1.0/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
- **Custom outline support** with `outline-code` parameter in `clean-cnam-template()`
- Pass `none` (default) for standard outline
- Pass `false` to disable outline completely
- Pass custom outline code (e.g., `outline(title: "Table des matières", depth: 2)`) for customization
- **Documentation examples** for outline customization in README.md
- **Usage comments** in main.typ demonstrating all outline options

### Changed
- **Enhanced flexibility** of title page generation to support custom outline configurations

## [1.0.0] - 2024-09-15

### Added

#### Core Template System
- **Modular template architecture** with organized library structure in `lib/` directory
- **CNAM branding integration** with official colors and styling
- **Main configuration function** `clean-cnam-template()` for easy document setup
- **Centralized package entrypoint** in `lib.typ` for clean imports

#### Document Configuration
- **Flexible document configuration** with support for:
- Title, subtitle, author, and affiliation
- Custom logo support (CNAM logo included)
- Configurable primary colors and theming
- Class/course information and date management
- Multi-language support (French default)

#### Font Management
- **Centralized font configuration system** with `fonts.typ` module
- **Configurable font families** for body text and code blocks
- **Default font support** for "New Computer Modern Math" and "Zed Plex Mono"
- **Consistent font application** across all components

#### Enhanced Code Blocks
- **Advanced code component** with comprehensive features:
- Syntax highlighting for multiple programming languages
- Optional line numbering with customizable alignment
- Filename display support
- Language label badges
- Customizable styling (colors, spacing, borders)
- Line range selection for partial code display
- Label support for line referencing

#### UI Components
- **Styled blockquote component** with customizable colors and borders
- **Flexible content blocks** (`my-block`) with configurable styling
- **Professional layout system** with decorative elements
- **Context-aware page headers** with smart header management

#### Mathematical Environments
- **Mathematical definition blocks** with red styling and numbering
- **Example blocks** with blue styling and consistent formatting
- **Theorem blocks** with purple styling and proper numbering
- **Integration with great-theorems package** for enhanced mathematical typesetting
- **Dependent numbering system** for mathematical environments

#### Utility Functions
- **Vector arrows utility** (`ar()`) for mathematical expressions
- **Icon sizing utility** (`icon()`) for proper icon display
- **French date formatting** (`date-format()`) for localized dates

#### Color System
- **Predefined color palette** with CNAM branding colors
- **Semantic color naming** with descriptive names:
- `theorem-color` for theorem blocks
- `example-color` for example blocks
- `definition-color` for definition blocks
- **Color word highlighting** for automatic text coloring

#### Layout and Styling
- **Professional document layout** with responsive design
- **Decorative page elements** for enhanced visual appeal
- **Title page generation** with CNAM branding
- **Consistent spacing and typography** throughout the document

#### Project Structure
- **Organized module system** with logical separation:
- `config.typ` - Main configuration and document setup
- `fonts.typ` - Font management and configuration
- `components.typ` - UI components (blockquote, blocks, code)
- `headers.typ` - Header management logic
- `layout.typ` - Document layout and styling
- `utils.typ` - Utility functions
- `colors.typ` - Color definitions
- `math.typ` - Mathematical environments
- **Template directory** with example usage
- **Asset management** for logos and static resources

#### Development Features
- **MIT License** for open-source usage
- **Comprehensive documentation** with usage examples
- **Package configuration** with proper metadata and exclusions
- **Git integration** with appropriate ignore patterns

### Technical Details

#### Dependencies
- **Typst 1.0.0+** minimum version requirement
- **great-theorems 0.1.2** for mathematical environments
- **headcount 0.1.0** for numbering systems

#### Code Quality
- **Consistent naming conventions** using kebab-case for functions
- **Comprehensive documentation** with JSDoc-style comments
- **Modular design** eliminating circular dependencies
- **Clean import structure** with optimized exports

#### Package Information
- **Package name**: clean-cnam-template
- **Version**: 1.0.0
- **Author**: Tom Planche
- **Repository**: https://github.com/TomPlanche/clean-cnam-template
- **Keywords**: template, cnam, academic, document, styling
- **Categories**: template, academic

[1.0.0]: https://github.com/TomPlanche/clean-cnam-template/releases/tag/v1.0.0
7 changes: 7 additions & 0 deletions packages/preview/clean-cnam-template/1.1.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2025 Tom Planche <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading