Difference between revisions of "Makeup"
|Line 105:||Line 105:|
\definemakeup[custom][align=] % align here used to
|Line 114:||Line 114:|
== See Also ==
== See Also ==
Revision as of 19:34, 3 November 2021
A makeup has a special layout, allowing for custom and temporary header & footer sections. Pages that need not rely on the current page layout style typically include covers, colophons, or similar. There is one standard makeup page, but you can define more if needed.
There are a few ways to invoke a custom makeup:
\definemakeup[custom][align=middle] \starttext \startmakeup[custom] This is a title page. \stopmakeup \input zapf \stoptext
This may be easily extended to having multiple divider (title) pages:
\definemakeup[custom][align=middle] \starttext \startmakeup[custom] This is a divider page. \stopmakeup \input tufte \startmakeup[custom] This is a second divider page. \stopmakeup \input ward \startmakeup[custom] This is a divider title page. \stopmakeup \input zapf \stoptext
Another way to start a previously defined
makeup is to put it into the
\start invocation, i.e., \start<name>makeup. In the above case we can easily refer to custom makeup with
\definemakeup[custom][align=middle] \starttext \startcustommakeup This is a title page. \stopcustommakeup \input zapf \stoptext
And then extend to others:
\definemakeup[customone][align=middle] \definemakeup[customtwo][bottom=,] % See note below on Vertical Alignment \starttext \startcustomonemakeup This is a title/divider page using customone. \stopcustomonemakeup \input ward \startcustomtwomakeup This is a title/divider page using customtwo. \stopcustomtwomakeup \input zapf \stoptext
By default, makeups lack both header and footers. They are vertically centered and horizontally aligned to the left..
Makeups are centered vertically by default.
The way to align them vertically to the top or to the bottom is the following:
\setuppapersize[A6] \starttext \startstandardmakeup[top=,] This is vertically aligned to the top. \stopstandardmakeup \startstandardmakeup[bottom=,] This is vertically aligned to the bottom. \stopstandardmakeup \startstandardmakeup This is the default: vertically centered. \stopstandardmakeup \stoptext
Horizontal aligment is specified with the
align option as in:
\definemakeup[custom][align=flushright] % align here is used to set text flush to the right \starttext \startcustommakeup This is a title page. \stopcustommakeup \input zapf \stoptext