From b1b4e52af9e2da8f8ae1fc17a81ed6cbcbb8f525 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 13 Feb 2023 15:14:25 +0100 Subject: Block sizing --- library/src/layout/enum.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'library/src/layout/enum.rs') 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 = -- cgit v1.2.3