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 19DB025A14 for ; Fri, 31 May 2024 00:39:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D5FD9483D58 for ; Fri, 31 May 2024 00:39:16 +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 iLCswamTKrvE for ; Fri, 31 May 2024 00:39:16 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 5D01F485473 for ; Fri, 31 May 2024 00:38:15 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 28A96485369 for ; Fri, 31 May 2024 00:37:45 +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 EYSmuXWWZcop for ; Fri, 31 May 2024 00:37:44 +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)) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id CA989485368 for ; Fri, 31 May 2024 00:37:43 +0200 (CEST) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id 12CC4F5EA87; Fri, 31 May 2024 00:37:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1717108663; bh=+FL4D0cmqXnJEEc6pHrOsAvTa39Zvy5C7pGJURqPhfM=; h=From:To:Subject:Date:In-Reply-To:References; b=EZ0Sz76F1GcTiCHIKXYXc0s0NBsEYmTAOf9VH1fsffSZu09+8gpiXHAav2XVhpJpB QSlAfFrbao2+UgXqQDwU59jRcL84e6kU0K1mNWLoGmZK7XXCQAO14RAMdV9Le+kd+y qJ0SdtmTIklx4jFXy/+BPYL+4PY/MqayFZfpX01Y= From: Gerion Entrup To: mailing list for ConTeXt users , Wolfgang Schuster Date: Fri, 31 May 2024 00:37:42 +0200 Message-ID: <3024583.k3LOHGUjKi@falbala> In-Reply-To: References: <4119708.MHq7AAxBmi@falbala> <114842570.nniJfEyVGO@falbala> MIME-Version: 1.0 Message-ID-Hash: I366675SPKXFRL43G4CRHXYHY4RGLGBP X-Message-ID-Hash: I366675SPKXFRL43G4CRHXYHY4RGLGBP 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="===============8382233622725243563==" --===============8382233622725243563== Content-Type: multipart/signed; boundary="nextPart2490516.bB369e8A3T"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart2490516.bB369e8A3T Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup Date: Fri, 31 May 2024 00:37:42 +0200 Message-ID: <3024583.k3LOHGUjKi@falbala> In-Reply-To: MIME-Version: 1.0 Am Donnerstag, 30. Mai 2024, 22:54:47 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 30.05.2024 um 16:25: > > The chapter format that I want to achieve in the end is nearly the one in the attachment (excerpt of Christian Dietrich's PhD thesis). > > When you have a complex layout it is easier to use the > \defineheadalternative command to create it. > > To change the font for each element disable the default settings with > \setuphead[style=] and use \startfont (or \definedfont) to apply a > different style for the number, title etc. > > %%%% begin example > \defineframed > [ChapterFrame] > [width=\textwidth, > align=flushright, > offset=0pt, > rulethickness=0pt] > > \startsetups [christian_dietrich] > \startlocalheadsetup > \startframed[ChapterFrame] > \blank[2cm] > \startfont[Serif sa 8] > \color[darkgray]{\headnumbercontent} > \stopfont > \blank[5mm] > \startfont[SerifBold sa 2] > \color[darkred]{\headtextcontent} > \stopfont > \blank[1cm] > \startfont[SerifBold sa 1.5] > \color[darkred]{\structureuservariable{subtitle}} > \stopfont > \stopframed > \stoplocalheadsetup > \stopsetups > > \defineheadalternative > [christian_dietrich] > [renderingsetup=christian_dietrich] > > \setuphead > [chapter] > [alternative=christian_dietrich, > header=empty, > style=] > > \starttext > > \startchapter[title=Chapter title][subtitle=Chapter subtitle] > \samplefile{lorem} > \stopchapter > > \stoptext > %%%% end example Thank you very much! That looks really clean. I will add it to the wiki. Can you bring some clarification regarding "style=", "command=" and "alternative="? What, if I define multiple of them? Is the system not made for this? I just tested my initial example regarding font size with `command=\MyChapter, style=` and the font size was only affected by the code of \MyChapter. What is the default style? Best Gerion --nextPart2490516.bB369e8A3T 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/7YACgkQloeAdSYJ HerVTgwA0Q9wZpiPMt9x1hNnPmK7p5+vetMS41dXYamWhEfHv1++nnnAhMgyZY7L m2Wz6VVTLKSPtQ9CogFH1RFGSk1zGmANHfgrluqrXHlNKutLAZ9GLYFX/fR1RBty FZhqXISufxFh9l49QSaONINH18UM7fnLjf84Qzt3kTff/OX7ZZTfykiDatQIhtOn IRYjCB6GWHk3XXdPywjcDN55MEarVqBdMfwONmeuZ8O1w9z+6YZEWH62OcZ3o+AH MQOzeyJLLSIWr9qupIVoZpVfoPRtQU35qoM7b0x8zS6ATVfqDuV855FlAEjuZBdO nA5ZJU9KKr7vH+k9/rNZkGa5hwVt1GFfg01SPpqgpAthhl92vKa65tIQ4v+ZTSUk dkHARxXDh/7oAXL8+jjlVENzpQvJqmfnSm4itT1ydHm9gLefuMQ/H6A95l4HZnvZ LJG3m1IIo4D7e0FwHX1RKw0E17lCXUDQQ1h1fEeoyyqQiZuxAgARO8Hq2FDbYxJd U6nSBNhx =N0Bg -----END PGP SIGNATURE----- --nextPart2490516.bB369e8A3T-- --===============8382233622725243563== 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 ___________________________________________________________________________________ --===============8382233622725243563==--