Changes

Jump to navigation Jump to search
212 bytes added ,  12:04, 26 August 2020
m
fixed previous fix
__TOC__
This page focuses on '''Basics of page design and layout'''. It will allow you to continue on [[#Further reading|further topics]] like [[Presentations|Presentations layout]], [[Visual_Debugging|Visual debugging]], [[Floating Objects]], [[Columns]], [[Layers]], [[Grid typesetting]], [[PDF Boxes]]. But first, one needs to understand the basics of page layout by ConTeXt.
= Typesetting areas =
= Defining the layout =
Positioning the areas is by setting the following dimensions using {{cmd|setuplayout|2=[backspace=5cm,...]}}. The dimensions are mentioned in order of how ‘primitive’ they are: e.g. altering the {{code|topspace}} pushes around all other vertical dimensions, but altering the {{code|header}} affects only the {{code|headerdistance}} and the {{code|textheight}}.
You When you define a page layout, it's always define a right pagethat you're defining; if you use a double page layout, 'right' and 'left' values are mirrored on a left page. Doublesided typesetting is activated with {{cmd|setuppagenumbering|2=[alternative=doublesided]}}.
# Set the {{code|backspace}} and {{code|width}}, and the {{code|topspace}} and {{code|height}}. The {{code|width}} is the width of the main typesetting area; the {{code|backspace}} is its distance from the left edge of the page. The {{code|height}} is the distance ''from the top of the header to the bottom of the footer''; the {{code|topspace}} is the distance from the top edge of the page to the top of the header.
If you need to use different layouts in some parts of the document, you can set up a global layout, and then define additional named layouts for the deviating parts. You only need to specify the dimensions that differ: unspecified dimensions will be inherited from the global layout.
To switch to a different layout, call it up in the appropriate place in the document. To revert back to the global layout, use {{cmd|setuplayout|2=[reset]}}.
<texcode>
</texcode>
To specify in advance that you want to change layouts starting from page 4 (e.g.), use {{cmd|definelayout|2=[4][...]}}. Resetting the layout must be done explicitly; else, the new layout will be used until the end of the document.
<texcode>
** '''[[Columns]]'''
** '''[[Layers]]''', for absolute positioning of objects on the page, background, foreground etc.)
** '''[[Working on Gridtypesetting]]''' (working with fixed distances)
** '''[[Delimiter]]''', master line break and page break
** '''[[Hiding Content]]'''
* Concerning About PDF format** [[PDF Boxes]]: the size of PDF pages can have different meanings – e.g. the visible page, the printed page, the cropped printed page. ConTeXt can define the set of boxes defined by the PDF standard** [[PDF Print Options]]** [[Viewer Layers]] PDF has a concept of layers that you can enable and disable (at least in a few viewers). This has nothing to do with ConTeXt’s [[Layers]].
** [[PDF/A]], ConTeXt can create PDF/A compliant outputs
** [[PDFX]], ConTeXt can create PDF/X compliant outputs, the ISO standard.
   {{Getting started navbox}} [[Category:ConTeXt-IssuesLayout]]

Navigation menu