Changes

Jump to navigation Jump to search
2,570 bytes added ,  17:06, 15 February 2023
some explanation added
== Description ==
A makeup is a special, separate that has single page with a special layout, allowing for custom and temporary header & and footer sections. Pages that need not  Makeups don’t rely on the current page layout style , and they typically include covers, colophons, or similarones. In any case, it is important not to forget that makeup contents will never split in pages. All makeup contents must fit on a single page.  There is one are predefined makeups: <code>standard makeup </code>, <code>page</code>, <code>text</code> and <code>middle</code>. Of course, but you can define more if neededas many as you may need. By default, makeups have the following properties: # They aren’t numbered in the final document (<code>pagestate=start</code> changes this).# In double-sided documents, they are always on an odd page with the next page empty (<code>page=yes</code> and <code>doublesided=no</code> change each of these defaults).# They don’t include header or footers (use either <code>headerstate=start</code> or <code>footerstate=start</code> to change it).# They are left aligned (use the <code>align</code> option key [and {{cmd|dontleavehmode}} with {{cmd|externalfigure}}]). All makeups have an associated layout. So you may use {{cmd|setuplayout}} to tweak it (besides configuring the makeup itself).
== Examples ==
There are a few ways to invoke a custom makeup(and to compare it with the other predefined makeups):
<texcode>
\showframe
\setuppagenumbering[alternative=doublesided, page=,]
\setupmakeup[pagestate=start]
\definemakeup[custom][align=middle]
\starttext
\startmakeup[custom]
This is a title page.
\stopmakeup
 
\startmakeup[text]
This is a title page.
\stopmakeup
 
 
\startmakeup[middle]
This is a title page.
\stopmakeup
 
\startmakeup[standard]
This is a title page.
\stopmakeup
 
\startmakeup[page]
This is a title page.
\stopmakeup
 
\input zapf
\stoptext
</texcode>
 
This may be easily extended to having multiple divider (title) pages:
 
<texcode>
\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
</texcode>
And anotherAnother way to start a previously defined <code>makeup</code> is to put it into the <code>\start</code> invocation, i.e., \start<''name''>makeup</code>. In the above case we can simply refer to the ''custom'' <code>makeup</code> with <code>\startcustommakeup</code>:
<texcode>
This is a title page.
\stopcustommakeup
 
\input zapf
\stoptext
</texcode>
 
And then extend to others:
 
<texcode>
\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
</texcode>
== Horizontal Aligment == Horizontal aligment is specified with the <code>align</code> optionas in: <texcode>\definemakeup[custom][align=flushright] % align here is used to set text flush to the right\starttext\startcustommakeupThis is a title page.\stopcustommakeup \input zapf\stoptext</texcode>
== See Also ==
139

edits

Navigation menu