@yamlresume/core
    Preparing search index...

    Class ModerncvCasualLatexRenderer

    Renderer for the casual style of moderncv.

    Hierarchy

    • ModerncvBase
      • ModerncvCasualLatexRenderer
    Index
    layoutIndex: number
    resume: Resume
    style: "banking" | "classic" | "casual"
    • 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, falling back to the next region via \IfFontExistsTF when the font is not installed.

      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 LaTeX sections

    • Render the certificates section of the resume.

      Returns string

      The LaTeX code for the certificates section

    • Render the page layout/margins using the geometry package.

      Returns string

      The LaTeX code for page layout/margins configuration

    • Render auto-underline configuration for all hyperref links.

      Redefines \href to automatically underline link text when the layout enables it. LaTeX's \underline follows the box depth, so a link containing descenders would sit lower than one without them, and it draws the rule over the glyphs.

      Draw a fixed-baseline rule first and the text on top instead. The text is measured into a savebox so the rule can match its width, while \smash keeps the rule from affecting line spacing. The rule's center sits 1.3pt below the baseline, matching the Typst underline.

      The text is drawn with a white contour so descenders clear a gap in the rule instead of crossing it, matching Typst's underline behavior.

      Returns string

      The LaTeX code for auto-underlining links, or empty string

    • Render the line spacing configuration using the setspace package.

      Returns string

      The LaTeX code for line spacing configuration

    • 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 \href 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 sections in the specified order.

      Returns string

      The rendered sections in the specified order

    • Render the publications section of the resume.

      Returns string

      The LaTeX code for the publications section

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

      When showUrls is true, returns the URL formatted with \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 URL LaTeX code, or empty string

    • Render URL configuration to use normal text instead of monospace.

      Returns string

      The LaTeX code for URL configuration

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

      Returns string