YAMLResume

LaTeX Engine

The core LaTeX engine: produce typeset PDF resumes with configurable page, typography, section titles and accent colors.

The LaTeX engine is the core engine of YAMLResume, designed to produce high-quality, professional-looking PDF resumes using LaTeX templates.

Configuration

To use the LaTeX engine, specify engine: latex in your layout configuration.

layouts:
  - engine: latex
    template: moderncv-banking
    # ... other options

Page

The page option allows you to customize the page settings, such as the paper size, margins and whether to show page numbers.

layouts:
  - engine: latex
    page:
      showPageNumbers: true
      # a4 or letter
      paperSize: a4
      margins:
        top: 2.5cm
        left: 1.5cm
        right: 1.5cm
        bottom: 2.5cm

Sections

The sections option allows you to customize the section titles and their order. For more information, see the sections documentation.

layouts:
  - engine: latex
    sections:
      aliases:
        work: "Professional Experience"
        education: "Education"
        skills: "Skills"
      order:
        - basics
        - work
        - education

Templates

The template option allows you to choose from a variety of templates. Each template has a unique design and layout. You can find a list of available templates in the templates documentation.

layouts:
  - engine: latex
    template: moderncv-banking

Typography

The typography option allows you to customize font styles used in your resume.

Font Size

The fontSize option allows you to set the base font size for the document. The LaTeX engine only supports 10pt, 11pt, and 12pt.

Font Family

The fontFamily option allows you to specify a prioritized list of font family names. This works similarly to the CSS font-family property.

Line Spacing

The lineSpacing option allows you to adjust the line spacing (leading) of the document. YAMLResume uses semantic values that map to LaTeX's \setstretch{} command:

ValueDescription
tightCompact spacing for fitting more content
snugSlightly more space than tight
normalBalanced readability (default)
relaxedMore breathing room between lines
looseVery spacious layout
layouts:
  - engine: latex
    typography:
      fontSize: 11pt
      fontFamily: "Merriweather, serif"
      lineSpacing: relaxed

Set typography.links.underline to control whether hyperlinks are underlined. LaTeX link underlines use a fixed baseline and skip letter descenders for consistent spacing.

layouts:
  - engine: latex
    typography:
      links:
        underline: true

Theme

The theme option allows you to customize the visual appearance of your resume without affecting measurable layout geometry (page size, margins, font sizes) or section structure. Currently it supports accent colors. The markdown engine ignores the theme option.

Accent Color

The theme.colors.accent option sets the accent color used for section titles, rules, links, and other highlighted elements. It accepts either one of the named color presets or an arbitrary #RRGGBB hex color string:

ColorPresetHex
black#000000
blue#3873B3
burgundy#980000
cerulean#0081A7
green#59B24D
grey#737373
orange#F28C26
purple#8054CC
red#F23333
layouts:
  - engine: latex
    theme:
      colors:
        accent: burgundy # or an arbitrary hex color like "#1B365D"

Here is the jake template rendered with four accent presets:

Jake LaTeX template with the burgundy accent color

burgundy

Jake LaTeX template with the cerulean accent color

cerulean

Jake LaTeX template with the green accent color

green

Jake LaTeX template with the purple accent color

purple

For LaTeX output, the moderncv templates map the accent color onto moderncv's color1, while the jake template defines a custom accentcolor for section titles and rules. When no accent color is set, each template keeps its default palette.

Advanced

The advanced option allows you to configure advanced settings for the LaTeX engine.

layouts:
  - engine: latex
    advanced:
      showIcons: true
      fontspec:
        numbers: Lining
Edit on GitHub

Last updated on

On this page