ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Different footers for frontmatter and bodymatter
@ 2021-08-18  9:32 noib3 via ntg-context
  2021-08-18 15:52 ` Rik Kabel via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: noib3 via ntg-context @ 2021-08-18  9:32 UTC (permalink / raw)
  To: ntg-context; +Cc: noib3


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

I'd like to have two different footer setups: one for the frontmatter
(titlepage and table of contents) where the page number in roman numerals
is reported as a single centered footer. Another for the bodymatter where
the chapter is on the left footer and the pagenumber is on the right.

I can switch between roman numerals and numbers with

```
\defineconversionset
  [frontpart:pagenumber]
  []
  [romannumerals]

\defineconversionset
  [bodypart:pagenumber]
  []
  [numbers]
```

but I can't figure out how to have two different footer setups. Right now I
have

```
\setupfootertexts
  [chapter]
  [pagenumber]
```

[-- Attachment #1.2: Type: text/html, Size: 841 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: Different footers for frontmatter and bodymatter
  2021-08-18  9:32 Different footers for frontmatter and bodymatter noib3 via ntg-context
@ 2021-08-18 15:52 ` Rik Kabel via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Rik Kabel via ntg-context @ 2021-08-18 15:52 UTC (permalink / raw)
  To: ntg-context; +Cc: Rik Kabel


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


On 8/18/2021 05:32, noib3 via ntg-context wrote:
> I'd like to have two different footer setups: one for the frontmatter 
> (titlepage and table of contents) where the page number in roman 
> numerals is reported as a single centered footer. Another for the 
> bodymatter where the chapter is on the left footer and the pagenumber 
> is on the right.
>
> I can switch between roman numerals and numbers with
>
> ```
> \defineconversionset
>   [frontpart:pagenumber]
>   []
>   [romannumerals]
>
> \defineconversionset
>   [bodypart:pagenumber]
>   []
>   [numbers]
> ```
>
> but I can't figure out how to have two different footer setups. Right 
> now I have
>
> ```
> \setupfootertexts
>   [chapter]
>   [pagenumber]
> ```
>
There are a few ways to do this.

  * You can explicitly change the footer settings in the body of the
    document (after \starttext) at any time. If placed within a group,
    the command is local to that group and reverts after the group is
    closed. If not, it applies to the remainder of the document unless
    otherwise overridden. This can be useful for a special page.
  * You can set it in the preamble within
    \startsectionblockenvironment[partname]..\stopsectionblockenvironment
    (where you can also define the number conversion. This is probably
    the easiest way to do it for documents differently-styled blocks.
  * You can forgo the \setupfootertexts commands completely and place
    the desired text in a separate layer. This may allow more precise
    control of the placement and formatting.

No doubt there are other mechanisms as well.

-- 
Rik

[-- Attachment #1.2: Type: text/html, Size: 2645 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-08-18 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18  9:32 Different footers for frontmatter and bodymatter noib3 via ntg-context
2021-08-18 15:52 ` Rik Kabel via ntg-context

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