Compare commits
3 Commits
7e6f1275bc
...
c7e20cace7
Author | SHA1 | Date | |
---|---|---|---|
c7e20cace7 | |||
4584b67bed | |||
d9fdde3a17 |
18
algs.typ
Normal file
18
algs.typ
Normal file
@ -0,0 +1,18 @@
|
||||
// templates for compsci notes
|
||||
|
||||
#import "main.typ": gen_title, gen_authors, doc_template, mono_font
|
||||
#import "compsci.typ": source_code
|
||||
|
||||
#let template(
|
||||
title: none,
|
||||
authors: none,
|
||||
body
|
||||
) = {
|
||||
doc_template({
|
||||
gen_title(title: title)
|
||||
v(15pt, weak: true)
|
||||
|
||||
gen_authors(authors: authors)
|
||||
body
|
||||
})
|
||||
}
|
5
main.typ
5
main.typ
@ -55,6 +55,7 @@
|
||||
body,
|
||||
) = {
|
||||
set text(size: normal-size, font: font, weight: "light")
|
||||
show link: body => text(fill: rgb("#777777"), weight: "bold", body)
|
||||
show math.equation: eq => text(font: math_font, eq)
|
||||
show heading: set text(font: heading_font, weight: "black")
|
||||
show raw.where(block: true): txt => pad(
|
||||
@ -77,8 +78,8 @@
|
||||
paper: paper-size,
|
||||
)
|
||||
set heading(numbering: "1.")
|
||||
set list(indent: 24pt, body-indent: 5pt)
|
||||
set enum(indent: 24pt, body-indent: 5pt)
|
||||
set list(indent: 5pt, body-indent: 5pt)
|
||||
set enum(indent: 5pt, body-indent: 5pt)
|
||||
|
||||
// Configure paragraph properties.
|
||||
set par(justify: true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user