All skills
jihe520 avatar

/typst-author

@4a360cb
by Sanjinjihe520/mathmodelagent6.2k stars
450

Generate idiomatic Typst (.typ) code, edit and troubleshoot Typst documents and projects, and answer Typst syntax/reference questions. Use when working with .typ files or when the user explicitly asks for Typst document creation, editing, debugging, compilation, formatting, template work, or package usage.

Use this Skill: https://skilld.dev/gh/jihe520/mathmodelagent/typst-author

This session only. Nothing lands on disk.

docschangelog0.3.0.md

≈893 tokens on demand. Your agent reads this file only when SKILL.md points to it.

0.3.0

Breaking changes

  • Renamed a few symbols: What was previous dot.op is now just dot and the basic dot is dot.basic. The same applies to ast and tilde.
  • Renamed mod to rem to more accurately reflect the behavior. It will remain available as mod until the next update as a grace period.
  • A lone underscore is not a valid identifier anymore, it can now only be used in patterns
  • Removed before and after arguments from query. This is now handled through flexible selectors combinator methods
  • Added support for attachments (sub-, superscripts) that precede the base symbol. The top and bottom arguments have been renamed to t and b.

New features

  • Added support for more complex strokes (configurable caps, joins, and dash patterns)
  • Added cancel function for equations
  • Added support for destructuring in argument lists and assignments
  • Added alt text argument to image function
  • Added toml function for loading data from a TOML file
  • Added zip, sum, and product methods for arrays
  • Added fact, perm, binom, gcd, lcm, atan2, quo, trunc, and fract calculation functions

Improvements

  • Text in SVGs now displays properly
  • Typst now generates a PDF heading outline
  • References now provides the referenced element as a field in show rules
  • Refined linebreak algorithm for better Chinese justification
  • Locations are now a valid kind of selector
  • Added a few symbols for algebra
  • Added Spanish smart quote support
  • Added selector function to turn a selector-like value into a selector on which combinator methods can be called
  • Improved some error messages
  • The outline and bibliography headings can now be styled with show-set rules
  • Operations on numbers now produce an error instead of overflowing

Bug fixes

  • Fixed wrong linebreak before punctuation that follows inline equations, citations, and other elements
  • Fixed a bug with argument sinks
  • Fixed strokes with thickness zero
  • Fixed hiding and show rules in math
  • Fixed alignment in matrices
  • Fixed some alignment bugs in equations
  • Fixed grid cell alignment
  • Fixed alignment of list marker and enum markers in presence of global alignment settings
  • Fixed path closing
  • Fixed compiler crash with figure references
  • A single trailing line breaks is now ignored in math, just like in text

Command line interface

  • Font path and compilation root can now be set with the environment variables TYPST_FONT_PATHS and TYPST_ROOT
  • The output of typst fonts now includes the embedded fonts

Development

  • Added instrumentation for debugging and optimization
  • Added --update flag and UPDATE_EXPECT environment variable to update reference images for tests
  • You can now run a specific subtest with --subtest
  • Tests now run on multiple threads

Contributors

Source: SKILL.md on GitHub

1 alert3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill is a comprehensive Typst authoring assistant that provides a complete local mirror of the Typst documentation (tutorials, guides, and reference). It facilitates the generation, editing, and troubleshooting of Typst documents using standard ecosystem tools such as 'typst' and 'typstyle'. The instructions emphasize accuracy by directing the agent to prioritize local documentation and include safety checkpoints for formatting and editing tasks. No malicious patterns, data exfiltration risks, or other security threats were identified.

  • Socket3mo

    1 alert: obfuscatedFile

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at 4a360cb. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 4 months ago

README badge

README badge for jihe520/mathmodelagent/typst-author