From: Rik Kabel <ConTeXt@rik.users.panix.com>
To: ntg-context@ntg.nl
Subject: Re: One chapter with different heading settings
Date: Sun, 23 May 2021 09:38:28 -0400 [thread overview]
Message-ID: <03802c98-9312-c169-5c30-dfc8f50f2003@rik.users.panix.com> (raw)
In-Reply-To: <CAPtmdbN7A8FB3cZV6Rar4Z9p=cC+RMq-Tm84ONYTaMp8OSiy+A@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1768 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 3325 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2021-05-23 13:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-23 11:43 Jeroen
2021-05-23 13:38 ` Rik Kabel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=03802c98-9312-c169-5c30-dfc8f50f2003@rik.users.panix.com \
--to=context@rik.users.panix.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).