From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 6492C284D0 for ; Fri, 31 May 2024 00:27:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 877DE484D91 for ; Fri, 31 May 2024 00:27:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=flump.de Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w0KLUVLnwbVh for ; Fri, 31 May 2024 00:27:09 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 39373484DA1 for ; Fri, 31 May 2024 00:26:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B8564484C4D for ; Fri, 31 May 2024 00:25:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tug7egG_5_O7 for ; Fri, 31 May 2024 00:25:38 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.163.118.210; helo=flump.de; envelope-from=gerion.entrup@flump.de; receiver= Received: from flump.de (flump.de [185.163.118.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 607B1484C4B for ; Fri, 31 May 2024 00:25:38 +0200 (CEST) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id 8E9E1F5EA62; Fri, 31 May 2024 00:25:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1717107936; bh=E20FyyTsI2wDLgm0NkiYzeHnekFStYQNJKpS6zn8RnE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=BL85mjWFOt5Tbv1QT4KteKKvoVEGnx1zXb8X1yHtq4YRTfOiuML57dBdv0irg66rC ZpMUdGtcD4NYhMZRO+pXhTPJb12vv2EKBlr7F0qo+LE8Vdea4tT0jTdAZFpt8aDCCR 9NLI4YpkMM4qyreGHrQ9VOdOZUHlmL187UagF2iA= From: Gerion Entrup To: ntg-context mailing list Date: Fri, 31 May 2024 00:25:29 +0200 Message-ID: <5362221.0VBMTVartN@falbala> In-Reply-To: References: <4119708.MHq7AAxBmi@falbala> MIME-Version: 1.0 Message-ID-Hash: CVFBFFK4CLUYB4JY3K3QNOTP3KXWFPNR X-Message-ID-Hash: CVFBFFK4CLUYB4JY3K3QNOTP3KXWFPNR X-MailFrom: gerion.entrup@flump.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: setuphead in connection with the command argument List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============6354041309919761071==" --===============6354041309919761071== Content-Type: multipart/signed; boundary="nextPart3053610.X9hSmTKtgW"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart3053610.X9hSmTKtgW Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup To: ntg-context mailing list Cc: Bruce Horrocks Date: Fri, 31 May 2024 00:25:29 +0200 Message-ID: <5362221.0VBMTVartN@falbala> In-Reply-To: MIME-Version: 1.0 Am Donnerstag, 30. Mai 2024, 18:49:08 MESZ schrieb Bruce Horrocks: > > > On 30 May 2024, at 15:15, Gerion Entrup wrote: > > > > Let's begin with a minimal example: > > ``` > > \define[2]\MyChapter{% > > #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro}) > > } > > Stop there! > > Use \definehead to create your own variation of a heading - much more robust. Something like the following (untested): > > \startsetups PlaceSubTitleAndIntro > % Set font and and style etc for the subtitle here > \structureuservariable(subtitle) > > % Set font and style etc for the intro text here > \structureuservariable(intro) > \stopsetups > > \definehead [MyChapter] [chapter] > \setuphead [MyChapter] > [ style={...}, % heading style > after={\setup{PlaceSubTitleAndIntro}}, > ] > > \starttext > \startMyChapter[title={Foo}] > [ subtitle={Bar}, > intro={Some explanation}, > ] > The text of the chapter > \stopMyChapter > \stoptext Thanks for the input. A comparable example is also listed in the wiki. I like the approach for placing subtitle and intro alone. However, I also want to style chapter number and chapter title separately. I'm also not sure, if an extra heading (MyChapter) is needed, since all my chapters are styled in this way. Isn't it possible to define "after" of chapter directly? Best Gerion --nextPart3053610.X9hSmTKtgW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEM/tVN9WpYYHnPZHxloeAdSYJHeoFAmZY/NkACgkQloeAdSYJ Heor7Av/QBK6K+mNY762qfJZB89mB92Fohw9ngWA0QFurDR1CoIwrbhrT75u7vi6 0jq0kKUI7p9sWYvXmxYkbXrkuKKSE0MZgMMLkPV38oIhkFnW7t4BBjCwb1d4SNye p2/+1BZlnO9nwBfeXtkkY8GJ7UR4FpEQP49ITsmK/N102vqtjRVLn0ZCE5yPowRu dIeeuBgtN5RrjXjDktYX9UbEOHe8U33AXiwdvwO075SL8bDzIaftNV/lp94DsXvA FtEE4H1wRe89LZXPPWNvVoaQzF7jfpvgFhHb3a04y0bSuZ+4C9PCLCtIQGsWul8y bPxo8Q6NUacrKdauB0r0dvJ63Eorcw3NXVT0yxCNasEGozYj5Nf/Ezah4prCSOgj o6AOZ7gCT6NtQpg4dtjZL2HVnW6GSchrbum9VkwcEDFLSsDerXqTuq2wF8LN85Ug Ri3u3enCJGshquQWoohB2nLHayQYcuXRM6g89rWo3TIJd7Ru6YlTDOBygzmJMzHv fFKTmqlM =UNNW -----END PGP SIGNATURE----- --nextPart3053610.X9hSmTKtgW-- --===============6354041309919761071== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============6354041309919761071==--