mirror of
https://github.com/typst/typst
synced 2025-05-20 20:15:29 +08:00
Automatically get footnote numbering in counter display (#4686)
This commit is contained in:
parent
672f6e5f97
commit
18ce3f111d
@ -15,7 +15,7 @@ use crate::foundations::{
|
||||
use crate::introspection::{Introspector, Locatable, Location};
|
||||
use crate::layout::{Frame, FrameItem, PageElem};
|
||||
use crate::math::EquationElem;
|
||||
use crate::model::{FigureElem, HeadingElem, Numbering, NumberingPattern};
|
||||
use crate::model::{FigureElem, FootnoteElem, HeadingElem, Numbering, NumberingPattern};
|
||||
use crate::syntax::Span;
|
||||
use crate::utils::NonZeroExt;
|
||||
use crate::World;
|
||||
@ -372,6 +372,8 @@ impl Counter {
|
||||
FigureElem::numbering_in(styles).clone()
|
||||
} else if func == EquationElem::elem() {
|
||||
EquationElem::numbering_in(styles).clone()
|
||||
} else if func == FootnoteElem::elem() {
|
||||
Some(FootnoteElem::numbering_in(styles).clone())
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user