From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116706 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pawel Urbanski via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Use section custom value in a header text. Date: Thu, 22 Dec 2022 01:04:05 +0100 Message-ID: References: <2e4571b7-bcb8-4a69-38ac-59a8fdbf88a2@rik.users.panix.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5716864970240753108==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25587"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Pawel Urbanski To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 22 01:04:35 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p894d-0006SL-Iv for gctc-ntg-context-518@m.gmane-mx.org; Thu, 22 Dec 2022 01:04:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D94C0380115; Thu, 22 Dec 2022 01:04:18 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rY1i8BCfSypq; Thu, 22 Dec 2022 01:04:18 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0789F380105; Thu, 22 Dec 2022 01:04:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 73B3C380105 for ; Thu, 22 Dec 2022 01:04:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eWgVa1YheZDU for ; Thu, 22 Dec 2022 01:04:16 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.217.45; helo=mail-vs1-f45.google.com; envelope-from=urbanski.pawel@gmail.com; receiver= Original-Received: from mail-vs1-f45.google.com (mail-vs1-f45.google.com [209.85.217.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A892A3800E0 for ; Thu, 22 Dec 2022 01:04:16 +0100 (CET) Original-Received: by mail-vs1-f45.google.com with SMTP id f189so271944vsc.11 for ; Wed, 21 Dec 2022 16:04:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=f2jjuy69Ur+IXLCXkY3amThNKWZXT003HGELFY+B1YA=; b=nssTZHBj4F6y/jb33ZQH+RPyKjbMQeu8NiQ7AHbGg5mSc21rE6AjTg+UdFMW4E5TIv MAUImdgso6sfU3sSBVT+lZB+HfYY71XWdvjtFJ00ymkBCzyXnUpbhxDJELzO7i7BIIGi +G4sLCY/oPBbZ393LfVUxfxmWqzSDqV4AKgla9kgaWndF62BhB/cMaHec+dAmbrPd9SZ KGZ5OGrVIGYyl9d90HZ8RTD0WEa5sNPqVTl1siIQNow4590YHtqLK3hJL2oGGTwPyG78 MUIf0vcNvcqIq7yjaPVyqq39+06gQiPV/OR4wKzxStOUfPZzGNU2BD2ku1pM3HEf7fWb uqnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f2jjuy69Ur+IXLCXkY3amThNKWZXT003HGELFY+B1YA=; b=e8V/SCIqUPWvCukhi5ZsdcMy+RHdbgDj1sVggpy0xwO23i9CMOWaTjo/qfhf+z6PV5 QqbME7Lb2xIG7faGk/pwx1dZZkY/LP9j6WV2hNEZn/e81Y6q/Ab462U3sNEd7WZt3dfy h/7EC0umuXiK93U4N0grlr2gPU1RAY9OOvMlSkhBGLH0Nybtp7R91uWfy7r7p60dglIY iXzy+ku9iSkLfEOYuiBAaiVcoglZDaC8/SxnVYOoprtfcJ2YH3W5fQzhDTLzwJ45Abip OFLqKz1VtGpb8Z1cNcRACrkrViMu33g8rXpw6022tIi8b9RtYYALY3iAi7BfpewCymdW xkAg== X-Gm-Message-State: AFqh2kp/ATgfsyaz4fV0oDx+IcFN6A+BFfpiwpCZPr3a2xy6Vgr32sqX nD6PDqECdGQze0PFmV7hsCmdS7oXu6+nwh859CIogvIL X-Google-Smtp-Source: AMrXdXvvc9fyycnEr9yX3t8aUKu/hZ4kPhjvksx8GfLBzLnoj2IfmSX4f1b8V9uW09/xLVODmsmAwiSZ1g4hdo0MAq0= X-Received: by 2002:a05:6102:944:b0:3b0:7bc1:db3f with SMTP id a4-20020a056102094400b003b07bc1db3fmr412786vsi.28.1671667454796; Wed, 21 Dec 2022 16:04:14 -0800 (PST) In-Reply-To: <2e4571b7-bcb8-4a69-38ac-59a8fdbf88a2@rik.users.panix.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:116706 Archived-At: --===============5716864970240753108== Content-Type: multipart/alternative; boundary="000000000000d367a005f05f68f1" --000000000000d367a005f05f68f1 Content-Type: text/plain; charset="UTF-8" > > > Hi Everyone, Thanks for the answers. I learnt something new. I ended up using the: \namedstructureuservariable{chapter}{my_custom_variable} command with \setupheadertexts. It worked well - at least for my case. While reading the wiki I started wondering what is the role of: lefttext / middletext / righttext keys in \setupheader and \setupfooter commands. I would understand htem as keys that can be assigned some value for their respective slots. I tried to put some texts manually, but there was no effect - or maybe there is some trick to that. It was just a bit of exploration - the solution I described works well for my case. Thanks again for your time and experience... Pawel --000000000000d367a005f05f68f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi Everyone,
Thanks for the answers= . I learnt something new.
I ended up using the:
\nameds= tructureuservariable{chapter}{my_custom_variable} command with \setupheader= texts.
It worked well - at least=C2=A0for my case.
=C2= =A0
While reading the wiki I started wondering what is the role o= f:
lefttext=C2=A0/ middletext=C2=A0/ righttext=C2=A0keys in \setu= pheader=C2=A0and \setupfooter commands.
I would understand htem= =C2=A0as keys that can be assigned some value for their respective slots. I= tried to put some texts manually, but there was no effect - or maybe there= is some trick to that. It was just a bit of exploration - the solution I d= escribed works well for my case.

Thanks again for = your time and experience...
Pawel
--000000000000d367a005f05f68f1-- --===============5716864970240753108== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5716864970240753108==--