Package 'typstcv'

Title: CV for Quarto & Typst
Description: Provides functions to create a entry of CV for Quarto & Typst.
Authors: Kazuharu Yanagimoto [aut, cre]
Maintainer: Kazuharu Yanagimoto <[email protected]>
License: MIT + file LICENSE
Version: 0.0.2.2
Built: 2025-03-04 05:19:02 UTC
Source: https://github.com/kazuyanagimoto/typstcv

Help Index


Example data: Awards

Description

Example data: Awards

Usage

award

Format

award

A dataframe of awards

title

Title of award

location

Location of award

date

Date of award

description

Description of award

Source

data-raw/data.R


Example data: Education

Description

Example data: Education

Usage

educ

Format

educ

A dataframe of educational history

title

Degree title

location

Location of institution

date

Date of degree

description

Institution

Source

data-raw/data.R


Data Column Formatter

Description

Data Column Formatter

Usage

format_date(
  data,
  start = "start",
  end = NULL,
  sep = " - ",
  date_format = "%b %Y",
  colname_date = "date",
  replace_na = "Present",
  sort_by = "none",
  decreasing = TRUE
)

Arguments

data

Data frame for resume entry

start

Start date column name. Default is "start"

end

Optional. End date column name.

sep

Separator between start and end date. Default is " - "

date_format

Date format. Default is "%B %Y"

colname_date

Name for the generated date column. Default is "date"

replace_na

Value to replace NA values. Default is "Present"

sort_by

Sort by "none", "start" or "end". Default is "none"

decreasing

Sort in decreasing order. Default is TRUE

Value

Data frame with formatted date column

Examples

work <- data.frame(
  title = c("Technical Assistant", "Junior Professor", "Associate Professor"),
  location = c("Bern, Switzerland", "Bern, Switzerland", "Zürich, Switzerland"),
  start = as.Date(c("1902-01-01", "1908-01-01", "1909-01-01")),
  end = as.Date(c("1908-01-01", "1909-01-01", "1911-01-01")),
  description = c("Federal Patent Office", "University of Bern", "University of Zürich")
)

work |>
  format_date(end = "end", date_format = "%Y", sort_by = "start") |>
  resume_entry()

Example data: Publications

Description

Example data: Publications

Usage

pub

Format

pub

A dataframe of publications

title

Title of publication

location

Journal

date

Date of publication

Source

data-raw/data.R


Convert a data frame to a resume entry

Description

Convert a data frame to a resume entry

Usage

resume_entry(
  data,
  title = "title",
  location = "location",
  date = "date",
  description = "description",
  details = NULL
)

Arguments

data

A data frame with columns for title, location, date, and description

title

The column name for the title. Default is "title"

location

The column name for the location. Default is "location"

date

The column name for the date. Default is "date"

description

The column name for the description. Default is "description"

details

The column name for additional details. Default is NULL

Value

A string with the resume entry

Examples

educ <- data.frame(
 title = c("Ph.D. in Physics", "Master of Science"),
 location = c("Zürich, Switzerland", "Zürich, Switzerland"),
 date = c("1905", "1896 - 1900"),
 description = c("University of Zürich", "ETH")
)

resume_entry(educ)

# With details
award <- data.frame(
 title = c("Nobel Prize in Physics"),
 location = c("Stockholm, Sweden"),
 date = c("1921"),
 description = c("For his services to"),
 detail1 = c("Theoretical Physics"),
 detail2 = c("Discovery of the law of the photoelectric effect")
)

resume_entry(award, details = c("detail1", "detail2"))

Example data: Skills

Description

Example data: Skills

Usage

skill

Format

skill

A dataframe of skills

title

Category of skill

description

List of skills

Source

data-raw/data.R


Example data: Work experience

Description

Example data: Work experience

Usage

work

Format

work

A dataframe of work experience

title

Job title

location

Location of job

date

Date of employment

description

Employer

Source

data-raw/data.R