Changes

Jump to navigation Jump to search
13 bytes added ,  00:06, 23 August 2011
m
Changed <tt>\...</tt> to <cmd>...</cmd>
<texcode>\definepapersize[exotic]
[width=50mm, height=100mm]</texcode>
which defines a paper that is 50mm wide and 100mm high; the name of this paper is ''exotic'' (we could have used any other word). All predefined paper sizes are defined using <ttcmd>\definepapersize</ttcmd>. For example, <tt>A4</tt> paper is defined as:
<texcode>\definepapersize [A4] [width=210mm,height=297mm]</texcode>
<texcode>\setuppapersize[main] [A4]
\setuppapersize[extra][A4,landscape]</texcode>
One way to change document size is to permanently change the paper size using <ttcmd>\setuppapersize</ttcmd> and then revert back using <ttcmd>\setuppapersize</ttcmd>.
<texcode>% Set the default paper size
\stoptext</texcode>
The <ttcmd>\page</ttcmd> before <ttcmd>\setuppapersize</ttcmd> is necessary as <ttcmd>\setuppapersize</ttcmd> 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 <ttcmd>\setuppapersize</ttcmd>, a convenient alternative is to use <ttcmd>\adaptpapersize</ttcmd>, which automatically reverts back to the existing paper size after ''one'' page. This is illustrated by the following example.
<texcode>\setuppapersize[main]
Page 4. Potrait \page
\stoptext</texcode>
As with <ttcmd>\setuppapersize</ttcmd>, always use an explicit <ttcmd>\page</ttcmd> before <ttcmd>\adaptpapersize</ttcmd>.
= 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 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 <ttcmd>\setuppapersize</ttcmd>:
<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 <ttcmd>\definepapersize</ttcmd>. 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