From 5617cbc64758c8612dad27777e76029593860d40 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Fri, 7 Apr 2023 12:40:10 +0200 Subject: [PATCH] fix spaces in figure numbering --- assets/css/itix.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/css/itix.css b/assets/css/itix.css index 694f1af..00c6d84 100644 --- a/assets/css/itix.css +++ b/assets/css/itix.css @@ -143,7 +143,12 @@ h3::before, #TableOfContents > ul > li > ul > li::before { } figcaption::before { - content: "Figure " counter(figcaption) " :"; + /* + * When the numbering is done in CSS, we cannot honor typographical + * conventions of the user language. So, here I chose the english convention + * with no space before the colon and a space after. + */ + content: "Figure " counter(figcaption) ": "; counter-increment: figcaption; }