mirror of
https://github.com/kristoferssolo/LU-DF-Typst-Template.git
synced 2025-10-21 18:50:33 +00:00
fix: reference supplements
This commit is contained in:
parent
28f93156cb
commit
ebd6bb8113
@ -272,7 +272,7 @@ Skatīt @logical-erd
|
|||||||
) <logical-erd>
|
) <logical-erd>
|
||||||
|
|
||||||
=== Datu bāzes fiziskais ER modelis
|
=== Datu bāzes fiziskais ER modelis
|
||||||
Skatīt @physical-erd[attēlu].
|
Skatīt @physical-erd[]
|
||||||
|
|
||||||
#figure(
|
#figure(
|
||||||
caption: "Datu bāzes loģiskais ER modelis",
|
caption: "Datu bāzes loģiskais ER modelis",
|
||||||
|
|||||||
10
src/lib.typ
10
src/lib.typ
@ -174,6 +174,8 @@
|
|||||||
..counter(el.func()).at(el.location()),
|
..counter(el.func()).at(el.location()),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// return el.supplement
|
||||||
|
|
||||||
|
|
||||||
if el.func() == heading {
|
if el.func() == heading {
|
||||||
return link(
|
return link(
|
||||||
@ -184,13 +186,15 @@
|
|||||||
|
|
||||||
|
|
||||||
let supplement = if type(it.supplement) == content {
|
let supplement = if type(it.supplement) == content {
|
||||||
|
// supplement provided by user
|
||||||
if it.supplement == [] {
|
if it.supplement == [] {
|
||||||
""
|
"" // empty supplement
|
||||||
} else {
|
} else {
|
||||||
[~#it.supplement]
|
[~#it.supplement.]
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
[~#it.supplement]
|
// fallback to default
|
||||||
|
[~#el.supplement.]
|
||||||
}
|
}
|
||||||
|
|
||||||
if el.func() == figure {
|
if el.func() == figure {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user