ref(smartypants): Move smartypants application to lib
This commit is contained in:
parent
df480875df
commit
72d40e5094
2 changed files with 8 additions and 8 deletions
15
lib.typ
15
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
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue