Changes

Jump to navigation Jump to search
7 bytes added ,  01:57, 7 July 2011
m
Editorial changes by Karl and Barbara
== Pre-defined paper sizes ==
Both <tt>A4</tt> and <tt>letter</tt> are predefined paper sizes. ConTeXt also predefines many other commonly used paper sizes. These include:
* <tt>letter</tt>, <tt>ledger</tt>, <tt>tabloid</tt>, <tt>legal</tt>, <tt>folio</tt>, and <tt>executive</tt> sizes from the North American paper standard;
<texcode>\definepapersize [A4] [width=210mm,height=297mm]</texcode>
Use this new paper size as like any of the predefined paper sizes. For example, to set the paper size to 50mm x 100mm paper, use
<texcode>\setuppapersize[exotic]</texcode>
= Changing paper setup mid-document =
Normally, the paper size is set up once&mdash;in the environment file&mdash;and doesn't need to be changed later. But, occasionally, changing paper size mid-document is needed; for example, to insert a table or a figure in landscape mode. There are two ways to change the paper size mid-document. To illustrate those, let us first define two paper sizes for convenience:
<texcode>\setuppapersize[main] [A4]
The <tt>\page</tt> before <tt>\setuppapersize</tt> is necessary as <tt>\setuppapersize</tt> changes the size of the current page.
Often times, a different paper size is needed only for one page. Rather than manually switching the paper size back and forth using <tt>\setuppapersize</tt>, an a convenient alternative is to use <tt>\adaptpapersize</tt> that , which automatically reverts back to the existing paper size after ''one'' page. This is illustrated by the following example.
<texcode>\setuppapersize[main]
= Setting print size =
Occasionally you may want to print on a larger paper than the actual page size. This could be because you want to print until to the edge of the page&mdash;so you print on a large paper and crop later&mdash;or because the page size that you are using is not standard. For example, suppose you want to print an <tt>A5</tt> page on a <tt>A4</tt> paper (and crop later). For that, you need to specify that the paper size is <tt>A5</tt> but the ''print paper'' size is <tt>A4</tt>. This information is specified using the two argument version of the <tt>\setuppapersize</tt> command:
<texcode>\setuppapersize[A5][A4]</texcode>
== Defining page and print size combinations ==
It is convenient to define paper-size /print-paper-size combination for later reuse. These are also defined using <tt>\definepapersize</tt>. For example, suppose you want to define two paper-size /print-paper-size combinations: <tt>A4</tt> paper on <tt>A4</tt> print paper for normal work flow, and <tt>A4</tt> paper on <tt>A3</tt> print paper for the final proofs. For that, use the following:
<texcode>\definepapersize[regular][A4][A4]

Navigation menu