Changes

Jump to navigation Jump to search
508 bytes added ,  21:07, 4 March 2005
Got rid of miscallaneou update text; added headerdistnace info; added explanation on height and width
</pre>
Note how both page dimensions (the physical hieght height of a page) and
the layout (the margins) are contained in the simple-page-master
element. In ConTeXt, these two qualities are separate.
=Pysical Physical Page Dimensions=
Let's build different layouts in a ConTeXt document, starting
regions.
If you pages are not doublesided double sided (not part of a book), the
"backspace" value will determine how much space occurs between
the left edge of the paper and any text. It always touches the
"leftmargin" region. If you have a doublesided double sided layout, the
"backspace" value will flip from right to left side of your
pages, but will always be in the gutter, or the spine of a book
margin-top="2in"/>, <fo:region-body region-after="2in"/>,
<fo:region-body region-start="1in"/>, and <fo:region-body
region-end="1in"/> respectively. Like their FO conterpartscounterparts, the
ConTeXt values set up margins at the top, bottom, left, and right
of the page for marginal notes.
The values "leftmargin" and "rightmargin" have no affect on the
actual width of the body text. You could set "leftmargin" to 5in,
and your body text would not change its width. When you setwidth to 5 inches, the width of your body text will in fact be 5inches. (This contrasts with height, as I explain below.) If you the sum ofyour "backspace", margins, and width exceed the total pagewidth, your layout will not work.  In contrast, the "header" and"footer" do change the overall height of your body text. If youincreased the header by one inch, your body text would be 1 inchsmaller. You control The height actuallyrefers to the width and total height of your the toppace, header, body text by,footer, and bottomspace. If you set the header to 2 inches, andset the "width" footer to 2 inches, and "set the height to 4 inches, thenthe actual body height would be: 4 - 2 -2 = 0 (!) You would have no room for your body text at all. If you meant toset your body height to 4 inches, you would set height" valuesto 8inches (2 + 2 + 4 = 8).
<table border="2" >
<tt>\definelayout</tt> <tt>cutspace=x</tt> </td>
 
</tr>
 
<tr>
 
<td>
 
<fo:region-body margin-top="x"/> </td>
 
<td>
 
<tt>\definelayout</tt> <tt>headerdistance=x</tt> </td>
</tr>
=Changing Layouts for First, Odd and Even Pages=
 
Adam Adam corrected me on the following passage. I had had that
you couldn't change the physical descriptions for odd and even
pages, but he showed me you could.
FO lets you create different pages sizes and layouts for the
==First Page==
In order to define different pysical dimmensions physical dimensions for your first
page, use "1" as your first option:
have been stopped; "empty", which preserves the space for the
header or footer but does not show the text; and none, which
completely elminates eliminates both the space and the text for a header or
foooter.
determines the placement of text on the first page of a division
in a document, such as part. We will use this command in
conjuction conjunction with a <tt>\definetext</tt> command in this way:
<texcode>
* The <tt>\setuphead</tt> command allows us to control the headers and foooters for a new run of pages.
* We use the <tt>\vbox</tt> and <tt>\hfill</tt> commands to format text within a header or footer.
 
 
=To Do=
 
* Find out if there is a corresponding value of footerdistnace in FO.
22

edits

Navigation menu