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.7 required=5.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, 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 50B51227A0 for ; Wed, 27 Mar 2024 09:32:00 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2BC99483FC0 for ; Wed, 27 Mar 2024 09:29:33 +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 tDnew3WYVWyc for ; Wed, 27 Mar 2024 09:29:32 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1EA6A483E0C for ; Wed, 27 Mar 2024 09:28:40 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2154B483A01 for ; Wed, 27 Mar 2024 09:28:03 +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 ISQEEJN3ugBR for ; Wed, 27 Mar 2024 09:28:02 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=194.25.134.84; helo=mailout09.t-online.de; envelope-from=thomasgmeyer@t-online.de; receiver= Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 B60844839F3 for ; Wed, 27 Mar 2024 09:28:02 +0100 (CET) Received: from fwd87.aul.t-online.de (fwd87.aul.t-online.de [10.223.144.113]) by mailout09.t-online.de (Postfix) with SMTP id 048624F4D; Wed, 27 Mar 2024 09:27:16 +0100 (CET) Received: from [192.168.178.60] ([91.48.94.160]) by fwd87.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1rpOct-0KQIDY0; Wed, 27 Mar 2024 09:27:15 +0100 Message-ID: <0f6857be-2f3c-4070-9e3e-88ab271c4f34@t-online.de> Date: Wed, 27 Mar 2024 09:27:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Wolfgang Schuster , mailing list for ConTeXt users References: <5c52560c-a94e-4691-8a4a-c597e174cb42@t-online.de> <38c66540-ca60-5860-6b90-abeb3106088a@gmail.com> Content-Language: de-DE From: Thomas Meyer Autocrypt: addr=thomasgmeyer@t-online.de; keydata= xsFNBGPqOQMBEADR9MbN06aQ90AeXfb5AsL9m/neBE0QAuCqMH8pwKWBaZiaj0VRS0vVnTEW M3FazzdzOAT5BJx3bnUHbS9k6rQ1zKxJ0ekDdLFUD+ARHfH8M4tEs/2WLfcW98/K5gEPwPdo mrkMlWan8wLQXTZDrStv7b1m2oYSaBra8R7ghd7z7rjOwy9YhufFAJ6LackE5YG/AyAKusAS MoPE6Lh6ZSCqO7zknDbAOEgZx9evVWV6u1vedI9vVQOxuJt6JZjBF7T9FoQbs6x9ro5LqPcI B21QY/XooQDTYZbZtNQbFEtQ8xnexLU2vzjxrdpE33Wfd/0J3ugTFiVGENNBEJhb0xdj/sho SxGSH6pAmjaJ9CZ2/qI/3btRuGJV/1hsG4IbgmxKKI+CWHfyeQopKo0YuykXlFz1V8cb3Mvi mOyDjwj2J78HIHsa9ntHoplJu0P2+l3RQJpTwzU337lgfoj/jofAcIWa9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gVGOb98cEi9SIhm18DgjLWobs/EGKYJO8 avOjdgAn8Fyk6UZF2Yj/+6+dPg/UZj9WU8B0jHE0euBP60C78iAs53Lp+py2rFMBrZ1516A6 lZlDMzFksbIzf0UMx5LD8TG2zl0GTXTxbwWEU/fxE7dn58YF2c9BwGE/6iW6iL1sg3xPhOqU YUSpmeXhY1GA5gRaIk6w2IYAj8N1bzlBNMd3XwN7bnDwxLwprNYouBw7Azss1/+N222uiXA+ Kuoo+UnEccTBFBKFVlbNo/jyh8uR/oZb/+HYN+DeSH9SzaGQ7VPGEgphRusd5I4HTZp7+zSC YPHBeckIFFKn7hYickA5kyAriilpKBcU651jkN5/oUiPsDSvKYFpEJxkvIrp In-Reply-To: <38c66540-ca60-5860-6b90-abeb3106088a@gmail.com> X-TOI-EXPURGATEID: 150726::1711528035-867FB968-D6566AE4/0/0 CLEAN NORMAL X-TOI-MSGID: e161686b-db51-4746-92f0-de53fc959c60 Message-ID-Hash: YQ4KJPGY4FCYNWHUZMU6OMYT67FVQM3C X-Message-ID-Hash: YQ4KJPGY4FCYNWHUZMU6OMYT67FVQM3C X-MailFrom: thomasgmeyer@t-online.de 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: multipart/mixed; boundary="===============0654038871535042222==" This is a multi-part message in MIME format. --===============0654038871535042222== Content-Type: multipart/alternative; boundary="------------bqFU2RcYrJQ5TWkD5Fj7FtbO" Content-Language: de-DE This is a multi-part message in MIME format. --------------bqFU2RcYrJQ5TWkD5Fj7FtbO Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Thank you, Wolfgang, that's exactly what I wanted. Greetings Thomas Am 26.03.24 um 17:12 schrieb Wolfgang Schuster: > 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 --------------bqFU2RcYrJQ5TWkD5Fj7FtbO Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Thank you, Wolfgang,

that's exactly what I wanted.

Greetings
Thomas

Am 26.03.24 um 17:12 schrieb Wolfgang Schuster:
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

--------------bqFU2RcYrJQ5TWkD5Fj7FtbO-- --===============0654038871535042222== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0654038871535042222==--