From 1dcb33ffc36e3e7caa420bf2e388f3bed6d1757a Mon Sep 17 00:00:00 2001 From: eggy Date: Mon, 23 Oct 2023 23:42:00 -0400 Subject: [PATCH] feat: test one-line --- Daniel Chen.typ | 8 ++++---- lib.typ | 11 +++++++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Daniel Chen.typ b/Daniel Chen.typ index 81848a8..d1212f7 100644 --- a/Daniel Chen.typ +++ b/Daniel Chen.typ @@ -109,12 +109,12 @@ #indent[ #work_entry( - "University of Waterloo", - "B.A.Sc. in Computer Engineering", + [B.A.Sc. in Computer Engineering], + [University of Waterloo], start_date: "Sep 2022", end_date: "Apr 2027 (expected)", - location: "Waterloo, ON", tasks: ( [Courses: Object-oriented programming, data structures & algorithms, digital computers & circuits], - ) + ), + one_line_mode: true ) ] diff --git a/lib.typ b/lib.typ index 882cac5..e7eb9b3 100644 --- a/lib.typ +++ b/lib.typ @@ -57,7 +57,7 @@ } // Entry for work. -#let work_entry(role, company, tasks: none, start_date: none, end_date: none, location: none) = { +#let work_entry(role, company, tasks: none, start_date: none, end_date: none, location: none, one_line_mode: false) = { let task_list = if tasks != none { let list = [] for task in tasks { @@ -69,7 +69,14 @@ } cv_entry( left_content: { - text(1.1em)[*#role*] + "\n" + text[#emph[#company]] + + if one_line_mode { + text(1.1em)[*#role*, #company] + } else { + text(1.1em)[*#role*] + "\n" + text[#emph[#company]] + } }, right_content: { [*#start_date -- #end_date*]