Skip to content

Commit

Permalink
Compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtz-j committed Sep 7, 2024
1 parent 47167c2 commit 5d3b93b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
10 changes: 2 additions & 8 deletions lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#import "modules/acknowledgements.typ": acknowledgements_page
#import "modules/abstract.typ": abstract_page
#import "modules/epigraph.typ": epigraph_page
// #import "modules/supervisors.typ": supervisors
#import "utils/print_pagebreak.typ": *

// Workaround for the lack of an `std` scope.
Expand Down Expand Up @@ -302,7 +301,8 @@
// let chapter-number-text = [#current.supplement Chapter #chapter-number]
let chapter-number-text = [#chapter-number]

// FIXME: Get next subsection name and number for header
// FIXME: Breaks when show: x_matter in lib
// Get next subsection name and number for header
// let subsection = query(heading.where(level: 2)).first()
// let next-subsection = subsection.

Expand Down Expand Up @@ -409,19 +409,13 @@
}
set table(stroke: none)

// Set raw text font.
show raw: set text(font: ("Iosevka", "JetBrains Mono"), size: 9pt)

// Display inline code in a small box that retains the correct baseline.
show raw.where(block: false): box.with(
fill: fill-color.darken(2%),
inset: (x: 3pt, y: 0pt),
outset: (y: 3pt),
radius: 2pt,
)
// show raw.where(block: false): box.with(
// fill: luma(250).darken(2%), inset: (x: 3pt, y: 0pt), outset: (y: 3pt), radius: 2pt,
// )

// Display block code with padding.
show raw.where(block: true): block.with(inset: (x: 5pt))
Expand Down
4 changes: 2 additions & 2 deletions modules/epigraph.typ
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#let epigraph_page(body) = {
pagebreak(weak: true, to: "even")
// pagebreak(weak: true, to: "even")

// --- Epigraph ---
align(right + horizon)[]
body
}
}
2 changes: 1 addition & 1 deletion template/chapters/tables_and_figures.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "../modules/template.typ": flex-caption
#import "../../lib.typ": flex-caption

= Tables and Figures

Expand Down
2 changes: 1 addition & 1 deletion template/thesis.typ
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
= Introduction <introduction>
#include "./chapters/introduction.typ"
#pagebreak()
// #include "./chapters/tables_and_figures.typ"
#include "./chapters/tables_and_figures.typ"

0 comments on commit 5d3b93b

Please sign in to comment.