ref(smartypants): Move smartypants application to lib

This commit is contained in:
Marty Oehme 2025-03-18 14:57:57 +01:00
parent df480875df
commit 72d40e5094
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 8 additions and 8 deletions

15
lib.typ
View file

@ -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

View file

@ -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 = {