Difference between revisions of "Makeup"

From Wiki
Jump to navigation Jump to search
(introduction and vertical alignment)
m
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<pre>
+
== Description ==
> 2) What \startstandardmakeup do then? And what is the purpose of defining custom makeups?                                                     
 
                                                                               
 
From the source (and I am positive this is also mentioned in the               
 
big manual):                                                                   
 
  
A makeup is a separate page, like a title page or colofon.                  
+
A makeup is a special, separate that 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 is one standard makeup page, but you can define more                  
 
if needed.                                                                  
 
  
As can be seen in
+
== Examples ==
http://wiki.contextgarden.net/Command/setupmakeup                       
 
                                                                               
 
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.
 
</pre>
 
&mdash; Taco, in http://www.ntg.nl/pipermail/ntg-context/2010/049662.html
 
  
<pre>
+
There are a few ways to invoke a custom makeup:
> Hi everyone,                                                                 
 
>                                                                             
 
> I cannot see any effect when using voffset and hoffset as a parameter for   
 
> \startstandardmakeup. For example:                                           
 
>                                                                             
 
>      \startstandardmakeup[headerstate=none, footerstate=none,               
 
>                          hoffset=1in, hoffset=1in, width=4in, height=7.0in] 
 
>      ...                                                                     
 
>      \stopstandardmakeup                                                     
 
>                                                                             
 
> I'd expect them to shift the page content up and to the                     
 
> right, respectively. This is guessing from their name: I actually cannot find
 
> any documentation on these parameters. Am I missing something?               
 
 
 
indeed they are obsolete ... layers are better for that
 
</pre>
 
&mdash; Hans, http://www.ntg.nl/pipermail/ntg-context/2010/051896.html
 
 
 
=Introduction=
 
A makeup is an special kind of page that some documents might contain.
 
It is intended for covers, colophons or similar pages. Their key
 
feature is that they don’t have to rely on the current page layout
 
style.
 
 
 
There is one standard makeup, but more can be defined when needed.
 
 
 
The way to invoke them is one of the following two:
 
  
 
<texcode>
 
<texcode>
Line 58: Line 17:
 
\stoptext
 
\stoptext
 
</texcode>
 
</texcode>
 +
 +
And another:
  
 
<texcode>
 
<texcode>
Line 69: Line 30:
 
\stoptext
 
\stoptext
 
</texcode>
 
</texcode>
By default, makeups lack both header and footers. They are vertically
 
centered and horizontally aligned to the left.
 
  
Configuration options can be found at <cmd>setupmakeup</cmd>.
+
By default, makeups lack both header and footers. They are vertically centered and horizontally aligned to the left..
  
=Vertical aligment of makeups=
+
== Vertical Aligment ==
  
 
Makeups are centered vertically by default.
 
Makeups are centered vertically by default.
Line 98: Line 57:
  
 
Horizontal aligment is specified with the <code>align</code> option.
 
Horizontal aligment is specified with the <code>align</code> option.
 +
 +
== See Also ==
 +
 +
* {{cmd|setupmakeup}}
 +
* http://wiki.contextgarden.net/Command/setupmakeup
 +
* http://www.ntg.nl/pipermail/ntg-context/2010/049662.html
 +
* http://www.ntg.nl/pipermail/ntg-context/2010/051896.html
 +
 +
[[Category:Basics]]
 +
[[Category:Layout]]

Revision as of 14:59, 8 June 2020

Description

A makeup is a special, separate that 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.

Examples

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

And another:

\definemakeup[custom][align=middle]
\starttext
\startcustommakeup
This is a title page.
\stopcustommakeup

\input zapf
\stoptext

By default, makeups lack both header and footers. They are vertically centered and horizontally aligned to the left..

Vertical Aligment

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.

See Also