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 CD0B023A51 for ; Tue, 26 Mar 2024 17:16:24 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7D435483E19 for ; Tue, 26 Mar 2024 17:14:38 +0100 (CET) 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 jYKlMur5OFNc for ; Tue, 26 Mar 2024 17:14:38 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 237C6480C39 for ; Tue, 26 Mar 2024 17:12:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 82A4948052C for ; Tue, 26 Mar 2024 17:12:22 +0100 (CET) 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 PT9Phg3n674R for ; Tue, 26 Mar 2024 17:12:22 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.54; helo=mail-ej1-f54.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 24D1A480457 for ; Tue, 26 Mar 2024 17:12:21 +0100 (CET) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a46a7208eedso782947666b.0 for ; Tue, 26 Mar 2024 09:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711469541; x=1712074341; 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=WeHbBJynlwsFa87F406GkK78u2YdZT5NZKJKuRYPth0=; b=RBf4bhP5/UF3yYRUC236aPDJd4TPiSnJcSy2XqyviClHQa0V0QFDazKi4r+DbLGshC ZD9C3bo3oxNjq4ksYAHoFS8aPY5aw6ta9oARvvgtSLy0blphZ/GfPoezumFDn/yp/KNh GRD9BBPSk0WhMery1erKMz8FCLGs0rhKn6hpkXL2aHpBZ+cXmlJcvc3lmUO1UpJRQ3yg H1yAazmsUN0X8CbBeN+5DXFWK5+4Y8c9ZAak0Iou1l357JcJh5q84h60Maeix5xSJGVV bJw0mTAdn0v6yOIYA1jJ+UjJEM3MQ+uivMOMSeuBv88MeRPuuzyd0npcHjjIA44Xteh4 9XCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711469541; x=1712074341; 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=WeHbBJynlwsFa87F406GkK78u2YdZT5NZKJKuRYPth0=; b=TZhGpq59Ve+QjN1XV72WyPKzrf9Jqlqy7g4YT8tZS+F4y6OmtTKW+6GwUi88W5XabN aTS7hekzAUutL/EsCujbQ1an8uzoFl7xBkowPhNKqDZcX04AqQYmniGs44sYesla9DEH x1SoKAaQDuoK7x8mzsCRMHet7y51seemNL8IBnUNoJuPQls883ZVuApDT/XUzHs8MO7o XDUQcFvwWo5w0PYtID9mcG/jXo/uTAwripkomRn9/B3L8InH3JT4qBUu2bbjRr59rSul mWY1gl6LfrKmmj/kHTgJ94PFV8Xcv6iLX/O9UJCmWYO6bFg3weyfmRQjH2TiI57eHxNd ubhg== X-Gm-Message-State: AOJu0YzHsTJyQh9jRXa73hC6HmaVRypzWFwXMlbEfuTFr3HmpMctgSJB 5l70S20rVeVZVjk5IRZuzguZB1hGD+Tdu2DGc23iCFnAFQydlj13z8zkWmpO X-Google-Smtp-Source: AGHT+IEsA7xv6FLLs5UtsehOC3UOOL15YiGgNlWIIWwj+CCcxpptmBbs0Q820mxcMKT7Q+2Wo2MjEA== X-Received: by 2002:a17:907:7207:b0:a4d:f992:bb95 with SMTP id dr7-20020a170907720700b00a4df992bb95mr1138998ejc.61.1711469541198; Tue, 26 Mar 2024 09:12:21 -0700 (PDT) Received: from ?IPv6:2a02:810d:a8bf:dc10:7c4d:d28a:d0ed:561? ([2a02:810d:a8bf:dc10:7c4d:d28a:d0ed:561]) by smtp.gmail.com with ESMTPSA id f7-20020a17090631c700b00a471c6b3211sm4410582ejf.175.2024.03.26.09.12.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2024 09:12:20 -0700 (PDT) To: mailing list for ConTeXt users , Thomas Meyer References: <5c52560c-a94e-4691-8a4a-c597e174cb42@t-online.de> From: Wolfgang Schuster Message-ID: <38c66540-ca60-5860-6b90-abeb3106088a@gmail.com> Date: Tue, 26 Mar 2024 17:12:18 +0100 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: <5c52560c-a94e-4691-8a4a-c597e174cb42@t-online.de> Content-Language: en-US Message-ID-Hash: AWTZZ5BP47YKSFNK3U4KVBJ5YCR6ABFB X-Message-ID-Hash: AWTZZ5BP47YKSFNK3U4KVBJ5YCR6ABFB 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: Headertext 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 Thomas Meyer schrieb am 26.03.2024 um 16:28: > Hi folks, > > I know, with > > \setuphead[chapter][header=high] > > I can suppress the header text on the first page. But what can I do if I > still want to have part of the header text on the first page? > Is there something I can do with \definetext and if so, how? When you use "header=high" you can't have a header because the block for it no longer exists, compare the results for "header=high" and "header=empty" in the following example. %%%% begin example \showframe \starttext \setuphead[chapter][header=high] \chapter{Lorem Ipsum} \dorecurse{10}{\samplefile{lorem}} \setuphead[chapter][header=empty] \chapter{Lorem Ipsum} \dorecurse{10}{\samplefile{lorem}} \stoptext %%%% end example As you have guessed \definetext is the way to create a custom header for the first page of your \chapter, the command has like \setupheadertexts a variable number of arguments. The third argument with the horizontal position can only be used when you use two or four arguments to set texts on the left and right side but isn't in my example because a) the text position is the default and b) I pass only one argument for the content because I wan't the text in the middle. %%%% begin example \showframe \definetext [chapterheader] % identifier [header] % vertical position (header/footer) % [text] % horizontal position (text/margin) [This is a custom header for \tex{chapter}] % content \setuphead[chapter][header=chapterheader] \starttext \chapter{Lorem Ipsum} \dorecurse{10}{\samplefile{lorem}} \stoptext %%%% end example 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 ___________________________________________________________________________________