From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108364 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jbf Newsgroups: gmane.comp.tex.context Subject: further to the earlier header question Date: Wed, 12 Aug 2020 15:41:31 +1000 Message-ID: <7d67d16d-ea6a-62ca-eac3-3d4b02307708@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2818095279505809110==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39246"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 12 07:42:09 2020 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 1k5jWZ-000A3b-CM for gctc-ntg-context-518@m.gmane-mx.org; Wed, 12 Aug 2020 07:42:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B22E116096D; Wed, 12 Aug 2020 07:41:40 +0200 (CEST) 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 9m2UWIQUR364; Wed, 12 Aug 2020 07:41:39 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CF4D71616ED; Wed, 12 Aug 2020 07:41:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 529071616ED for ; Wed, 12 Aug 2020 07:41:38 +0200 (CEST) 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 3x6rJb1Vj7De for ; Wed, 12 Aug 2020 07:41:37 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.215.169; helo=mail-pg1-f169.google.com; envelope-from=roma83537@gmail.com; receiver= Original-Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (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 9131916096D for ; Wed, 12 Aug 2020 07:41:37 +0200 (CEST) Original-Received: by mail-pg1-f169.google.com with SMTP id t6so472919pgq.1 for ; Tue, 11 Aug 2020 22:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=5yNWz0lvYvQb1a9Y1oxp+p/aDzQCPA688rcGouSPdq4=; b=Gy7LsGD0u4bQhDMKKD9Tn3u9HNTmr49luJ3zDm58JxU4hixWfcU79LpuJAgpafH5Ix ra7aHceRmDyqqES1TOBGczSak0aPrtwzEJXWryVxv8u+1BoaFBm7ewzHTuLLmGwL3X8c dvBat19jAIvj7VpzVQB452cOR1aMUNFxsjsyC7MVRXBf/lfzOyNLukjlgC2O6w127/0j TXLw9HxKbawPHUfHjaqrqeehc/nKum9hGoarKTcg0a4LWqHUp/4U/bJLcUp0SARLqWLS vlY8ZgGlI1QqtYEbz9peLPXFFvHMuoBJiaD8groq2hCl5NspOah8PJjHE5yObqMsHkUD PElg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=5yNWz0lvYvQb1a9Y1oxp+p/aDzQCPA688rcGouSPdq4=; b=j4czDyJHAleUKsPm9OS8dHmJskNziec97xiRt2iQqUNKoJ4Sp0J5wS56ZM93Vx4rpj JPSkGe8dl+2DDDruhQkyjsyJxawJhkpmFtyda5peXEb2xcnS2FLlXHHEHhW5Ornv75Kr oZnyyaf1uV9GUZEDOlPWRhJdXAu/YQqT4SCy+x15It9EbiTYLW+bp7R8XAACfLorIkAS 1hujxhGFUgAev0KJTbxwvXHPKbXvizB8PFMoStujB7RlMUWHKkmA0/4usLmPeKx2+iSd AGbilENzoRush3m8VBlHH09fbL7vhrWmTaLrS7bJTsnZuKu9GAnqsNkIiP/ptJWVPGFg rmlA== X-Gm-Message-State: AOAM533ad7gerfN5B2E7EOxkiatqefLQxcnTOBpHKQAMAvhkx5DQNxJV azlo4R3TSJQnJu90lMD81A20ZY3iO20= X-Google-Smtp-Source: ABdhPJy3NMNwyXbATRtWuajtRv/QnI78GyjiO4wpNwN4GyINpdVugamid10m+VOSxnMeegigtYgQvA== X-Received: by 2002:a63:e617:: with SMTP id g23mr3655704pgh.102.1597210895245; Tue, 11 Aug 2020 22:41:35 -0700 (PDT) Original-Received: from [192.168.0.100] ([120.21.22.250]) by smtp.gmail.com with ESMTPSA id s185sm989172pgc.18.2020.08.11.22.41.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Aug 2020 22:41:34 -0700 (PDT) Content-Language: en-US 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:108364 Archived-At: This is a multi-part message in MIME format. --===============2818095279505809110== Content-Type: multipart/alternative; boundary="------------D20E37D31B716321F1B2F30F" Content-Language: en-US This is a multi-part message in MIME format. --------------D20E37D31B716321F1B2F30F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Clearly I am now getting myself quite confused where headers are concerned, and have sought as much info as I can on the wiki, but am not getting the desired results. We are talking about ConTeXt MkIV and a doublesided document. If I only use \chapter throughout and have my setup as: \setupheadertexts   [{\hfill\getmarking[chapter]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] then everything works as it should: Chapter title as header on recto pages and book title as header on verso pages. And as chapters change so does the header on the recto page. But this book has some 'chapters' that need to be unnumbered, for which I am using \title in the main body (as well as in frontmatter). Everything else about this choice works, except for the recto headers. If I use ONLY the setup above, then fairly obviously the numbered Chapters work, but those with \title continue to use the previous Chapter header for the recto pages (the verso pages with the book title is okay). So I understand that I may need to also give a command for the \title 'chapters' to act the way the other numbered chapters do. So I thought I could do this by simply adding the same set of commands above, but this time using title: \setupheadertexts   [{\hfill\getmarking[*chapter*]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] \setupheadertexts   [{\hfill\getmarking[*title*]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] However, when I do this, I get strange behaviour: now the numbered chapters do not show their recto header at all (the verso book title still appears though). The unnumbered \title chapters now show the headers but the same behaviour as indicated above occurs - the next numbered chapter after that carries the previous unnumbered chapter's title. Obviously I cannot do things the way I am doing it, but I cannot find how to do it. The other behaviour is the one I noted in an earlier post -  if I get \title (used for an introduction) in the frontmatter to work with the correct headers, in the case of this Introduction (which is seven pages), the last of the recto pages does not bear the header 'Introduction'. Perhaps this is expected behaviour? Julian --------------D20E37D31B716321F1B2F30F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Clearly I am now getting myself quite confused where headers are concerned, and have sought as much info as I can on the wiki, but am not getting the desired results. We are talking about ConTeXt MkIV and a doublesided document.

If I only use \chapter throughout and have my setup as:

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

then everything works as it should: Chapter title as header on recto pages and book title as header on verso pages. And as chapters change so does the header on the recto page.

But this book has some 'chapters' that need to be unnumbered, for which I am using \title in the main body (as well as in frontmatter). Everything else about this choice works, except for the recto headers.

If I use ONLY the setup above, then fairly obviously the numbered Chapters work, but those with \title continue to use the previous Chapter header for the recto pages (the verso pages with the book title is okay). So I understand that I may need to also give a command for the \title 'chapters' to act the way the other numbered chapters do. So I thought I could do this by simply adding the same set of commands above, but this time using title:

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

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

However, when I do this, I get strange behaviour: now the numbered chapters do not show their recto header at all (the verso book title still appears though). The unnumbered \title chapters now show the headers but the same behaviour as indicated above occurs - the next numbered chapter after that carries the previous unnumbered chapter's title.

Obviously I cannot do things the way I am doing it, but I cannot find how to do it.

The other behaviour is the one I noted in an earlier post -  if I get \title (used for an introduction) in the frontmatter to work with the correct headers, in the case of this Introduction (which is seven pages), the last of the recto pages does not bear the header 'Introduction'. Perhaps this is expected behaviour?

Julian


--------------D20E37D31B716321F1B2F30F-- --===============2818095279505809110== 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== --===============2818095279505809110==--