Skip to content

modern-ucas-thesis:0.2.0#4354

Open
Vncntvx wants to merge 62 commits intotypst:mainfrom
Vncntvx:modern-ucas-thesis-0.2.0
Open

modern-ucas-thesis:0.2.0#4354
Vncntvx wants to merge 62 commits intotypst:mainfrom
Vncntvx:modern-ucas-thesis-0.2.0

Conversation

@Vncntvx
Copy link
Contributor

@Vncntvx Vncntvx commented Mar 13, 2026

I am submitting

  • a new package
  • an update for a package

Description: Master or doctoral thesis at the University of Chinese Academy of Sciences..

I have read and followed the submission guidelines and, in particular, I

  • selected a name that isn't the most obvious or canonical name for what the package does
  • added a typst.toml file with all required keys
  • added a README.md with documentation for my package
  • have chosen a license and added a LICENSE file or linked one in my README.md
  • tested my package locally on my system and it worked
  • excluded PDFs or README images, if any, but not the LICENSE
  • 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.

Copilot AI review requested due to automatic review settings March 13, 2026 13:11
@typst-package-check typst-package-check bot added the update A package update. label Mar 13, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the modern-ucas-thesis Typst template package to version 0.2.0, expanding the template’s page/layout system, utilities, and documentation for UCAS thesis typesetting.

Changes:

  • Adds a full set of page templates (covers, abstracts, TOC, lists, declarations, etc.) and layout drivers (doc/preface/mainmatter/appendix).
  • Introduces new utilities for fonts, numbering, bilingual figures/tables, bibliography post-processing, and small formatting helpers.
  • Adds extensive documentation and project tooling (format script, Makefile), plus template/demo content.

Reviewed changes

Copilot reviewed 48 out of 58 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
packages/preview/modern-ucas-thesis/0.2.0/utils/unpairs.typ Helper to convert pairs→dict
packages/preview/modern-ucas-thesis/0.2.0/utils/style.typ Font sets + Chinese size map
packages/preview/modern-ucas-thesis/0.2.0/utils/justify-text.typ Justified short key rendering
packages/preview/modern-ucas-thesis/0.2.0/utils/invisible-heading.typ Outline-only headings helper
packages/preview/modern-ucas-thesis/0.2.0/utils/hline.typ Horizontal rule helper
packages/preview/modern-ucas-thesis/0.2.0/utils/double-underline.typ Double underline helper
packages/preview/modern-ucas-thesis/0.2.0/utils/datetime-display.typ Chinese/English date formatting
packages/preview/modern-ucas-thesis/0.2.0/utils/custom-tablex.typ tablex re-export import
packages/preview/modern-ucas-thesis/0.2.0/utils/custom-numbering.typ Custom numbering wrapper
packages/preview/modern-ucas-thesis/0.2.0/utils/custom-heading.typ Active/current heading helpers
packages/preview/modern-ucas-thesis/0.2.0/utils/bilingual-figure.typ Bilingual figure/table + show rules
packages/preview/modern-ucas-thesis/0.2.0/utils/bilingual-bibliography.typ Bilingual bibliography post-processing
packages/preview/modern-ucas-thesis/0.2.0/typst.toml Package manifest for 0.2.0
packages/preview/modern-ucas-thesis/0.2.0/test/test.typ Rendering test snippet
packages/preview/modern-ucas-thesis/0.2.0/template/thesis.typ Full template/demo thesis document
packages/preview/modern-ucas-thesis/0.2.0/template/ref.bib Sample bibliography database
packages/preview/modern-ucas-thesis/0.2.0/pages/outline-page.typ TOC page rendering
packages/preview/modern-ucas-thesis/0.2.0/pages/notation.typ Notation list page
packages/preview/modern-ucas-thesis/0.2.0/pages/master-decl-page.typ Graduate declaration page
packages/preview/modern-ucas-thesis/0.2.0/pages/master-cover.typ Graduate cover pages (CN/EN)
packages/preview/modern-ucas-thesis/0.2.0/pages/master-abstract.typ Graduate Chinese abstract page
packages/preview/modern-ucas-thesis/0.2.0/pages/master-abstract-en.typ Graduate English abstract page
packages/preview/modern-ucas-thesis/0.2.0/pages/list-of-figures-and-tables.typ Figure/table lists page
packages/preview/modern-ucas-thesis/0.2.0/pages/fonts-display-page.typ Font preview/test page
packages/preview/modern-ucas-thesis/0.2.0/pages/backmatter.typ Author CV / publications section
packages/preview/modern-ucas-thesis/0.2.0/pages/bachelor-decl-page.typ Undergraduate declaration page
packages/preview/modern-ucas-thesis/0.2.0/pages/bachelor-cover.typ Undergraduate cover page
packages/preview/modern-ucas-thesis/0.2.0/pages/bachelor-abstract.typ Undergraduate Chinese abstract page
packages/preview/modern-ucas-thesis/0.2.0/pages/bachelor-abstract-en.typ Undergraduate English abstract page
packages/preview/modern-ucas-thesis/0.2.0/pages/acknowledgement.typ Acknowledgements page
packages/preview/modern-ucas-thesis/0.2.0/others/style.typ Alternate font/size config (other docs)
packages/preview/modern-ucas-thesis/0.2.0/others/master-proposal.typ Graduate proposal template
packages/preview/modern-ucas-thesis/0.2.0/others/bachelor-proposal.typ Undergraduate proposal template
packages/preview/modern-ucas-thesis/0.2.0/lib.typ Package entrypoint / documentclass API
packages/preview/modern-ucas-thesis/0.2.0/layouts/preface.typ Preface layout + header logic
packages/preview/modern-ucas-thesis/0.2.0/layouts/mainmatter.typ Mainmatter layout + headers/counters
packages/preview/modern-ucas-thesis/0.2.0/layouts/doc.typ Global doc/page setup
packages/preview/modern-ucas-thesis/0.2.0/layouts/appendix.typ Appendix layout + counter reset
packages/preview/modern-ucas-thesis/0.2.0/format-typst.sh Formatting helper script
packages/preview/modern-ucas-thesis/0.2.0/fonts/README.md Font directory instructions
packages/preview/modern-ucas-thesis/0.2.0/docs/README_EN.md English documentation README
packages/preview/modern-ucas-thesis/0.2.0/docs/LOGO_COPYRIGHT_EN.md Logo copyright notice (EN)
packages/preview/modern-ucas-thesis/0.2.0/docs/LOGO_COPYRIGHT.md Logo copyright notice (ZH)
packages/preview/modern-ucas-thesis/0.2.0/docs/FORMAT.md Formatting tool documentation
packages/preview/modern-ucas-thesis/0.2.0/docs/FAQ.md FAQ
packages/preview/modern-ucas-thesis/0.2.0/docs/CUSTOMIZE.md Comprehensive customization guide
packages/preview/modern-ucas-thesis/0.2.0/assets/vi/ucas.svg UCAS logo asset
packages/preview/modern-ucas-thesis/0.2.0/README.md Package README (ZH)
packages/preview/modern-ucas-thesis/0.2.0/Makefile Formatting convenience targets
packages/preview/modern-ucas-thesis/0.2.0/LICENSE MIT license file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +12 to +14
// 其他参数
stoke-width: 0.5pt,
min-title-lines: 2,
Comment on lines +20 to +23
title-below: 18pt,
abstract-title-weight: "regular",
stoke-width: 0.5pt,
info-value-align: center,
Comment on lines +19 to +22
title-below: 18pt,
abstract-title-weight: "regular",
stoke-width: 0.5pt,
info-value-align: center,
Comment on lines +178 to +180
heading-text-args-lists.map(
pair => (pair.at(0), array-at(pair.at(1), it.level)),
),
))
context {
if calc.even(here().page()) {
set page(numbering: "I", header: none)
Comment on lines +11 to +32
UCAS visual identity elements in this template (`assets/vi/` directory) are **NOT covered by the MIT License**. They remain the property of the Chinese Academy of Sciences and UCAS.

## Affected Files

| File | Description |
|------|-------------|
| `ucas.svg` | UCAS logo |
| `ucas-emblem.svg` | UCAS emblem |
| `ucas-all-H-standard.svg` | Full horizontal logo (standard) |
| `ucas-logo-H.svg` / `ucas-logo-H-standard.svg` | Horizontal logo |
| `ucas-logo-V.svg` / `ucas-logo-V-standard.svg` | Vertical logo |

## Usage Terms

- **Allowed**: Personal study, classroom teaching, academic thesis writing (fair use)
- **Not Allowed**: Commercial use, official publications, promotional materials without authorization
- **Legal action**: UCAS reserves the right to pursue legal remedies for unauthorized use

## Need Authorization?

Contact UCAS via <https://www.ucas.ac.cn/> for written permission, or replace/remove the logos in your copy.

Comment on lines +86 to +90
)
info.reviewer = (
info.reviewer
+ range(min-reviewer-lines - info.reviewer.len()).map(it => " ")
)
Comment on lines +1 to +3
#import "@preview/i-figured:0.2.4"
#import "../utils/invisible-heading.typ": invisible-heading
#import "../utils/style.typ": get-fonts, 字号
Comment on lines +16 to +18
// 其他参数
stoke-width: 0.5pt, // 控制元素边框(如框架、分隔线等)的线宽度。
min-title-lines: 2, // 控制标题行数的最小值。
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