Universe

Create project in app

MIT license badge CI status badge Latest release

This is a typst adaptation of LaTeX’s moderncv, a modern curriculum vitae class.

Requirements

This template uses FontAwesome icons via the fontawesome typst package. In order to properly use it, you need to have fontawesome installed on your system or have typst configured (via --font-path) to use the fontawesome font files. You can download fontawesome here.

Tip: You can use typst in combination with pixi to easily add fontawesome to your project and run it reproducibly anywhere.

[dependencies]
typst = ">=0.14"
typstyle = ">=0.14"
font-otf-fontawesome = "*"

Usage

#import "@preview/moderner-cv:0.2.2": *

#show: moderner-cv.with(
  name: "Jane Doe",
  lang: "en",
  social: (
    email: "jane.doe@example.com",
    github: "jane-doe",
    linkedin: "jane-doe",
    // custom socials: (icon, link, body)
    // any fontawesome icon can be used: https://fontawesome.com/search
    website: ("link", "https://example.me", "example.me"),
  ),
  image: image("my-image.png", height: 8em),
)

// ...

Icons

Icons of custom socials can either be a string, which is interpreted as a fontawesome icon name, or arbitrary content. This allows you to use emojis or icons from other packages (e.g., a newer version of the fontawesome package):

#import "@preview/fontawesome:0.6.2": fa-icon

#show: moderner-cv.with(
  social: (
    website: ("link", "https://example.me", "example.me"),
    matrix: (fa-icon("matrix"), "https://matrix.to/#/@jane:matrix.org", "@jane:matrix.org"),
    blog: (emoji.pencil, "https://blog.example.me", "blog.example.me"),
  ),
)

Image

To add an image to your curriculum vitae, you can pass an image to the image parameter. Here are the additional parameters:

  • image-frame-stroke: stroke of the frame. By default is 1pt + the main of the file. Can be any stroke value. Set to none to remove the frame.

Examples

Jane Doe's CV

Building and Testing Locally

To build and test the template locally, you can run pixi run watch in the root of this repository. Please ensure to use the version of moderner-cv that is in this repository instead of the one on the typst universe by temporarily changing the import in cv.typ to #import "../lib.typ": *.