@yamlresume/core
    Preparing search index...

    Class TypstRendererAbstract

    Base class for Typst renderers.

    Hierarchy (View Summary)

    Index
    layoutIndex: number
    resume: Resume
    • Get the FontAwesome icon markup for a named icon.

      Icons are inlined as SVG images, so the Typst engine does not depend on Font Awesome fonts being installed on the system (or on TeX Live).

      Parameters

      • icon: string

        The icon name in FA_ICONS

      Returns string

      The Typst markup for the icon, or empty string if unknown

    • Get the preferred Noto CJK font regions for the resume language, in order of preference. CJK characters get the wrong glyph variants when rendered with the wrong regional font (e.g. Japanese kanji with an SC font), so pick the region matching the locale.

      Mirrors the logic of the LaTeX renderer's getCJKFontRegions.

      Returns string[]

    • Get OS-shipped CJK font families for a region.

      These are fallbacks for systems without Noto CJK installed. Typst's implicit fallback can otherwise pick a font with unusable vertical metrics: macOS resolves zh-hant-hk to Osaka, whose zero ascent/descent collapses the line height and makes adjacent lines overlap.

      Parameters

      • region: string

      Returns string[]

    • Accent color from the current layout's theme, if configured.

      Returns
          | "black"
          | "blue"
          | "burgundy"
          | "cerulean"
          | "green"
          | "grey"
          | "orange"
          | "purple"
          | "red"
          | `#${string}`

    • Render a string with an icon.

      It should respect the showIcons option as well.

      Parameters

      • icon: string

        The icon to use

      • info: string

        The string to use

      Returns string

      The string with an icon

    • Join multiple rendered sections into a single output.

      Parameters

      • sections: string[]

        The sections to join

      Returns string

      The joined sections

    • Render the resume.

      Returns
          | string
          | Uint8Array<ArrayBufferLike>
          | Promise<string | Uint8Array<ArrayBufferLike>>

      The rendered resume

    • Render the awards section of the resume.

      Returns string

      The rendered awards section

    • Render the basics section of the resume.

      Returns string

      The rendered basics section

    • Render the certificates section of the resume.

      Returns string

      The rendered certificates section

    • Render the education section of the resume.

      Returns string

      The rendered education section

    • Render the font fallback list for #set text(font: ...).

      Typst picks the first available font in the list, so user-configured font families take precedence, followed by the Typst-bundled Libertinus Serif (the successor of Linux Libertine, the default font of the LaTeX templates), then Noto CJK fonts resolved per locale language, then the native CJK fonts shipped by the host OS.

      Returns string

    • Render the interests section of the resume.

      Returns string

      The rendered interests section

    • Render the languages section of the resume.

      Returns string

      The rendered languages section

    • Render a Typst link element.

      Parameters

      • url: string

        The URL to link to

      • text: string

        The text to display, will be escaped by the caller if needed

      Returns string

      The Typst link markup

    • Render text that may be linked to a URL.

      When showUrls is false and a URL is provided, the text is wrapped in a clickable link. Otherwise, the plain text is returned.

      Parameters

      • text: string

        The text to display

      • Optionalurl: string

        Optional URL to link the text to

      Returns string

      The text, optionally wrapped in a hyperlink

    • Render the location section of the resume.

      Returns string

      The rendered location section

    • Render sections in the specified order.

      Returns string

      The rendered sections in the specified order

    • Render the preamble of the TeX document.

      Returns string

      The preamble of the TeX document.

    • Render the profiles section of the resume.

      Returns string

      The rendered profiles section

    • Render the projects section of the resume.

      Returns string

      The rendered projects section

    • Render the publications section of the resume.

      Returns string

      The rendered publications section

    • Render the references section of the resume.

      Returns string

      The rendered references section

    • Render the skills section of the resume.

      Returns string

      The rendered skills section

    • Render the summary section of the resume.

      This method handles rendering the summary text stored in resume.content.basics.summary. The summary is rendered separately from other basic information since it may need to appear in a different location in the output document depending on the template.

      Returns string

      The rendered summary section

    • Render a URL in the URL position based on showUrls setting.

      When showUrls is true, returns the URL formatted as a link showing the raw URL text (analogous to LaTeX's \url). When showUrls is false, returns an empty string (the URL is hidden and should be rendered as a clickable link on the adjacent text via renderLinkedText instead).

      Parameters

      • url: string

        The URL to render

      Returns string

      The formatted Typst code, or empty string

    • Render the volunteer section of the resume.

      Returns string

      The rendered volunteer section

    • Resolved accent hex (without #) for the current layout, or null.

      Returns string