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.12.0" typstyle = ">=0.12" font-otf-fontawesome = "*"
Usage
#import "@preview/moderner-cv:0.2.0": *
#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),
)
// ...
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 tonone
to remove the frame.
Examples
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": *
.