Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giovanniberti/moderncv.typst
A typst template inspired by LaTeX moderncv
https://github.com/giovanniberti/moderncv.typst
Last synced: 26 days ago
JSON representation
A typst template inspired by LaTeX moderncv
- Host: GitHub
- URL: https://github.com/giovanniberti/moderncv.typst
- Owner: giovanniberti
- License: apache-2.0
- Created: 2023-03-30T19:18:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T17:53:37.000Z (3 months ago)
- Last Synced: 2024-04-17T21:20:14.990Z (2 months ago)
- Language: Typst
- Size: 215 KB
- Stars: 40
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-typst - moderncv.typst - A CV template inspired by LaTeX's `moderncv` (Templates & Libraries / CV)
- awesome-typst-cn - moderncv.typst
README
# ModernCV for Typst
* [How to use](#how-to-use)
* [Examples](#examples)
* [How to customize colors](#how-to-customize-colors)![Template preview](preview.png)
This is a [typst](https://github.com/typst/typst) template inspired by LaTeX's [moderncv](https://github.com/moderncv/moderncv).
Currently it features a very basic structure, but the main components are defined to allow for sufficient flexibility such to provide all the customizations that the original package has.
## How to use
This template provides a few customizations that should be considered when writing CVs:
* Headings:
* `h1` for two-columns, coloured section headings
* `h2` and `h3` used internally for job roles and places
* `h4` usable as a generic heading by users
* Functions:
* `cvcol`: used to write in the rightmost column only. Builds on `cvgrid`
* `cventry`: used to write a CV entry. Builds on `cvgrid`
* `cvlangauge`: used to write a language entry. Builds on `cvgrid`
* `datebox`: provides content with stacked year above (big) and month below (tinier)
* `daterange`: two `datebox`es separated by an em dash
* `xdot`: adds a trailing dot to a string only if it's not already present
* `cvgrid`: basic layout function that wraps a grid. Controlled by two parameters `left_column_size` (default: 25%) and `grid_column_gutter` (default: 8pt) which control the left column size and the column gutter respectively.Most of the times you'll be using `cventry` and `cvcol`, for example:
```typst
#import "@preview/moderncv:0.1.0": project, cvcol, cventry#show: project.with(
title: "Master Frobnicator",
author: "John Doe",
github: "johndoe1337",
phone: "+01 234 56 7890",
email: "[email protected]"
)= Work Experience
#cventry(
start: (month: "December", year: 2101),
end: (month: "", year: "Present"),
role: [Junior Frobnication Engineer],
place: "WeDontWork Inc.")[
Your description here
]#cvcol[
==== Generic stuffMy other stuff goes here
]
```## Examples
See `example.typ` `example.pdf`.
## How to customize colors
Currently the `project` function exposes three different color parameters:
* `main_color`: Used by left-side heading bars (default: `rgb(147, 14, 14)`)
* `heading_color`: Used in headings text (default: same as `main_color`)
* `job_color`: Used in the main job occupation text (default: `rgb("#737373")`)