Skip to content

Commit

Permalink
Fix Chapter reference link (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjndw authored Jan 16, 2025
1 parent fddf481 commit af79520
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions layout/thesis_template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@
show ref: it => {
let el = it.element
if el != none and el.func() == heading and el.level == 1 {
[Chapter ]
numbering(
el.numbering,
..counter(heading).at(el.location())
link(
el.location(),
[Chapter #numbering(
el.numbering,
..counter(heading).at(el.location())
)]
)
} else {
it
Expand Down

0 comments on commit af79520

Please sign in to comment.