From 72d40e509447c8ebd8f8db5859b5b10221cf9e2a Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 18 Mar 2025 14:57:57 +0100 Subject: [PATCH] ref(smartypants): Move smartypants application to lib --- lib.typ | 15 ++++++++------- resume.typ | 1 - 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib.typ b/lib.typ index d82a0a1..ff4c0ed 100644 --- a/lib.typ +++ b/lib.typ @@ -1,11 +1,4 @@ -// set some styles -#let style(it) = { - show heading: set text(font: "New Computer Modern") - show link: underline - it -} - // transform md-similes to actual symbols #let smartypants(it) = { // smartypants and latex compatibility @@ -15,6 +8,14 @@ it } +// set some styles +#let style(it) = { + show heading: set text(font: "New Computer Modern") + show link: underline + show: smartypants + it +} + // Choose the compiled language through cli by doing // // $ typst compile --input lang=de cv.typ diff --git a/resume.typ b/resume.typ index 42764df..2930ed1 100644 --- a/resume.typ +++ b/resume.typ @@ -2,7 +2,6 @@ #let resume(contents, main: ("experience_by_type", "education"), sidebar: ("volunteering", "languages", "skills")) = { show: style - show: smartypants set text(lang: lang) let date_formatting = {