mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Improved docs for par.line.numbering-scope
(#5250)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
This commit is contained in:
parent
838dabc84c
commit
33b9d1c7db
@ -380,13 +380,16 @@ impl Construct for ParLine {
|
|||||||
|
|
||||||
/// Possible line numbering scope options, indicating how often the line number
|
/// Possible line numbering scope options, indicating how often the line number
|
||||||
/// counter should be reset.
|
/// counter should be reset.
|
||||||
|
///
|
||||||
|
/// Note that, currently, manually resetting the line number counter is not
|
||||||
|
/// supported.
|
||||||
#[derive(Debug, Cast, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Debug, Cast, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
pub enum LineNumberingScope {
|
pub enum LineNumberingScope {
|
||||||
/// Indicates the line number counter spans the whole document, that is,
|
/// Indicates that the line number counter spans the whole document, i.e.,
|
||||||
/// is never automatically reset.
|
/// it's never automatically reset.
|
||||||
Document,
|
Document,
|
||||||
/// Indicates the line number counter should be reset at the start of every
|
/// Indicates that the line number counter should be reset at the start of
|
||||||
/// new page.
|
/// every new page.
|
||||||
Page,
|
Page,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user