Changes

Jump to navigation Jump to search
229 bytes removed ,  14:55, 22 September 2020
example pages have utterly disappeared. removed section
text wherever we want them with the commands
<tt>\setupheadertexts</tt> and <tt>\setupfootertexts</tt>. These
commands takes 4 arguments, the first for the left margin on evenodd
pages, the second for the right margin on odd pages, the third
for the right left margin on odd even pages, and the fourth for the leftrightmargin on odd even pages. For simplicity's sake, let's leave the
middle two options empty, so we get headers and footers on the
even and odd pages, naturally alligned with the left margin,
paragraph unit that ConTeXt uses behind the scenes. In order to
break a line inside a <tt>\vbox</tt>, we use <tt>\vskip</tt>.
 
=Example Documents=
 
Here are two example documents, illustrating all the formatting.
The first is a plain old ConTeXt document. The second is a TeXML
document.
 
[[page setup1]]
 
[[page setup1 texml]]
=Summary=
* We use <tt>\definelayout</tt> to set both the physical properties of a page as well as its layout.
* We place the <tt>\setuphead</tt> command before the <tt>\part</tt> command. We place all other commands after <tt>\part</tt>.
* The <tt>\setuphead</tt> command allows us to control the headers and foooters footers 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 footerdistance in FO.
[[Category:XML]]
[[Category:Text elements]]

Navigation menu