Skip to content

gbt9704-gongwen:0.2.0#5362

Open
songwupei wants to merge 2 commits into
typst:mainfrom
songwupei:update-gbt9704-0.2.0
Open

gbt9704-gongwen:0.2.0#5362
songwupei wants to merge 2 commits into
typst:mainfrom
songwupei:update-gbt9704-0.2.0

Conversation

@songwupei

@songwupei songwupei commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

I am submitting

  • an update for a package

Description: GB/T 9704-2012 official Chinese government document format template. This update adds spacing themes (compact/normal/relaxed), table themes (full-grid/three-line/single-line/plain), table alignment control, page number positioning (both/center/left/right), a new endmatter() function, faux bold table headers for CJK fonts, and a bilingual README (EN + ZH). The src/ layout has been refactored into spacing.typ + table.typ + lib.typ.

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

  • selected a name that is not the most obvious or canonical name for what the package does
    • Explanation: "gbt9704-gongwen" combines the standard number (GB/T 9704) with the pinyin for "official document" (gongwen), making it Googleable and descriptive without being too generic.
  • 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
  • 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

● New features since v0.1.0:

  • Decoupled table styling — table themes are now applied via tbl.wrap() decorators ("full-grid",
    "three-line", "single-line", "plain") instead of a single global table-theme parameter
  • endmatter() — bottom-aligned CC + issuing info block with separator lines
  • Page numbering — - 1 - format with "both" / "center" / "left" / "right" positioning;
    first-page-number toggle
  • show-red-header — toggle entire red-header block
  • Red line at bottom of first page (when redline: true)
  • Faux bold table headers via text(stroke: ...) for CJK fonts
  • Signature — 3 blank lines before block, signatory right-aligned in header
  • Refactored src/ into spacing.typ + table.typ + lib.typ
  • Bilingual README (EN + ZH)

GB/T 9704-2012 official Chinese government document format template.

Changes since v0.1.0:
- Add spacing-theme: compact / normal / relaxed
- Add table-theme: full-grid / three-line / single-line / plain
- Add table-align: center / left / right
- Add show-red-header, first-page-number, page-number-pos params
- Add endmatter() function with bottom-aligned CC block
- Page number format: '- 1 -' with both/center/left/right positioning
- Faux bold table headers via text stroke (CJK-friendly)
- Refactored src/ into spacing.typ + table.typ + lib.typ
- Bilingual README (EN + ZH)
@typst-package-check typst-package-check Bot changed the title Update gbt9704-gongwen:0.2.0 gbt9704-gongwen:0.2.0 Jul 16, 2026
@typst-package-check typst-package-check Bot added the update A package update. label Jul 16, 2026
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