Skip to content

unofficial-whu-lab-report:0.1.1#5375

Merged
elegaanz merged 6 commits into
typst:mainfrom
zoomy14112:main
Jul 20, 2026
Merged

unofficial-whu-lab-report:0.1.1#5375
elegaanz merged 6 commits into
typst:mainfrom
zoomy14112:main

Conversation

@zoomy14112

@zoomy14112 zoomy14112 commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

I am submitting

  • a new package
  • an update for a package

This release iterates the template from v0.1.0 to v0.1.1 with bug fixes, new cover fields, signature image support for the declaration page, and a new teacher-comment grading section.

Bug Fixes

  • Cover page variable mapping — Fixed a misalignment where cover-field variable names did not map correctly to the underlying cover() function, causing certain parameters (e.g., semester, deadline, grade) to be silently ignored when passed through whu-report.with(...).

New Features

  • Extended cover fields

    • semester — Academic semester, e.g. "2025-2026-3"
    • deadline — Report submission deadline, e.g. "2026年7月18日"
    • grade — Toggle a grade/score field on the cover, defaults to false
  • Signature image on declaration page

    • The declaration-page() function (and whu-report) now accepts a signature parameter (image type).
    • When provided, the signature image is rendered inline (scaled to fit) instead of a blank underline.
    • When omitted, proper underscores are shown as placeholders.
  • Teacher comment & grading page

    • New teacher-comment() function renders a ready-to-use teacher feedback section at the end of the report, including:
      • A comment area with ruled lines
      • A score field
      • A reviewer signature field
      • A note reminding the evaluator to provide both qualitative feedback and a percentage grade

Polish

  • Font stack improvements

    • Monospace: added Fira Code, Consolas, Ubuntu Mono, and Microsoft YaHei as fallbacks for broader cross-platform coverage.
    • CJK body text: expanded serif/sans-serif fallback chains for better rendering on Linux and Windows.
  • Documentation

    • README now includes full bilingual (EN/Chinese) descriptions for all parameters, standalone functions, code styling, font dependencies, and usage examples.
    • Repository URL updated to https://github.com/zoomy14112/report-theme-whu.
  • Declaration page placeholders — Dotted underlines replaced with proper fullwidth underscores for a cleaner look.


  • ensured that my package is licensed such that users can use and distribute the contents of its template directory without restriction, after modifying them through normal use.

@typst-package-check typst-package-check Bot added the update A package update. label Jul 18, 2026
@typst-package-check

Copy link
Copy Markdown

@whoisKIWIIZZZ You released unofficial-whu-lab-report:0.1.0, so you probably want to have a look at this pull request. If you want this update to be merged, please leave a comment stating so. Without your permission, the pull request will not be merged.

@typst-package-check

Copy link
Copy Markdown

@whoisKIWIIZZZ You released unofficial-whu-lab-report:0.1.0, so you probably want to have a look at this pull request. If you want this update to be merged, please leave a comment stating so. Without your permission, the pull request will not be merged.

@typst-package-check

Copy link
Copy Markdown

@whoisKIWIIZZZ You released unofficial-whu-lab-report:0.1.0, so you probably want to have a look at this pull request. If you want this update to be merged, please leave a comment stating so. Without your permission, the pull request will not be merged.

@typst-package-check

Copy link
Copy Markdown

@whoisKIWIIZZZ You released unofficial-whu-lab-report:0.1.0, so you probably want to have a look at this pull request. If you want this update to be merged, please leave a comment stating so. Without your permission, the pull request will not be merged.

@typst-package-check

Copy link
Copy Markdown

@whoisKIWIIZZZ You released unofficial-whu-lab-report:0.1.0, so you probably want to have a look at this pull request. If you want this update to be merged, please leave a comment stating so. Without your permission, the pull request will not be merged.

@typst-package-check

Copy link
Copy Markdown

@whoisKIWIIZZZ You released unofficial-whu-lab-report:0.1.0, so you probably want to have a look at this pull request. If you want this update to be merged, please leave a comment stating so. Without your permission, the pull request will not be merged.

@whoisKIWIIZZZ

Copy link
Copy Markdown
Contributor

Yes, after reviewing the code, i'd like to merge this update.

@elegaanz elegaanz self-assigned this Jul 20, 2026
@elegaanz

Copy link
Copy Markdown
Member

Thank you!

@elegaanz
elegaanz merged commit 32bee51 into typst:main Jul 20, 2026
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.

3 participants