From d3377649a23b388155e2e97fdbf3451aaf8cd563 Mon Sep 17 00:00:00 2001 From: Roland Fredenhagen Date: Fri, 24 Mar 2023 09:11:17 +0100 Subject: [PATCH] Make alignment actually centered (#176) --- docs/src/tutorial/3-advanced.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/tutorial/3-advanced.md b/docs/src/tutorial/3-advanced.md index 1a580ece4..a1aa9adef 100644 --- a/docs/src/tutorial/3-advanced.md +++ b/docs/src/tutorial/3-advanced.md @@ -337,7 +337,7 @@ a way to set any of that, we need to write our own heading show rule. >>> ), >>> numbering: "1", >>> ) -#show heading: it => block[ +#show heading: it => block(width: 100%)[ #set align(center) #set text(12pt, weight: "regular") #smallcaps(it.body) @@ -416,7 +416,7 @@ differentiate between section and subsection headings: >>> #show heading.where( level: 1 -): it => block[ +): it => block(width: 100%)[ #set align(center) #set text(12pt, weight: "regular") #smallcaps(it.body)