From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100165 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: show header text only on first page of chapter Date: Tue, 20 Feb 2018 17:17:08 +0100 Message-ID: <5A8C4A04.9020800@gmail.com> References: <0100E830-46F5-43B7-AB80-205D79C76561@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6009084059425670624==" X-Trace: blaine.gmane.org 1519143340 2439 195.159.176.226 (20 Feb 2018 16:15:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Feb 2018 16:15:40 +0000 (UTC) User-Agent: Postbox 5.0.22 (Macintosh/20171208) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 20 17:15:36 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eoAZq-0000Ak-Cu for gctc-ntg-context-518@m.gmane.org; Tue, 20 Feb 2018 17:15:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EB0AB1A4EEE; Tue, 20 Feb 2018 17:17:24 +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 7r7_2oIzAq-s; Tue, 20 Feb 2018 17:17:24 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 3FA5F1A4EE4; Tue, 20 Feb 2018 17:17:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 354E01A4EE3 for ; Tue, 20 Feb 2018 17:17:23 +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 K-nNlHCuJe-i for ; Tue, 20 Feb 2018 17:17:21 +0100 (CET) Original-Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E68971A4EE2 for ; Tue, 20 Feb 2018 17:17:11 +0100 (CET) Original-Received: by mail-wr0-f172.google.com with SMTP id 34so15956431wre.13 for ; Tue, 20 Feb 2018 08:17:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=TkdAoiHxSMrFqF7OTQRXT49HuivNaYBBETzLsyhkP+U=; b=kyHWcVaNk4v9+O3fJylJwb8RRqbyWjZb5jQ5byUICtKabshp4Y3rpRC6W/OAKuvkN9 k7LHgG1p1FKs7QaYMwZ5DLSWNqpesegYR2qxSQIWnk/M70tulmc8d0RyUHNsfsdV4DoZ hf9ldUC2aXo5so7tmx4yVE8VHRKcJnoIed/03iDj6U6Y9IH+cYFZk19mqwBu+gwv3iyS NzFGHumdaG5ogt6Y6Thz4n1GQJxeTyJgR1nJ/Dv7Ofvc+Mgn6C2o69Bz++nmgRMMTVny TLexEf+aHS7dTAPkq++5NKPNyAuVHXvcis4HC9wGt3H1Ovb3kNjcK1AbkDXE83r+JTA5 5OVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=TkdAoiHxSMrFqF7OTQRXT49HuivNaYBBETzLsyhkP+U=; b=ZvPZThvgHdpG0PSvddAljTXFz2B/Z340ONo2IjH/jRJL+zKaU0zJpTNZOPaLSx9Iyj 6ztVNZFe696lTgkVrx5Z40s/ym7qUWg+YjS3YKraotp2NmQcKcam74FKfR5NrcGCgg3Q GV4ma9WccJSYMsAlYPjhBeLSn4k5F81MJpDVrLuQH3OyhKI+u85UahKoeleQ3bLosceT Qz0Nz9YdLezQlJ5mIcDYOcdJGHdWoU4SdAyDSgqIOZTuPFwxzHpVSuZw+WP34WBh+lZX HIFCiYtGczHAJsxu9rzD4tTi9FrhCGS3NrOlxEj90wofF3ozneEsxro+ABdwYIDuplLu uFWg== X-Gm-Message-State: APf1xPA29yFfr02O/5OQn1qciuc6LO7Jm1AFcW8AocVaWYY+6bPzuXOM hjqh2geNOkNANDxkyT/3BX5EJnAU X-Google-Smtp-Source: AH8x2278SZI/ViMYv+LpeMKQFRIhGVGMLPLyAtXDVjfABcEpjEIfdHxjIzl0AtApU1YHjuL9WxSxdg== X-Received: by 10.28.170.195 with SMTP id t186mr656341wme.93.1519143431184; Tue, 20 Feb 2018 08:17:11 -0800 (PST) Original-Received: from [192.168.1.10] (x4dbd1f75.dyn.telefonica.de. [77.189.31.117]) by smtp.gmail.com with ESMTPSA id o16sm11086611wro.55.2018.02.20.08.17.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Feb 2018 08:17:10 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:100165 Archived-At: This is a multi-part message in MIME format. --===============6009084059425670624== Content-Type: multipart/alternative; boundary="------------070701000803050200030003" This is a multi-part message in MIME format. --------------070701000803050200030003 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit \definetext[henning][header][chapter] \setuphead[chapter][header=henning] \starttext \dorecurse{5} {\expanded{\chapter{Kapitel \recurselevel}} \dorecurse{10}{\input{lorem}\par}} \stoptext Wolfgang > Henning Hraban Ramm > 20. Februar 2018 um 15:30 > > I tried something like: > > \def\SetPart{% > \setlayerframed[background]% > [y=10mm,x=20mm,]% > {\getmarking[part]} > } > \setuphead[chapter][after={\SetPart}] > > But I always get the name of the previous part. :( > > > Greetlings, Hraban > --- > http://www.fiee.net > http://wiki.contextgarden.net > GPG Key ID 1C9B22FD > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry > to the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ --------------070701000803050200030003 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit \definetext[henning][header][chapter]

\setuphead[chapter][header=henning]

\starttext

\dorecurse{5}
  {\expanded{\chapter{Kapitel \recurselevel}}
   \dorecurse{10}{\input{lorem}\par}}

\stoptext

Wolfgang

20. Februar 2018 um 15:30

I tried something like:

\def\SetPart{%
\setlayerframed[background]%
[y=10mm,x=20mm,]%
{\getmarking[part]}
}
\setuphead[chapter][after={\SetPart}]

But I always get the name of the previous part. :(


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________

--------------070701000803050200030003-- --===============6009084059425670624== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6009084059425670624==--