Command/setupmakeup

From Wiki
< Command
Revision as of 16:35, 8 June 2020 by Garulfo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

\setupmakeup

Syntax

\setupmakeup[...,...][...=...,...]
[...,...]name
pagesee \page
commandcommand
widthdimension
heightdimension
alignsee \setupalign
setupsname
topcommand
bottomcommand
beforecommand
aftercommand
locationtop
referencereference
pagestatestart stop
headerstatestart stop high empty none normal
footerstatestart stop high empty none normal
topstatestart stop high empty none normal
bottomstatestart stop high empty none normal
textstatestart stop high empty none normal
doublesidedyes no empty
stylestyle command
colorcolor


Description

from a mail by Taco:

A makeup is a separate page, like a title page or colofon. There is one standard makeup page, but you can define more if needed.

It is a page type with a special layout / header & footer sections that last only temporarily. The key point is that such a page does not (have to) rely on the current page layout style, which is especially useful for title pages.

By default the page layout set up with \setuplayout is being reused. However, a custom page layout can be used as well. \definemakeup automatically uses a layout defined with \definelayout with the same name as the makeup.

There are two different ways to switch to the defined makeups:

\startmakeup [custom]
 … some content …
\stopmakeup

and

\startcustommakeup
 … some content …
\stopcustommakeup

Example

% this layout is automatically used by the “custom” makeup
\definelayout
  [custom]
  [backspace=5mm]

\definemakeup
  [custom]

\starttext

  \startmakeup [custom]
    \input ward
  \stopmakeup

  \input knuth

  \startcustommakeup
    \input ward
  \stopcustommakeup

\stoptext


See also

Help from ConTeXt-Mailinglist/Forum

All issues with: