Skip to content

About

No description, website, or topics provided.

Resources

Stars

9 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typstpkg-vtzone

Demo: https://pub-714f8d634e8f451d9f2fe91a4debfa23.r2.dev/typstpkg-vtzone/7dab62ce42ddb0c7425a22f3/demo.pdf

This package provides a basic vertical layout environment for CJK text.

Features are limited. Code quality is suspicious. API design is unstable. Use with caution.

Usage

// Basic usage
#vtzone.vtzone(
  x-scale: 100%,
  max-height: auto,
  horizontal: rtl,
  row-gutter: 0.37em,
  col-gutter: 0.5em,
  custom-parbreak: none,
  initial-skip: 0mm,
  inner-alignment: center,
  debug: false,
)[REAL TEXT HERE]
//
// Option: use this show rule to enhance punctuation positions
#show: vtzone.fix-cjk-punct-vertical

Parameters

  • x-scale: Apply a horizontal scale to internal elements.
  • max-height: Limit the height of each column.
  • horizontal: Direction to horizontally arrange columns.
  • row-gutter: Inter-character vertical spacing.
  • col-gutter: Inter-column horizontal spacing.
  • custom-parbreak: What to do when a parbreak() occurs in the input stream.
  • initial-skip: Skip some horizontal space before the first column. In the current version, zones refuse to horizontally neighbor each other, so you may use this feature to place() stuff like chapter heading.
  • inner-alignment: The alignment inside each single-character cell.
  • debug: Show debugging hints. Will make underhang characters red.

Copyright

Copyright (c) 2026 Neruthes. Published with the MIT license.

About

No description, website, or topics provided.

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages