Command/page

From ConTeXt wiki
Jump to: navigation, search

\page

Syntax

\page[...,...,...]
[...,...,...] yes makeup no preference bigpreference left right disable last quadruple even odd blank empty reset start stop

Description

yes           - force a new page
makeup        - the same, without fill
no            - when possible, avoid page break (This only works in vertical
                mode, so you might need to insert a paragraph break or \par
                before the \page command)
preference    - allow page break (i.e. when possible, force page break)
bigpreference - when possible, force page break, try harder
left          - force a left page
right         - force a right page
disable       - ignore the next \page command
last          - add last page(s)
quadruple     - add pages until quadruple number of pages
even          - go to the next even page
odd           - go to the next odd page
blank         - insert a completely blank page
empty         - insert an empty page (without headers etc.)
reset         - reset the disable command
header        - set header off temporarily
footer        - set footer off temporarily

The page-breaking behaviour of most structural commands is specified with the page keyword, which takes the same arguments. Example of header usage (empty page if chapter starts at right):


Examples

Standard usage

\setuppapersize[A10, landscape][A8, landscape]
\setuppagenumbering[alternative=singlesided, location={header,inright}]
\setuppaper[nx=2, ny=2]
\setuparranging[XY]

\showframe[cut=true]
\subject{One}
Mary, Mary, Mary,
\page[odd]

\subject{Two}
Had a, had a, had a,
\page[yes]

lamb, lamb, lamb

See also

Help from ConTeXt-Mailinglist/Forum

All issues with:

C O N T E X T G A R D E N

Personal tools
Namespaces
Variants
Actions
Help
External Help
Installation
Navigation
Toolbox