Skip to content

Commit

Permalink
adjust heading size and reduce border radius to 0.1em
Browse files Browse the repository at this point in the history
the heading size is set according to https://www.sascha-frank.com/latex-font-size.html
  • Loading branch information
Enter-tainer committed Sep 30, 2023
1 parent d6b5b48 commit 22450a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions oi-wiki-export-typst/oi-wiki-export.typ
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@
font: ("New Computer Modern", "Noto Serif CJK SC"),
weight: 700,
)
#show heading.where(level: 1): set text(size: 36pt)
#show heading.where(level: 2): set text(size: 22pt)
#show heading.where(level: 3): set text(size: 18pt)
#show heading.where(level: 4): set text(size: 16pt)
#show heading.where(level: 5): set text(size: 14pt)
#show heading.where(level: 6): set text(size: 12pt)
#show heading.where(level: 1): set text(size: 25pt)
#show heading.where(level: 2): set text(size: 20pt)
#show heading.where(level: 3): set text(size: 17pt)
#show heading.where(level: 4): set text(size: 14pt)
#show heading.where(level: 5): set text(size: 12pt)
#show heading.where(level: 6): set text(size: 10pt)
#show heading: it => [
// #v(1fr, weak: true)
#v(1.8em)
Expand Down
10 changes: 5 additions & 5 deletions oi-wiki-export-typst/oi-wiki.typ
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@
code
) = {
let radius = if unwrapped {
(bottom: .5em)
(bottom: .1em)
} else {
.5em
.1em
}
let stroke = if unwrapped {
(
Expand Down Expand Up @@ -156,9 +156,9 @@
// },
// inset: (x: 1em, y: .5em),
// radius: if not unwrapped {
// .5em
// .1em
// } else {
// (bottom: .5em)
// (bottom: .1em)
// }
// )
//
Expand Down Expand Up @@ -280,7 +280,7 @@
align(
center,
block(
radius: .5em,
radius: .1em,
inset: (x: .5em),
stroke: 1pt + antiflash-white.dark,
tablex(
Expand Down
4 changes: 2 additions & 2 deletions oi-wiki-export-typst/pymdownx-details.typ
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
),
below: 0em,
inset: (x: 1em, y: .5em),
radius: (top: .5em),
radius: (top: .1em),
)[
#show parbreak: []

Expand All @@ -87,7 +87,7 @@
),
above: 0em,
inset: (x: 1em, y: .5em),
radius: (bottom: .5em),
radius: (bottom: .1em),

items.at(1)
)
Expand Down

0 comments on commit 22450a6

Please sign in to comment.