Open
Conversation
Remove the compiled document
Remove the test directory
Contributor
There was a problem hiding this comment.
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, // 控制标题行数的最小值。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am submitting
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
typst.tomlfile with all required keysREADME.mdwith documentation for my packageLICENSEfile or linked one in myREADME.mdexcluded PDFs or README images, if any, but not the LICENSE