Difference between revisions of "Command/setupmakeup"
(→See also: internal links) |
(Added an example with pagestate=start to increment page numbers) |
||
(13 intermediate revisions by 6 users not shown) | |||
Line 5: | Line 5: | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
− | < | + | <syntax>setupmakeup</syntax> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | ||
− | |||
== Description == | == Description == | ||
Line 78: | Line 13: | ||
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. | 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 {{cmd|setuplayout}} is being reused. However, a custom page layout can be used as well. {{cmd|definemakeup}} automatically uses a layout defined with {{cmd|definelayout}} with the same name as the makeup. | ||
+ | |||
+ | There are two different ways to switch to the defined makeups: | ||
+ | |||
+ | <texcode> | ||
+ | \startmakeup [custom] | ||
+ | … some content … | ||
+ | \stopmakeup | ||
+ | </texcode> | ||
+ | |||
+ | and | ||
+ | |||
+ | <texcode> | ||
+ | \startcustommakeup | ||
+ | … some content … | ||
+ | \stopcustommakeup | ||
+ | </texcode> | ||
== Example == | == Example == | ||
− | < | + | === Example 1 === |
+ | <texcode> | ||
+ | % 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 | ||
+ | </texcode> | ||
+ | === Example 2 === | ||
+ | Set the bodyfont on just the makeup page | ||
+ | <texcode> | ||
+ | |||
+ | \definemakeup [custom] [style={\switchtobodyfont[heros,14pt]}] | ||
+ | </texcode> | ||
+ | |||
+ | === Example 3 === | ||
+ | Make sure page numbering is incremented using `pagestate=start` | ||
+ | |||
+ | <texcode> | ||
+ | \definemakeup [title] [doublesided=empty, pagestate=start] | ||
+ | |||
+ | \starttext | ||
+ | \input knuth | ||
+ | \starttitlemakeup | ||
+ | Title | ||
+ | \stoptitlemakeup | ||
+ | \input knuth | ||
+ | \stoptext | ||
+ | </texcode> | ||
== See also == | == See also == | ||
− | * [[Makeup]] | + | * [[Makeup]] |
− | * [[ | + | * [[Layout]] |
+ | * [[Standardmakeup background]] (2013) | ||
+ | * {{src|page-mak.mkiv}} | ||
+ | * {{cmd|setuplayout}} | ||
+ | |||
+ | == Help from ConTeXt-Mailinglist/Forum == | ||
+ | All issues with: | ||
+ | {{Forum|{{SUBPAGENAME}}}} | ||
+ | |||
+ | [[Category:Command/Layout|setupmakeup]] | ||
− | [[Category: | + | [[Category:Layout]] |
Latest revision as of 11:41, 15 February 2023
\setupmakeup
Syntax
\setupmakeup[...,...][...=...,...] | |
[...,...] | name |
page | see \page |
command | command |
width | dimension |
height | dimension |
align | see \setupalign |
setups | name |
top | command |
bottom | command |
before | command |
after | command |
location | top |
reference | reference |
pagestate | start stop |
headerstate | start stop high empty none normal |
footerstate | start stop high empty none normal |
topstate | start stop high empty none normal |
bottomstate | start stop high empty none normal |
textstate | start stop high empty none normal |
doublesided | yes no empty |
style | style command |
color | color |
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
Example
Example 1
% 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
Example 2
Set the bodyfont on just the makeup page
\definemakeup [custom] [style={\switchtobodyfont[heros,14pt]}]
Example 3
Make sure page numbering is incremented using pagestate=start
\definemakeup [title] [doublesided=empty, pagestate=start] \starttext \input knuth \starttitlemakeup Title \stoptitlemakeup \input knuth \stoptext
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: