Difference between revisions of "Command/setupmakeup"

From Wiki
Jump to navigation Jump to search
(add example)
m (add texcode markup)
 
Line 162: Line 162:
 
\input knuth
 
\input knuth
 
\stoptext
 
\stoptext
−
</texcode></cd:example><cd:example title="Differences between `doublesided` options">\setuppagenumbering[alternative=doublesided]
+
</texcode></cd:example><cd:example title="Differences between `doublesided` options"><texcode>
 +
\setuppagenumbering[alternative=doublesided]
  
 
\setupfootertexts[Can you see me?]
 
\setupfootertexts[Can you see me?]
Line 177: Line 178:
  
 
\stoptext
 
\stoptext
−
</cd:example></cd:examples>
+
</texcode></cd:example></cd:examples>
 
<cd:notes></cd:notes>
 
<cd:notes></cd:notes>
 
<cd:seealso>
 
<cd:seealso>

Latest revision as of 07:40, 13 September 2025


\setupmakeup

Summary

The command \setupmakeup is used for the options of a “makeup” (special page layout).

Settings

\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

OptionExplanation
pagestate
continue page numbering of default layout?
doublesided
yes doublesided layout
no singlesided layout, header/footer on the following page
empty singlesided layout, **no** header/footer on the following page

Description

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

Examples

Set the bodyfont on just the makeup page

\definemakeup [custom] [style={\switchtobodyfont[heros,14pt]}]

Make sure page numbering is incremented using pagestate=start

\definemakeup [title] [doublesided=empty, pagestate=start]

\starttext
\input knuth
\starttitlemakeup
Title
\stoptitlemakeup
\input knuth
\stoptext

Differences between doublesided options

\setuppagenumbering[alternative=doublesided]

\setupfootertexts[Can you see me?]

\starttext

\startstandardmakeup[headerstate=start,footerstate=start,doublesided=empty]
Ernie
\stopstandardmakeup

\startstandardmakeup[headerstate=start,footerstate=start,doublesided=yes]
Bert
\stopstandardmakeup

\stoptext

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: