From e09627b516184c5dee83fb2e3a149e6f7ad7fed1 Mon Sep 17 00:00:00 2001 From: jddIT2023 <167287091+jddIT2023@users.noreply.github.com> Date: Fri, 22 Aug 2025 12:38:18 +0200 Subject: [PATCH] updated package import instructions --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 990cd8a..b8c8417 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,19 @@ recommended approach is to import it from the `preview` namespace: ``` typst #import "@preview/drafting:0.2.2" ``` +To ensure package functions are usable either directly call the needed +functions in the import statement: +```typ +#import "@preview/drafting:0.2.2": set-page-properties + +// to then call: +#set-page-properties(margin-left: 2cm) +``` +or pull all functions via a wildcard import: + +```typ +#import "@preview/drafting:0.2.2": * +``` Margin notes cannot lay themselves out correctly until they know your page size and margins. By default, they occupy nearly the entirety of