Move element styling and smartypants to lib
This commit is contained in:
parent
b333e2f2db
commit
948510fb13
3 changed files with 19 additions and 6 deletions
2
cv.typ
2
cv.typ
|
@ -1,6 +1,8 @@
|
|||
#import "lib.typ": *
|
||||
|
||||
#let cv(contents, use_sidebar: false) = {
|
||||
show: style
|
||||
show: smartypants
|
||||
set text(lang: lang)
|
||||
|
||||
let date_formatting = {
|
||||
|
|
21
lib.typ
21
lib.typ
|
@ -1,10 +1,19 @@
|
|||
#show heading: set text(font: "New Computer Modern")
|
||||
#show link: underline
|
||||
|
||||
// smartypants and latex compatibility
|
||||
#show "--": [#sym.dash.en]
|
||||
#show "---": [#sym.dash.em]
|
||||
#show "\&": [#sym.amp]
|
||||
// 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
|
||||
show "--": [#sym.dash.en]
|
||||
show "---": [#sym.dash.em]
|
||||
show "\&": [#sym.amp]
|
||||
it
|
||||
}
|
||||
|
||||
// Choose the compiled language through cli by doing
|
||||
//
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
}
|
||||
|
||||
#let resume(contents, main: ("experience", "education"), sidebar: ("volunteering", "languages", "skills")) = {
|
||||
show: style
|
||||
show: smartypants
|
||||
set text(lang: lang)
|
||||
|
||||
let date_formatting = {
|
||||
|
|
Loading…
Reference in a new issue