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.

docsreferencetextsub.md

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

Subscript

sub

Renders text in subscript.

The text is rendered smaller and its baseline is lowered.

Example

Revenue#sub[yearly]
#sub(
  typographic: bool,
  baseline: auto | length,
  size: auto | length,
  body
) -> content

Parameters

  • typographic:
    • description: Whether to use subscript glyphs from the font if available. Ideally, subscripts glyphs are provided by the font (using the subs OpenType feature). Otherwise, Typst is able to synthesize subscripts by lowering and scaling down regular glyphs. When this is set to false, synthesized glyphs will be used regardless of whether the font provides dedicated subscript glyphs. When true, synthesized glyphs may still be used in case the font does not provide the necessary subscript glyphs. typst N#sub(typographic: true)[1] N#sub(typographic: false)[1]
    • type: bool
    • default: true
  • baseline:
    • description: The downward baseline shift for synthesized subscripts. This only applies to synthesized subscripts. In other words, this has no effect if typographic is true and the font provides the necessary subscript glyphs. If set to auto, the baseline is shifted according to the metrics provided by the font, with a fallback to 0.2em in case the font does not define the necessary metrics.
    • type: auto | length
    • default: auto
  • size:
    • description: The font size for synthesized subscripts. This only applies to synthesized subscripts. In other words, this has no effect if typographic is true and the font provides the necessary subscript glyphs. If set to auto, the size is scaled according to the metrics provided by the font, with a fallback to 0.6em in case the font does not define the necessary metrics.
    • type: auto | length
    • default: auto
  • body:
    • description: The text to display in subscript.
    • type: content
    • default: None

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