From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id DA1EE24B9E for ; Tue, 21 May 2024 15:56:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 538E94842C8 for ; Tue, 21 May 2024 15:55:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I-8eVn0T_k3L for ; Tue, 21 May 2024 15:55:45 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 6A0404844CF for ; Tue, 21 May 2024 15:55:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B5211484172 for ; Tue, 21 May 2024 15:54:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qjMzZrPhoMjX for ; Tue, 21 May 2024 15:54:33 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.178; helo=mail-lj1-f178.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 6B03A484165 for ; Tue, 21 May 2024 15:54:33 +0200 (CEST) Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2e719bab882so31237401fa.3 for ; Tue, 21 May 2024 06:54:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716299672; x=1716904472; darn=ntg.nl; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=rIBsQhTyNqJyMw5Isxb5Qiq8ejN9XLH/s5fxys8+aTQ=; b=cSui7IakEAn0iNXxuGh49F/BH9setNzcWsXKmDmdP4Ta7IWafmcnlV+/a+VpSLPiIo XCTRww9Mfg2ovRe2Nr3SQ3yhq8mIZa04FNgB3wRPebAqemYajVa+dOq1BY7rCJqZHQ8D TYLDsOw4Nb0LK6q/chlPqj7AT0VrxgMOxlFLE1yUzlN4t37V1XR7Xqa5iGwbMOa+WEpM B/otNabcIff2b/JC2Hm+S41tc7g9Ekl1p4FMHZgdyEhE2x6CSQWID7mOT0FA8iFtPsst d1Hzr09zh5yGrpxodCWdhzS1SIQw+09ChPxj6JAl9oMdTcsRnwfs8HV6rVIGYc0yq31l Jd8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716299672; x=1716904472; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rIBsQhTyNqJyMw5Isxb5Qiq8ejN9XLH/s5fxys8+aTQ=; b=Np1Mp1YHlbvlCuAvbSM0LTYEIzgFyaFc4WegP7buhmh+uvqfm4wGT4gRIXkGjA5QbW fNXfNuFRj02nmD2xbszOF+5VaX10JnoYNKCQygE6UeFcK4glExw76giaVeASK19fEJGf kG5fmeCQX9z++QrQ4L+MXU8pH4tUxeSzfPEMvgT8xH6YT5tK8sXz/6l6n95YqvmXq4fF FoN5cYjOt7NzV8nIiLFRfpfprs7NwYsGNohLQwQ/8kA3tJjnhQMCjFRzpfZfKu+VA9UF S5+iZgmRwVtINOtiomek9LubJNgJkJ+IDPEI4AFXQP/uNKtl5lxIYqaN4FOCM2OufFWs TpMQ== X-Gm-Message-State: AOJu0Yx7tjnXvHpTIlLfjKTo1avk7mIk4leeZJnuBXad07Xxn9HrlaZg VarIuK4/7OAkzDY+sYXGt6x8J2lKU4n/JNUdSZEtQYT4OovsGqtlK70sJA== X-Google-Smtp-Source: AGHT+IEAgffzBF6w6kxENmWn9Yrsq3vboPLcMztGxJbeaVqVNvlsICmLPy1A3IF/gXBCknoyikxsUA== X-Received: by 2002:a05:6512:3b94:b0:51d:8b86:6588 with SMTP id 2adb3069b0e04-5220f76f343mr23173741e87.0.1716299672244; Tue, 21 May 2024 06:54:32 -0700 (PDT) Received: from ?IPv6:2a02:810d:a8bf:dc10:a960:d3d6:3e19:e936? ([2a02:810d:a8bf:dc10:a960:d3d6:3e19:e936]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5733bea6592sm16677155a12.2.2024.05.21.06.54.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 May 2024 06:54:31 -0700 (PDT) To: mailing list for ConTeXt users , Luc Chabassier References: <1716278987.izni348y64.astroid@tungdil.none> <6df206ec-ba48-4e50-98df-a0bbebcc11f6@xs4all.nl> <171629850334.428957.10387453636720152466@localhost> From: Wolfgang Schuster Message-ID: <2ec3b607-4137-8728-a3c4-2a7b5dcabeac@gmail.com> Date: Tue, 21 May 2024 15:54:29 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 MIME-Version: 1.0 In-Reply-To: <171629850334.428957.10387453636720152466@localhost> Content-Language: en-US Message-ID-Hash: G6OAWFB3ICNQO7NNHLJCW233TX5XGZ6R X-Message-ID-Hash: G6OAWFB3ICNQO7NNHLJCW233TX5XGZ6R X-MailFrom: wolfgang.schuster.lists@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: LUA API for page numbers List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit Luc Chabassier schrieb am 21.05.2024 um 15:35: > Excerpts from Hans Hagen's message of May 21, 2024 11:45 am: >> you have to provide some mwe so that we can see what is intended; in >> principle much info is available one way or the other > I joined a minimal working example. The lua function > `userdata.sidenotes_save_run` places the notes so that they do not > intersect (the method I actually use is more complicated, but the idea > is the same). > >> concerning notes in the margin ... did you try the built in magin text >> mechanisms? > I did, but as far as I know they place the text on the margin next to > the \inmargin invocation in the text, so they may overlap, which is what > I want to avoid. \setupmarginblocks[inbetween=] \starttext \dorecurse{100} {\bold{#1:} \samplefile{ward}% \startmarginblock Note #1\stopmarginblock \par} \stoptext Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________