Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds the modern-nju-thesis Typst template/package version 0.4.1 to the packages/preview registry, including its library entrypoint, layouts, page components, utilities, template project files, and documentation.
Changes:
- Added the full
0.4.1package contents (Typst library + layouts/pages/utils) and updated package metadata (typst.toml). - Included a runnable template project (
template/thesis.typ,ref.bib) and expanded documentation (README.md). - Added visual assets (SVGs) and documentation images.
Reviewed changes
Copilot reviewed 36 out of 47 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/preview/modern-nju-thesis/0.4.1/utils/unpairs.typ | Helper to convert pair arrays into dicts. |
| packages/preview/modern-nju-thesis/0.4.1/utils/style.typ | Defines font sizes and font fallback families. |
| packages/preview/modern-nju-thesis/0.4.1/utils/justify-text.typ | Utility for evenly-spacing short CJK labels (e.g., table keys). |
| packages/preview/modern-nju-thesis/0.4.1/utils/invisible-heading.typ | Helper to create “invisible” headings for outlines. |
| packages/preview/modern-nju-thesis/0.4.1/utils/hline.typ | Simple horizontal line helper. |
| packages/preview/modern-nju-thesis/0.4.1/utils/double-underline.typ | Renders double underline under a measured body. |
| packages/preview/modern-nju-thesis/0.4.1/utils/datetime-display.typ | Date formatting helpers (CN/EN). |
| packages/preview/modern-nju-thesis/0.4.1/utils/custom-tablex.typ | Re-export/import of tablex utilities. |
| packages/preview/modern-nju-thesis/0.4.1/utils/custom-numbering.typ | Custom heading numbering logic. |
| packages/preview/modern-nju-thesis/0.4.1/utils/custom-heading.typ | Helpers to query/display active/current headings. |
| packages/preview/modern-nju-thesis/0.4.1/utils/custom-cuti.typ | Re-export/import of cuti helpers. |
| packages/preview/modern-nju-thesis/0.4.1/utils/bilingual-bibliography.typ | Bilingual bibliography post-processing and rendering. |
| packages/preview/modern-nju-thesis/0.4.1/typst.toml | Package metadata, compiler constraint, template entrypoint. |
| packages/preview/modern-nju-thesis/0.4.1/template/thesis.typ | End-user template demonstrating package usage. |
| packages/preview/modern-nju-thesis/0.4.1/template/ref.bib | Example bibliography database for the template. |
| packages/preview/modern-nju-thesis/0.4.1/pages/notation.typ | “Notation” (terms list) page implementation. |
| packages/preview/modern-nju-thesis/0.4.1/pages/master-decl-page.typ | Graduate declaration page implementation. |
| packages/preview/modern-nju-thesis/0.4.1/pages/master-cover.typ | Graduate cover pages (CN + EN) and metadata blocks. |
| packages/preview/modern-nju-thesis/0.4.1/pages/master-abstract.typ | Graduate Chinese abstract page implementation. |
| packages/preview/modern-nju-thesis/0.4.1/pages/master-abstract-en.typ | Graduate English abstract page implementation. |
| packages/preview/modern-nju-thesis/0.4.1/pages/list-of-tables.typ | List-of-tables page implementation. |
| packages/preview/modern-nju-thesis/0.4.1/pages/list-of-figures.typ | List-of-figures page implementation. |
| packages/preview/modern-nju-thesis/0.4.1/pages/fonts-display-page.typ | Font rendering test page. |
| packages/preview/modern-nju-thesis/0.4.1/pages/bachelor-outline-page.typ | Bachelor outline (TOC) page implementation. |
| packages/preview/modern-nju-thesis/0.4.1/pages/bachelor-decl-page.typ | Bachelor declaration page implementation. |
| packages/preview/modern-nju-thesis/0.4.1/pages/bachelor-cover.typ | Bachelor cover page implementation. |
| packages/preview/modern-nju-thesis/0.4.1/pages/bachelor-abstract.typ | Bachelor Chinese abstract page implementation. |
| packages/preview/modern-nju-thesis/0.4.1/pages/bachelor-abstract-en.typ | Bachelor English abstract page implementation. |
| packages/preview/modern-nju-thesis/0.4.1/pages/acknowledgement.typ | Acknowledgement page (suppressed in anonymous mode). |
| packages/preview/modern-nju-thesis/0.4.1/lib.typ | Public API entrypoint; exposes documentclass/pages/layouts. |
| packages/preview/modern-nju-thesis/0.4.1/layouts/preface.typ | Preface layout (Roman page numbering reset). |
| packages/preview/modern-nju-thesis/0.4.1/layouts/mainmatter.typ | Main matter layout (styles, heading behavior, headers). |
| packages/preview/modern-nju-thesis/0.4.1/layouts/doc.typ | Document-global settings (page margins, PDF metadata, cite fix). |
| packages/preview/modern-nju-thesis/0.4.1/layouts/appendix.typ | Appendix layout (counter resets / numbering conventions). |
| packages/preview/modern-nju-thesis/0.4.1/imgs/gallery.png | Documentation image asset (VS Code template gallery screenshot). |
| packages/preview/modern-nju-thesis/0.4.1/assets/vi/nju-name.svg | NJU name logo asset (SVG). |
| packages/preview/modern-nju-thesis/0.4.1/assets/vi/nju-name-purple.svg | NJU name logo asset (purple SVG). |
| packages/preview/modern-nju-thesis/0.4.1/README.md | Package README / usage guide and developer guide. |
| packages/preview/modern-nju-thesis/0.4.1/LICENSE | Package license file (MIT). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+105
to
+107
| colspanx(2, info-value("major", info.major)), info-key[专业], | ||
| info-value("grade", info.grade), info-key(if type == "doctor" { [级硕士生姓名:] } else { [级博士生姓名:] } ), info-value("author", info.author), | ||
| colspanx(2, info-key[指导教师(姓名、职称):]), colspanx(4, info-value("supervisor", info.supervisor.at(0) + " " + info.supervisor.at(1) + if info.supervisor-ii != () { h(1em) + info.supervisor-ii.at(0) + " " + info.supervisor-ii.at(1) })), |
|
|
||
| v(6pt) | ||
|
|
||
| smallcaps(if doctype == "doctor" { "Doctor of phlosophy" } else { "Master" }) |
| fonts: (:), | ||
| info: (:), | ||
| // 其他参数 | ||
| stoke-width: 0.5pt, |
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: 2026 version