From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114543 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jbf via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: \setupheadertexts for chapters with different authors Date: Sat, 19 Mar 2022 13:16:42 +1100 Message-ID: References: <9f7c72cd-7b3d-6188-8a17-96f008edf7a0@gmail.com> <49d83fe5-3310-30ac-79cc-26b88be47403@fiee.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0898330642937884669==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40014"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Cc: jbf To: Henning Hraban Ramm via ntg-context , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 19 03:17:33 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 1nVOer-000ACK-EI for gctc-ntg-context-518@m.gmane-mx.org; Sat, 19 Mar 2022 03:17:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 59539289386; Sat, 19 Mar 2022 03:16:54 +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 mqsf2d6xbBkJ; Sat, 19 Mar 2022 03:16:52 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6FF3F286DCB; Sat, 19 Mar 2022 03:16:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 83B9D286DCA for ; Sat, 19 Mar 2022 03:16:50 +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 zPHCK7NS9cD5 for ; Sat, 19 Mar 2022 03:16:49 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.214.179; helo=mail-pl1-f179.google.com; envelope-from=roma83537@gmail.com; receiver= Original-Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 59B96286DC8 for ; Sat, 19 Mar 2022 03:16:49 +0100 (CET) Original-Received: by mail-pl1-f179.google.com with SMTP id w4so8446824ply.13 for ; Fri, 18 Mar 2022 19:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to; bh=iftxUym8XpMrbFeVLrQLIh4Swf2GGKWGM/aWGcOpO90=; b=SHQ1ZpIS7TtbyMPeqSGUopR8SzvxgHhFu5Sf9Vm0LyUxH0Clj2s2JO0E3d26YqMohH NpjlSQtF7clWNkYtjftxwym43894OUNK5Gg+a5ASyZg3+F0TSp7PqIkcJPFdWerVsHSn XCw6FJsVFUH8zUWNTAhYvClpWotHe8UfZh+3FzH4/+V9tjkW9RLGFHO+csQsfp5GV3i0 lOvmauUHzk0qvVkZOUcH/QDM8Acfr+qxpCZMwwUcKDSgorWBTwCQM7gjq/5h9qZt1ejq 8K3Fbu6PU39sKOJcgUoJK+r87U8npEzzwaWOv31+a3zSMbPhXEA5334wJTk0OFU2qxh4 BMOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to; bh=iftxUym8XpMrbFeVLrQLIh4Swf2GGKWGM/aWGcOpO90=; b=NYOngjdPgTV61WhWlyxENk5j+HyUV4LfrWhCyr+EvaXO/4AZTuEtOZ3t2MXvLQXoIP BEv7K4FpKlE+9coUxJ7ENqdiHwgxsDqwkEMBYrNTr1VzlFzRRgnaQpHzjXufo1PI1ufM ucZDks25Bx9Ui/g3LT5jX/MWMZy6Ciq9codmLpQPS7qHMQCEg7J7bOU+YtwGz1TIQIED fCdO6eCZQWPKw+75G5MVMb3VcfBHkDTcrQulTb30/+hMfVB57rJYs89HCfYNTsgDnG/i sxBD30phY4j8eX1S8sfGz9VdopT90YsTrgauhtNtVdHX+7hy0YY5wIltiBCpNH3Zqcbc bnFA== X-Gm-Message-State: AOAM532hW+z/SOdh7Fj5SBDRJOyGwk0DEmvBSgeQzyflG8tTmnIc8VUH fipkKR4hTanpIW91UJSy+u8dlVcYaFI= X-Google-Smtp-Source: ABdhPJxo7zr6Y6QddaYfcsqHooBdKXMYQW7Fde1bshhdSbvb8O9iJMEy9dQj8ITXIMv6be6NPcXNlQ== X-Received: by 2002:a17:902:8a85:b0:151:b3c6:87f8 with SMTP id p5-20020a1709028a8500b00151b3c687f8mr2326454plo.129.1647656206160; Fri, 18 Mar 2022 19:16:46 -0700 (PDT) Original-Received: from [192.168.0.100] ([120.21.192.198]) by smtp.gmail.com with ESMTPSA id 68-20020a621647000000b004fa763ef1easm2245464pfw.125.2022.03.18.19.16.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Mar 2022 19:16:45 -0700 (PDT) Content-Language: en-US In-Reply-To: <49d83fe5-3310-30ac-79cc-26b88be47403@fiee.net> 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:114543 Archived-At: This is a multi-part message in MIME format. --===============0898330642937884669== Content-Type: multipart/alternative; boundary="------------CD1HepXn7KelB0fN00vK8sap" Content-Language: en-US This is a multi-part message in MIME format. --------------CD1HepXn7KelB0fN00vK8sap Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I might need a little more help just to understand how best to adapt this to my situation: One thing is clear: I was attempting to use a 'list' variable, and I can see why that was an error, since it is headertexts, not TOC that I want to influence. But let me simplify my situation: You seem to suggest initially that I could use \structureuservariable (or \structurevariable) instead, especially since I already have a variable to call on, e.g \startchapter[title={My title}][author={A. uthor}]. But in the example you then gave, you made no use of either of these. My current setting is: \setupheadertexts   [{\hfill\getmarking[chapter]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] which gives me the book title centred on verso pages, and the chapter title centred on recto pages. All I want to do is to have the chapter contributors' name for each chapter instead of the chapter title. So why can't I create a setups along the lines of: \startsetups[contributor] \getmarking[\structureuservariable{author}] \stopsetups Then just swap 'chapter' in \setupheadertexts, with 'contributor'? I tried it but it doesn't work. I thought it would be logical. Clearly I'm wrong but don't appreciate why. Julian On 18/3/22 18:52, Henning Hraban Ramm via ntg-context wrote: > The *list* variables work only in lists. > > There’s also \structurevariable and \structureuservariable. > > Make sure you use setups for the header, otherwise the variable gets > expanded only once at the beginning. > > Like in: > > \setuppagenumbering[alternative=doublesided] > \setupheadertexts[] % empty > \setupheadertexts[\setups{text right}][][][\setups{text left}] > > \startsetups[text right] > \rlap{\pagenumber} > \hfill > \getmarking[chapter] > \hfill > \llap{Un Nom} > \stopsetups > > \startsetups[text left] > \rlap{Una Person} > \hfill > \getmarking[section] > \hfill > \llap{\pagenumber} > \stopsetups --------------CD1HepXn7KelB0fN00vK8sap Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

I might need a little more help just to understand how best to adapt this to my situation:

One thing is clear: I was attempting to use a 'list' variable, and I can see why that was an error, since it is headertexts, not TOC that I want to influence.

But let me simplify my situation:

You seem to suggest initially that I could use \structureuservariable (or \structurevariable) instead, especially since I already have a variable to call on, e.g \startchapter[title={My title}][author={A. uthor}]. But in the example you then gave, you made no use of either of these.

My current setting is:

\setupheadertexts   [{\hfill\getmarking[chapter]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][]

which gives me the book title centred on verso pages, and the chapter title centred on recto pages. All I want to do is to have the chapter contributors' name for each chapter instead of the chapter title.

So why can't I create a setups along the lines of:

\startsetups[contributor] \getmarking[\structureuservariable{author}] \stopsetups

Then just swap 'chapter' in \setupheadertexts, with 'contributor'? I tried it but it doesn't work. I thought it would be logical. Clearly I'm wrong but don't appreciate why.

Julian

On 18/3/22 18:52, Henning Hraban Ramm via ntg-context wrote:
The *list* variables work only in lists.

There’s also \structurevariable and \structureuservariable.

Make sure you use setups for the header, otherwise the variable gets expanded only once at the beginning.

Like in:

\setuppagenumbering[alternative=doublesided]
\setupheadertexts[] % empty
\setupheadertexts[\setups{text right}][][][\setups{text left}]

\startsetups[text right]
\rlap{\pagenumber}
\hfill
\getmarking[chapter]
\hfill
\llap{Un Nom}
\stopsetups

\startsetups[text left]
\rlap{Una Person}
\hfill
\getmarking[section]
\hfill
\llap{\pagenumber}
\stopsetups
--------------CD1HepXn7KelB0fN00vK8sap-- --===============0898330642937884669== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0898330642937884669==--