From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112606 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur via ntg-context Newsgroups: gmane.comp.tex.context Subject: Test for displaying a header Date: Thu, 26 Aug 2021 16:07:14 +0200 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5839826659495746860==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16912"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Fabrice Couvreur To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 26 16:10:02 2021 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 1mJG4w-00049g-8t for gctc-ntg-context-518@m.gmane-mx.org; Thu, 26 Aug 2021 16:10:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 32DED286D37; Thu, 26 Aug 2021 16:09:28 +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 TEvOM5FH7Yjz; Thu, 26 Aug 2021 16:09:24 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5E251286D33; Thu, 26 Aug 2021 16:09:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 03DF9286D30 for ; Thu, 26 Aug 2021 16:09:23 +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 flWG-BW0lTW4 for ; Thu, 26 Aug 2021 16:09:21 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.176; helo=mail-oi1-f176.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (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 B7830286D2B for ; Thu, 26 Aug 2021 16:09:20 +0200 (CEST) Original-Received: by mail-oi1-f176.google.com with SMTP id h133so4705339oib.7 for ; Thu, 26 Aug 2021 07:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=msBKPB2CeSROjgXDuxCE1LfzP4osjA3b0b6PGGpkhqs=; b=Rw1r/YBbUjF5OWWu2PYLpTrKBGHxT7HbMWO3Me+8fcXobl+/EaVKfZ8fwIPVsdUMJt U+GfHorks6wWlmbATKUdiQZ6C1U3Dvz93G2Enm9ooVQi/CousVfjFG92V3FpQO7iuHk5 Jf3FfxoPGCQycYMdFz8jWZKSZbv2b2kekaLjw5Y/coJiZN9ajPQ2UlWWnaKjOmjSahic 3BTl/qVRzDta2ZF69Djl5W5Jyp+WOBTtNXhnKdCUHhY9TJcareWXLoVhP/vQC2537t7Y J8aXueew6sLchkWXQUlh1EJYzwsqwocNWQBo2vWpflndQQM00o9jyuE4+GNZU405O9y/ Y6gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=msBKPB2CeSROjgXDuxCE1LfzP4osjA3b0b6PGGpkhqs=; b=ewH/ANBki2H+SF2dyQST1oDPYaIz/MAUB0iJlRuGp9omq4zfUefiWRftWUMxjJEtaW 2DaY2iMJ5sJfcMtlpaOlt23rzlyx5U6mIfA561ux7QaWJUvb0TFT08uofJl3267MGhXe C8gTNP2fYzBXMl3/uW25JtisDaX2xmU7+kJiTKkjObW8d7MokT/Nnep4VWAOCv6ZWjey WAoU+phLy8uWRjXLCK9Yqr5B7tCwh7u2EDAM9Yrsgn5KcjvFHJt3SfpdjHHPNPebjJFs K5Jd/oXGO0xTvz3c3cT7E+zAlOq10kEppP8BHowigxl/mMwwnXA7BlLnw7sLbfoQq3Bu O+pg== X-Gm-Message-State: AOAM531LoUPzmqQfJoiaOP0m5s4qWcspJUdFVMVfxekcU1CP68eJlNh4 hOZZi1bPmc04W3uGvN6XyijiFrMN8nKips/IUn5Rt9rPW9E= X-Google-Smtp-Source: ABdhPJzozFc9duyBtnc27Oou4n8KDtLskQUcJx7FZ7PRAMjeF6KqQERO4pX1Id+5FoxwrUb2w2dT/m6C4aWv7P7JYWo= X-Received: by 2002:aca:bec2:: with SMTP id o185mr10641669oif.151.1629986958602; Thu, 26 Aug 2021 07:09:18 -0700 (PDT) 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:112606 Archived-At: --===============5839826659495746860== Content-Type: multipart/alternative; boundary="000000000000a7f55305ca76e947" --000000000000a7f55305ca76e947 Content-Type: text/plain; charset="UTF-8" Hi, I know I asked the question a few years ago, but I don't remember ! The idea is to test whether the document contains only one page or not. If it contains only one page, the header is enabled. If it contains several pages, the header is enabled only on the first page but not on the others. Thanks Fabrice --000000000000a7f55305ca76e947 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
I know I asked the question a few years ago, but = I don't remember !
The idea is to test whether the document contains= only one page or not.
If it contains only one pa= ge, the header is enabled.
If it contains several= pages, the header is enabled only on the first page but not on the others<= /span>.
=
Thanks
Fabrice
--000000000000a7f55305ca76e947-- --===============5839826659495746860== 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== --===============5839826659495746860==--