From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/111499 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: One chapter with different heading settings Date: Sun, 23 May 2021 09:38:28 -0400 Message-ID: <03802c98-9312-c169-5c30-dfc8f50f2003@rik.users.panix.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3011288997524370851==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9916"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.10.2 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun May 23 15:39: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 1lkoJq-0002L2-5E for gctc-ntg-context-518@m.gmane-mx.org; Sun, 23 May 2021 15:39:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7EA7C283B9F; Sun, 23 May 2021 15:38:37 +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 Q721U8Av3ai9; Sun, 23 May 2021 15:38:35 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B6B9C283BCE; Sun, 23 May 2021 15:38:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 24A55283BCE for ; Sun, 23 May 2021 15:38:33 +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 c23vbHNFN60t for ; Sun, 23 May 2021 15:38:32 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=166.84.1.89; helo=mailbackend.panix.com; envelope-from=context@rik.users.panix.com; receiver= Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id DAA66283B9F for ; Sun, 23 May 2021 15:38:31 +0200 (CEST) Original-Received: from [192.168.1.106] (cpe-69-204-137-117.nycap.res.rr.com [69.204.137.117]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4Fp1dK2VRlz2pwX for ; Sun, 23 May 2021 09:38:29 -0400 (EDT) In-Reply-To: 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:111499 Archived-At: This is a multi-part message in MIME format. --===============3011288997524370851== Content-Type: multipart/alternative; boundary="------------CD810204A4DF0647FCA3A450" Content-Language: en-US This is a multi-part message in MIME format. --------------CD810204A4DF0647FCA3A450 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 5/23/2021 07:43, Jeroen wrote: > In the preamble I have the following setup for the chapter header > setup. There is one chapter I want to have a different heading setup > with some less spacing, what would be the easiest way to achieve this? > > \setuphead > [section] > [style=bold, > before={\vskip4mm}, > after={\vskip1.5mm}] > What I do for a chapter that has different requirements is to define a new heading based on my normal chapter. Be sure to include it in the contents list as well if you show a table of contents, and similarly include it in the pdf bookmarks. There may be other, perhaps better ways to do it, but this works well. %% RVchapter can start on recto or verso, chapter on recto only \definehead [RVchapter][chapter] \setuphead  [RVchapter][                         page=yes,                         before=                        ] \setuphead  [chapter]  [                         style=\tfc\HeadFont,                         page={yes,right},                         ...,                        ] \setuphead  [section]  [                         style=\tfb\HeadFont,                         ...,                        ] \setupcombinedlist     [content]                        [list={chapter,RVchapter}] \placebookmarks [chapter,RVchapter,section,subsection,subsubsection]                        [chapter]                        [force=yes,number=no] -- Rik --------------CD810204A4DF0647FCA3A450 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 5/23/2021 07:43, Jeroen wrote:
In the preamble I have the following setup for the chapter header setup. There is one chapter I want to have a different heading setup with some less spacing, what would be the easiest way to achieve this?

\setuphead
  [section]
  [style=bold,
   before={\vskip 4mm},
   after={\vskip 1.5mm}]

What I do for a chapter that has different requirements is to define a new heading based on my normal chapter. Be sure to include it in the contents list as well if you show a table of contents, and similarly include it in the pdf bookmarks.

There may be other, perhaps better ways to do it, but this works well.

%% RVchapter can start on recto or verso, chapter on recto only

\definehead [RVchapter][chapter]
\setuphead  [RVchapter][
                        page=yes,
                        before=
                       ]
\setuphead  [chapter]  [
                        style=\tfc\HeadFont,
                        page={yes,right},
                        ...,
                       ]
\setuphead  [section]  [
                        style=\tfb\HeadFont,
                        ...,
                       ]
\setupcombinedlist     [content]
                       [list={chapter,RVchapter}]
\placebookmarks        [chapter,RVchapter,section,subsection,subsubsection]
                       [chapter]
                       [force=yes,number=no]

--
Rik

--------------CD810204A4DF0647FCA3A450-- --===============3011288997524370851== 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== --===============3011288997524370851==--