From aed0f1ce7de424a17a550f1376e7bfd6b8c9e5f6 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 19 May 2023 11:40:03 +0200 Subject: [PATCH] Document `both` argument for counters --- library/src/meta/counter.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/src/meta/counter.rs b/library/src/meta/counter.rs index 0e41a826b..46992d389 100644 --- a/library/src/meta/counter.rs +++ b/library/src/meta/counter.rs @@ -214,6 +214,12 @@ use crate::prelude::*; /// If this is omitted, displays the counter with the numbering style for the /// counted element or with the pattern `{"1.1"}` if no such style exists. /// +/// - both: boolean (named) +/// If enabled, displays the current and final top-level count together. Both +/// can be styled through a single numbering pattern. This is used by the page +/// numbering property to display the current and total number of pages when a +/// pattern like `{"1 / 1"}` is given. +/// /// - returns: content /// /// ### step()