AbstractConstructor for the Renderer class.
The resume to render.
The index of the selected layout.
ProtectedshowWhether to show icons in the rendered Typst.
ProtectedshowWhether links should be underlined in the document.
ProtectedshowWhether to show raw URLs or hide them behind reasonable text.
ProtectedfaGet 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).
The icon name in FA_ICONS
The Typst markup for the icon, or empty string if unknown
ProtectedgetGet 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.
ProtectedgetGet the FontAwesome icon markup for a network.
ProtectedgetGet 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.
ProtectedgetAccent color from the current layout's theme, if configured.
ProtectedhasCheck whether the resume content contains CJK characters.
ProtectediconedRender a string with an icon.
It should respect the showIcons option as well.
The icon to use
The string to use
The string with an icon
ProtectedisCheck if the resume is a CJK resume.
Protected AbstractjoinJoin multiple rendered sections into a single output.
The sections to join
The joined sections
AbstractrenderRender the resume.
The rendered resume
AbstractrenderRender the awards section of the resume.
The rendered awards section
AbstractrenderRender the basics section of the resume.
The rendered basics section
AbstractrenderRender the certificates section of the resume.
The rendered certificates section
AbstractrenderRender the education section of the resume.
The rendered education section
ProtectedrenderRender 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.
AbstractrenderRender the interests section of the resume.
The rendered interests section
AbstractrenderRender the languages section of the resume.
The rendered languages section
ProtectedrenderRender a Typst link element.
The URL to link to
The text to display, will be escaped by the caller if needed
The Typst link markup
ProtectedrenderRender 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.
The text to display
Optionalurl: string
Optional URL to link the text to
The text, optionally wrapped in a hyperlink
ProtectedrenderRender the locale config for the resume.
AbstractrenderRender the location section of the resume.
The rendered location section
ProtectedrenderRender sections in the specified order.
The rendered sections in the specified order
AbstractrenderRender the preamble of the TeX document.
The preamble of the TeX document.
AbstractrenderRender the profiles section of the resume.
The rendered profiles section
AbstractrenderRender the projects section of the resume.
The rendered projects section
AbstractrenderRender the publications section of the resume.
The rendered publications section
AbstractrenderRender the references section of the resume.
The rendered references section
AbstractrenderRender the skills section of the resume.
The rendered skills section
AbstractrenderRender 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.
The rendered summary section
ProtectedrenderRender 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).
The URL to render
The formatted Typst code, or empty string
AbstractrenderRender the volunteer section of the resume.
The rendered volunteer section
AbstractrenderRender the work section of the resume.
The rendered work section
ProtectedresolveResolved accent hex (without #) for the current layout, or null.
Base class for Typst renderers.