Skip to content

Commit

Permalink
Respect IEEE specification for equation references (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
avonmoll authored Nov 13, 2023
1 parent 868e5b3 commit 5799d6b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ieee/template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@
set math.equation(numbering: "(1)")
show math.equation: set block(spacing: 0.65em)

// Configure appearance of equation references
show ref: it => {
if it.element != none and it.element.func() == math.equation {
// Override equation references.
link(it.element.location(), numbering(
it.element.numbering,
..counter(math.equation).at(it.element.location())
))
} else {
// Other references as usual.
it
}
}

// Configure lists.
set enum(indent: 10pt, body-indent: 9pt)
set list(indent: 10pt, body-indent: 9pt)
Expand Down

0 comments on commit 5799d6b

Please sign in to comment.