mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Changed equation reference customization example to include a link (#3812)
This commit is contained in:
parent
72c5b42a30
commit
d672080e85
@ -77,10 +77,10 @@ use crate::text::TextElem;
|
|||||||
/// let el = it.element
|
/// let el = it.element
|
||||||
/// if el != none and el.func() == eq {
|
/// if el != none and el.func() == eq {
|
||||||
/// // Override equation references.
|
/// // Override equation references.
|
||||||
/// numbering(
|
/// link(el.location(),numbering(
|
||||||
/// el.numbering,
|
/// el.numbering,
|
||||||
/// ..counter(eq).at(el.location())
|
/// ..counter(eq).at(el.location())
|
||||||
/// )
|
/// ))
|
||||||
/// } else {
|
/// } else {
|
||||||
/// // Other references as usual.
|
/// // Other references as usual.
|
||||||
/// it
|
/// it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user