29.11.2012 Views

MetaFun - Pragma ADE

MetaFun - Pragma ADE

MetaFun - Pragma ADE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6 Page backgrounds<br />

Especially in interactive documents, adding backgrounds to the page and text areas not only enhances readability,<br />

but also makes it more convenient to identify header, footers and navigational areas. In this chapter<br />

we will demonstrate that with METAPOST we can go beyond the TEX based features present in CONTEXT. One<br />

section is dedicated to graphics and printing, especially bleeding.<br />

6.1 The basic layout<br />

In the CONTEXT manual you can find many details on the composition of the page. When TEX typesets<br />

text, crossing the page boundary triggers TEX's output routine. This routine is responsible for<br />

pasting the body text that goes onto a page in the correct area. A simple representation of such a<br />

page is:<br />

The red areas are the header and footer, while the yellow areas contains the text flow. We can turn<br />

headers on and off and/or hide them. For this reason, the header, text and footer areas together<br />

make up the height of the text.<br />

A close look at the left picture will reveal that the two arrows point to the center of the lines. This is<br />

achieved by the top and lft directives. If we would not have clipped the picture, the arrow would<br />

have stuck half a line width outside the gray area that represents the page. When constructing<br />

such pictures, one should really pay attention to such details, since it pays off in the overall look<br />

and feel of the document.<br />

The vertical arrow represents the top space, while the horizontal arrow denotes the distance to the<br />

back of the cover (back space). By changing their values, you can shift the main body text on the<br />

page. In a double sided layout scheme, the back space is automatically mirrored on even pages.<br />

The basic layout Page backgrounds<br />

155

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!