Move element styling and smartypants to lib

This commit is contained in:
Marty Oehme 2025-02-05 15:15:55 +01:00 committed by Marty Oehme
parent b333e2f2db
commit 948510fb13
3 changed files with 19 additions and 6 deletions

21
lib.typ
View file

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