ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* One chapter with different heading settings
@ 2021-05-23 11:43 Jeroen
  2021-05-23 13:38 ` Rik Kabel
  0 siblings, 1 reply; 2+ messages in thread
From: Jeroen @ 2021-05-23 11:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 298 bytes --]

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}]

[-- Attachment #1.2: Type: text/html, Size: 956 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: One chapter with different heading settings
  2021-05-23 11:43 One chapter with different heading settings Jeroen
@ 2021-05-23 13:38 ` Rik Kabel
  0 siblings, 0 replies; 2+ messages in thread
From: Rik Kabel @ 2021-05-23 13:38 UTC (permalink / raw)
  To: ntg-context


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-23 13:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-23 11:43 One chapter with different heading settings Jeroen
2021-05-23 13:38 ` Rik Kabel

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).