diff options
Diffstat (limited to 'library/src/layout/enum.rs')
| -rw-r--r-- | library/src/layout/enum.rs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/library/src/layout/enum.rs b/library/src/layout/enum.rs index 9a83420c..585b20e5 100644 --- a/library/src/layout/enum.rs +++ b/library/src/layout/enum.rs @@ -25,12 +25,21 @@ use crate::prelude::*; /// #enum[First][Second] /// ``` /// +/// You can easily switch all your enumerations to a different numbering style +/// with a set rule. +/// ```example +/// #set enum(numbering: "a)") +/// +/// + Starting off ... +/// + Don't forget step two +/// ``` +/// /// ## Syntax /// This functions also has dedicated syntax: /// /// - Starting a line with a plus sign creates an automatically numbered /// enumeration item. -/// - Start a line with a number followed by a dot creates an explicitly +/// - Starting a line with a number followed by a dot creates an explicitly /// numbered enumeration item. /// /// Enumeration items can contain multiple paragraphs and other block-level @@ -98,10 +107,13 @@ impl EnumNode { /// /// ```example /// #set enum(numbering: "(a)") - /// /// + Different /// + Numbering /// + Style + /// + /// #set enum(numbering: n => super[#n]) + /// + Superscript + /// + Numbering! /// ``` #[property(referenced)] pub const NUMBERING: Numbering = |
