From 7397c53f91bee50512d94113b2441b0563c5ff8f Mon Sep 17 00:00:00 2001 From: johannes-wolf Date: Fri, 8 Dec 2023 22:41:16 +0100 Subject: [PATCH 01/18] doc: Remove printing the context object --- manual.typ | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/manual.typ b/manual.typ index 95a3ec5d9..cfd53b2c2 100644 --- a/manual.typ +++ b/manual.typ @@ -887,12 +887,8 @@ The state of the canvas is encoded in its context dictionary. Elements or other draw calls may return a modified context to the canvas to change its state, e.g. modifying the transformating matrix, adding a group or setting a style. -```example -// Show the current context -get-ctx(ctx => { - content((), raw(repr(ctx), lang: "typc")) -}) -``` +The context can be manually retreived and modified using the `get-ctx` and `set-ctx` +functions. == Elements From 9fc2cbbc88031392290a47af44652642a4fb798c Mon Sep 17 00:00:00 2001 From: johannes-wolf Date: Fri, 8 Dec 2023 22:47:33 +0100 Subject: [PATCH 02/18] doc: Mention the ctx type --- manual.typ | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manual.typ b/manual.typ index cfd53b2c2..67b40f9df 100644 --- a/manual.typ +++ b/manual.typ @@ -67,7 +67,8 @@ Note that draw functions are imported inside the scope of the `canvas` block. Th Many CeTZ functions expect data in certain formats which we will call types. Note that these are actually made up of Typst primitives. / ``: Any coordinate system. See coordinate-systems. / ``: Any of ``, `` or ``. - / `